/* 办公室大屏（方向 C 第二版：员工一条 + 新闻 + 报告 + 时间轴）：按 1920×1080 画，screen.js 按实际屏幕等比缩放。
   电视里的浏览器内核可能比较旧：不用 flex 的 gap、inset、:has 这些新写法；动画只用转动、平移、透明度，老电视也带得动。 */
:root {
  --bg: #0c0f14; --card: #151a22; --card2: #1b212b; --line: #252c37;
  --text: #eef1f5; --muted: #8f98a7; --dim: #566070;
  --red: #ff4d4f; --yellow: #f6b93b; --green: #34c77b; --blue: #5aa7ff;
  /* 业务颜色：投研 / 风控 / 小红书 / 行政 / 别的 */
  --c-res: #5b8ff9; --c-risk: #34c77b; --c-xhs: #ff4d7a; --c-adm: #a0a8b5; --c-other: #b48cff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden;
  transform-origin: 0 0; background: var(--bg); }
.num { font-family: "SF Pro Display", -apple-system, Roboto, "PingFang SC", sans-serif; font-variant-numeric: tabular-nums; }
.empty { font-size: 26px; color: var(--dim); padding: 10px 0; line-height: 1.5; }

.screen { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; padding: 30px 48px 36px;
  display: grid; grid-template-rows: 96px 140px 1fr 240px; grid-row-gap: 22px; }

/* 顶栏 */
header { display: flex; align-items: center; }
header > * + * { margin-left: 26px; }
.logo { font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1; white-space: nowrap; }
.logo i { display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: var(--red); margin-left: 3px; }
.place { font-size: 30px; color: var(--muted); padding-left: 22px; border-left: 2px solid var(--line); white-space: nowrap; }
.date { font-size: 34px; font-weight: 600; white-space: nowrap; }
.pill { font-size: 26px; padding: 8px 20px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--green); background: rgba(52, 199, 123, .12); }
.pill.warn { color: var(--yellow); background: rgba(246, 185, 59, .13); }
.pill.urgent { color: #fff; background: var(--red); display: none; }
.pill.guest { color: var(--blue); background: rgba(90, 167, 255, .13); }
.spacer { flex: 1; }
.links { display: flex; align-items: center; white-space: nowrap; }
.links span { font-size: 24px; color: var(--muted); margin-left: 22px; }
.links span:first-child { margin-left: 0; }
.links b { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 2px; }
.links .off { color: var(--dim); }
.links .off b { background: var(--dim); }
.clock { font-size: 92px; font-weight: 300; letter-spacing: -2px; line-height: 1; }

/* 员工一条：每人一张小卡片，在干活的有动画 */
.team { display: grid; grid-column-gap: 22px; min-height: 0; }
.emp { --glow: var(--c-other); background: var(--card); border-radius: 24px; padding: 0 24px; display: flex; align-items: center;
  position: relative; overflow: hidden; min-width: 0; border: 2px solid transparent; }
.emp.res { --glow: var(--c-res); } .emp.risk { --glow: var(--c-risk); } .emp.xhs { --glow: var(--c-xhs); } .emp.adm { --glow: var(--c-adm); }
.emp.idle { opacity: .7; }
.emp.wait { border-color: rgba(246, 185, 59, .55); }
.emp.alert { border-color: var(--red); animation: alarm 1.2s ease-in-out infinite; }
@keyframes alarm { 50% { border-color: rgba(255, 77, 79, .25); } }
.sealbox { position: relative; width: 86px; height: 86px; flex: none; }
.seal { position: absolute; left: 5px; top: 5px; width: 76px; height: 76px; border-radius: 22px; display: flex; align-items: center;
  justify-content: center; font-size: 40px; font-weight: 700; color: #fff; }
/* 在干活：印章外一圈转动的光（老内核不支持 conic-gradient 就没有这圈，不影响别的） */
.ring { display: none; position: absolute; left: 0; top: 0; width: 86px; height: 86px; border-radius: 26px;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--glow) 85%, transparent 100%); animation: spin 1.6s linear infinite; }
.ring::after { content: ""; position: absolute; left: 3px; top: 3px; right: 3px; bottom: 3px; border-radius: 23px; background: var(--card); }
.emp.busy .ring, .emp.collect .ring, .emp.watch .ring { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.emp .info { margin-left: 20px; min-width: 0; flex: 1; }
.emp .row1 { display: flex; align-items: center; white-space: nowrap; }
.emp .row1 b { font-size: 29px; overflow: hidden; text-overflow: ellipsis; }
.st { flex: none; margin-left: 12px; font-size: 20px; padding: 3px 12px; border-radius: 999px; color: var(--muted); background: var(--card2); }
.emp.busy .st, .emp.collect .st, .emp.watch .st { color: var(--glow); background: rgba(255, 255, 255, .06); }
.emp.alert .st { color: #fff; background: var(--red); }
.emp.wait .st { color: var(--yellow); background: rgba(246, 185, 59, .13); }
.emp .doing { font-size: 24px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp.alert .doing { color: #ff8a8a; }
.emp .small { font-size: 19px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 写稿：三个点跳 + 底下一道光在走 */
.dots { display: none; }
.emp.busy .dots { display: inline; }
.dots i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-left: 5px; vertical-align: middle;
  animation: hop 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-8px); opacity: 1; } }
.scan { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; }
.emp.busy .scan { display: block; }
.scan i { position: absolute; top: 0; left: 0; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--glow), transparent);
  animation: slide 1.8s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
/* 收集信息：信息点从右往左流向印章 */
.stream { display: none; position: absolute; left: 110px; right: 0; bottom: 10px; height: 8px; }
.emp.collect .stream { display: block; }
.stream i { position: absolute; top: 1px; right: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); opacity: 0;
  animation: flow 2.4s linear infinite; }
