/* The console's shell (workspace.js, owner 2026-10-15): a home with two workspaces and, inside one, a left rail.
 * Colour says where you are: 商城管理 warm coral, 数字仓库 the console's blue, 管理 graphite. */
:root {
  --shop: #c4492d; --shop-soft: #fbe9e4; --wh: #2f4bd0; --wh-soft: #e9edfc; --adm: #3d434b; --adm-soft: #eceef2;
  --office: #0f766e; --office-soft: #e2f3f1;  /* 办公 (2026-11-24) */
  --rail-w: 232px;
}
@media (prefers-color-scheme: dark) {
  :root { --shop: #f07a5f; --shop-soft: #3a231d; --wh: #8fa3ff; --wh-soft: #1e2646; --adm: #c5cad1; --adm-soft: #262a30; --office: #5eead4; --office-soft: #16302d; }
}

/* the old module tabs: replaced by the four entrances and the rails */
body.ws-on .tabs { display: none !important; }

/* the four entrances in the top bar (功能整合): the one you are in is lit with its own colour */
:root { --today: #1d1d1f; --today-soft: #ececf0; }
@media (prefers-color-scheme: dark) { :root { --today: #e8e9ed; --today-soft: #2b2d33; } }
body.ws-on .brand { margin-right: 0; }
.ws-search { width: min(330px, 26vw); min-width: 180px; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-right: auto; margin-left: 12px; }
.ws-tab { display: grid; gap: 0; padding: 4px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; line-height: 1.25; }
.ws-tab b { font-size: 15px; font-weight: 600; white-space: nowrap; } /* "大厅" never breaks into 大 / 厅 */
.ws-tab span { font-size: 11.5px; color: var(--text-3); }
.ws-tab:hover { background: var(--surface-2); }
.ws-tab.on.today { background: var(--today-soft); color: var(--today); }
.ws-tab.on.wh { background: var(--wh-soft); color: var(--wh); }
.ws-tab.on.shop { background: var(--shop-soft); color: var(--shop); }
.ws-tab.on.adm { background: var(--adm-soft); color: var(--adm); }
.ws-tab.on.office { background: var(--office-soft); color: var(--office); }
.ws-tab.on span { color: inherit; }
.ws-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 2026-11-23 (后台 「舒服，明确，简单好看」): one slim row, the same as the bar of the pages of their own (shell.css) - the mark,
   the rooms as picture + name (the small print stays in the tooltip), the search, who you are; the bar runs the full width
   so the mark stands over the left menu */
body.ws-on .topbar-inner { max-width: none; flex-wrap: nowrap; min-height: 56px; padding: 0 20px; gap: 16px; }
body.ws-on .brand h1 { font-size: 15px; }
body.ws-on .brand-sep, body.ws-on #brand-sub { display: none; }
body.ws-on .ws-tabs { flex-wrap: nowrap; gap: 4px; margin-left: 8px; }
body.ws-on .ws-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; color: var(--text-3); }
body.ws-on .ws-tab i { display: inline-flex; font-style: normal; }
body.ws-on .ws-tab b { font-size: 15px; }
body.ws-on .ws-tab span { display: none; }
body.ws-on .ws-tab:hover { color: var(--text); }
body.ws-on .ws-tab.on { color: inherit; }
body.ws-on .ws-tab.on.today { color: var(--today); } body.ws-on .ws-tab.on.wh { color: var(--wh); }
body.ws-on .ws-tab.on.shop { color: var(--shop); } body.ws-on .ws-tab.on.adm { color: var(--adm); } body.ws-on .ws-tab.on.office { color: var(--office); }
/* 群聊 · 私信 in the top bar (2026-11-24): the bubble, the red number = not read yet (shell.css .sh-chat) */
body.ws-on .ws-chat { display: inline-flex; flex: none; }
body.ws-on .ws-chat[hidden] { display: none; }
body.ws-on .ws-search { margin-left: auto; width: min(320px, 30vw); }
body.ws-on .ws-search .sh-search { height: 36px; }
body.ws-on .topbar .state-badge { display: none; }
@media (max-width: 1100px) and (min-width: 641px) { body.ws-on .ws-tab b { display: none; } body.ws-on .ws-tab { padding: 8px 10px; } }
@media (max-width: 640px) {  /* a phone: the rooms get their own row again, each with its name */
  body.ws-on .topbar-inner { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  body.ws-on .ws-tabs { order: 5; width: 100%; margin: 0; }
  body.ws-on .ws-tab { flex: 1; justify-content: center; padding: 8px 4px; }
  body.ws-on .ws-search { order: 6; width: 100%; }
  /* six rooms since 办公 (2026-11-24): the phone's own tab bar - the picture over a small name - so all fit */
  body.ws-on .ws-tabs { gap: 2px; }
  body.ws-on .ws-tab { flex-direction: column; gap: 2px; min-width: 0; padding: 6px 2px; }
  body.ws-on .ws-tab b { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
}
@media (max-width: 640px) {  /* a phone: four names in one row, without their small print */
  .ws-tabs { order: 5; width: 100%; margin: 4px 0 0; flex-wrap: nowrap; }
  .ws-search { order: 6; width: 100%; }
  .ws-tab { flex: 1; justify-items: center; padding: 8px 4px; }
  .ws-tab span { display: none; }
}

.me-menu { position: relative; }
.me-menu summary { list-style: none; cursor: pointer; padding: 5px 10px; border-radius: var(--radius); color: var(--text-2); font-size: 13px; white-space: nowrap; }
.me-menu summary::-webkit-details-marker { display: none; }
.me-menu summary:hover { background: var(--surface-2); }
.me-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 4px; min-width: 150px;
  padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.me-menu-list .btn { justify-content: flex-start; }

.ws-shell { display: flex; align-items: flex-start; }
.ws-shell > main { flex: 1; min-width: 0; }
.ws-rail { position: sticky; top: 0; flex: none; width: var(--rail-w); height: 100vh; overflow: auto; display: grid;
  align-content: start; gap: 2px; padding: 16px 10px 48px; background: var(--surface); border-right: 1px solid var(--border); }
.ws-rail h3 { margin: 14px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--text-3); }
.ws-rail h3:first-child { margin-top: 0; }
.ws-rail .sh-ver span { display: block; }
.ws-rail .sh-ver { margin: 18px 10px 0; font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
.lb-ver .sh-ver { margin: 28px 0 8px; font-size: 12px; color: var(--text-3); text-align: center; }
.lb-ver .sh-ver span + span::before { content: " · "; }
.ws-rail a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--text);
  text-decoration: none; font-size: 14px; }
.ws-rail a:hover { background: var(--surface-2); }
.ws-rail.shop a.on { background: var(--shop-soft); color: var(--shop); font-weight: 600; }
.ws-rail.today a.on { background: var(--today-soft); color: var(--today); font-weight: 600; }
.ws-rail.wh a.on { background: var(--wh-soft); color: var(--wh); font-weight: 600; }
.ws-rail.adm a.on { background: var(--adm-soft); color: var(--adm); font-weight: 600; }
.ws-badge { margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn);
  font-size: 11.5px; font-variant-numeric: tabular-nums; }

.ws-home { display: grid; gap: 18px; }
.ws-home h1, .ws-page-head h1 { margin: 0; font-size: 24px; text-wrap: balance; }
.ws-page-head { display: grid; gap: 4px; }
.ws-page-head p, .ws-home > p { margin: 0; }
.ws-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ws-card { display: grid; gap: 14px; padding: 20px; color: var(--text); text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.ws-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ws-card-head { display: flex; align-items: center; gap: 12px; }
.ws-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; font-size: 22px; }
.ws-card.shop .ws-ic { background: var(--shop-soft); } .ws-card.wh .ws-ic { background: var(--wh-soft); }
.ws-card h2 { margin: 0; font-size: 19px; }
.ws-card p { margin: 2px 0 0; color: var(--text-3); font-size: 13px; }
.ws-go { font-weight: 600; } .ws-card.shop .ws-go { color: var(--shop); } .ws-card.wh .ws-go { color: var(--wh); }
.ws-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ws-nums.wide { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.ws-num { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.ws-num b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.ws-num span { font-size: 12px; color: var(--text-3); }
.ws-num.attn b { color: var(--warn); }
.ws-admin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--adm-soft); }
.ws-admin b { margin-right: 6px; }
.ws-admin span { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-more { margin-left: auto; font-weight: 600; text-decoration: none; }
.ws-sub { margin: 4px 0 0; padding: 0 var(--gutter); font-size: 13px; }
#today-team-list { padding: 4px var(--gutter) 10px; }
#sys-slot { padding: 14px var(--gutter); }

.ws-person { display: grid; grid-template-columns: 36px minmax(120px, 180px) minmax(0, 1fr) auto; gap: 10px 14px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border); }
.ws-person:first-child { border-top: 0; }
.ws-av { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--text-3); color: #fff; font-weight: 700; }
.ws-av.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--surface); }
.ws-who, .ws-did { display: grid; min-width: 0; }
.ws-who span { font-size: 12px; color: var(--text-3); }
.ws-did { font-size: 13.5px; }
.ws-did .muted { font-size: 12.5px; }
.ws-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.ws-pill { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; background: var(--idle-soft); color: var(--idle); }
.ws-pill.warn { background: var(--warn-soft); color: var(--warn); }
.ws-pill.bad { background: var(--bad-soft); color: var(--bad); }

