:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --line: #e6e6ea;
  --line-strong: #d4d4da;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #9a9aa0;
  --accent: #5b5bd6;
  --accent-soft: #eeeefc;
  --ok: #1f8a4c;
  --ok-soft: #e7f5ec;
  --warn: #b26a00;
  --warn-soft: #fdf3e2;
  --bad: #c4302b;
  --bad-soft: #fcebea;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --radius: 12px;
  --sidebar: 228px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1b1b1e;
    --surface-2: #202024;
    --line: #2c2c31;
    --line-strong: #3a3a40;
    --text: #f2f2f4;
    --muted: #a1a1a8;
    --faint: #75757c;
    --accent: #8b8bf0;
    --accent-soft: #26264a;
    --ok: #4cc27f;
    --ok-soft: #173325;
    --warn: #e0a24a;
    --warn-soft: #3a2c15;
    --bad: #f0706b;
    --bad-soft: #3d1c1b;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.boot { display: grid; place-items: center; height: 100%; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.hidden { display: none !important; }

/* ---------- 登录 ---------- */
.auth { display: grid; place-items: center; min-height: 100%; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: .2px; }
.auth-card p { margin: 0 0 24px; color: var(--muted); }
.env-tag {
  display: inline-block; margin-top: 18px; padding: 3px 8px; border-radius: 6px;
  background: var(--warn-soft); color: var(--warn); font-size: 12px;
}

