:root {
  /* 交互色：电光蓝（选中态 / 链接 / 焦点 / Agent 运行状态 / 图表） */
  --primary: #536DFF;
  --primary-dark: #3E52D9;
  --primary-soft: #EDF0FF;
  /* 品牌色：橘（主行动按钮与 Logo 落点） */
  --brand: #DC5A22;
  --brand-dark: #B24A1C;
  --brand-soft: #FCF0E9;
  /* 结构色 */
  --ink: #202938;
  --ink-2: #48546A;
  --ink-3: #6B768A;
  --line: #E5E8EE;
  --line-strong: #D3D9E3;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --inset: #F7F8FA;
  --nav-bg: #151B2B;
  --warn: #B56A16;
  --warn-soft: #FBEFDD;
  --danger: #C8483D;
  --danger-soft: #FBECEA;
  --ok: #2F8A68;
  --ok-soft: #E6F1EB;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(32, 41, 56, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); min-height: 100vh;
  font: 14px/1.6 "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.icon-defs { position: absolute; width: 0; height: 0; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 23px; font-weight: 650; letter-spacing: -.4px; }
h2 { font-size: 15px; font-weight: 650; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 基础控件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 8px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; cursor: pointer; white-space: nowrap; transition: .15s;
}
.btn:hover { border-color: var(--line-strong); color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.primary:disabled { background: var(--line); border-color: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn.danger { color: var(--danger); border-color: #EDC9C5; background: var(--danger-soft); }
.btn.danger:hover { background: #F5DBD8; border-color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--inset); }
.btn.link { border-color: transparent; background: transparent; color: var(--primary); padding: 4px 6px; }
.btn.link:hover { background: var(--primary-soft); }
.icon-btn { background: transparent; border: 0; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 8px; line-height: 0; }
.icon-btn:hover { background: var(--inset); color: var(--ink); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hint { color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.sub { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.msg { font-size: 12px; color: var(--danger); min-height: 18px; margin-top: 10px; }

label { display: block; font-size: 12px; color: var(--ink-2); margin: 12px 0; }
input, textarea, select {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none; transition: .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; }

/* ---------- 登录屏 ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #fff; }
.gate-card { width: 100%; max-width: 404px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 1px 2px rgba(32,41,56,.04), 0 18px 44px rgba(32,41,56,.07); }
.gate-card h2 { margin: 24px 0 14px; }
.gate-logo { display: block; width: 168px; height: auto; }
.gate-lead { color: var(--ink-2); font-size: 13.5px; margin-top: 16px; line-height: 1.7; }
.gate-lead span { display: block; }
.gate-links { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.gate-links i { font-style: normal; color: #C3C9D4; font-size: 11px; }
.gate-about { color: var(--primary); text-decoration: none; }
.gate-about:hover { text-decoration: underline; }
.gate-card .btn { width: 100%; margin-top: 10px; }
.gate-card input { margin-top: 5px; }

/* ---------- 布局：深色左栏 + 纯白工作区 ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 236px; background: var(--nav-bg); color: #AEB6CC;
  display: flex; flex-direction: column; padding: 16px 12px 12px; z-index: 30; overflow-y: auto;
}
.sidebar .brand { display: flex; flex-direction: column; gap: 3px; margin: 0 6px 14px; }
.brand-wordmark { width: 106px; height: auto; display: block; }
.brand-sub { font-size: 10px; letter-spacing: 1.6px; color: #7C869E; font-weight: 500; }
.btn-feed { width: 100%; padding: 8px 12px; font-size: 13.5px; border-radius: 9px; }
.nav-groups { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-group { display: flex; flex-direction: column; }
.nav-group-top { margin-top: 10px; }
.nav-group-title { font-size: 10.5px; font-weight: 600; color: #66708A; letter-spacing: .8px; padding: 0 9px; margin: 12px 0 4px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 0; background: transparent;
  color: #AEB6CC; border-radius: 8px; cursor: pointer; font-size: 13px; text-align: left; width: 100%; transition: background .13s, color .13s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(83,109,255,.18); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 0 var(--primary); }
.nav-item svg { width: 15px; height: 15px; }
.nav-item .nav-count { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border-radius: 20px; padding: 1px 6px; }
.nav-item.active .nav-count { background: var(--primary); }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 10px; }
.sidebar-foot a { font-size: 11.5px; color: #8B94AD; }
.sidebar-foot a:hover { color: #fff; text-decoration: none; }
.sidebar-foot button { border: 0; background: transparent; color: #8B94AD; cursor: pointer; font-size: 11.5px; padding: 0; }
.sidebar-foot button:hover { color: #fff; }

.main-wrap { margin-left: 236px; min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
main { max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 32px 40px; flex: 1; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.section-head .row { align-items: center; }
.group-title { margin: 26px 0 11px; display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 650; }
.group-title .badge.muted { font-weight: 500; }
.group-title .btn { margin-left: auto; }
.foot { text-align: center; color: var(--ink-3); font-size: 11px; padding: 16px 24px 28px; border-top: 1px solid var(--line); }
.foot a { color: var(--ink-3); }
.foot a:hover { color: var(--primary); }

/* 只读态提示条：待审 / 到期 / 停用 */
.state-banner {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin: 0 auto; margin-top: 14px; padding: 10px 14px;
  width: calc(100% - 64px); max-width: 1056px;
  border: 1px solid #F2D9C8; border-radius: 10px; background: #FFF8F2; color: #7A4A2A;
  font-size: 12.5px; line-height: 1.6;
}
.state-banner b { font-size: 12.5px; color: var(--brand-ink, #B4531F); }
.state-banner span { color: #7A4A2A; }
.state-banner.expired { border-color: #F0DCD8; background: #FFF6F4; }
.state-banner.suspended { border-color: #E7DFDA; background: #FAF7F5; }
@media (max-width: 900px) { .state-banner { width: calc(100% - 32px); } }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .nav-item:focus-visible, .icon-btn:focus-visible { outline-offset: 2px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge.muted { background: #F1F3F7; color: var(--ink-3); font-weight: 500; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- 面板 / 卡片 ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; }
.panel .btn { margin-top: 8px; }
.panel-head .btn { margin-top: 0; }
.two-col, .people-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.two-col > .panel { margin-bottom: 0; }
.people-columns > div { min-width: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 12px; align-items: start; }
.card-grid.wide { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.people-columns .card-grid { grid-template-columns: minmax(0, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; min-width: 0; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card h3 { font-size: 14px; font-weight: 650; line-height: 1.5; word-break: break-word; }
.card .meta { color: var(--ink-3); font-size: 12px; margin-top: 6px; line-height: 1.7; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; color: var(--ink-2); }
.kv span:last-child { color: var(--ink); text-align: right; word-break: break-all; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.card-accent { border-left: 2px solid var(--primary); }
.card-accent.warn { border-left-color: var(--warn); }
.card-accent.danger { border-left-color: var(--danger); }
.card-accent.ok { border-left-color: var(--ok); }
.card-accent.brand { border-left-color: var(--brand); }

/* 空状态：一行轻量说明 + 明确入口 */
.empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; color: var(--ink-3); background: #FCFCFD; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.empty-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.empty-actions .btn { margin-top: 0; }

/* ---------- 经营指标 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 15px; background: #fff; }
.metric b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; color: var(--ink); }
.metric span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.metric small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 8px; }
.metric.alert b { color: var(--danger); }
.metric .unit { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }

.bar-list { margin-top: 4px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 34px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-2); margin: 9px 0; }
.bar-row .bar-track { display: block; height: 6px; background: var(--inset); border-radius: 99px; overflow: hidden; }
.bar-row .bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.bar-row .bar-num { text-align: right; color: var(--ink); font-weight: 600; }

/* ---------- 快速记录抽屉 ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(21, 27, 43, .38); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(468px, 100vw); background: #fff; z-index: 41;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(21, 27, 43, .16); animation: drawer-in .18s ease-out;
}
@keyframes drawer-in { from { transform: translateX(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-head h2 { font-size: 16px; }
.drawer-head .hint { margin-top: 4px; }
.drawer-body { padding: 6px 20px 32px; overflow: auto; flex: 1; }
.drawer-foot { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 8px; justify-content: flex-end; background: #FCFCFD; }
.drawer-note { background: var(--inset); border-radius: 9px; padding: 10px 12px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; margin: 14px 0 2px; }
.drawer textarea#feed-text { font-size: 13px; line-height: 1.7; }

/* 草稿编辑块 */
.draft-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px 13px; margin-top: 12px; background: #fff; }
.draft-block.external { border-left: 2px solid var(--brand); }
.draft-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.draft-head h3 { font-size: 13.5px; font-weight: 650; }
.draft-kind { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.draft-fields { display: grid; grid-template-columns: minmax(0, 1fr); }
.draft-fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.draft-fields label { margin: 10px 0 0; font-size: 11.5px; }
.draft-fields label.full { grid-column: 1 / -1; }
.draft-fields input, .draft-fields select, .draft-fields textarea { padding: 7px 9px; font-size: 12.5px; border-radius: 8px; }
.draft-fields textarea { min-height: 58px; }
.draft-text { white-space: pre-wrap; background: var(--inset); border-radius: 9px; padding: 10px 12px; font-size: 12px; color: var(--ink-2); margin-top: 10px; max-height: 220px; overflow: auto; line-height: 1.75; }
.draft-actions { display: flex; gap: 6px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.draft-actions .spacer { flex: 1; }
.draft-page { display: flex; flex-direction: column; gap: 0; max-width: 900px; }
.draft-page .draft-block:first-child { margin-top: 16px; }
.draft-page .empty { margin-top: 16px; }

/* ---------- 其他组件 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; background: var(--inset); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.chip button { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0; line-height: 1; }
.code { background: var(--nav-bg); color: #E9ECF2; border-radius: 9px; padding: 11px 13px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow: auto; margin-top: 12px; }
.code:empty { display: none; }
.state-box { background: var(--inset); border-radius: 9px; padding: 12px; font-size: 12px; color: var(--ink-2); margin-bottom: 12px; }

/* Agent 运行状态：状态点表达“正在工作”，不用光晕 */
.live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 5px; vertical-align: middle; animation: jumi-pulse 1.6s ease-in-out infinite; }
@keyframes jumi-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

.guide-panel { border-color: var(--line); }
.guide-steps { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; gap: 10px; }
.guide-steps li { display: flex; gap: 12px; border: 1px solid var(--line); border-left: 2px solid var(--primary); border-radius: 10px; padding: 11px 13px; background: #fff; }
.guide-steps .step-no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.guide-steps b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 3px; }
.guide-steps p { color: var(--ink-2); font-size: 12.5px; line-height: 1.6; margin: 0; }

details#advanced-feishu { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
details#advanced-feishu summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 7px; }
details#advanced-feishu summary::-webkit-details-marker { display: none; }
details#advanced-feishu summary::before { content: "▸"; color: var(--ink-3); font-size: 11px; }
details#advanced-feishu[open] summary::before { content: "▾"; }
details#advanced-feishu > .hint { margin: 10px 0 0; }

.log { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-height: 340px; overflow: auto; }
.log-row { display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.log-row:last-child { border-bottom: 0; }
.log-row .ts { color: var(--ink-3); font-family: ui-monospace, monospace; flex: none; }
.log-row .reason { color: var(--ink-3); margin-left: auto; text-align: right; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--nav-bg); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: 0 10px 30px rgba(21,27,43,.22); max-width: 90vw; }

/* 页面内确认框（替代原生 confirm，避免被内嵌预览或浏览器策略拦截） */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(21, 27, 43, .44); }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 22px 24px 18px; box-shadow: 0 24px 60px rgba(21, 27, 43, .28); }
.modal-card h3 { margin: 0 0 8px; font-size: 15px; }
.modal-card .modal-text { margin: 0 0 18px; color: var(--ink-2); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* 动态表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 7px; }
.checks label { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; }
.checks input { width: auto; margin: 0; }

/* 列表工具行 */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 4px; }
.toolbar input[type="search"], .toolbar input[type="text"] { margin: 0; max-width: 260px; padding: 7px 11px; font-size: 12.5px; }
.toolbar select { margin: 0; width: auto; padding: 7px 10px; font-size: 12.5px; }

@media (max-width: 860px) {
  .two-col, .people-columns { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; width: auto; flex-direction: column; padding: 12px 14px; }
  .sidebar .brand { flex-direction: row; align-items: center; gap: 9px; margin: 0 0 10px; }
  .brand-wordmark { width: 88px; }
  .btn-feed { width: auto; margin-bottom: 8px; }
  .nav-groups { flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .nav-groups::-webkit-scrollbar { display: none; }
  .nav-group { flex-direction: row; align-items: center; gap: 4px; flex: none; }
  .nav-group-top { margin-top: 0; }
  .nav-group-title { display: none; }
  .nav-item { width: auto; }
  .nav-item.active { box-shadow: inset 0 -2px 0 0 var(--primary); }
  .main-wrap { margin-left: 0; }
  main { padding: 18px 16px 40px; }
  .section-head { padding-bottom: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer { width: 100vw; }
  .hide-sm { display: none !important; }
}

/* 二维码悬浮卡 */
.qr-popover {
  position: absolute; z-index: 60; width: 248px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(21, 27, 43, .18);
}
.qr-popover[hidden] { display: none; }
.qr-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.qr-pop-frame {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.qr-pop-frame img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.qr-pop-download {
  width: 100%; border: 0; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark);
  padding: 9px 12px; font: inherit; display: flex; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer;
}
.qr-pop-download:hover { background: #DFE4FF; }
.qr-pop-download:disabled { opacity: .6; cursor: not-allowed; }
.qr-pop-hint { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }
@media (max-width: 620px) {
  .qr-popover {
    position: fixed; left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%); width: min(280px, calc(100vw - 32px));
  }
}

/* ---------- 群客服管理 ---------- */
input[readonly] { background: var(--inset); color: var(--ink-2); }
label .row input { flex: 1; width: auto; margin-top: 0; }

/* ---------- 评审修复：必填标记 / 骨架屏 / 移动端 ---------- */
.req { color: var(--danger); margin-left: 2px; font-weight: 600; }
.skeleton {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px;
}
.skeleton > i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #EDF0F4 25%, #F6F8FA 45%, #EDF0F4 65%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
.skeleton > i + i { margin-top: 9px; }
.skeleton > i.w60 { width: 60%; }
.skeleton > i.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 860px) {
  .btn { padding: 10px 16px; }
  .btn.small { padding: 8px 12px; }
  /* 横滑导航右端渐隐提示：后面还有 tab */
  #nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); }
}


/* ---------- 复核打磨：等宽标识 / 今日引导 / 日志工具 ---------- */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--inset); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.today-guide { background: var(--inset); }
.today-guide .panel-head { margin-bottom: 4px; }
.today-guide .hint { margin: 0; }
.flow-steps { list-style: none; margin: 16px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.flow-steps li { position: relative; display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: var(--card); min-width: 0; }
.flow-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; }
.flow-steps .step-no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-steps b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 4px; }
.flow-steps p { color: var(--ink-2); font-size: 12.5px; line-height: 1.6; margin: 0; }
.flow-steps .flow-tip { display: inline-block; margin-top: 8px; color: var(--ink-3); font-size: 11.5px; }
.flow-steps .btn { margin-top: 9px; }
#log-tools { margin: 6px 0 12px; }
#log-tools input[type="search"] { max-width: 300px; }
@media (max-width: 860px) {
  .flow-steps { grid-template-columns: 1fr; gap: 16px; }
  .flow-steps li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -17px; transform: translateX(50%); }
}