.ws-todo { display: grid; gap: 8px; }
.ws-todo a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2);
  color: var(--text); text-decoration: none; }
.ws-todo a b { margin-left: auto; color: var(--warn); font-weight: 600; }
.ws-record { margin: 0; padding-left: 18px; max-height: 60vh; overflow: auto; display: grid; gap: 4px; font-size: 13.5px; }
#sys-slot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

@media (max-width: 860px) {
  .ws-shell { display: block; }
  .ws-rail { position: static; display: flex; width: auto; height: auto; overflow-x: auto; gap: 4px; padding: 8px 12px;
    border-right: 0; border-bottom: 1px solid var(--border); }
  .ws-rail h3 { display: none; }
  .ws-rail a { white-space: nowrap; }
  .ws-rail .sh-ver { display: none; }
  .ws-person { grid-template-columns: 36px minmax(0, 1fr); }
  .ws-did, .ws-act { grid-column: 2; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ws-card { transition: none; } .ws-card:hover { transform: none; } }

/* the product editor's 内部件 line (owner 2026-10-15) */
.internal-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.internal-line input { margin-top: 3px; }

/* 运转记录 */
.ws-oplog { padding: 14px var(--gutter); display: grid; gap: 12px; }
.ws-oplog-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-oplog-bar input[type="date"] { width: auto; min-width: 150px; }
.ws-oplog-bar select { width: auto; min-width: 160px; max-width: 260px; }
.ws-oplog-bar .ws-oplog-only { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.ws-oplog-only { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.ws-oplog-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ws-oplog-list li { display: grid; grid-template-columns: 64px 26px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-top: 1px solid var(--border); }
.ws-oplog-list li:first-child { border-top: 0; }
.ws-oplog-list li.warn { background: var(--warn-soft); border-radius: 8px; padding-inline: 6px; }
.ws-op-time { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 13px; padding-top: 1px; }
.ws-op-body { min-width: 0; display: grid; gap: 2px; font-size: 13.5px; }
.ws-op-body .muted { overflow-wrap: anywhere; }
.ws-op-who { font-size: 12.5px; color: var(--text-3); margin-left: 4px; }
.ws-op-warn { color: var(--warn); font-weight: 600; }
.ws-op-body summary { cursor: pointer; color: var(--text-3); font-size: 12.5px; }
.ws-op-lines { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .ws-oplog-list li { grid-template-columns: 56px minmax(0, 1fr); } .ws-op-ic { display: none; } }

/* 员工反馈 (2026-10-28) */
.ws-fb { padding: 14px 20px; border-top: 1px solid var(--border, #dde1e8); }  /* 2026-11-23: the words keep off the card's edge */
.ws-fb > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ws-fb-msg { margin: 6px 0; white-space: pre-wrap; font-size: 15px; }
.ws-fb-meta { margin: 0 0 6px; font-size: 12px; word-break: break-all; }
.ws-fb-photo { display: block; max-height: 160px; max-width: 100%; margin: 6px 0; border-radius: 8px; border: 1px solid var(--border, #dde1e8); }
.ws-fb-errors { margin: 6px 0; padding-left: 18px; font-size: 12.5px; color: var(--text-soft, #555); }
.ws-fb-note { margin: 6px 0; font-size: 13px; }
.ws-fb-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ws-fb-fixed { opacity: 0.65; }

/* 今天 (功能整合): the to-do list, both warehouses, what just happened */
.ws-today-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.ws-today-head h1 { margin: 0; }
.ws-today { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 16px; align-items: start; }
.ws-today-main { display: grid; gap: 16px; min-width: 0; }
.ws-today-side { display: grid; gap: 12px; }
.ws-side-h { margin: 0; font-size: 15px; font-weight: 600; }
.ws-pad { padding: 4px var(--gutter) 12px; margin: 0; }
.ws-oplog .ws-pad { padding: 0; }
.ws-td-list { padding: 0 var(--gutter) 6px; }
.ws-td { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.ws-td:first-child { border-top: 0; }
.ws-td-n { flex: none; min-width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  font-variant-numeric: tabular-nums; background: var(--idle-soft); color: var(--idle); }
.ws-td.amber .ws-td-n { background: var(--warn-soft); color: var(--warn); }
.ws-td.red .ws-td-n { background: var(--bad-soft); color: var(--bad); }
.ws-td.ok .ws-td-n { background: var(--ok-soft, var(--idle-soft)); color: var(--ok); }
.ws-td-t { flex: 1; min-width: 0; display: grid; }
.ws-td-t span { color: var(--text-3); font-size: 13px; }
.ws-td .btn { flex: none; text-decoration: none; }
.ws-feed { padding: 0 var(--gutter) 8px; }
.ws-feed > div { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.ws-feed > div:first-child { border-top: 0; }
.ws-feed time { flex: none; width: 42px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ws-feed em { color: var(--bad); font-style: normal; }
.ws-whc { display: grid; gap: 10px; padding: 14px var(--gutter); }
.ws-whc-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.ws-whc-h b { font-size: 15px; }
.ws-whc-h .muted { font-size: 12.5px; }
.ws-whc-p { margin: 0; font-size: 13px; }
.ws-who-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--text-3); opacity: .5; }
.ws-who-dot.on { background: var(--ok); opacity: 1; }
@media (max-width: 1060px) { .ws-today { grid-template-columns: minmax(0, 1fr); } }

/* 更正申请 */
.ws-corr-list { display: grid; }
.ws-page-head + .panel, .ws-page-head + .ws-today { margin-top: 14px; }
.ws-corr { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border); }
.ws-corr:first-child { border-top: 0; }
.ws-corr > header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ws-corr p { margin: 0; }
.ws-corr-t { font-weight: 600; }
.ws-corr-act { margin-top: 6px; }
.ws-corr-applied, .ws-corr-approved, .ws-corr-rejected, .ws-corr-cancelled { opacity: .8; }

/* a wide table must scroll inside its page, not push the whole page (and the cards above it) wider than the screen */
#main > [id^="page-"] { min-width: 0; }
#wh-stock-region { overflow-x: auto; }

/* the one-time note on 今天 */
.ws-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  background: var(--wh-soft); color: var(--text); font-size: 13.5px; }
.ws-hint[hidden] { display: none; }
.ws-hint span { flex: 1 1 320px; }

/* 2026-11-23: the console's 安全 page as two pages (workspace.js data-part) - 员工与权限 and 登录与安全事件 */
#page-security .ws-page-head { display: none; }
#page-security[data-part="staff"] .sec-head-staff, #page-security[data-part="events"] .sec-head-events { display: block; }
#page-security[data-part="staff"] > :not(.sec-head-staff):not(#sec-staff-panel):not(#sec-roles-panel) { display: none !important; }
#page-security[data-part="events"] > #sec-staff-panel, #page-security[data-part="events"] > #sec-roles-panel { display: none !important; }
/* the person in one cell: initial (green ring = signed in now), name, sign-in name under it */
.sec-who { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.sec-who > div { display: grid; gap: 1px; }
.sec-who .sub { font-size: 12px; }
.sec-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.sec-av.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ok); }
/* 修改 + ··· (安全档案, 密码链接, 强制下线, 停用) */
.sec-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.sec-more { position: relative; }
.sec-more summary { list-style: none; cursor: pointer; padding: 3px 10px; border-radius: 8px; color: var(--text-2); font-weight: 700; letter-spacing: .08em; }
.sec-more summary::-webkit-details-marker { display: none; }
.sec-more summary:hover, .sec-more[open] summary { background: var(--surface-2); }
.sec-more-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; gap: 2px; min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.sec-more-list .btn { justify-content: flex-start; width: 100%; }
#page-feedback .ws-oplog-bar { padding: 14px 20px 8px; }

/* 账号管理 (2026-11-23): 类型 as tabs with numbers, filters in one row, 归属 as one tappable cell, 权限 folded */
.acc-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.acc-kind { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.acc-kind:hover { border-color: var(--border-strong); }
.acc-kind.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.acc-kind.none:not(.on) { color: var(--text-3); }
.acc-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.acc-bar select { width: auto; min-width: 140px; }
.acc-bar input[type="search"] { flex: 1; min-width: 220px; }
.acc-type { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--idle-soft); color: var(--idle); white-space: nowrap; }
.acc-type.k-staff { background: var(--accent-soft); color: var(--accent); }
.acc-type.k-franchise { background: var(--warn-soft); color: var(--warn); }
.acc-type.k-customer { background: var(--ok-soft); color: var(--ok); }
.acc-where { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 4px 8px; margin: -4px -8px; border: 0; border-radius: 8px; background: none;
  color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.acc-where:hover { background: var(--surface-2); }
.acc-where em { font-style: normal; font-size: 12px; color: var(--accent); opacity: 0; }
.acc-where:hover em, .acc-where:focus-visible em { opacity: 1; }
.acc-role { display: grid; gap: 2px; }
.acc-perms summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); list-style: none; }
.acc-perms summary::-webkit-details-marker { display: none; }
.acc-perms summary::after { content: " ›"; }
.acc-perms[open] summary::after { content: " ⌄"; }
.acc-perms > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; max-width: 360px; }
.acc-perm { padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.acc-branches { margin-top: 26px; }
.acc-branches-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-branches-h h3 { margin: 0; font-size: 16px; }
.acc-branches tr.is-off td { color: var(--text-3); }
.acc-dialog { max-width: 520px; width: calc(100vw - 32px); }
.acc-fields { display: grid; gap: 12px; margin: 14px 0 6px; }
.acc-field { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.acc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ===================================================================== 后台 one page template (2026-11-23, round 3)
   Every page: its name big at the left with one line of what it is for (.ws-page-head), then the work in white panels
   with 12 px corners and one hairline; numbers in plain tiles; the same spacing everywhere. */
body.ws-on #main.page { padding-top: 26px; }
body.ws-on .ws-page-head { margin: 0 0 4px; }  /* the page's own gap (16-20 px) does the rest */
body.ws-on .ws-page-head h1 { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
body.ws-on .ws-page-head p { margin: 0; max-width: 820px; font-size: 14px; line-height: 1.55; }
body.ws-on .panel { border-radius: 12px; box-shadow: 0 1px 2px rgb(20 24 34 / .05); }
body.ws-on .panel + .panel, body.ws-on .panel + .sec-grid, body.ws-on .sec-grid + .panel, body.ws-on .stats + .sec-grid { margin-top: 16px; }
/* 登录与安全事件: the numbers as even tiles - a date is a number of its own size, not a headline */
.sec-stats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sec-stats .stat { min-height: 104px; border-radius: 12px; }
.sec-stats .stat-value { font-size: 26px; }
.sec-stats .stat-value:not(:only-child) { font-variant-numeric: tabular-nums; }
.sec-stats .stat .stat-value[data-date], .sec-stats .stat-value.is-date { font-size: 17px; line-height: 1.35; }
/* 改动与撤销 / 监控: the panel without its own big title */
.tl-panel .panel-head { justify-content: flex-end; min-height: 0; }
body.ws-on .ws-page-head + * { margin-top: 0 !important; }
.tl-panel { position: relative; }
.tl-panel .panel-head { position: absolute; top: 18px; right: 18px; padding: 0; margin: 0; border: 0; }