/* ---------- 布局 ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100%; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line);
  background: var(--surface); padding: 18px 12px; display: flex; flex-direction: column;
}
.brand { padding: 4px 10px 18px; }
.brand b { display: block; font-size: 16px; }
.brand span { font-size: 12px; color: var(--muted); }
.nav-group { margin-top: 14px; }
.nav-group h4 { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 7px 10px;
  border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; color: var(--text);
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.badge-count { min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.sidebar-foot .who { font-weight: 600; }
.sidebar-foot .links { display: flex; gap: 12px; margin-top: 6px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; }

.main { min-width: 0; padding: 24px 28px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 22px; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sim-banner {
  margin-bottom: 16px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px;
}

/* ---------- 组件 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 12px; }
.card-head h3 { margin: 0; font-size: 15px; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 24px; font-weight: 600; margin-top: 4px; }
.kpi .sub { color: var(--faint); font-size: 12px; }
.queue-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.queue { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: 1px solid var(--line); }
.queue:hover { border-color: var(--line-strong); }
.queue b { font-size: 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); background: var(--bad-soft); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; justify-content: center; padding: 10px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.input, select.input, textarea.input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
}
.input:focus, .btn:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea.input { resize: vertical; min-height: 72px; }
.input.inline-input { width: auto; min-width: 160px; }
.check { display: flex; align-items: center; gap: 6px; padding: 3px 0; cursor: pointer; }
.error-text { color: var(--bad); font-size: 13px; min-height: 18px; margin: -4px 0 10px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: var(--surface-2); }
td.right, th.right { text-align: right; }
.empty { padding: 36px 16px; text-align: center; color: var(--faint); }

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.tabs { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- 抽屉与弹窗 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); z-index: 21;
  border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,.08);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-body section + section { margin-top: 22px; }
.drawer-body h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
dialog {
  border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(440px, calc(100% - 32px));
  background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
dialog::backdrop { background: rgba(0,0,0,.3); }
.dialog-body { padding: 20px 20px 8px; }
.dialog-body h3 { margin: 0 0 6px; font-size: 16px; }
.dialog-body p { margin: 0 0 14px; color: var(--muted); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
.secret {
  padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line-strong);
  font-family: ui-monospace, Menlo, monospace; font-size: 15px; user-select: all; word-break: break-all;
}

#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: 0 6px 20px rgba(0,0,0,.18); max-width: 360px; }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- 图表 ---------- */
.chart { width: 100%; height: 220px; display: block; }
.chart .bar { fill: var(--accent); opacity: .85; }
.chart .bar2 { fill: var(--ok); opacity: .85; }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--faint); font-size: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.card-text { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.mt-12 { margin-top: 12px; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.swatch-a { background: var(--accent); }
.swatch-b { background: var(--ok); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ---------- 客服工作台 ---------- */
.desk-case-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; }
.desk-case-header > div { min-width: 0; }
.desk-case-header[hidden], .desk-case-header button[hidden] { display: none; }
.desk {
  display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
  height: calc(100vh - 120px); min-height: 520px; overflow: hidden;
}
.desk > * { min-width: 0; min-height: 0; }
.desk-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.desk-list .tabs { margin: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.desk-list .tab { padding: 5px 8px; font-size: 13px; }
.conv-list { overflow-y: auto; flex: 1; }
.conv { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv:hover { background: var(--surface-2); }
.conv.active { background: var(--accent-soft); }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-chat { display: flex; flex-direction: column; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { max-width: 72%; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.msg.mine { align-self: flex-end; background: var(--accent); color: #fff; border-color: var(--accent); }
.msg.other-staff { align-self: flex-end; }
.msg.system { align-self: center; background: none; border: 0; color: var(--faint); font-size: 12px; padding: 2px; }
.msg .meta { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 44px; max-height: 160px; }
.case-party-switch { flex-basis: 100%; }
.case-party-switch button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); opacity: 1; }
.case-send-target { padding: 6px 12px; font-weight: 600; font-size: 13px; }
.case-party-details + .case-party-details { margin-top: 8px; }
.case-reply-status { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.desk-side { border-left: 1px solid var(--line); overflow-y: auto; padding: 16px; }
.desk-side h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.desk-side section + section { margin-top: 20px; }
.mini-order { padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mini-order:last-child { border-bottom: 0; }
.desk-empty { display: grid; place-items: center; height: 100%; color: var(--faint); }

.perm-group { margin-bottom: 14px; }
.perm-group h5 { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1280px) {
  .desk { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: auto; }
  .desk-list { grid-row: span 2; max-height: calc(100vh - 120px); }
  .desk-chat { height: calc(100vh - 300px); min-height: 420px; }
  .desk-side { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .desk-side section + section { margin-top: 0; }
}
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; left: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .main { padding: 16px; }
  .desk { grid-template-columns: 1fr; height: auto; }
  .desk-list { grid-row: auto; max-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .desk-side { grid-template-columns: 1fr; }
  .desk-chat { height: 520px; }
  .desk-side { border-left: 0; border-top: 1px solid var(--line); }
}
.bad-text { color: #d9534f; }

.route-page {min-width:0}
.report-filters,.queue-links,.pager,.gender-legend,.chart-key,.field-inline {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.report-filters {margin:20px 0;align-items:flex-end;gap:10px}
.report-filters .input {width:auto;max-width:208px;min-height:36px}
.field-inline {display:grid;gap:3px}
.field-inline>span,.plot-units,.pager,.chart-key {color:var(--muted);font-size:12px}
.queue-strip {padding:4px 0 16px;border-bottom:1px solid var(--line)}
.queue-strip h3,.gender-panel h3 {margin:0 0 8px}
.queue-link {background:none;color:var(--muted);border:0;border-radius:6px;padding:5px 8px;cursor:pointer}
.queue-link b {margin-left:7px;color:var(--text);font-variant-numeric:tabular-nums}
.queue-link:hover,.metric-card:is(button):hover {background:var(--accent-soft)}
.report-kpis {grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0;background:var(--surface);border-radius:12px;margin-bottom:16px}
.report-kpis .metric-card {display:grid;align-content:start;gap:3px;margin:0;border:0;background:none;box-shadow:none;text-align:left}
button.metric-card {cursor:pointer}
.metric-card .value small {font-size:12px;font-weight:400;margin-left:5px;color:var(--muted)}
.plot-units {display:flex;justify-content:space-between;margin:0 4px}
.trend-area svg {display:block;width:100%;height:auto;max-height:290px}
.trend-area svg text {fill:var(--muted);font-size:10px}
.plot-grid {stroke:var(--line)}
.plot-bar {fill:var(--accent);opacity:.72}
.plot-line {fill:none;stroke:var(--ok);stroke-width:2.5}
.plot-dot {fill:var(--ok)}
.chart-key::before,.gender-label::before {content:"";width:9px;height:9px;display:inline-block;border-radius:3px;background:var(--accent);margin-right:3px}
.line-key::before,.gender-label.female::before {background:var(--ok)}
.gender-label.unknown::before {background:var(--faint)}
.gender-panel {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 20px}
.gender-panel svg {width:104px;flex:none}
.gender-panel circle {fill:none;stroke-width:16}
.gender-track {stroke:var(--line)} .gender-male {stroke:var(--accent)} .gender-female {stroke:var(--ok)} .gender-unknown {stroke:var(--faint)}
.gender-panel svg text {fill:var(--text);font-size:20px;font-weight:600}
.feedback-charts {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px;margin:0 0 12px}
.feedback-chart {padding:14px 16px}
.feedback-chart h3 {margin:0 0 8px}
.feedback-chart-body {display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.feedback-chart svg {width:106px;flex:none}
.feedback-chart circle {fill:none;stroke-width:16}
.feedback-chart svg text {fill:var(--text);font-size:19px;font-weight:600}
.feedback-chart-legend {list-style:none;padding:0;margin:0;flex:1;min-width:172px}
.feedback-chart-legend li {display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;margin:5px 0}
.feedback-chart-key {width:9px;height:9px;border-radius:2px}
.feedback-chart-foot {margin:0;grid-column:1 / -1}
.pager {padding:12px;justify-content:flex-end}
@media(max-width:660px){.report-filters .input{max-width:155px}.report-kpis{grid-template-columns:1fr 1fr}.main{padding-inline:14px}.trend-area{overflow-x:auto}.trend-area svg{min-width:490px}}

.evidence-image{display:block;max-width:100%;max-height:70vh;object-fit:contain;cursor:zoom-in}

.official-desk {display:grid;gap:12px}
.official-log {background:var(--surface-2);padding:14px;border-radius:12px;min-height:180px;max-height:48vh;overflow:auto}
.official-messages {display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.official-desk .composer {padding:10px 0}
.desk-list form.toolbar {padding:8px;display:flex}
.desk-list form.toolbar input {min-width:0;flex:1}

.desk-categories { display:flex; flex-wrap:wrap; gap:4px; padding:4px 10px; flex:none; }
.desk-categories button { background:transparent; color:var(--muted); border:0; padding:6px 8px; cursor:pointer; border-radius:6px; }
.desk-categories button[aria-pressed=true] { background:var(--accent-soft); color:var(--accent); }
.desk-queue-scroll { flex:1; min-height:0; overflow-y:auto; }
.desk-queue-scroll .conv-list { overflow:visible; }
.desk-list > .tabs,.desk-list > form { flex:none; }

.desk-queue-scroll { display:flex; flex-direction:column; overflow:hidden; }
.desk-queue-scroll > .conv-list:first-child { flex:0 1 auto; max-height:24%; overflow:auto; }
.desk-queue-scroll > .conv-list:last-child { display:flex;flex-direction:column; min-height:0;flex:1;overflow:hidden; }
.desk-queue-scroll > .conv-list:first-child:only-child,.desk-queue-scroll > .conv-list:first-child:has(+ .conv-list:empty) { max-height:100%; }
.queue-panel { display:flex; flex-direction:column; flex:1; min-height:0; }
.queue-panel .queue-heading { flex:none; padding:7px 12px;margin:0;background:var(--surface-2); }
.queue-body { overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain; }
@media (max-width:900px){.desk-list {max-height:65vh;height:460px;}}

.patrol-thread { display:grid; gap:4px; width:100%; text-align:left; padding:12px; cursor:pointer; background:var(--surface); color:var(--text); border:0; border-bottom:1px solid var(--line); }
.patrol-thread small { color:var(--muted); }
.patrol-log { max-height:min(55vh, 580px); margin-top:10px; border-radius:10px; overflow-anchor:none; overscroll-behavior:contain; }
.patrol-log .msg { align-self:flex-start; }
.patrol-log .msg.mine { align-self:flex-end; }
.patrol-message-head { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-bottom:4px; }
.patrol-log .patrol-sender { color:var(--text); background:var(--surface); white-space:normal; overflow-wrap:anywhere; text-align:left; }
.patrol-log .reported-message { background:#fff7e6; color:#352408; border-color:#d49b36; }
.patrol-log .evidence-anchor { padding:2px 8px; border-radius:999px; background:#f7e0ad; color:#572e03; font-size:12px; }

/* =====================================================================
   视觉统一（2026-11-22）：放在文件末尾，统一覆盖前面零散的页面样式。
   ===================================================================== */
:root { --sidebar: 232px; --radius: 12px; --ctl-h: 34px; }

/* ---------- 侧边栏：紧凑、分组清楚、品牌与账号固定 ---------- */
.sidebar { padding: 0 10px; }
.brand { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 18px 10px 12px; margin: 0 -10px; padding-inline: 20px; border-bottom: 1px solid var(--line); }
.nav-group { margin-top: 12px; }
.nav-group h4 { padding: 0; font-size: 12px; text-transform: none; }
.nav-group-toggle { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 30px; padding: 4px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.nav-group-toggle:hover { background: var(--surface-2); color: var(--text); }
.nav-group-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-group-toggle.contains-current { color: var(--accent); }
.nav-group-toggle .badge-count { margin-left: auto; }
.nav-group-arrow { flex: 0 0 6px; width: 6px; height: 6px; margin: 0 4px 0 1px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.nav-group-toggle[aria-expanded="true"] .nav-group-arrow { transform: translateY(-1px) rotate(45deg); }
.nav-item { position: relative; padding: 6px 10px; font-size: 13.5px; border-radius: 7px; }
.nav-item.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar-foot { position: sticky; bottom: 0; background: var(--surface); margin: 12px -10px 0; padding: 12px 20px 14px; }

/* ---------- 内容区 ---------- */
.main { padding: 22px 32px 48px; max-width: 1680px; }
.page-head { align-items: center; margin-bottom: 16px; }
.page-head h2 { font-size: 20px; letter-spacing: .2px; }
.page-head p { font-size: 13px; }
.card + .card, .card + .table-wrap, .workload-card + .card { margin-top: 14px; }
.card-head h3 { font-size: 14px; }
.workload-card:empty { display: none; }
.workload-card { margin-bottom: 14px; }

/* ---------- 按钮与输入：统一高度 ---------- */
.btn { min-height: var(--ctl-h); padding: 0 14px; border-radius: 8px; font-size: 13px; line-height: 1; transition: background .12s, border-color .12s; }
.btn.small { min-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.block { min-height: 40px; }
.btn:hover { border-color: var(--faint); }
.btn.primary:hover { border-color: var(--accent); }
.input, select.input { min-height: var(--ctl-h); padding: 6px 10px; font-size: 13px; }
textarea.input { padding: 8px 10px; }

/* ---------- 筛选栏：所有页面的筛选表单统一成一条 ---------- */
.main form.toolbar:not(.desk-list form), .filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; margin: 0 0 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.main form.toolbar:not(.desk-list form) .input, .filter-bar .input { width: auto; flex: 0 0 auto; min-width: 130px; }
.main form.toolbar:not(.desk-list form) input.input:not([type=date]), .filter-bar input.input:not([type=date]) { flex: 1 1 220px; max-width: 320px; }
.report-filters { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; }

/* ---------- 表格：短内容不换行，长说明有最小宽度，按钮列靠右 ---------- */
.table-wrap { overflow-x: auto; }
th, td { padding: 10px 14px; }
th { position: sticky; top: 0; z-index: 1; font-size: 12px; letter-spacing: .2px; }
td { font-size: 13px; }
td.nw { white-space: nowrap; }
td.cell-long { min-width: 180px; max-width: 460px; }
td.cell-actions { width: 1%; min-width: 150px; }
td.cell-actions > * { margin: 2px 0; }
td small:not(.btn), td .small:not(.btn) { color: var(--faint); }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.review-search { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.review-search .input { flex: 0 1 300px; min-width: 0; }
.review-search .btn { flex: none; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; width: 210px; }
.row-actions > * { margin: 0; }
.who-cell { display: grid; gap: 2px; justify-items: start; }
.who-cell > .btn { min-height: 26px; }
.break-any { overflow-wrap: anywhere; }
.pager { border-top: 1px solid var(--line); }

/* ---------- “更多”菜单 ---------- */
.more-menu { display: inline-block; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary::after { content: "▾"; font-size: 10px; margin-left: 4px; opacity: .7; }
.more-menu[open] > summary { background: var(--surface-2); border-color: var(--faint); }
.more-list {
  position: fixed; z-index: 40; min-width: 160px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.more-list .btn { justify-content: flex-start; border-color: transparent; background: none; width: 100%; }
.more-list .btn:hover { background: var(--surface-2); }

/* ---------- 标签页、标签 ---------- */
.tabs { border-radius: 9px; }
.tab { padding: 5px 12px; font-size: 13px; }
.pill { line-height: 18px; }

/* ---------- 数据看板 ---------- */
.queue-strip { padding: 0 0 14px; border-bottom: 0; }
.queue-strip h3 { font-size: 14px; }
.queue-links { gap: 8px; }
.queue-link { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.queue-link:hover { border-color: var(--accent); }
.report-kpis { border: 1px solid var(--line); overflow: hidden; }
.report-kpis .metric-card { padding: 14px 16px; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; border-radius: 0; }
.gender-panel { padding: 14px 20px; }

/* ---------- 客服工作台：列表单一滚动、分组标题吸顶、无会话时不留空白右栏 ---------- */
.desk { grid-template-columns: 320px minmax(0, 1fr) 300px; height: calc(100vh - 116px); }
.desk:has(> .desk-side:empty) { grid-template-columns: 320px minmax(0, 1fr); }
.desk > .desk-side:empty { display: none; }
.desk-list > form.toolbar { padding: 10px 10px 6px; gap: 6px; }
.desk-list .tabs { margin: 6px 10px 8px; grid-template-columns: repeat(3, 1fr); }
.desk-queue-scroll { display: block; overflow-y: auto; flex: 1; min-height: 0; }
.desk-queue-scroll > .conv-list, .desk-queue-scroll > .conv-list:first-child, .desk-queue-scroll > .conv-list:last-child { display: block; max-height: none; overflow: visible; }
.queue-panel { display: block; }
.queue-body { overflow: visible; }
.queue-heading, .queue-panel .queue-heading {
  position: sticky; top: 0; z-index: 2; margin: 0; padding: 7px 14px; font-size: 12px; font-weight: 600;
  color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
}
button.conv { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.conv { padding: 11px 14px; }
.conv .small { margin-top: 2px; line-height: 1.5; }
.queue-body > p.muted { padding: 12px 14px; margin: 0; font-size: 13px; }
@media (max-width: 1280px) {
  .desk { grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: auto auto; height: auto; }
  .desk:has(> .desk-side:empty) { grid-template-columns: 290px minmax(0, 1fr); }
}

/* ---------- 抽屉与弹窗 ---------- */
.drawer { width: min(620px, 100%); }
dialog { width: min(480px, calc(100% - 32px)); }

@media (max-width: 900px) {
  .main { padding: 16px; }
  .brand { margin: 0 -10px; }
  .desk, .desk:has(> .desk-side:empty) { grid-template-columns: 1fr; height: auto; }
}

/* 操作列固定在右侧：表格需要横向滚动时，按钮始终可见。 */
tr > td.cell-actions:last-child { position: sticky; right: 0; background: var(--surface); box-shadow: -10px 0 10px -10px rgba(0,0,0,.35); }
tbody tr:hover > td.cell-actions:last-child { background: var(--surface-2); }
table:has(td.cell-actions:last-child) thead th:last-child { position: sticky; right: 0; z-index: 3; box-shadow: -10px 0 10px -10px rgba(0,0,0,.35); }
/* 固定列会形成层叠上下文：展开菜单所在的单元格要压在后面行之上。 */
td:has(> * details.more-menu[open]), td:has(> details.more-menu[open]) { z-index: 30; }

/* 只读输入框与普通输入框区分开 */
.input[readonly], .input:disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.input[readonly]:focus { outline: none; }
/* 复选框统一大小，不再套用输入框样式 */
input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: 0 6px 0 0; padding: 0; vertical-align: -3px; accent-color: var(--accent); }
.field-inline:has(input[type=checkbox]) { display: flex; align-items: center; gap: 6px; }
/* 中等长度说明（如投诉原因）不要被挤成一列几个字 */
td:not(.nw):not(.cell-actions):not(.cell-long) { min-width: 120px; }
/* 卡片里直接放的说明文字 */
.card > p { margin: 0; padding: 12px 16px 4px; color: var(--muted); font-size: 13px; }

/* 工单超时提醒横幅 */
.alert { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 12px 16px; margin-bottom: 16px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.alert.warn { background: #fff4e5; border: 1px solid #f5c27a; color: #7a4a00; }
.alert[hidden] { display: none; }

/* 可点击的用户名；巡查记录中的拦截与撤回消息 */
.who-link { text-align: left; display: block; }
.who-link b { color: var(--accent); }
.who-link:hover b { text-decoration: underline; }
.msg.blocked { border: 1px dashed #e0706b; opacity: .92; }
.blocked-list { margin: 12px 0; }
.blocked-list h4 { margin: 0 0 8px; }

/* 人工处罚定级 */
.sanction-advice { background: var(--panel-2, rgba(255,255,255,.04)); border-radius: 8px; padding: 10px 12px; margin: 4px 0 12px; }
.sanction-advice p { margin: 4px 0; }
.warn-text { color: #f0a35e; }

/* 人工处罚定级 */
.sanction-advice { background: rgba(255,255,255,.04); border-radius: 8px; padding: 10px 12px; margin: 4px 0 12px; }
.sanction-advice p { margin: 4px 0; }
.warn-text { color: #f0a35e; }
.field[hidden], .sanction-fields [hidden] { display: none !important; }
.sanction-advice .warn-text, .range-state.warn-text { color: #f0a35e; }


.ticket-queues { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.ticket-queues button[aria-pressed="true"] { background:var(--accent); color:white; }
.ticket-count { margin-inline-start:6px; font-variant-numeric:tabular-nums; opacity:.8; }
.ticket-filters input[type="search"] { width:min(100%,17rem); }
.ticket-filters .field { flex-direction:row; align-items:center; margin:0; gap:5px; }

.finance-tabs { margin-bottom: 14px; }
.finance-tabs button { min-height: 34px; padding-inline: 16px; }
.finance-filters .field { margin: 0; }
.finance-kpis { margin: 12px 0 16px; }
.finance-kpis .value { font-size: clamp(18px, 2vw, 27px); }
.finance-summary, .finance-notes { margin-top: 20px; }
.finance-notes summary { cursor: pointer; }
.finance-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
.finance-form .field:last-child { grid-column: 1/-1; }
@media(max-width:600px){ .finance-form { grid-template-columns: 1fr; } }
.finance-entity { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 14px; }
.finance-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }

.plan-preview:not(:empty) { margin-top: 14px; padding: 10px 14px; background: var(--surface-2); border-radius: 8px; }
.plan-preview h4 { margin: 0 0 8px; }
.plan-preview ul { margin: 0; padding-inline-start: 1.25em; line-height: 1.65; }
.remedy-choices { border:0; padding:0; margin:0 0 16px; }
.remedy-choices legend { padding:0; margin-bottom:6px; font-weight:600; }
.remedy-choices div > label:not(.field), .remedy-choices > label, .remedy-no-fault { display:block; padding:5px 0; }
.remedy-choices .field { margin:3px 0 6px 23px; max-width:13rem; }
.remedy-no-fault { margin:4px 0 10px; }
.transfer-panel { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 12px; }
.transfer-panel:empty { display:none; }
.transfer-ticket-list { max-height:13rem; overflow:auto; margin-bottom:12px; }
.transfer-ticket-list label { display:flex; align-items:flex-start; gap:8px; padding:5px 0; }
.transfer-ticket-list input { width:1rem; height:1rem; margin-top:3px; }
.transfer-ticket-list span > span { display:block; font-size:13px; color:var(--muted); }
.transfer-receipt { padding:10px 0; border-bottom:1px solid var(--line); }

.service-templates {grid-column:1/-1; min-width:0}
.service-templates summary {cursor:pointer}
.service-templates input {margin:.4rem 0}
.template-options {display:flex; flex-wrap:wrap; gap:.35rem; max-height:10rem; overflow:auto}

.desk-side > .desk-case-panel { border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }
.desk-side > .desk-case-panel h4 { color: var(--text); }
.desk-case-panel details { padding: 8px 0; border-bottom: 1px solid var(--line); }
.desk-case-panel summary { cursor: pointer; }
.desk-case-panel summary span, .desk-case-panel summary small, .case-event-list small, .desk-case-panel .timeline small { display: block; }
.case-event-list { padding-left: 1.3em; }
.case-event-list li { margin: 5px 0; }

/* Case drawers and the reception rail keep independently owned records apart. */
.dossier-layout,.desk-side {display:grid;align-content:start;gap:14px}
.dossier-layout > section,.dossier-layout > details,.desk-side > section,.desk-side > details {
  background:var(--surface-2);border:1px solid var(--line-strong);border-radius:10px;padding:14px;min-width:0;overflow-wrap:anywhere
}
.dossier-layout > section + section,.desk-side > section + section {margin-top:0}
.dossier-layout h4,.desk-side h4 {color:var(--text);font-size:15px}
.dossier-layout details > summary,.desk-side details > summary {cursor:pointer;font-weight:600}
.dossier-layout .case-summary > section,.penalty-card,.case-log article {border-top:1px solid var(--line-strong);padding:12px 0;margin:0}
.case-summary p,.penalty-card p,.case-log p {margin:5px 0;line-height:1.55}
.penalty-card header,.penalty-card footer {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.penalty-card header small,.case-log small {color:var(--muted)}
.penalty-card h4 {margin:9px 0 5px;font-weight:600}
.penalty-card footer {margin-top:9px;font-size:12px;color:var(--muted)}
.desk-side > .desk-case-panel {margin:0}
.desk-side .case-event-list {padding-left:20px}
.desk-side .case-event-list li {margin:8px 0}
.desk-side .case-event-list small,.desk-side .timeline small {color:var(--muted);font-size:12px}

.appeal-facts { display:grid; gap:.6rem; margin:1rem 0; padding:1rem; border:1px solid var(--line); border-radius:8px; }
.appeal-facts p,.review-routing p { margin:0; }
.appeal-facts small { display:block; color:var(--muted); }
.review-routing { display:grid; gap:.45rem; min-width:11em; max-width:24em; }
.desk-case-panel[aria-label="本单售后处理经过"] { border-inline-start:3px solid var(--accent); }
.case-event-title { font-weight:600; }
.reception-shift { display:grid; gap:.2rem; padding:.65rem 0; border-bottom:1px solid var(--line); }
.reception-shift small,[data-history-case] summary small { color:var(--muted); }
.desk-side [data-case-events] > button:first-child { background:var(--accent); color:var(--surface); border-color:var(--accent); margin:.5rem 0; }
.support-composer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.support-composer textarea { grid-column:1/-1; width:100%; min-width:0; }
.support-composer input[type=file] { width:100%; min-width:0; }

.timeline-scroll, .timeline {max-height: 22rem; overflow-y: auto; overscroll-behavior: contain;}
ul.case-event-list {list-style: none; padding-left: 0;}

/* ===== 一案一页（2026-11-23）：工作台右栏先“下一步”，案卷与历史收起 ===== */
.desk-side .next-step { border: 1px solid var(--accent, #5b5bd6); border-radius: 10px; padding: 12px 14px; }
.desk-side .next-step h4 { margin: 0 0 6px; }
.desk-side .next-step .next-text { font-weight: 600; margin: 0 0 6px; }
.desk-side .next-step .row-actions { width: 100%; margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); gap: 8px; }
.desk-side .next-step .row-actions:empty { display: none; }
.desk-side .next-step .row-actions .btn { white-space: normal; min-height: 32px; }
.desk-side .side-more { margin-top: 12px; }
.desk-side .side-more > summary { font-weight: 600; cursor: pointer; padding: 8px 0; }
.desk-side .side-extra > details { border-top: 1px solid rgba(127,127,127,.18); padding: 6px 0; }
.desk-side .side-extra > details > summary { cursor: pointer; font-size: 13px; }
tr.clickable { cursor: pointer; }

/* 管理中心顶部标签 */
.hub-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(127,127,127,.18); }
.hub-tabs .hub-name { margin-right: 10px; font-size: 15px; }
.hub-tab { border: 1px solid transparent; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.hub-tab:hover { background: rgba(127,127,127,.1); }
.hub-tab.active { background: var(--accent, #5b5bd6); color: #fff; }
.desk-search { display: flex; gap: 6px; flex-wrap: nowrap; }
.desk-search .input { min-width: 0; }
.desk-search select { flex: 0 0 auto; width: auto; }
.thread-count { margin-left: 6px; font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 999px; background: rgba(91,91,214,.12); color: var(--accent, #5b5bd6); }
/* 工作台状态标签压成一行 */
.desk-list .tabs { display: flex; flex-wrap: nowrap; gap: 2px; }
.desk-list .tabs .tab { flex: 1 1 auto; padding: 5px 4px; font-size: 12px; white-space: nowrap; }
.page-head .transfer-panel { margin: 0; }

/* 长弹窗：底部按钮常驻，内容区内部滚动 */
dialog { max-height: 92vh; overflow: hidden; }
dialog > form { display: flex; flex-direction: column; max-height: 92vh; }
dialog .dialog-body { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
dialog .dialog-foot { flex: none; border-top: 1px solid var(--line, rgba(127,127,127,.18)); background: var(--surface, #fff); }
/* 工单筛选：默认只露检索 */
.ticket-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ticket-filters > .input { flex: 1 1 280px; max-width: 420px; }
.ticket-filters .more-filters { flex: 1 1 100%; }
.ticket-filters .more-filters > summary { display: inline-block; list-style: none; cursor: pointer; }
.ticket-filters .more-filters > summary::-webkit-details-marker { display: none; }
.ticket-filters .more-filters-body { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 10px; }

/* ===== 客服工作台整理（2026-11-23 第二轮） ===== */
.conv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.conv-wait { margin-top: 4px; }
.case-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.case-party-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.party-tab { display: grid; grid-template-columns: auto auto; column-gap: 6px; row-gap: 2px; align-items: center; text-align: left; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--surface, #fff); border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; color: inherit; }
.party-tab b { font-size: 12px; color: var(--muted); font-weight: 500; }
.party-tab span { font-weight: 600; }
.party-tab small { grid-column: 1 / -1; }
.party-tab .pill { grid-column: 1 / -1; justify-self: start; }
.party-tab.active { border-color: var(--accent, #5b5bd6); box-shadow: 0 0 0 1px var(--accent, #5b5bd6) inset; }
.desk-side .order-brief dl.kv.compact { display: grid; grid-template-columns: 44px 1fr; gap: 4px 8px; margin: 0 0 8px; font-size: 13px; }
.desk-side .order-brief dt { color: var(--muted); }
.desk-side .order-brief dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.desk-side .case-summary section { margin: 0 0 8px; }
.desk-side .case-summary p { margin: 2px 0; font-size: 13px; }
.desk-side .case-summary b { font-size: 12px; color: var(--muted); }
/* 管理者团队概览 */
.team-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 8px; }
.team-bar[hidden] { display: none; }
.team-chip { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line, rgba(127,127,127,.25)); background: var(--surface, #fff); border-radius: 8px; padding: 4px 8px; cursor: pointer; font: inherit; color: inherit; }
.team-chip b { font-size: 12px; }
.team-chip small { font-size: 11px; color: var(--muted); }
.team-chip.active { border-color: var(--accent, #5b5bd6); background: rgba(91,91,214,.08); }
/* 判罚标准 */
.standard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.inline-check { display: inline-flex; gap: 6px; align-items: center; margin: 6px 0; }
.standard-grid th, .standard-grid td { vertical-align: top; }
.standard-grid tbody th { white-space: nowrap; text-align: left; }
.std-cell { min-width: 140px; font-size: 13px; }
.std-cell.off { color: var(--faint, #aaa); }
.std-cell.clickable:hover { background: rgba(91,91,214,.06); cursor: pointer; }
.phrase-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: start; padding: 6px 0; border-top: 1px solid rgba(127,127,127,.12); font-size: 13px; }
.card > h3 { margin: 0 0 6px; }
/* 判罚卡 */
dialog.wide-dialog { width: min(760px, calc(100% - 32px)); }
.judge-card h4 { margin: 14px 0 8px; font-size: 14px; }
.judge-card h4 small { font-weight: 400; margin-left: 6px; }
.judge-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.judge-chip { border: 1px solid var(--line, rgba(127,127,127,.3)); background: var(--surface, #fff); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; color: inherit; }
.judge-chip.active { background: var(--accent, #5b5bd6); border-color: var(--accent, #5b5bd6); color: #fff; }
.judge-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.judge-level { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1px solid var(--line, rgba(127,127,127,.3)); background: var(--surface, #fff); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.judge-level small { color: var(--muted); font-size: 12px; }
.judge-level.active { border-color: var(--accent, #5b5bd6); box-shadow: 0 0 0 1px var(--accent, #5b5bd6) inset; background: rgba(91,91,214,.06); }
.judge-qty { display: flex; gap: 12px; margin-top: 10px; }
.judge-qty[hidden], .judge-card .inline-check[hidden] { display: none; }
.judge-preview { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: rgba(127,127,127,.06); }
.judge-preview h4 { margin: 0 0 6px; }
.judge-preview ul { margin: 0; padding-left: 18px; font-size: 13px; }
/* 售后会话话术条 */
.phrase-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.phrase-bar select { width: auto; padding: 2px 6px; font-size: 12px; }
.composer-tools { width: 100%; }

/* =====================================================================
   视觉整理（2026-11-23 第三轮）：统一层级、留白与等级配色
   ===================================================================== */
:root {
  --lv0: #8e8e93; --lv0-soft: rgba(142,142,147,.10);
  --lv1: #2f7bd8; --lv1-soft: rgba(47,123,216,.09);
  --lv2: #c27a00; --lv2-soft: rgba(194,122,0,.10);
  --lv3: #d9541e; --lv3-soft: rgba(217,84,30,.10);
  --lv4: #c4302b; --lv4-soft: rgba(196,48,43,.11);
}
.tag { display: inline-flex; align-items: center; font-style: normal; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.switch-line { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.switch-line input { margin-top: 3px; accent-color: var(--accent); }
.switch-line span { display: flex; flex-direction: column; gap: 2px; }
.switch-line small { color: var(--muted); font-size: 12px; }

/* ---------- 客服工作台 ---------- */
.team-bar { display: flex; gap: 10px; padding: 0 0 12px; overflow-x: auto; }
.team-card { flex: 0 0 auto; min-width: 150px; display: grid; gap: 4px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; }
.team-card:hover { border-color: var(--line-strong); }
.team-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.team-name { font-size: 12px; color: var(--muted); }
.team-num { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.team-num small { font-size: 12px; font-weight: 400; color: var(--muted); }
.team-tags { display: flex; gap: 6px; }

.desk { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(300px, 360px); }
.desk-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.desk-main > .desk-chat { flex: 1; min-height: 0; }
.desk-main .desk-case-header { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface-2); padding: 12px 16px; }
.desk-main .desk-case-header strong { font-size: 15px; }
.desk-list .conv { padding: 12px 14px; }
.desk-list .conv-top b { font-size: 14px; }
.desk-list .queue-heading { padding: 10px 14px 6px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.case-chat-head { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.party-tab { border-radius: 10px; padding: 7px 12px; }

/* 右栏：去掉“框中框”，用分隔线与小标题分组 */
.desk-side { padding: 0; background: var(--surface); }
.desk-side > section, .desk-side > .desk-case-panel, .desk-side > .side-more { margin: 0; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.desk-side section + section { margin-top: 0; }
.desk-side h4 { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 0 0 10px; }
.desk-side .next-step { background: var(--accent-soft); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.desk-side .next-step .next-text { font-size: 15px; color: var(--text); }
.desk-side .next-step .ticket-actions .btn:first-child { background: var(--accent); color: #fff; border-color: var(--accent); }
.desk-side .case-summary { font-size: 13px; line-height: 1.6; }
.desk-side .order-brief dl.kv.compact { grid-template-columns: 52px 1fr; gap: 6px 10px; }
.desk-side .side-more > summary { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- 判罚卡 ---------- */
dialog.wide-dialog { width: min(1040px, calc(100% - 40px)); }
dialog.wide-dialog .dialog-body { padding: 22px 24px 8px; }
.judge-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 24px; align-items: start; }
.judge-left { display: grid; gap: 18px; }
.judge-std { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.judge-std b { font-size: 15px; }
.judge-std span { color: var(--muted); font-size: 13px; }
.judge-step h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.judge-step h4 i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; background: var(--accent-soft); color: var(--accent); }
.judge-step h4 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.judge-chip { padding: 7px 14px; font-size: 13px; }
.judge-chip:hover { border-color: var(--line-strong); }
.judge-levels { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.judge-level { position: relative; padding: 10px 12px 10px 16px; border-radius: 10px; }
.judge-level::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--lvc, var(--lv0)); }
.judge-level b { font-size: 13px; }
.judge-level.active { background: var(--lvs, var(--accent-soft)); border-color: var(--lvc, var(--accent)); box-shadow: 0 0 0 1px var(--lvc, var(--accent)) inset; }
.lv0 { --lvc: var(--lv0); --lvs: var(--lv0-soft); } .lv1 { --lvc: var(--lv1); --lvs: var(--lv1-soft); }
.lv2 { --lvc: var(--lv2); --lvs: var(--lv2-soft); } .lv3 { --lvc: var(--lv3); --lvs: var(--lv3-soft); } .lv4 { --lvc: var(--lv4); --lvs: var(--lv4-soft); }
.judge-qty { margin-top: 12px; }
.judge-qty .field { flex: 1; }
.judge-manual { margin-top: 12px; padding: 14px; border-radius: 10px; border: 1px dashed var(--line-strong); }
.judge-manual[hidden] { display: none; }
.judge-right { position: sticky; top: 0; display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.judge-right h4 { margin: 0; font-size: 14px; }
.judge-status { margin: 0; }
.judge-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.judge-tiles:empty { display: none; }
.judge-tile { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.judge-tile small { color: var(--muted); font-size: 12px; }
.judge-tile b { font-size: 17px; letter-spacing: -.01em; }
.judge-tile span { font-size: 11px; color: var(--faint); }
.judge-tile.ok b { color: var(--ok); } .judge-tile.warn b { color: var(--warn); } .judge-tile.bad b { color: var(--bad); }
.judge-lines { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.judge-lines:empty { display: none; }
.judge-right textarea { min-height: 110px; }
.judge-history > summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.dialog-foot .ghost-left { margin-right: auto; }
@media (max-width: 900px) { .judge-card { grid-template-columns: 1fr; } .judge-right { position: static; } }

/* ---------- 判罚标准 ---------- */
.std-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.std-games { display: grid; gap: 6px; position: sticky; top: 16px; }
.std-game { display: grid; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.std-game small { color: var(--faint); font-size: 12px; }
.std-game.own small { color: var(--muted); }
.std-game em { justify-self: start; }
.std-game:hover { background: var(--surface); border-color: var(--line); }
.std-game.active { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.std-main { min-width: 0; }
.std-main > .card { padding: 18px 20px; }
.standard-head { align-items: center; }
.std-head-main { display: grid; gap: 6px; min-width: 280px; }
.std-title-input { font-size: 18px; font-weight: 650; border-color: transparent; background: transparent; padding: 4px 6px; margin-left: -6px; }
.std-title-input:hover:not(:disabled), .std-title-input:focus { border-color: var(--line); background: var(--surface); }
.standard-grid { border-collapse: separate; border-spacing: 6px; margin: -6px; }
.standard-grid th, .standard-grid td { border: 0; background: transparent; }
.standard-grid thead th { font-size: 12px; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.standard-grid thead th.lvh { color: var(--lvc); background: var(--lvs); }
.standard-grid tbody th { font-size: 13px; font-weight: 600; padding: 10px 8px; }
.std-cell { border-radius: 10px !important; padding: 10px 12px !important; background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-left: 3px solid var(--lvc, var(--line)) !important; min-width: 150px; vertical-align: top; }
.std-cell.off { border-left-color: var(--line) !important; background: transparent !important; border-style: dashed !important; color: var(--faint); text-align: center; vertical-align: middle; }
.std-cell-main { font-size: 13px; font-weight: 550; margin-bottom: 4px; }
.std-cell-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.std-cell .tag { margin: 2px 4px 0 0; }
.std-cell.clickable:hover { box-shadow: 0 0 0 2px var(--lvc, var(--accent)) inset; }
@media (max-width: 1000px) { .std-layout { grid-template-columns: 1fr; } .std-games { position: static; grid-auto-flow: column; overflow-x: auto; } }
.standard-grid { width: calc(100% + 12px); table-layout: fixed; }
.standard-grid thead th:first-child, .standard-grid tbody th { width: 92px; }
.std-cell { min-width: 0; }
.std-main > .card > .table-wrap { overflow: visible; }
.desk-search { padding: 10px 12px !important; gap: 6px; }
.desk-search button[type=submit] { display: none; }
.desk-search select { font-size: 12px; padding-left: 8px; padding-right: 22px; max-width: 96px; }
/* 分类按钮（全部 / 售后 / 咨询 / 运营转接） */
.desk-search button[type=submit] { display: inline-flex; }
.desk-list .desk-categories { display: flex; gap: 4px; padding: 0 12px 8px; }
.desk-list .desk-categories button { flex: 1; padding: 6px 4px; font-size: 13px; border-radius: 8px; }
.desk-list .desk-categories button[aria-pressed=true] { font-weight: 600; }
/* 自定义情形 */
.std-situation { display: table-cell; }
.std-situation > span { display: block; }
.std-situation > small { display: block; font-weight: 400; color: var(--faint); font-size: 11px; margin-top: 2px; }
.std-situation-tools { display: flex; gap: 8px; margin-top: 4px; font-weight: 400; }
.std-add { margin-top: 12px; }
/* 超管工作台：未选会话时中间显示团队概览，右栏收起 */
.desk:has(> .desk-side:empty) { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); }
.desk > .desk-side:empty { display: none; }
.desk-overview { padding: 28px 32px; overflow-y: auto; }
.desk-overview h3 { margin: 0 0 4px; font-size: 18px; }
.desk-overview > p { margin: 0 0 18px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.team-grid .team-card { min-width: 0; }
.desk-search select { max-width: 120px; }
.desk-search button[type=submit] { display: none; }
.desk-search input { flex: 1 1 auto; min-width: 0; }
.desk-search select { flex: 0 0 104px; max-width: 104px; }
.std-situation-tools button { margin-right: 10px; }

/* 判罚标准矩阵：回到简洁表格样式（用户偏好） */
.standard-grid { width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0; table-layout: auto; }
.standard-grid thead th { background: var(--surface-2) !important; color: var(--muted) !important; font-weight: 500; font-size: 13px; border-radius: 0; padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.standard-grid tbody th { background: var(--surface-2); color: var(--muted); font-weight: 500; font-size: 13px; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; width: auto; }
.standard-grid thead th:first-child, .standard-grid tbody th { width: 130px; }
.std-cell { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 12px !important; font-size: 13.5px; text-align: left !important; vertical-align: top !important; min-width: 0; }
.std-cell.off { color: var(--faint); border-style: solid !important; }
.std-cell .std-cell-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.std-cell.clickable:hover { background: var(--surface-2) !important; box-shadow: none; }
/* 游戏选择改为顶部横排，表格占满宽度 */
.std-layout { grid-template-columns: 1fr; gap: 14px; }
.std-games { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
.std-game { flex: 0 0 auto; min-width: 150px; background: var(--surface); border-color: var(--line); }
.std-game.active { border-color: var(--accent); }

/* ===== 简洁风格（用户偏好）：判罚卡与工作台去掉色条与色块 ===== */
/* 判罚卡 */
.judge-std { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 10px; }
.judge-step h4 i { display: none; }
.judge-step h4 { font-size: 13px; font-weight: 600; color: var(--text); }
.judge-chip { border-radius: 8px; padding: 6px 12px; }
.judge-chip.active { background: var(--surface); color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.judge-level::before { display: none; }
.judge-level { padding: 10px 12px; }
.judge-level.active { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.judge-level.lv0, .judge-level.lv1, .judge-level.lv2, .judge-level.lv3, .judge-level.lv4 { --lvc: var(--accent); --lvs: var(--surface); }
.judge-right { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.judge-tiles { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.judge-tile { grid-template-columns: 1fr auto; align-items: baseline; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.judge-tile small { font-size: 13px; }
.judge-tile b { font-size: 14px; font-weight: 600; text-align: right; }
.judge-tile span { grid-column: 1 / -1; }
.judge-tile.ok b, .judge-tile.warn b, .judge-tile.bad b { color: var(--text); }
.judge-manual { border-style: solid; border-color: var(--line); }
.switch-line { background: transparent; }
/* 工作台 */
.desk-side .next-step { background: transparent; }
.desk-side .next-step h4 { color: var(--muted); }
.desk-main .desk-case-header { background: var(--surface); }
.team-card { box-shadow: none; }
.team-card .tag.warn, .team-card .tag.bad { background: transparent; border: 1px solid var(--line); }
.team-card .tag.bad { color: var(--bad); }
.team-card .tag.warn { color: var(--muted); }

/* ===== 折叠块统一样式：清楚的标题行 + 右侧箭头 + 分隔线 + 缩进内容 ===== */
details:not(.more-menu):not(.more-filters) { border-bottom: 1px solid var(--line); }
details:not(.more-menu):not(.more-filters) > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; font-size: 13px; font-weight: 600; color: var(--text);
}
details:not(.more-menu):not(.more-filters) > summary::-webkit-details-marker { display: none; }
details:not(.more-menu):not(.more-filters) > summary::after {
  content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
details:not(.more-menu):not(.more-filters)[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details:not(.more-menu):not(.more-filters) > summary:hover { color: var(--accent); }
details:not(.more-menu):not(.more-filters)[open] { padding-bottom: 12px; }
details:not(.more-menu):not(.more-filters)[open] > :not(summary) { margin-left: 2px; }
details:not(.more-menu):not(.more-filters) > summary small { font-weight: 400; color: var(--faint); margin-left: auto; }
/* 嵌在小标签里的折叠块不显示自身标题 */
details.tabbed { border-bottom: 0; }
details.tabbed > summary { display: none !important; }
details.tabbed[open] { padding: 10px 0 0; }

/* 小标签（工作台右栏“更多记录”） */
.mini-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tab { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.mini-tab:hover { color: var(--text); border-color: var(--line-strong); }
.mini-tab.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.desk-side .side-more h4 { margin-bottom: 10px; }

/* 话术：左侧情形，右侧话术列表 */
.phrase-card { padding: 0 !important; overflow: hidden; }
.phrase-card-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.phrase-card-head h3 { margin: 0 0 4px; }
.phrase-card-head p { margin: 0; }
.phrase-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 260px; }
.phrase-nav { border-right: 1px solid var(--line); padding: 8px; display: grid; align-content: start; gap: 2px; background: var(--surface-2); }
.phrase-nav-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.phrase-nav-item:hover { background: var(--surface); }
.phrase-nav-item.active { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: 0 0 0 1px var(--line) inset; }
.phrase-nav-item em { font-style: normal; font-size: 12px; color: var(--muted); min-width: 18px; text-align: right; }
.phrase-nav-item em.zero { color: var(--faint); }
.phrase-panel { padding: 16px 20px; min-width: 0; }
.phrase-panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.phrase-panel-head b { font-size: 15px; }
.phrase-panel-head .btn { margin-left: auto; }
.phrase-items { list-style: none; margin: 0; padding: 0; counter-reset: ph; }
.phrase-items li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.phrase-title { font-size: 13px; font-weight: 600; }
.phrase-text { font-size: 13px; line-height: 1.65; color: var(--text); }
.phrase-ops { display: flex; gap: 12px; white-space: nowrap; }
.phrase-empty { color: var(--faint); font-size: 13px; padding: 24px 0; margin: 0; }
@media (max-width: 900px) { .phrase-body { grid-template-columns: 1fr; } .phrase-nav { grid-auto-flow: column; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .phrase-items li { grid-template-columns: 1fr; gap: 4px; } }
.desk-side .side-extra > details.tabbed { border-top: 0; border-bottom: 0; padding: 0; }
.desk-side .side-extra > details.tabbed:not([open]) { display: none; }
.desk-side .side-extra > details.tabbed[open] { padding-top: 12px; }
.desk-side .side-extra > details.tabbed > :not(summary) { font-size: 13px; }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 8px; } .dossier-actions > * { width: auto !important; }
.desk-side > div > .desk-case-panel { margin: 0; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.desk-side .penalty-card { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.desk-side .penalty-card p { margin: 4px 0; }
.phrase-nav-add { margin-top: 6px; border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.phrase-nav-add:hover { color: var(--accent); border-color: var(--accent); }
.phrase-group-ops { display: inline-flex; gap: 10px; }
/* 团队概览：标题右侧紧凑常驻 */
.page-head .team-strip { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 760px; }
.page-head .team-strip[hidden] { display: none; }
.team-chip2 { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap; }
.team-chip2:hover { border-color: var(--line-strong); }
.team-chip2.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.team-chip2 .tc-name { color: var(--muted); }
.team-chip2.active .tc-name { color: var(--accent); }
.team-chip2 b { font-weight: 650; }
.team-chip2 em { font-style: normal; font-size: 11px; color: var(--muted); }
.team-chip2 em.tc-late { color: var(--bad); }

/* 动态巡查：原图按需加载 */
.moment-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.moment-photo { max-width: 160px; max-height: 160px; border-radius: 6px; object-fit: cover; }


.coach-division-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.75rem; }
.coach-division-card { border:1px solid var(--border,#ddd); border-radius:.65rem; padding:.8rem; display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; justify-content:space-between; }
.drawer-head .row-actions { margin:0; }

.ledger-summary { margin: 1rem; border: 1px solid var(--line); border-radius: .65rem; }
.ledger-summary > summary, .ledger-section-title { padding: .8rem 1rem; }

.analysis-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin-block:16px; }
.analysis-metric { display:flex; flex-direction:column; align-items:flex-start; gap:.5rem; text-align:left; border:1px solid var(--line); background:var(--panel,#fff); border-radius:12px; padding:1rem; color:inherit; }
.analysis-metric span,.analysis-metric small { color:var(--muted,#666); }
.analysis-metric strong { font-size:1.65rem; line-height:1.15; font-variant-numeric:tabular-nums; }
button.analysis-metric:hover,button.coach-division-card:hover { border-color:var(--accent,#5753cc); }
button.analysis-metric,button.coach-division-card { cursor:pointer; }
button.coach-division-card { background:var(--panel,#fff); color:inherit; text-align:left; }
.analysis-grid { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:16px; align-items:stretch; }
.analysis-panel { padding:1rem; margin-block:0 16px; min-width:0; }
.analysis-panel h3 { margin:0 0 .75rem; }
.analysis-trend { display:grid; grid-template-columns:repeat(30,minmax(0,1fr)); gap:3px; height:125px; align-items:end; border-bottom:1px solid var(--line); }
.analysis-day { display:flex; align-items:flex-end; height:100%; }
.analysis-day span { width:100%; border-radius:3px 3px 0 0; background:#635bdb; }
.analysis-day:hover span { background:#322b9f; }
.analysis-axis { display:flex; justify-content:space-between; color:var(--muted,#666); padding-block:.5rem 0; font-size:.85rem; }
.analysis-category { display:grid; grid-template-columns:minmax(86px,1fr) minmax(45px,2fr) minmax(52px,auto); align-items:center; gap:10px; margin-block:10px; }
.analysis-category strong { text-align:right; font-variant-numeric:tabular-nums; }
.analysis-track meter { width:100%; height:12px; display:block; }
.analysis-track meter::-webkit-meter-bar { border:0; background:#eeedf6; border-radius:10px; }
.analysis-track .positive meter::-webkit-meter-optimum-value { background:#635bdb; }
.analysis-track .negative meter::-webkit-meter-optimum-value { background:#b94d56; }
.analysis-category .negative-text { color:#a03943; }
.funds-total { margin-block:.75rem; }
.penalty-summary-meta { display:flex; flex:1; min-width:0; align-items:center; flex-wrap:wrap; gap:4px 8px; }
.penalty-summary-meta time { white-space:nowrap; }
.penalty-preview { width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-weight:400; }
.penalty-expand,.penalty-collapse { flex:none; white-space:nowrap; color:var(--accent); }
.penalty-collapse,.penalty-card[open] .penalty-expand { display:none; }
.penalty-card[open] .penalty-collapse { display:inline; }
@media (max-width:850px) { .analysis-grid { grid-template-columns:minmax(0,1fr); gap:0; } }

.special-review-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(360px,1.5fr);gap:16px;align-items:start}
.special-review-summary,.special-review-room{padding:16px;min-width:0}
.special-room-section{border-top:1px solid var(--line);padding:12px 0}
.special-room-section h4,.special-room-stage h3{margin:0 0 6px}
.special-room-stage{padding-bottom:12px}
.special-review-room .special-review-chat:empty{height:0;min-height:0;padding:0}
.special-review-chat-empty{padding:12px 0}
.special-review-summary p,.special-review-vote p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.special-review-vote{border-top:1px solid var(--line);padding:10px 0}
.special-review-chat{height:clamp(240px,54vh,680px);border-radius:10px}
.special-review-chat .msg{align-self:flex-start}
.special-review-chat .msg.mine{align-self:flex-end}
.special-review-room .composer[hidden],.special-review-room button[hidden]{display:none}
.special-review-room .composer textarea{width:100%;min-height:54px}
@media(max-width:820px){.special-review-layout{grid-template-columns:1fr}}

.role-departments{display:grid;gap:14px}
.role-department{min-width:0}
.role-department>h3{margin:0;padding:13px 16px;border-bottom:1px solid var(--line)}
.role-picker-group{border:1px solid var(--line);border-radius:8px;padding:9px 12px;margin:0;min-width:0}
.role-picker-group legend{padding:0 4px;font-weight:600;color:var(--text)}

.verification-document { display: block; width: 100%; max-width: 640px; height: auto; }

.coach-tools, .coach-date-filter { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; justify-content:flex-start; }
.coach-date-filter { margin-bottom:12px; }
.coach-date-filter .field { margin:0; min-width:0; }
.coach-tools { margin-top:10px; }
.coach-cases > div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px; padding:10px 0; }
.coach-cases > div + div { border-top:1px solid var(--line); }

.dispatch-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; }

.audition-head { display:flex; flex-wrap:wrap; gap:5px 10px; align-items:center; }
.audition-head .linkish { font-weight:650; overflow-wrap:anywhere; }
.audition-head .audition-play { margin-left:auto; min-width:68px; color:var(--accent); font-variant-numeric:tabular-nums; }
.audition-card .audition-meta { margin:5px 0 10px; }
.audition-text { border-top:1px solid var(--line); padding-top:8px; }
.audition-text p { margin:3px 0 0; line-height:1.55; overflow-wrap:anywhere; }

.post-editor{display:grid;gap:12px;padding:18px;background:var(--surface,#fff);border:1px solid #dddde5;border-radius:12px;margin-bottom:24px}
.post-editor button{justify-self:start}.post-settings{display:flex;flex-wrap:wrap;gap:12px 22px}.post-preview{border:1px solid #dddde5;border-radius:12px;overflow:hidden;color:#202331;background:#fff}
.post-preview header{background:#ececf7;position:relative;padding:22px}.post-preview.theme-festival header{background:#f8e2ce}.post-preview.theme-release header{background:#d7eaf8}.post-preview.theme-urgent header{background:#ffe0dd}
.post-preview h3{position:relative;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.post-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.28}
.post-preview p,.post-lines{white-space:pre-wrap;overflow-wrap:anywhere}.post-preview p{padding:16px;margin:0}.post-image{display:block;max-width:100%;max-height:360px;margin:auto}

.moment-zoom{padding:0;border:0;background:none;cursor:zoom-in}
dialog:has(.moment-full){width:min(94vw,1040px);max-width:94vw}.moment-full-wrap{max-height:70vh;overflow:auto;text-align:center}
.moment-full{display:block;margin:auto;max-width:100%;max-height:68vh;cursor:zoom-in}.moment-full.original-size{max-width:none;max-height:none;cursor:zoom-out}

.ticket-result-counts {display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 20px;margin:0;padding:12px 16px}
.queue-links div.queue-link {cursor:default}
.queue-links div.queue-link:hover {background:var(--surface)}

.tone-group {margin:12px 0 0;padding:8px 0;border:0}
.tone-group legend {font-weight:600}
.tone-group label {display:inline-flex;align-items:center;gap:5px;margin:4px 16px 4px 0}

.voice-tools { padding: 18px 20px; margin: 0 0 14px; }
.voice-tools h3 { margin: 0 0 12px; }
.voice-tools .toolbar { justify-content: flex-start; }
.voice-player-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 18px; }
.voice-player-head h3 { margin:0 0 3px; }
.voice-position { font-size:18px; font-weight:600; white-space:nowrap; }
.voice-clock { display:grid; justify-items:end; }
.voice-track { margin:16px 0 10px; padding:9px 16px; background:var(--surface-2); border-radius:8px; }
.voice-slider-wrap { position:relative; display:flex; align-items:center; }
.voice-scrubber { width:100%; margin:0; height:26px; accent-color:var(--accent); cursor:pointer; }
.voice-selected-track { position:absolute; left:8px; right:8px; top:50%; height:6px; transform:translateY(-50%); pointer-events:none; }
.voice-selected-bar { position:absolute; height:100%; background:var(--accent); opacity:.55; border-radius:2px; }
.voice-pin-lane { position:relative; height:20px; margin:0 8px; }
.voice-pin { position:absolute; top:50%; transform:translate(-50%,-50%); min-width:22px; height:22px; padding:0 3px;
  border:1px solid currentColor; border-radius:50%; background:var(--warn-soft); color:var(--warn); cursor:pointer;
  font-size:12px; font-weight:650; line-height:1; }
.voice-pin::after { content:""; position:absolute; width:1px; height:5px; left:50%; top:100%; background:currentColor; pointer-events:none; }
.voice-pin-lane.report .voice-pin { color:var(--accent); background:var(--accent-soft); border-radius:4px; }
.voice-pin-lane.report .voice-pin::after { top:auto; bottom:100%; }
.voice-track-key { display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; font-size:12px; color:var(--muted); }
.voice-track-key span { display:inline-flex; align-items:center; gap:5px; }
.voice-track-key i { display:inline-grid; place-items:center; width:16px; height:16px; border:1px solid currentColor;
  font-size:10px; font-style:normal; font-weight:600; line-height:1; }
.voice-track-key .detection { color:var(--warn); border-radius:50%; }
.voice-track-key .report { color:var(--accent); border-radius:3px; }
.voice-pin:focus-visible,.voice-scrubber:focus-visible { outline:2px solid var(--accent); outline-offset:2px; z-index:1; }
.voice-pin:disabled,.voice-scrubber:disabled { cursor:default; opacity:.55; }
.voice-choices:not([hidden]) { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.voice-purpose { margin:12px 0 0; max-width:32rem; }
.voice-purpose .field { margin:0; }
.voice-export-range { border-top:1px solid var(--line); padding-top:12px; margin-top:14px; }

/* 财务工作台 */
.finance-report {display:grid;gap:16px}
.finance-result,.finance-columns,.finance-fund-grid,.finance-split {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.finance-result {background:#173d3c;color:white;padding:22px 26px;gap:24px;border-radius:12px}
.finance-result>div+div {border-left:1px solid #426260;padding-left:28px}
.finance-result p {margin:0;color:#d8ece9}
.finance-result strong,.finance-result b,.finance-split strong {display:block;font-variant-numeric:tabular-nums}
.finance-result strong {font-size:clamp(30px,3vw,45px);letter-spacing:-.04em}
.finance-result b {font-size:26px;margin:4px 0 1px}
.finance-result small {display:block;color:#c5ded9;line-height:1.55}
.finance-result button {margin-top:9px;background:#e5f2ee;border-color:#abd1c6;color:#194c42}
.finance-result button:hover {background:#fff;color:#17483e}
.finance-panel {padding:18px 20px;background:var(--surface,#fff);border:1px solid var(--line,#d9dfe2);border-radius:10px;min-width:0}
.finance-panel h3 {margin:0 0 12px}
.finance-panel header {display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.finance-panel header h3 {margin:0}
.finance-panel header span {font-size:12px}
.finance-columns {gap:16px}
.finance-chart-line {display:grid;grid-template-columns:minmax(8em,1.1fr) minmax(36px,1fr) minmax(65px,auto) 10px;align-items:center;gap:12px;width:100%;padding:9px 0;background:none;border:0;border-bottom:1px solid var(--line,#dee3e5);color:inherit;text-align:left;cursor:pointer;font:inherit}
.finance-chart-line:hover {color:#14625a}
.finance-chart-line b {text-align:right;font-variant-numeric:tabular-nums}
.finance-chart-line meter {width:100%;height:10px;appearance:none;border:0;border-radius:4px;background:#e8eeee}
.finance-chart-line meter::-webkit-meter-bar {background:#e8eeee;border:0;border-radius:4px}
.finance-chart-line meter::-webkit-meter-optimum-value {background:#398273;border-radius:4px}
.finance-chart-line .outflow::-webkit-meter-optimum-value {background:#ae704e}
.finance-pairs {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:16px 0;font-variant-numeric:tabular-nums}
.finance-pairs dd {margin:0;text-align:right;font-weight:600}
.finance-fund-grid {gap:0 20px}
.finance-fund-item {border-top:1px solid var(--line);padding:16px 0}
.fund-value,.finance-split strong {font-size:24px;font-weight:650}
.finance-fund-item .small {line-height:1.6;margin:.4em 0}
.finance-split {max-width:520px;margin:18px 0}
.finance-example {display:block;margin:10px 0 16px;color:#23675b}
.finance-tabs {max-width:100%;flex-wrap:wrap}
@media(max-width:780px) {
  .finance-columns,.finance-fund-grid {grid-template-columns:1fr}
  .finance-result {padding:16px;gap:10px}
  .finance-result>div+div {padding-left:14px}
  .finance-chart-line {gap:6px}
}

.forecast-inputs {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0}
.forecast-point {display:grid;grid-template-columns:minmax(75px,1fr) 3fr minmax(95px,1fr);align-items:center;gap:12px;margin:10px 0;font-variant-numeric:tabular-nums}
.forecast-point meter {width:100%;height:15px}
.forecast-point b {text-align:right}
.forecast-point .loss::-webkit-meter-optimum-value {background:#b74b43}
.forecast-axis {position:relative;height:12px;background:linear-gradient(90deg,transparent 49.8%,#939bab 49.8%,#939bab 50.2%,transparent 50.2%)}
.forecast-axis i {position:absolute;height:8px;top:2px;border-radius:3px}
.forecast-axis .gain {left:50%;background:#22776c}.forecast-axis .loss {right:50%;background:#b74b43}

.forecast-gallery{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:14px;margin:12px 0 18px}
.forecast-visual svg{display:block;width:100%;height:auto}
.forecast-visual svg text{font:13px system-ui,sans-serif;fill:var(--text,#26343e)}
.forecast-visual header span,.forecast-visual small{color:var(--muted,#576672)}
.forecast-visual circle[role=button]{cursor:pointer}
.forecast-visual circle[role=button]:focus{stroke:#162f45;stroke-width:3}
.forecast-readout{display:block;font-weight:650;margin:6px 0}
.forecast-fee{padding:6px 0 9px}
.forecast-fee>div:first-child{display:flex;justify-content:space-between;font-size:14px}
.forecast-track{height:9px;background:#edf0f2;margin-top:5px;border-radius:3px;overflow:hidden}
.forecast-track i{height:100%;display:block;background:#526898}
.forecast-fee+.forecast-fee i{background:#338478}
.forecast-mix{display:flex;align-items:center;gap:22px}
.forecast-mix svg{width:114px;flex:none}
.forecast-mix circle{fill:none;stroke-width:11px}
.forecast-mix ul{flex:1;padding:0;margin:0}
.forecast-mix li{display:flex;align-items:center;gap:7px;margin:8px 0}
.forecast-mix li i{display:inline-block;width:9px;height:9px;border-radius:50%}
.forecast-mix b{margin-left:auto;font-variant-numeric:tabular-nums}
@media(max-width:900px){.forecast-gallery{grid-template-columns:minmax(0,1fr)}}
progress.forecast-track{display:block;width:100%;appearance:none;border:0}
progress.forecast-track::-webkit-progress-bar{background:#edf0f2}
progress.forecast-track::-webkit-progress-value{background:#526898}
.forecast-fee+.forecast-fee progress::-webkit-progress-value{background:#338478}
.forecast-mix li:nth-child(1) i{background:#526898}.forecast-mix li:nth-child(2) i{background:#388576}.forecast-mix li:nth-child(3) i{background:#a7afb7}

.settlement-share{display:block;width:100%;height:12px;appearance:none;border:0;border-radius:6px;overflow:hidden;margin:14px 0 6px}
.settlement-share::-webkit-progress-bar{background:#287c71}
.settlement-share::-webkit-progress-value{background:#b97754}
.forecast-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:16px 0}
.dashboard-pick:not(:empty) {display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;margin-top:8px}
.dashboard-pick strong {display:block;font-size:1.1rem;font-variant-numeric:tabular-nums}
.dashboard-pick p {flex-basis:100%;margin:0}
.plot-zero {stroke:var(--muted)}
.plot-mark[aria-pressed=true] > :first-child,.plot-mark:focus-visible > :first-child {stroke:var(--text);stroke-width:2.5px}
.plot-mark:focus-visible,.gender-panel svg [role=button]:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
.gender-legend button {background:transparent;border:1px solid transparent;border-radius:5px;font:inherit;color:inherit;padding:4px;cursor:pointer}
.gender-legend button[aria-pressed=true] {border-color:var(--accent)}
.gender-detail:empty {display:none}
.ops-ranks{display:grid;gap:.45rem}.ops-rank{display:grid;grid-template-columns:minmax(8rem,1fr) minmax(3rem,2fr) auto;align-items:center;gap:.8rem;text-align:left;background:transparent;color:inherit;border:0;padding:.6rem;cursor:pointer}.ops-rank:hover,.ops-rank:focus-visible{background:var(--surface-hover,#f1f4f7)}.ops-rank-track{display:block;background:#e8edf0;border-radius:4px;height:.55rem}.ops-rank-track i{display:block;height:100%;background:#397b75;border-radius:4px}@media(max-width:700px){.ops-rank{grid-template-columns:1fr 1fr}.ops-rank span:last-child{grid-column:1/-1}}
.analysis-period{font-size:.88rem;color:var(--muted);margin:12px 0}
.analysis-visuals{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;margin-bottom:16px}
.analysis-visuals>.card{min-width:0;margin:0;padding:20px}
.analysis-visuals h3{font-size:1.08rem;margin:0 0 8px}.analysis-visuals p{margin:0 0 16px}
.ops-trend-chart svg{display:block;width:100%;max-height:275px}.ops-trend-chart svg text{fill:var(--muted);font-size:10px}
.analysis-mix{display:flex;align-items:center;justify-content:space-evenly;gap:12px;flex-wrap:wrap}.analysis-mix svg{width:min(44%,168px)}.analysis-mix circle{fill:none;stroke-width:14}.analysis-mix svg text{fill:currentColor;font-size:22px;font-weight:650}
.analysis-mix button,.amount-group button{border:0;color:inherit;background:transparent;cursor:pointer}.analysis-mix button{display:flex;align-items:center;gap:8px;padding:9px 0;width:100%}.analysis-mix button b{margin-left:auto}.analysis-mix button i{width:10px;height:10px;border-radius:50%}
.amount-group{margin:14px 0}.amount-group>strong{display:block;font-size:.9rem}.amount-group button{display:grid;width:100%;grid-template-columns:4.5em minmax(30px,1fr) minmax(6em,auto);align-items:center;gap:8px;text-align:left;font-size:.85rem;padding:4px}.amount-group b{text-align:right;font-variant-numeric:tabular-nums}
.analysis-visuals button:focus-visible,.analysis-visuals button:hover:enabled{outline:2px solid #5066a8;outline-offset:1px}
.analysis-extra{margin:12px 0;padding:14px}.analysis-extra summary,.comparison-period summary{cursor:pointer}.analysis-extra[open] summary{margin-bottom:12px}.comparison-period{align-self:center}.comparison-period[open] label{margin-top:8px}
@media(max-width:900px){.analysis-visuals{grid-template-columns:minmax(0,1fr)}}
.ops-track{appearance:none;display:block;width:100%;min-width:0;border:0;border-radius:4px;height:8px;overflow:hidden;background:#eaedf3}.ops-track::-webkit-progress-bar{background:#eaedf3}.ops-track::-webkit-progress-value{background:#5367ae;border-radius:4px}.previous .ops-track::-webkit-progress-value{background:#a5b0cd}.rank-fill::-webkit-progress-value{background:#327c71}.negative::-webkit-progress-value{background:#a4494a}.analysis-mix .single-buyer{background:#6878bd}.analysis-mix .repeat-buyer{background:#267c70}.analysis-visuals .ops-rank{grid-template-columns:minmax(6em,1fr) minmax(4em,1fr);column-gap:8px}.analysis-visuals .ops-rank span:last-child{grid-column:1/-1;font-size:.8rem;color:var(--muted)}
.signed-amount{display:grid;grid-template-columns:1fr 1fr;border-radius:4px;overflow:hidden}.signed-amount .ops-track{border-radius:0}.signed-amount .negative{transform:rotate(180deg);border-left:1px solid #596273}
.lifetime-overview{margin-bottom:22px}.overview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.overview-head h3,.lifetime-overview h3{margin:0;font-size:1.06rem}.overview-head p{margin:4px 0}.overview-head .input{width:auto}.lifetime-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:12px 0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}
.lifetime-stat,.overview-row,.overview-activity{font-family:inherit;font-size:inherit;color:inherit;background:transparent;border:0}.lifetime-overview button{cursor:pointer}.lifetime-stat{padding:16px;text-align:left;border-right:1px solid var(--line)}.lifetime-stat span{display:block;color:var(--muted);font-size:.85rem}.lifetime-stat strong{display:block;margin-top:7px;font-size:clamp(1.35rem,2.2vw,2rem);font-variant-numeric:tabular-nums}.lifetime-stat small{font-size:.8rem;font-weight:500;margin-left:5px}.overview-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.overview-panels>.card{padding:16px;margin:0}.overview-row,.overview-activity{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;gap:10px;padding:5px 0}.overview-row b,.overview-activity strong{font-variant-numeric:tabular-nums}.overview-activity{display:grid;grid-template-columns:7em 1fr 4em}.overview-activity strong{text-align:right}.overview-people label{font-size:.8rem;color:var(--muted)}.overview-people select{font-size:.85rem;min-height:30px}.overview-order-mix{display:flex;align-items:center;gap:20px}.overview-order-mix svg{height:106px;width:106px}.overview-order-mix circle{fill:none;stroke-width:12}.overview-order-mix text{fill:currentColor;font-size:20px}.overview-order-mix>div{flex:1}.overview-defs{margin-top:10px;color:var(--muted);font-size:.86rem}.overview-defs summary{cursor:pointer}.overview-period-title{margin:20px 0 8px}.lifetime-overview button:hover{background:#f2f4f8}
@media(max-width:1000px){.lifetime-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:670px){.lifetime-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-panels{grid-template-columns:1fr}.lifetime-stat{padding:10px}.overview-order-mix{gap:12px}}
.overview-activity{grid-template-columns:7em minmax(2em,1fr) minmax(5em,auto)}
.overview-order-mix .overview-row span::before{display:inline-block;width:9px;height:9px;border-radius:50%;content:'';margin-right:6px}.overview-order-mix [data-total=noRefund] span::before{background:#727fbd}.overview-order-mix [data-total=partiallyRefunded] span::before{background:#d69e4d}.overview-order-mix [data-total=fullyRefunded] span::before{background:#48877e}

.profile-sheet > section{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0 16px}
.profile-identity{display:flex;gap:14px;align-items:center;margin-bottom:14px}
.profile-identity strong{font-size:19px}.profile-face{flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#ededfb;color:#45458d;font-size:21px}
.profile-face img{width:100%;height:100%;object-fit:cover}
.profile-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(128px,100%),1fr));gap:14px 12px;padding:14px 0;border-block:1px solid var(--line);margin:0 0 16px}
.profile-totals dt{font-size:12px;color:var(--muted)}.profile-totals dd{margin:3px 0 0;font-weight:650;font-size:17px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.moment-photos .moment-photo{display:block;width:76px;height:76px;object-fit:cover}