.stream i:nth-child(2) { animation-delay: .4s; } .stream i:nth-child(3) { animation-delay: .8s; } .stream i:nth-child(4) { animation-delay: 1.2s; }
.stream i:nth-child(5) { animation-delay: 1.6s; } .stream i:nth-child(6) { animation-delay: 2s; }
@keyframes flow { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: .9; } 100% { transform: translateX(-300px); opacity: 0; } }
/* 盯盘：心电图一样跳的线 */
.pulse { display: none; position: absolute; left: 110px; right: 24px; bottom: 3px; height: 20px; overflow: hidden; }
.emp.watch .pulse { display: block; }
.pulse path { fill: none; stroke: var(--glow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 90 510; animation: beat 2.4s linear infinite; }
@keyframes beat { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.team.dense .emp { padding: 0 18px; }
.team.dense .sealbox { width: 70px; height: 70px; }
.team.dense .seal { width: 60px; height: 60px; font-size: 32px; border-radius: 18px; }
.team.dense .ring { width: 70px; height: 70px; border-radius: 22px; }
.team.dense .emp .info { margin-left: 14px; }
.team.dense .emp .row1 b { font-size: 25px; }
.team.dense .emp .doing { font-size: 21px; }
.team.dense .emp .small { font-size: 17px; }
.team .none { grid-column: 1 / -1; background: var(--card); border-radius: 24px; display: flex; align-items: center;
  justify-content: center; font-size: 30px; color: var(--muted); }

/* 中间：新闻（大）+ 今天的报告 */
.mid { display: grid; grid-template-columns: 1fr 640px; grid-column-gap: 22px; min-height: 0; }
.card { background: var(--card); border-radius: 24px; padding: 24px 32px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.card h2 { font-size: 27px; font-weight: 600; color: var(--muted); display: flex; align-items: baseline; margin-bottom: 14px; white-space: nowrap; }
.card h2 small { font-size: 22px; font-weight: 400; color: var(--dim); margin-left: auto; padding-left: 14px; }
.pager { margin-left: 20px; display: flex; align-items: center; }
.pager i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); margin-left: 8px; }
.pager i.on { background: var(--muted); }
.news article { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.news article:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.news h3 { font-size: 33px; line-height: 1.3; font-weight: 600; display: flex; }
.news h3 .tt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp { flex: none; display: flex; padding-top: 16px; width: 54px; }
.imp i { width: 11px; height: 11px; border-radius: 50%; background: var(--dim); margin-right: 6px; }
.imp i.on { background: var(--yellow); }
.news p { font-size: 24px; line-height: 1.45; color: var(--muted); margin: 6px 0 0 54px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news.tight p { -webkit-line-clamp: 1; }   /* 三条都长、放不下时每条解读只留一行 */
.tag { display: inline-block; font-size: 21px; padding: 1px 12px; border-radius: 8px; background: var(--card2); color: var(--muted); margin-right: 10px; }
.tag.up { color: #ff7a7a; } .tag.down { color: #4fd18b; }
.reps .rep { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.reps .rep:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.reps .ti { display: flex; align-items: center; white-space: nowrap; }
.reps .ti i { width: 10px; height: 10px; border-radius: 50%; margin-right: 12px; flex: none; background: var(--c-other); }
.reps .ti b { font-size: 27px; overflow: hidden; text-overflow: ellipsis; }
.reps .ti span { margin-left: auto; padding-left: 12px; font-size: 20px; color: var(--muted); }
.reps .g { font-size: 22px; line-height: 1.45; color: var(--muted); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.posted li { list-style: none; display: flex; font-size: 26px; line-height: 1.3; padding: 6px 0; white-space: nowrap; }
.posted .t { width: 92px; flex: none; color: var(--muted); }
.posted .x { overflow: hidden; text-overflow: ellipsis; }
.res { --c: var(--c-res); } .risk { --c: var(--c-risk); } .xhs { --c: var(--c-xhs); } .adm { --c: var(--c-adm); } .other { --c: var(--c-other); }
.reps .ti i.res, .reps .ti i.risk, .reps .ti i.xhs, .reps .ti i.adm { background: var(--c); }

/* 底下：今天的时间轴，按业务上色 */
.legend { margin-left: 8px; }
.legend span { font-size: 21px; color: var(--muted); font-weight: 400; margin-left: 22px; }
.legend b { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; background: var(--c); }
.tl-body { position: relative; flex: 1; min-height: 0; }
.tl { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.tl .axis { position: absolute; left: 0; right: 0; top: 70px; height: 4px; background: var(--line); border-radius: 2px; }
.tl .sess { position: absolute; top: 64px; height: 16px; background: rgba(52, 199, 123, .16); border-radius: 6px; }
.tl .tick { position: absolute; top: 84px; font-size: 18px; color: var(--dim); white-space: nowrap; }
.tl .dot { position: absolute; top: 65px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--c); }
.tl .dot.done { opacity: .55; }
.tl .lab { position: absolute; font-size: 21px; white-space: nowrap; color: var(--c); }
.tl .lab.done { opacity: .6; }
.tl .lab.done::after { content: " ✓"; }
.tl .now { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--blue); }
.tl .now b { position: absolute; top: 84px; right: 9px; font-size: 18px; font-weight: 400; color: var(--blue); white-space: nowrap; }
/* 右下：风控 · 关注股（只有今天涨跌和异动，没有仓位）；没数据、访客模式时不显示，时间轴占满 */
.bottom { display: grid; grid-template-columns: 1fr; grid-column-gap: 22px; min-height: 0; }
.bottom.two { grid-template-columns: 1fr 640px; }
.bottom:not(.two) .bright { display: none !important; }
.w { display: flex; align-items: center; white-space: nowrap; font-size: 25px; line-height: 1.3; padding: 4px 0; border-bottom: 1px solid var(--line); }
.w:last-child { border-bottom: 0; }
.w i { width: 14px; height: 14px; border-radius: 50%; background: var(--green); margin-right: 14px; flex: none; }
.w.red i { background: var(--red); } .w.yellow i { background: var(--yellow); } .w.notice i { background: var(--blue); }
.w b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.w .p { margin-left: 16px; font-size: 25px; flex: none; }
.w .why { margin-left: auto; padding-left: 10px; font-size: 22px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.w.red .why { color: #ff7a7a; } .w.yellow .why { color: var(--yellow); } .w.notice .why { color: var(--blue); }

/* 遥控器：选中框、按键提示 */
.news article, .reps .rep { position: relative; }
.focus::before { content: ""; position: absolute; left: -18px; right: -14px; top: -10px; bottom: 2px; border: 3px solid var(--blue); border-radius: 16px;
  box-shadow: 0 0 0 6px rgba(90, 167, 255, .15), 0 0 40px rgba(90, 167, 255, .25); background: rgba(90, 167, 255, .06); }
.keyhint { display: none; position: absolute; left: 50%; bottom: 262px; transform: translateX(-50%); background: rgba(20, 26, 36, .96);
  border: 1px solid #2f3a4a; border-radius: 16px; padding: 14px 28px; font-size: 25px; color: var(--muted); white-space: nowrap;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
body.hint .keyhint { display: block; }
body.detail .keyhint { display: none; }
.keyhint b, .dfoot b { display: inline-block; min-width: 38px; padding: 2px 12px; margin: 0 8px 0 22px; border-radius: 8px; background: #283244;
  color: var(--text); font-weight: 600; text-align: center; }
.keyhint b:first-child, .dfoot b:first-child { margin-left: 0; }
.keyhint .auto { margin-left: 24px; color: var(--dim); font-size: 21px; }

/* 遥控器：放大看（新闻、报告） */
.detailscreen { display: none; position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; padding: 30px 48px 36px; background: var(--bg);
  grid-template-rows: 80px 1fr 64px; grid-row-gap: 20px; }
body.detail .detailscreen { display: grid; }
.detailscreen .logo { font-size: 46px; }
.detailscreen .logo i { width: 12px; height: 12px; }
.crumb { font-size: 30px; color: var(--muted); padding-left: 22px; border-left: 2px solid var(--line); white-space: nowrap; }
.crumb b { color: var(--text); font-weight: 600; }
.pageno { font-size: 28px; color: var(--muted); white-space: nowrap; }
.detailscreen .clock { font-size: 64px; letter-spacing: -1px; }
.dbody { background: var(--card); border-radius: 28px; padding: 44px 64px; overflow: hidden; position: relative; min-height: 0; }
.dfoot { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--muted); white-space: nowrap; }
.dfoot .auto { margin-left: 34px; color: var(--dim); font-size: 22px; }
/* 新闻详情 */
.d-imp { display: flex; align-items: center; font-size: 26px; color: var(--yellow); }
.d-imp i { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); margin-right: 8px; }
.d-imp i.off { background: var(--dim); }
.d-imp span { margin-left: 10px; }
.dbody h1 { font-size: 56px; line-height: 1.25; margin-top: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-meta { font-size: 26px; color: var(--muted); margin-top: 16px; }
.d-cols { display: grid; grid-template-columns: 1fr 600px; grid-column-gap: 64px; margin-top: 40px; }
.d-k { font-size: 24px; color: var(--dim); margin-bottom: 12px; letter-spacing: 1px; }
.d-view { font-size: 36px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.d-side > div + div { margin-top: 40px; }
.d-row { display: flex; align-items: center; font-size: 30px; padding: 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.d-row:last-child { border-bottom: 0; }
.d-row .kind { font-size: 21px; color: var(--muted); background: var(--card2); border-radius: 8px; padding: 2px 10px; margin-left: 14px; }
.d-row .eff { margin-left: auto; padding-left: 14px; font-size: 28px; font-weight: 600; color: var(--muted); }
.d-row .eff.up { color: #ff7a7a; } .d-row .eff.down { color: #4fd18b; }
.d-follow { font-size: 30px; line-height: 1.6; }
/* 报告详情：两栏排，按页翻 */
.d-top { display: flex; align-items: center; white-space: nowrap; }
.d-top i { width: 16px; height: 16px; border-radius: 50%; margin-right: 18px; flex: none; background: var(--c-other); }
.d-top i.res, .d-top i.risk, .d-top i.xhs, .d-top i.adm { background: var(--c); }
.d-top h1 { margin-top: 0; font-size: 52px; overflow: hidden; text-overflow: ellipsis; display: block; }
.d-top span { margin-left: 28px; font-size: 26px; color: var(--muted); }
.d-prog { height: 6px; border-radius: 3px; background: var(--line); margin-top: 26px; overflow: hidden; }
.d-prog b { display: block; height: 100%; background: var(--muted); border-radius: 3px; transition: width .3s; }
.d-doc { position: relative; height: 580px; margin-top: 40px; overflow: hidden; }
.d-flow { height: 580px; -webkit-column-count: 2; column-count: 2; -webkit-column-gap: 90px; column-gap: 90px; column-fill: auto;
  font-size: 30px; line-height: 1.62; color: #dfe3ea; transition: transform .35s ease; }
.d-flow h2 { font-size: 32px; color: var(--text); margin: 0 0 12px; -webkit-column-break-after: avoid; break-after: avoid; }
.d-flow h2::before { content: ""; display: inline-block; width: 6px; height: 28px; border-radius: 3px; background: var(--c, var(--c-res));
  margin-right: 14px; vertical-align: -3px; }
.d-flow ul, .d-flow ol { margin: 0 0 26px 38px; }
.d-flow li { margin: 4px 0; }
.d-flow p { margin: 0 0 26px; }
.d-flow b { color: #fff; }
.d-flow table { border-collapse: collapse; width: 100%; font-size: 26px; margin: 4px 0 26px; }
.d-flow td, .d-flow th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.d-flow th { color: var(--muted); font-weight: 400; }
.d-note { font-size: 24px; color: var(--dim); margin-top: 20px; }

/* 三页：总览 / AI员工 / 新媒体矩阵，卡片按页显示 */
.vcard { display: none; }
body.view-home .in-home, body.view-ai .in-ai, body.view-matrix .in-matrix { display: flex; }
.guestcard { display: none !important; }
body.guest.view-ai .guestcard { display: flex !important; }
.place b { color: var(--text); font-weight: 600; }
/* 总览：项目卡片（最后一张是还没接上的空位），选中时亮蓝框 */
body.view-home .team .dots { display: none; }   /* 项目卡片上那句话是总结，不加跳动的点 */
.emp.placeholder { background: transparent; border: 2px dashed #2a3240; opacity: 1; }
.emp.placeholder .seal { background: #2a3240 !important; color: #6b7482; }
.emp.placeholder b { color: var(--muted); }
.emp.placeholder .doing { color: var(--dim); }
.emp.focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(90, 167, 255, .25), 0 0 40px rgba(90, 167, 255, .25); opacity: 1; }
.emp.focus::before { display: none; }
/* 总览：今天的小红书；矩阵：今天的稿 */
.x { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.x:last-child { border-bottom: 0; }
.x .mk { width: 46px; height: 46px; border-radius: 12px; color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex: none; margin-right: 18px; }
.x .tx { min-width: 0; flex: 1; }
.x b { display: block; font-size: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x span.sub { display: block; font-size: 20px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x.shared b { color: var(--muted); font-weight: 500; }
.xl .x.shared b::after { content: "  ✓"; color: var(--green); }
.x.trial b { color: #ffb38a; }
.posts .x { padding: 9px 0; }
.posts .x b { font-size: 29px; }
.posts .x.shared { opacity: .55; }
.posts .cv { width: 50px; height: 66px; border-radius: 8px; flex: none; margin-right: 18px; background: var(--card2) center / cover no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.tagr { margin-left: 14px; flex: none; font-size: 22px; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.tagr.shared { color: var(--green); background: rgba(52, 199, 123, .12); }
.tagr.pending { color: #ff7a9a; background: rgba(255, 77, 122, .13); }
.tagr.scheduled { color: var(--blue); background: rgba(90, 167, 255, .13); }
.tagr.trial { color: #ffb38a; background: rgba(232, 89, 12, .15); }
.tagr.urgent { color: #fff; background: var(--red); animation: alarm 1.2s ease-in-out infinite; }
/* 矩阵：账号 */
.acc { display: flex; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.acc:last-child { border-bottom: 0; }
.acc .mk { width: 58px; height: 58px; border-radius: 16px; color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex: none; margin-right: 18px; }
.acc .ab { min-width: 0; flex: 1; }
.acc b { font-size: 28px; }
.acc .stt { margin-left: 10px; font-size: 17px; padding: 2px 10px; border-radius: 999px; vertical-align: 4px; color: var(--muted); background: var(--card2); }
.acc .tp { font-size: 19px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc .nums { display: flex; margin-top: 10px; }
.acc .nums div { font-size: 17px; color: var(--dim); margin-right: 26px; white-space: nowrap; }
.acc .nums em { display: block; font-style: normal; font-size: 27px; color: var(--text); font-family: "SF Pro Display", -apple-system, Roboto, sans-serif; }
.acc .nums s { text-decoration: none; font-size: 16px; margin-left: 5px; }
.acc .nums s.up { color: #ff7a7a; } .acc .nums s.dn { color: #4fd18b; }
/* 矩阵：要你处理 */
.todo .t { display: flex; align-items: center; font-size: 24px; padding: 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.todo .t:last-child { border-bottom: 0; }
.todo .t i { width: 12px; height: 12px; border-radius: 50%; margin-right: 14px; flex: none; background: var(--yellow); }
.todo .t.bad i { background: var(--red); }
/* 矩阵：时间轴空心点、夜里写的合成一个标记 */
.tl .dot.hollow { background: var(--card) !important; border: 3px solid var(--c); }
.tl .night { position: absolute; left: 0; top: 0; font-size: 19px; color: #ff8a3d; border: 1px dashed rgba(255, 138, 61, .4); border-radius: 8px; padding: 1px 8px; }

/* 触摸屏（iPad）：点项目、点新闻报告、详情里滑动；这几个按钮只在触摸屏上出现 */
html, body { -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tbtn { display: none; font: inherit; font-size: 24px; padding: 8px 20px; border-radius: 999px; background: var(--card2); color: var(--text);
  border: 1px solid #2f3a4a; white-space: nowrap; cursor: pointer; }
body.touch .tbtn { display: inline-block; }
body.touch.view-home #t-back, body.touch.sound-on #t-sound { display: none; }
#t-sound { color: var(--yellow); border-color: rgba(246, 185, 59, .4); }
body.guest #t-guest { color: var(--blue); border-color: rgba(90, 167, 255, .5); }
body.touch .emp, body.touch .news article, body.touch .reps .rep { cursor: pointer; }

/* 访客模式 */
.guest-only { display: none !important; }
body.guest .guest-only { display: flex !important; }
body.guest .owner-only { display: none !important; }
body.guest.has-alert .pill.urgent { display: block; }

/* 紧急：整屏变红 */
.redscreen { display: none; position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; padding: 34px 48px 48px;
  background: radial-gradient(1200px 800px at 30% 30%, #d4242b 0%, #9e1117 70%, #7d0c12 100%); flex-direction: column; color: #fff; }
body.alarm .redscreen { display: flex; }
.redscreen .logo i { background: #fff; }
.redscreen .place { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .3); }
.redscreen .red-more { font-size: 28px; color: rgba(255, 255, 255, .85); }
.redscreen .who { margin-top: 64px; font-size: 34px; color: rgba(255, 255, 255, .85); display: flex; align-items: center; }
.redscreen .who b { background: #fff; color: #b3141b; padding: 6px 18px; border-radius: 10px; font-size: 30px; margin-right: 18px; }
.redscreen h1 { font-size: 96px; line-height: 1.15; margin-top: 26px; letter-spacing: -1px; max-width: 1800px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.redscreen h1.long { font-size: 72px; }
.redscreen .say { margin-top: 40px; background: rgba(0, 0, 0, .22); border-radius: 22px; padding: 30px 36px; max-width: 1600px; }
.redscreen .say p { font-size: 36px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.redscreen .how { margin-top: auto; display: flex; align-items: center; font-size: 32px; }
.redscreen .how > * + * { margin-left: 30px; }
.redscreen .how .step { background: #fff; color: #9e1117; font-weight: 700; padding: 14px 28px; border-radius: 14px; }
.redscreen .how .note { margin-left: auto; font-size: 24px; color: rgba(255, 255, 255, .75); }

/* 晚上 */
.nightscreen { display: none; position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: #000;
  flex-direction: column; align-items: center; justify-content: center; color: #4a515c; }
body.night .nightscreen { display: flex; }
.nightscreen .clock { font-size: 300px; font-weight: 200; letter-spacing: -6px; }
.nightscreen .date { font-size: 48px; font-weight: 400; margin-top: 10px; }
.nightscreen p { font-size: 24px; color: #2e333b; margin-top: 60px; }

/* 配对 */
.pairscreen { display: none; position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center; text-align: center; }
body.pairing .pairscreen { display: flex; }
.pairscreen .logo { font-size: 80px; }
.pairscreen h1 { font-size: 44px; font-weight: 600; margin-top: 50px; }
.pairscreen .code { font-size: 180px; font-weight: 600; letter-spacing: 24px; margin: 40px 0 30px; color: #fff; }
.pairscreen p { font-size: 32px; color: var(--muted); line-height: 1.6; max-width: 1500px; }
.pairscreen p code { color: var(--text); background: var(--card2); padding: 4px 14px; border-radius: 8px; font-size: 28px; }
.pairscreen p.small { font-size: 24px; color: var(--dim); margin-top: 24px; }

/* 连不上、提示 */
.banner { display: none; position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); background: #3a2a0b; color: var(--yellow);
  font-size: 28px; padding: 14px 30px; border-radius: 14px; white-space: nowrap; }
body.offline .banner { display: block; }
.toast { display: none; position: absolute; left: 50%; top: 150px; transform: translateX(-50%); background: rgba(27, 33, 43, .96);
  color: var(--text); font-size: 32px; padding: 20px 40px; border-radius: 16px; border: 1px solid var(--line); white-space: nowrap; }
.toast.show { display: block; }
