:root {
  --nav: #121b2f;
  --nav-2: #19243b;
  --ink: #172033;
  --muted: #6f7889;
  --line: #e6e9ef;
  --bg: #f4f6f9;
  --card: #ffffff;
  --accent: #f28a43;
  --accent-soft: #fff2e7;
  --green: #21a475;
  --green-soft: #e9f8f2;
  --red: #df5d5d;
  --red-soft: #fff0ef;
  --blue: #3478d4;
  --blue-soft: #edf4ff;
  --amber: #c77b14;
  --amber-soft: #fff7e8;
  --purple: #7459c7;
  --shadow: 0 8px 26px rgba(20, 30, 50, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.subtle { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #ffc37c; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); background: white; }
.login-visual { position: relative; min-height: 100vh; padding: 44px 54px; overflow: hidden; color: white; background:
  radial-gradient(circle at 88% 15%, rgba(255, 164, 85, .28), transparent 30%),
  radial-gradient(circle at 18% 90%, rgba(71, 107, 160, .25), transparent 35%),
  linear-gradient(145deg, #10192b, #1b2942 72%, #162036); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.login-visual::before { width: 520px; height: 520px; right: -180px; top: 85px; }
.login-visual::after { width: 320px; height: 320px; right: -80px; top: 185px; }
.login-brand, .brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { width: 42px; height: 42px; }
.login-brand div, .brand div { display: flex; flex-direction: column; gap: 2px; }
.login-brand b { font-size: 19px; letter-spacing: .08em; }
.login-brand span { color: #93a0b5; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.login-message { position: relative; z-index: 1; max-width: 640px; margin-top: 17vh; }
.login-message h1 { margin: 0; font-size: clamp(36px, 4.2vw, 62px); line-height: 1.18; letter-spacing: -.045em; }
.login-message > p:not(.eyebrow) { margin: 24px 0 0; color: #b8c1d1; font-size: 16px; }
.visual-metrics { display: flex; gap: 44px; margin-top: 58px; }
.visual-metrics div { display: flex; flex-direction: column; gap: 5px; }
.visual-metrics strong { color: #ffad67; font-size: 30px; font-variant-numeric: tabular-nums; }
.visual-metrics span { color: #8e9aaf; font-size: 12px; }
.login-quote { position: absolute; left: 54px; bottom: 42px; color: #738198; font-size: 12px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-card { width: min(390px, 100%); }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.login-card > .subtle { margin: 10px 0 30px; font-size: 13px; line-height: 1.7; }
.mobile-brand { display: none; }
.field-label { display: grid; gap: 8px; margin: 17px 0; color: #384256; font-size: 12px; font-weight: 700; }
.input, .select, .textarea { width: 100%; min-height: 42px; border: 1px solid #dfe3ea; border-radius: 9px; padding: 10px 12px; outline: none; color: var(--ink); background: white; transition: border-color .16s, box-shadow .16s; }
.input:focus, .select:focus, .textarea:focus { border-color: #ec985c; box-shadow: 0 0 0 3px rgba(242, 138, 67, .12); }
.input::placeholder, .textarea::placeholder { color: #aeb5c0; }
.textarea { min-height: 100px; resize: vertical; line-height: 1.65; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 58px; }
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.text-button { border: 0; padding: 2px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--accent); }
.button { min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; background: white; cursor: pointer; font-size: 12px; font-weight: 750; transition: transform .13s, background .13s, border-color .13s, box-shadow .13s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { color: white; background: var(--accent); box-shadow: 0 7px 17px rgba(242, 138, 67, .2); }
.button.primary:hover { background: #e77c34; }
.button.soft { color: #ba642b; background: var(--accent-soft); }
.button.ghost { border-color: var(--line); color: #566074; background: white; }
.button.danger { color: var(--red); background: var(--red-soft); }
.button.wide { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-top: 24px; padding: 10px 16px; }
.button.small { min-height: 30px; padding: 5px 10px; }
.button:disabled { opacity: .56; cursor: not-allowed; transform: none; }
.demo-tip { margin-top: 18px; color: #8a93a2; text-align: center; font-size: 11px; }
.demo-tip span { margin-right: 5px; border-radius: 999px; padding: 3px 7px; color: var(--amber); background: var(--amber-soft); font-weight: 700; }
.form-error { margin-top: 12px; border-radius: 8px; padding: 10px 12px; color: var(--red); background: var(--red-soft); font-size: 12px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 236px; display: flex; flex-direction: column; padding: 24px 16px 18px; color: white; background: var(--nav); }
.brand { padding: 0 9px 27px; }
.brand img { width: 38px; height: 38px; }
.brand b { font-size: 16px; letter-spacing: .06em; }
.brand span { color: #78869e; font-size: 10px; }
.nav { flex: 1; overflow-y: auto; }
.nav p { margin: 19px 10px 7px; color: #596780; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 3px 0; border-radius: 8px; padding: 8px 10px; color: #aeb7c6; font-size: 12px; transition: color .14s, background .14s; }
.nav a:hover { color: white; background: rgba(255,255,255,.045); }
.nav a.active { color: white; background: linear-gradient(90deg, rgba(242,138,67,.18), rgba(242,138,67,.07)); }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 3px; background: var(--accent); }
.nav-icon { width: 20px; color: #7f8da4; text-align: center; font-size: 16px; font-family: ui-monospace, monospace; }
.nav a.active .nav-icon { color: var(--accent); }
.nav em { min-width: 19px; margin-left: auto; border-radius: 10px; padding: 2px 6px; color: #ffc899; background: rgba(242,138,67,.18); text-align: center; font-size: 9px; font-style: normal; }
.nav em:empty { display: none; }
.sidebar-foot { border-top: 1px solid rgba(255,255,255,.07); padding: 15px 9px 2px; }
.sync-state { display: flex; align-items: center; gap: 8px; color: #9ba8bb; font-size: 10px; }
.sync-state i { width: 6px; height: 6px; border-radius: 50%; background: #43c795; box-shadow: 0 0 0 4px rgba(67,199,149,.09); }
.sidebar-foot small { display: block; margin: 7px 0 0 14px; color: #57657d; font-size: 9px; }
.main-shell { min-height: 100vh; margin-left: 236px; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(224,228,236,.86); padding: 0 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.breadcrumb span { color: #98a0ae; }
.breadcrumb b { color: #d2d6de; }
.breadcrumb strong { color: #434d60; }
.top-actions, .user-menu { display: flex; align-items: center; }
.top-actions { gap: 17px; }
.notification { position: relative; border: 0; color: #7b8493; background: transparent; cursor: pointer; font-size: 18px; }
.notification span { position: absolute; right: 1px; top: -2px; color: var(--accent); font-size: 9px; }
.user-menu { gap: 9px; border-left: 1px solid var(--line); padding-left: 17px; }
.user-menu > div:not(.avatar) { display: flex; flex-direction: column; gap: 1px; }
.user-menu b { font-size: 11px; }
.user-menu span { color: #929aa8; font-size: 9px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #9b5225; background: var(--accent-soft); font-size: 12px; font-weight: 800; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #657083; background: white; cursor: pointer; font-size: 17px; }
.menu-button { display: none; }
.content { max-width: 1580px; min-height: calc(100vh - 64px); margin: auto; padding: 27px 29px 46px; outline: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.segmented { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: white; }
.segmented button { min-width: 54px; border: 0; border-radius: 6px; padding: 6px 9px; color: #7f8898; background: transparent; cursor: pointer; font-size: 10px; }
.segmented button.active { color: #9f5728; background: var(--accent-soft); font-weight: 750; }
.date-stamp { color: #969eac; font-size: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 11px; background: var(--card); box-shadow: var(--shadow); }
.finance-biz { border-left: 4px solid #2f9e63; background: linear-gradient(180deg, #f4fbf6, var(--card)); }
.finance-year-ref { margin: 0 18px 16px; padding: 10px 14px; background: rgba(43,109,232,.06); border: 1px dashed rgba(43,109,232,.25); border-radius: 8px; font-size: 13px; color: #55607a; }
.finance-year-ref b { font-size: 14px; }
.kpi-card { position: relative; min-height: 138px; padding: 19px 19px 16px; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 72px; height: 72px; right: -23px; top: -24px; border-radius: 50%; background: var(--kpi-tint, #f4f6f9); }
.kpi-card:nth-child(1) { --kpi: #f28a43; --kpi-tint: #fff2e7; }
.kpi-card:nth-child(2) { --kpi: #21a475; --kpi-tint: #e9f8f2; }
.kpi-card:nth-child(3) { --kpi: #3478d4; --kpi-tint: #edf4ff; }
.kpi-card:nth-child(4) { --kpi: #7459c7; --kpi-tint: #f2effc; }
.kpi-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.kpi-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--kpi, var(--accent)); background: var(--kpi-tint, var(--accent-soft)); font-size: 13px; }
.kpi-value { margin-top: 15px; font-size: 25px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi-value small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; color: #9aa1ae; font-size: 9px; }
.delta { border-radius: 99px; padding: 3px 6px; color: var(--green); background: var(--green-soft); font-weight: 750; }
.delta.down { color: var(--red); background: var(--red-soft); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .85fr); gap: 14px; margin-top: 14px; }
.panel { padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 13px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.legend { display: flex; gap: 15px; color: #7f8896; font-size: 9px; }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 2px; background: var(--legend); }
.revenue-legend { --legend: #f28a43; }
.profit-legend { --legend: #3478d4; }
.chart-wrap { height: 260px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.risk-list { display: grid; gap: 9px; }
.risk-row { display: flex; align-items: center; gap: 11px; border: 1px solid #edf0f4; border-radius: 9px; padding: 11px; }
.risk-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--risk-color); background: var(--risk-bg); font-size: 14px; }
.risk-row div:nth-child(2) { min-width: 0; flex: 1; }
.risk-row b { display: block; font-size: 11px; }
.risk-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.risk-row strong { color: var(--risk-color); font-size: 18px; font-variant-numeric: tabular-nums; }
.risk-row.clear { opacity: .6; }
.risk-row:nth-child(1) { --risk-color: #df5d5d; --risk-bg: #fff0ef; }
.risk-row:nth-child(2) { --risk-color: #c77b14; --risk-bg: #fff7e8; }
.risk-row:nth-child(3) { --risk-color: #3478d4; --risk-bg: #edf4ff; }
.risk-row:nth-child(4) { --risk-color: #7459c7; --risk-bg: #f2effc; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; margin-top: 14px; }
.store-rank { display: grid; gap: 12px; }
.store-line { display: grid; grid-template-columns: minmax(130px, 1.4fr) minmax(100px, 1fr) 90px; align-items: center; gap: 16px; }
.store-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.platform-mark { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.store-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.store-name span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.store-line progress { width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
.store-line progress::-webkit-progress-bar { background: #eef1f5; }
.store-line progress::-webkit-progress-value { border-radius: 99px; background: var(--accent); }
.store-line progress::-moz-progress-bar { background: var(--accent); }
.rank-value { text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.rank-value b { display: block; }
.rank-value span { color: var(--muted); font-size: 8px; }
.task-list { display: grid; }
.task-item { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #eff1f4; padding: 11px 0; }
.task-item:first-child { padding-top: 0; }
.task-item:last-child { border-bottom: 0; padding-bottom: 0; }
.task-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--task-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--task-color), transparent 88%); }
.task-item:nth-child(odd) { --task-color: #f28a43; }
.task-item:nth-child(even) { --task-color: #3478d4; }
.task-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.task-item span { color: var(--muted); font-size: 8px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { position: relative; width: 250px; }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 50%; transform: translateY(-52%); color: #9aa2af; font-size: 16px; }
.search .input { min-height: 37px; padding-left: 32px; font-size: 11px; }
.toolbar .select { width: auto; min-width: 112px; min-height: 37px; padding: 7px 29px 7px 10px; font-size: 10px; }
.table-card { overflow: hidden; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 10px; }
.data-table th { border-bottom: 1px solid var(--line); padding: 11px 14px; color: #8d96a5; background: #fafbfc; text-align: left; font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.data-table td { border-bottom: 1px solid #eff1f4; padding: 12px 14px; color: #465064; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcfd; }
.mono { color: #3e485c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.money { font-weight: 750; font-variant-numeric: tabular-nums; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 4px 7px; color: #687284; background: #f1f3f6; font-size: 8px; font-weight: 750; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.orange { color: var(--amber); background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.badge.purple { color: var(--purple); background: #f2effc; }
.row-title b { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; color: #303a4e; font-size: 10px; }
.row-title span { display: block; margin-top: 3px; color: #969eaa; font-size: 8px; }
.link-btn { display: inline-flex; flex-direction: column; gap: 3px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.link-btn b { color: var(--blue); }
.link-btn:hover b { text-decoration: underline; }
.acc-remark { max-width: 180px; white-space: normal; word-break: break-word; color: #6c7689; }
.acc-remark .muted, .muted { color: #b9c0cc; }
.acc-line-detail { display: grid; gap: 4px; }
.acc-line-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; padding: 14px 16px; border: 1px solid var(--line, #e6eaf0); border-radius: 12px; background: #fafbfc; }
.acc-line-grid > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-line-grid span { font-size: 11px; color: #8c95a7; }
.acc-line-grid b { font-size: 13px; color: #1d2b4a; word-break: break-word; }
.table-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 11px 14px; color: var(--muted); font-size: 9px; }
.pagination { display: flex; gap: 5px; }
.pagination button { min-width: 28px; height: 27px; border: 1px solid var(--line); border-radius: 6px; color: #657083; background: white; cursor: pointer; font-size: 9px; }
.pagination button.active { border-color: #f0a06b; color: #a65b2b; background: var(--accent-soft); }
.pagination button:disabled { opacity: .4; cursor: default; }
.table-action { border: 0; padding: 3px 5px; color: var(--blue); background: none; cursor: pointer; font-size: 9px; }
.empty-state { padding: 58px 20px; color: #939baa; text-align: center; font-size: 11px; }
.empty-state strong { display: block; margin-bottom: 7px; color: #515b6d; font-size: 13px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.summary-strip div { padding: 13px 15px; background: white; }
.summary-strip span { color: var(--muted); font-size: 9px; }
.summary-strip b { display: block; margin-top: 5px; font-size: 16px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.kanban-column { min-height: 420px; border-radius: 11px; padding: 11px; background: #eef1f5; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 10px; }
.kanban-head b { font-size: 10px; }
.kanban-head span { min-width: 19px; border-radius: 99px; padding: 2px 6px; color: #737c8c; background: #dfe4ea; text-align: center; font-size: 8px; }
.ticket { margin-bottom: 8px; border: 1px solid #e3e7ed; border-radius: 9px; padding: 12px; background: white; box-shadow: 0 3px 12px rgba(20,30,50,.035); }
.ticket.overdue { border-left: 3px solid var(--red); }
.ticket-top { display: flex; justify-content: space-between; gap: 10px; }
.ticket-top b { font-size: 9px; font-family: ui-monospace, monospace; }
.ticket-type { color: var(--blue); font-size: 8px; }
.ticket h3 { margin: 10px 0 5px; color: #30394c; font-size: 11px; line-height: 1.5; }
.ticket p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.ticket-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; color: #949ca9; font-size: 8px; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; border-top: 1px solid #f0f2f5; padding-top: 9px; }
.owner { display: flex; align-items: center; gap: 5px; font-size: 8px; }
.owner i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: #9b572a; background: var(--accent-soft); font-style: normal; }

.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.review-card { padding: 16px; }
.review-head { display: flex; justify-content: space-between; gap: 12px; }
.review-buyer { display: flex; align-items: center; gap: 9px; }
.review-buyer .avatar { width: 30px; height: 30px; }
.review-buyer b { display: block; font-size: 10px; }
.review-buyer span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.stars { color: #eaa13a; letter-spacing: 1px; font-size: 11px; }
.review-content { min-height: 48px; margin: 14px 0 12px; color: #3e485b; font-size: 11px; line-height: 1.7; }
.review-reply { border-left: 2px solid #dfe4eb; padding-left: 10px; color: #788191; font-size: 9px; line-height: 1.6; }
.review-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }

.product-name { display: flex; align-items: center; gap: 9px; }
.product-thumb { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #7a6539; background: #f5f0e6; font-size: 12px; }
.stock-cell { min-width: 100px; }
.stock-line { display: flex; justify-content: space-between; }
.stock-bar { display: block; width: 92px; height: 4px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #eceff3; }
.stock-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.stock-cell.low .stock-bar i { background: var(--red); }
.stock-cell.low b { color: var(--red); }
.stock-progress { width: 92px; height: 4px; display: block; margin-top: 5px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
.stock-progress::-webkit-progress-bar { background: #eceff3; }
.stock-progress::-webkit-progress-value { border-radius: 99px; background: var(--green); }
.stock-progress::-moz-progress-bar { background: var(--green); }
.stock-cell.low .stock-progress::-webkit-progress-value { background: var(--red); }
.stock-cell.low .stock-progress::-moz-progress-bar { background: var(--red); }
.product-check { display: flex; align-items: center; grid-auto-flow: column; gap: 7px; margin: 0 4px; white-space: nowrap; }
.product-check input { accent-color: var(--accent); }

.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.store-card { padding: 17px; }
.store-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.store-card-title { display: flex; gap: 10px; }
.store-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 800; }
.store-card-title h3 { margin: 2px 0 4px; font-size: 12px; }
.store-card-title span { color: var(--muted); font-size: 9px; }
.store-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 16px 0; background: #edf0f4; }
.store-metrics div { padding: 8px 0; background: white; }
.store-metrics span { color: var(--muted); font-size: 8px; }
.store-metrics b { display: block; margin-top: 4px; font-size: 13px; }
.target-row { display: flex; justify-content: space-between; color: #747e8f; font-size: 8px; }
.store-card progress { width: 100%; height: 6px; margin-top: 7px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
.store-card progress::-webkit-progress-bar { background: #eef1f5; }
.store-card progress::-webkit-progress-value { background: var(--accent); }
.store-card progress::-moz-progress-bar { background: var(--accent); }
.store-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; border-top: 1px solid #eff1f4; padding-top: 11px; color: var(--muted); font-size: 8px; }

.proto-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; border: 1px solid #dce5f1; border-radius: 99px; padding: 4px 9px; color: #62748d; background: #f4f8fd; font-size: 9px; font-weight: 750; }
.proto-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(52,120,212,.1); }
.top-section { margin-top: 14px; }
.table-panel-head { margin: 0; padding: 16px 18px; }
.rank-number { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #9b572a; background: var(--accent-soft); font-weight: 800; }
.sparkline { color: var(--green); font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: -2px; }
.channel-list { display: grid; gap: 3px; }
.channel-row { display: grid; grid-template-columns: 30px minmax(90px,1fr) minmax(65px,.85fr) 62px; align-items: center; gap: 9px; border-bottom: 1px solid #eff1f4; padding: 10px 0; }
.channel-row:last-child { border-bottom: 0; }
.channel-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 800; }
.channel-row b { display: block; font-size: 9px; }
.channel-row span { color: var(--muted); font-size: 8px; }
.channel-row progress, .bar-row progress { width: 100%; height: 5px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
.channel-row progress::-webkit-progress-bar, .bar-row progress::-webkit-progress-bar { background: #edf0f4; }
.channel-row progress::-webkit-progress-value, .bar-row progress::-webkit-progress-value { border-radius: 99px; background: var(--accent); }
.channel-row progress::-moz-progress-bar, .bar-row progress::-moz-progress-bar { background: var(--accent); }
.channel-row strong { text-align: right; font-size: 9px; }
.accounting-layout, .finance-layout, .appeal-layout, .attendance-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.7fr); gap: 14px; }
.rule-list { display: grid; }
.rule-item { display: grid; grid-template-columns: minmax(70px,1fr) auto auto; align-items: center; gap: 8px; border-bottom: 1px solid #eff1f4; padding: 11px 0; font-size: 9px; }
.rule-item span { color: var(--muted); }
.rule-item em { border-radius: 99px; padding: 3px 6px; font-size: 8px; font-style: normal; }
.rule-item em.good { color: var(--green); background: var(--green-soft); }
.rule-item em.warn { color: var(--amber); background: var(--amber-soft); }
.insight-box { margin-top: 14px; border: 1px solid #e6eaf0; border-radius: 9px; padding: 11px; background: #f8fafc; }
.insight-box b { font-size: 9px; }
.insight-box p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.bar-list { display: grid; gap: 15px; }
.bar-row { display: grid; grid-template-columns: 100px minmax(80px,1fr) 30px; align-items: center; gap: 10px; }
.bar-row div { min-width: 0; }
.bar-row span { display: block; color: var(--muted); font-size: 8px; }
.bar-row b { display: block; margin-top: 3px; font-size: 10px; }
.bar-row em { color: #8b94a2; text-align: right; font-size: 8px; font-style: normal; }
.notice-strip { display: grid; grid-template-columns: auto auto minmax(200px,1fr) auto; align-items: center; gap: 13px; margin-bottom: 14px; border: 1px solid #f4d8bd; border-radius: 10px; padding: 12px 15px; color: #785031; background: #fff8f0; font-size: 9px; }
.notice-strip > span { border-radius: 99px; padding: 4px 7px; color: var(--amber); background: white; font-weight: 750; }
.notice-strip p { margin: 0; color: #98745b; }
.entity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.entity-card { padding: 16px; }
.entity-head { display: flex; align-items: flex-start; gap: 9px; }
.entity-head > div { flex: 1; min-width: 0; }
.entity-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #9b572a; background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.entity-head h3 { margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.entity-head p { margin: 0; color: var(--muted); font-size: 8px; }
.entity-amount { margin: 16px 0 11px; }
.entity-amount span { color: var(--muted); font-size: 8px; }
.entity-amount b { display: block; margin-top: 5px; font-size: 19px; }
.entity-card > progress { width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
.entity-card > progress::-webkit-progress-bar { background: #edf0f4; }
.entity-card > progress::-webkit-progress-value { background: var(--accent); }
.entity-card > progress::-moz-progress-bar { background: var(--accent); }
.entity-foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; margin-top: 12px; border-top: 1px solid #eff1f4; padding-top: 10px; font-size: 8px; }
.entity-foot > span { color: var(--muted); }
.entity-foot > b { font-size: 11px; }
.entity-foot button { grid-column: 2; grid-row: 1 / 3; }
.board-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.board-card { padding: 15px; }
.board-head { display: flex; align-items: flex-start; gap: 9px; }
.board-head > div { min-width: 0; flex: 1; }
.board-head h3 { margin: 2px 0 5px; font-size: 11px; }
.board-head p { margin: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.board-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #396ba8; background: #edf4ff; font-size: 11px; font-weight: 800; }
.board-head .icon-button { width: 27px; height: 27px; border: 0; font-size: 12px; }
.board-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 15px 0 12px; background: var(--line); }
.board-metrics div { padding: 7px 0; background: white; }
.board-metrics span { color: var(--muted); font-size: 8px; }
.board-metrics b { display: block; margin-top: 3px; font-size: 13px; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-row span { border-radius: 5px; padding: 4px 6px; color: #657083; background: #f2f4f7; font-size: 8px; }
.board-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; border-top: 1px solid #eff1f4; padding-top: 10px; color: var(--muted); font-size: 8px; }
.check-list { display: grid; }
.check-list label { display: flex; gap: 9px; border-bottom: 1px solid #eff1f4; padding: 10px 0; }
.check-list input { margin-top: 2px; accent-color: var(--green); }
.check-list span { display: grid; gap: 3px; }
.check-list b { font-size: 9px; }
.check-list small { color: var(--muted); font-size: 8px; }
.compact-button { min-height: 40px !important; margin-top: 14px !important; }
.express-search, .query-hero { padding: 24px; background: radial-gradient(circle at 90% 10%,rgba(242,138,67,.13),transparent 28%),white; }
.express-search h2, .query-hero h2 { margin: 0; font-size: 20px; }
.express-search > p:not(.eyebrow), .query-hero > div > p:not(.eyebrow) { color: var(--muted); font-size: 9px; }
.search-input { display: grid; grid-template-columns: minmax(220px,1fr) 180px auto; gap: 7px; max-width: 820px; margin-top: 17px; }
.search-input .input, .search-input .select { min-height: 44px; }
.quick-tags { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: var(--muted); font-size: 8px; }
.quick-tags button { border: 0; border-radius: 6px; padding: 4px 7px; color: #687284; background: #f3f5f8; cursor: pointer; font-size: 8px; }
.tracking-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,.65fr); gap: 14px; margin-top: 14px; }
.timeline { display: grid; padding: 3px 0 2px 5px; }
.timeline > div { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 10px; min-height: 58px; }
.timeline > div::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -7px; width: 1px; background: #e1e5eb; }
.timeline > div:last-child::before { display: none; }
.timeline i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 3px solid white; border-radius: 50%; background: #cbd2dc; box-shadow: 0 0 0 1px #dce1e8; }
.timeline .current i { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline b { display: block; font-size: 9px; }
.timeline span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.shipment-cost { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border-radius: 8px; overflow: hidden; background: var(--line); }
.shipment-cost span { padding: 10px; color: var(--muted); background: #f8fafc; font-size: 8px; }
.shipment-cost b { display: block; margin-top: 4px; color: var(--ink); font-size: 9px; }
.price-list { display: grid; }
.price-list > div { display: grid; grid-template-columns: 28px minmax(80px,1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid #eff1f4; padding: 9px 0; }
.courier-logo { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #426ea6; background: var(--blue-soft); font-size: 9px; font-weight: 800; }
.price-list p { margin: 0; }
.price-list b, .price-list small { display: block; }
.price-list b { font-size: 9px; }
.price-list small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.price-list strong { font-size: 10px; }
.price-list em { grid-column: 3; color: var(--muted); font-size: 7px; font-style: normal; text-align: right; }
.studio-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 16px; }
.studio-config { padding: 17px; }
.preset-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.preset-grid button { border: 1px solid var(--line); border-radius: 7px; padding: 8px; color: #657083; background: white; cursor: pointer; font-size: 8px; }
.preset-grid button.selected { border-color: #eea16d; color: #9f5728; background: var(--accent-soft); }
.upload-zone { min-height: 92px; display: grid; place-items: center; align-content: center; gap: 3px; border: 1px dashed #d9dee7; border-radius: 9px; color: var(--muted); background: #fafbfc; cursor: pointer; text-align: center; }
.upload-zone > span { color: var(--accent); font-size: 20px; }
.upload-zone b { color: #4a5568; font-size: 9px; }
.upload-zone small { font-size: 8px; }
.workspace-head { min-height: 49px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.workspace-head h2 { margin: 0; font-size: 13px; }
.workspace-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.asset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.asset-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.asset-preview { aspect-ratio: 1.35; display: flex; align-items: flex-start; justify-content: flex-end; flex-direction: column; gap: 5px; padding: 19px; color: white; }
.asset-preview span { font-size: 32px; font-weight: 900; }
.asset-preview b { font-size: 11px; letter-spacing: .08em; }
.asset-one { background: radial-gradient(circle at 72% 30%,#738094 0 12%,transparent 13%),linear-gradient(140deg,#151c26,#344253); }
.asset-two { background: radial-gradient(circle at 74% 32%,rgba(255,255,255,.75) 0 13%,transparent 14%),linear-gradient(145deg,#df7c3b,#8c3f21); }
.asset-three { color: #26354a; background: radial-gradient(circle at 73% 32%,#d6dde6 0 12%,transparent 13%),linear-gradient(145deg,#ffffff,#e9eef5); }
.asset-card footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.asset-card footer b, .asset-card footer span { display: block; }
.asset-card footer b { font-size: 9px; }
.asset-card footer span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.pending-asset { min-height: 210px; display: grid; place-items: center; border-style: dashed; color: var(--muted); background: #fafbfc; text-align: center; }
.pending-asset span { color: var(--accent); font-size: 25px; }
.pending-asset b { display: block; margin-top: 7px; color: #586276; font-size: 10px; }
.pending-asset p { font-size: 8px; }
.title-layout { display: grid; grid-template-columns: minmax(300px,.75fr) minmax(0,1.25fr); gap: 16px; }
.keyword-input { min-height: 42px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: white; }
.keyword-input span { border-radius: 5px; padding: 5px 7px; color: #617084; background: #f0f3f7; font-size: 8px; }
.keyword-input input { min-width: 80px; flex: 1; border: 0; outline: none; font-size: 9px; }
.title-results { display: grid; gap: 9px; }
.result-option { padding: 14px; }
.result-option.selected { border-color: #efb388; box-shadow: 0 8px 25px rgba(242,138,67,.09); }
.result-option header, .result-option footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-option header span { color: var(--accent); font-size: 9px; font-weight: 750; }
.result-option header b { color: var(--muted); font-size: 8px; }
.result-option > p { margin: 12px 0; color: #303b4f; font-size: 11px; font-weight: 650; line-height: 1.65; }
.cost-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(290px,.65fr); gap: 16px; }
.field-label { position: relative; }
.input-suffix { position: absolute; right: 11px; bottom: 13px; color: var(--muted); font-size: 9px; }
.costing-result { overflow: hidden; }
.result-hero { padding: 24px; color: white; background: linear-gradient(145deg,#142039,#263754); }
.result-hero span { color: #aab7ca; font-size: 9px; }
.result-hero > b { display: block; margin: 9px 0 5px; color: #ffad67; font-size: 29px; }
.result-hero p { margin: 0; color: #aeb9ca; font-size: 9px; }
.result-hero strong { color: white; }
.breakdown { display: grid; padding: 12px 20px; }
.breakdown div { display: flex; justify-content: space-between; border-bottom: 1px solid #eff1f4; padding: 10px 0; font-size: 9px; }
.breakdown div:last-child { border: 0; }
.breakdown span { color: var(--muted); }
.profit-rating { display: flex; align-items: center; gap: 8px; margin: 0 20px; border-radius: 8px; padding: 10px; background: var(--green-soft); font-size: 8px; }
.profit-rating > div { flex: 1; display: flex; gap: 3px; }
.profit-rating i { height: 5px; flex: 1; border-radius: 99px; background: var(--green); }
.profit-rating i:last-child { background: #cdebe0; }
.profit-rating b { color: var(--green); }
.costing-result > .button { width: calc(100% - 40px); margin: 14px 20px 20px !important; }
.query-hero { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(360px,1.2fr); align-items: center; gap: 25px; }
.query-hero .search-input { grid-template-columns: 1fr auto; margin-top: 0; }
.attendance-layout { grid-template-columns: minmax(0,1.55fr) minmax(260px,.6fr); }
.report-list { display: grid; }
.report-list > div:not(.report-pending) { border-bottom: 1px solid #eff1f4; padding: 11px 0; }
.report-list > div:first-child { padding-top: 0; }
.report-list .owner { display: inline-flex; }
.report-list p { margin: 7px 0 3px; color: #4d5769; font-size: 9px; line-height: 1.55; }
.report-list em { color: var(--muted); font-size: 8px; font-style: normal; }
.report-pending { margin-top: 12px; border-radius: 7px; padding: 9px; color: var(--amber); background: var(--amber-soft); text-align: center; font-size: 8px; }
.forum-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(250px,.55fr); gap: 15px; }
.forum-tabs { display: flex; gap: 5px; margin-bottom: 10px; }
.forum-tabs button { border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; color: var(--muted); background: white; cursor: pointer; font-size: 9px; }
.forum-tabs button.active { border-color: #efb388; color: #9c582b; background: var(--accent-soft); }
.post-list { display: grid; gap: 9px; }
.post-card { padding: 15px; }
.post-card header { display: flex; align-items: flex-start; gap: 10px; }
.post-card h3 { margin: 1px 0 5px; font-size: 11px; }
.post-card header p { margin: 0; color: var(--muted); font-size: 8px; }
.topic-chip { border-radius: 5px; padding: 4px 6px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 750; }
.topic-chip.置顶 { color: var(--red); background: var(--red-soft); }
.topic-chip.经验 { color: var(--green); background: var(--green-soft); }
.topic-chip.求助 { color: var(--amber); background: var(--amber-soft); }
.post-card > p { margin: 13px 0; color: #566074; font-size: 9px; line-height: 1.7; }
.post-card footer { display: flex; align-items: center; gap: 14px; border-top: 1px solid #eff1f4; padding-top: 10px; color: var(--muted); font-size: 8px; }
.post-card footer button { margin-left: auto; }
.hot-topics { display: grid; }
.hot-topics a { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #eff1f4; padding: 10px 0; }
.hot-topics > a > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.hot-topics b, .hot-topics small { display: block; }
.hot-topics b { font-size: 9px; }
.hot-topics small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.forum-guide { margin-top: 12px; color: #785031; background: #fff8f0; }
.forum-guide h2 { margin: 0; font-size: 11px; }
.forum-guide p { margin: 8px 0 0; font-size: 8px; line-height: 1.7; }
.permission-matrix { min-width: 680px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.permission-matrix > div { display: grid; grid-template-columns: 1.4fr repeat(5,1fr); }
.permission-matrix > div > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 10px; font-size: 8px; }
.permission-matrix > div > *:last-child { border-right: 0; }
.permission-matrix > div:last-child > * { border-bottom: 0; }
.permission-head { color: var(--muted); background: #f8fafc; }
.permission { color: #6f7888; }
.permission.allow { color: var(--green); background: #f3fbf8; }
.permission.deny { color: #adb3bd; background: #fafafa; }

.settings-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: 14px; }
.system-list { display: grid; }
.system-list div { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eff1f4; padding: 11px 0; font-size: 10px; }
.system-list div:last-child { border-bottom: 0; }
.system-list span { color: var(--muted); }
.warning-box { margin-top: 15px; border: 1px solid #f5d8bd; border-radius: 9px; padding: 11px; color: #9a602f; background: #fff8f0; font-size: 9px; line-height: 1.7; }
.audit-list { display: grid; max-height: 520px; overflow: auto; }
.audit-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; border-bottom: 1px solid #eff1f4; padding: 10px 0; }
.audit-item:last-child { border-bottom: 0; }
.audit-symbol { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 11px; }
.audit-item b { font-size: 9px; }
.audit-item p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.audit-item time { color: #a0a7b3; font-size: 8px; }

.review-actions, .task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.table-action.danger { color: var(--red); }
.integration-tag { border: 1px solid #cfe0ff; border-radius: 999px; padding: 5px 9px; color: var(--blue); background: #f3f7ff; font-size: 8px; font-weight: 750; }
.agent-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; padding: 18px 20px; overflow: hidden; background: linear-gradient(120deg,#121b2f,#1f3152); color: white; }
.agent-state { display: flex; align-items: center; gap: 13px; }
.agent-state h2 { margin: 2px 0 4px; font-size: 17px; }
.agent-state p { margin: 0; color: #b9c5d9; font-size: 9px; }
.agent-state .eyebrow { color: #8095b7; }
.agent-pulse { position: relative; width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #f0a34f; box-shadow: 0 0 0 6px rgba(240,163,79,.13); }
.agent-state.online .agent-pulse { background: #55c597; box-shadow: 0 0 0 6px rgba(85,197,151,.13); }
.agent-meta { display: flex; align-items: center; gap: 18px; }
.agent-meta > div { display: grid; gap: 3px; }
.agent-meta span { color: #8fa0ba; font-size: 8px; }
.agent-meta b { color: #eef4ff; font-size: 9px; }
.agent-meta > .badge { color: #1e4435; }
.automation-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 13px; }
.automation-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-bottom: 13px; }
.automation-quick { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 16px; }
.automation-quick .button { grid-column: 2 / -1; justify-self: start; }
.automation-quick h3 { margin: 0 0 5px; font-size: 12px; }
.automation-quick p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.automation-quick strong { color: #6a7486; font-size: 8px; white-space: nowrap; }
.automation-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--green-soft); font-size: 18px; }
.automation-icon.alert { color: var(--amber); background: var(--amber-soft); }
.automation-table { min-width: 0; }
.automation-summary { max-width: 250px; color: #5e687a; font-size: 8px; line-height: 1.55; }
.guardrail-panel { align-self: start; }
.guardrail-list { display: grid; }
.guardrail-list > div { display: grid; grid-template-columns: 28px 1fr; gap: 9px; border-bottom: 1px solid #eff1f4; padding: 10px 0; }
.guardrail-list > div:last-child { border-bottom: 0; }
.guardrail-list i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 7px; font-style: normal; font-weight: 800; }
.guardrail-list b, .guardrail-list small { display: block; }
.guardrail-list b { font-size: 9px; }
.guardrail-list small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.agent-contract { margin-top: 14px; border-radius: 9px; padding: 12px; color: #53627a; background: #f3f6fb; }
.agent-contract b { font-size: 9px; }
.agent-contract p { margin: 6px 0 0; font-size: 8px; line-height: 1.7; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13,20,34,.55); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(620px,100%); max-height: min(800px, calc(100vh - 40px)); overflow: auto; border-radius: 13px; background: white; box-shadow: 0 24px 80px rgba(5,12,24,.3); animation: modalIn .18s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-card > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 18px 20px 15px; background: white; }
.modal-card h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 17px 20px; }
.modal-card footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 12px 20px; background: rgba(255,255,255,.96); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 13px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { border-radius: 8px; padding: 9px 11px; color: #687284; background: #f5f7fa; font-size: 9px; line-height: 1.6; }
/* 成本构成说明：把「货盘原价 × 折扣 = 总成本」摊开，避免用户对不上账 */
.cost-formula { background: #fff8e6; color: #7a5c1e; border: 1px solid #f0d9a0; }
.cost-formula b { color: #b45309; }
.csv-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 10px 0; }
.csv-columns code { border-radius: 5px; padding: 5px 6px; color: #5f6a7c; background: #f1f3f6; font-size: 8px; }
.import-result { margin-top: 10px; border-radius: 8px; padding: 10px; color: var(--green); background: var(--green-soft); font-size: 10px; }
/* 提示条：告诉用户真正的执行在本机客户端，云端只是遥控器 */
.desktop-hint { margin-bottom: 14px; border: 1px solid #cfe3e0; border-left: 3px solid var(--teal, #0f766e); border-radius: 9px; padding: 11px 13px; color: #3f5a57; background: #f2f9f8; font-size: 13px; line-height: 1.7; }
.desktop-hint b { color: #0f766e; }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { width: min(340px, calc(100vw - 40px)); display: flex; align-items: flex-start; gap: 9px; border: 1px solid #dfe5e9; border-radius: 9px; padding: 11px 13px; color: #3f495c; background: white; box-shadow: 0 12px 35px rgba(20,30,50,.15); animation: toastIn .2s ease-out; font-size: 10px; }
.toast::before { content: "✓"; width: 18px; height: 18px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 9px; }
.toast.error::before { content: "!"; background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }
.skeleton { min-height: 450px; border-radius: 11px; background: linear-gradient(90deg,#f0f2f5 25%,#fafbfc 37%,#f0f2f5 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.mobile-shade { position: fixed; inset: 0; z-index: 35; background: rgba(12,18,31,.5); }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .store-grid { grid-template-columns: repeat(2,1fr); }
  .entity-grid, .board-grid { grid-template-columns: repeat(2,1fr); }
  .kanban { grid-template-columns: repeat(4, 260px); }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; background: linear-gradient(150deg,#f5f7fa,#fff7f0); }
  .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 48px; }
  .mobile-brand img { width: 36px; height: 36px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-shell { margin-left: 0; }
  .menu-button { display: grid; }
  .breadcrumb { display: none; }
  .topbar { padding: 0 15px; }
  .dashboard-grid, .bottom-grid, .settings-grid { grid-template-columns: 1fr; }
  .accounting-layout, .finance-layout, .appeal-layout, .tracking-layout, .studio-layout, .title-layout, .cost-layout, .attendance-layout, .forum-layout, .query-hero, .automation-layout { grid-template-columns: 1fr; }
  .agent-hero { align-items: flex-start; flex-direction: column; }
  .review-grid { grid-template-columns: 1fr; }
  .studio-config { order: 1; }
  .query-hero .search-input { margin-top: 12px; }
}

@media (max-width: 640px) {
  .content { padding: 19px 13px 35px; }
  .top-actions { gap: 8px; }
  .top-actions > .button, .notification, .user-menu > div:not(.avatar) { display: none; }
  .user-menu { border: 0; padding-left: 0; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .head-actions { width: 100%; justify-content: space-between; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { min-height: 123px; padding: 14px; }
  .kpi-value { font-size: 20px; }
  .summary-strip { grid-template-columns: repeat(2,1fr); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .search { width: auto; grid-column: 1 / -1; }
  .toolbar > .head-actions { justify-content: flex-end; }
  .store-grid { grid-template-columns: 1fr; }
  .entity-grid, .board-grid, .asset-grid { grid-template-columns: 1fr; }
  .store-line { grid-template-columns: minmax(120px,1fr) 70px; }
  .store-line progress { display: none; }
  .notice-strip { grid-template-columns: 1fr; gap: 6px; }
  .search-input { grid-template-columns: 1fr; }
  .channel-row { grid-template-columns: 28px minmax(85px,1fr) 58px; }
  .channel-row progress { display: none; }
  .shipment-cost { grid-template-columns: 1fr; }
  .permission-matrix { min-width: 620px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .csv-columns { grid-template-columns: repeat(2,1fr); }
  .automation-quick-grid { grid-template-columns: 1fr; }
  .agent-meta { width: 100%; flex-wrap: wrap; gap: 11px 18px; }
  .review-foot { align-items: flex-start; flex-direction: column; gap: 9px; }
  .review-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

/* v0.5：提高可读性，压缩无效留白 */
body { font-size: 14px; }
.sidebar { width: 248px; padding: 18px 14px 14px; }
.main-shell { margin-left: 248px; }
.brand { padding: 0 9px 18px; }
.brand b { font-size: 18px; }
.brand span { font-size: 12px; }
.nav p { margin: 13px 10px 5px; font-size: 11px; }
.nav a { min-height: 42px; margin: 2px 0; font-size: 15px; }
.nav em, .sync-state, .sidebar-foot small { font-size: 11px; }
.topbar { height: 62px; padding: 0 22px; }
.breadcrumb, .user-menu b { font-size: 13px; }
.user-menu span { font-size: 11px; }
.main-shell, .app-shell { min-height: 100vh; }
.content { max-width: none; min-height: calc(100vh - 62px); margin: 0; padding: 18px 21px 30px; }
.page-head { align-items: center; margin-bottom: 15px; }
.page-head h1 { font-size: 30px; }
.page-head p { margin-top: 5px; font-size: 14px; }
.head-actions { flex-wrap: wrap; justify-content: flex-end; }
.button, .text-button { font-size: 14px; }
.button { min-height: 40px; padding: 8px 15px; }
.button.small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.field-label { margin: 12px 0; font-size: 14px; }
.input, .select, .textarea { font-size: 14px; }
.toolbar { margin-bottom: 10px; }
.search { width: 310px; }
.search .input, .toolbar .select { min-height: 40px; font-size: 13px; }
.summary-strip { margin-bottom: 11px; }
.summary-strip div { padding: 11px 14px; }
.summary-strip span { font-size: 13px; }
.summary-strip b { margin-top: 3px; font-size: 20px; }
.kpi-grid, .dashboard-grid, .bottom-grid { gap: 11px; }
.kpi-card { min-height: 124px; padding: 15px 16px 13px; }
.kpi-label { font-size: 13px; }
.kpi-value { margin-top: 10px; font-size: 27px; }
.kpi-value small, .kpi-foot, .date-stamp, .segmented button { font-size: 12px; }
.panel { padding: 15px; }
.panel-head { margin-bottom: 12px; }
.panel-head h2 { font-size: 16px; }
.panel-head p, .legend { font-size: 12px; }
.chart-wrap { height: 230px; }
.risk-row b, .store-name b, .task-item b { font-size: 13px; }
.risk-row span, .store-name span, .task-item span, .rank-value span { font-size: 11px; }
.rank-value { font-size: 13px; }
.data-table { font-size: 14px; }
.data-table th { padding: 10px 13px; font-size: 13px; }
.data-table td { padding: 11px 13px; }
.row-title b { max-width: 360px; font-size: 13px; }
.row-title span, .mono { font-size: 11px; }
.badge { padding: 5px 8px; font-size: 11px; }
.table-action { padding: 5px 6px; font-size: 12px; }
.table-foot, .pagination button { font-size: 12px; }
.empty-state { padding: 34px 18px; font-size: 13px; }
.empty-state strong { font-size: 15px; }
.table-panel-head { padding: 13px 15px; }
.store-grid { grid-template-columns: repeat(auto-fit,minmax(330px,1fr)); gap: 11px; }
.store-card { padding: 15px; }
.store-logo { width: 42px; height: 42px; font-size: 15px; }
.store-card-title h3 { font-size: 16px; }
.store-card-title span { font-size: 12px; }
.store-metrics { margin: 12px 0; }
.store-metrics span, .target-row, .store-card-foot { font-size: 11px; }
.store-metrics b { font-size: 16px; }
.store-login-row { display: grid; gap: 7px; margin-top: 13px; border: 1px solid #e7ebf1; border-radius: 9px; padding: 10px 11px; background: #f8fafc; }
.store-login-row > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-login-row > div > span:first-child { color: #536074; font-size: 12px; font-weight: 750; }
.store-login-row small { color: var(--muted); font-size: 11px; }
.store-card-actions { display: flex; align-items: center; gap: 5px; }
.security-note { margin-bottom: 11px; border: 1px solid #cfe5dc; border-radius: 9px; padding: 10px 13px; color: #436759; background: #f2fbf7; font-size: 13px; }
.inventory-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 11px; }
.inventory-workflow { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 17px; }
.inventory-workflow .workflow-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #9c572b; background: var(--accent-soft); font-size: 20px; font-weight: 850; }
.inventory-workflow.stocktake .workflow-icon { color: #2f69b6; background: var(--blue-soft); }
.inventory-workflow .eyebrow { margin-bottom: 4px; font-size: 11px; }
.inventory-workflow h2 { margin: 0; font-size: 18px; }
.inventory-workflow div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.inventory-history { display: grid; gap: 11px; }
.form-note, .csv-columns code, .warning-box { font-size: 12px; }
.csv-columns { grid-template-columns: repeat(5,minmax(0,1fr)); }
.modal-card h2 { font-size: 21px; }
.modal-body { padding-top: 13px; }
.toast { font-size: 13px; }

@media (max-width: 1080px) {
  .inventory-actions { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { width: 248px; }
  .main-shell { margin-left: 0; }
}

@media (max-width: 640px) {
  .content { padding: 14px 12px 28px; }
  .page-head h1 { font-size: 24px; }
  .inventory-workflow { grid-template-columns: 42px minmax(0,1fr); }
  .inventory-workflow .button { grid-column: 1 / -1; }
  .csv-columns { grid-template-columns: repeat(2,1fr); }
}

/* v0.6：整体再放大一档，并恢复旧版“执照分组 + 店铺明细”结构 */
body { font-size: 16px; }
.eyebrow { font-size: 13px; }
.sidebar { width: 258px; }
.main-shell { margin-left: 258px; }
.nav p { font-size: 12px; }
.nav a { min-height: 44px; font-size: 16px; }
.nav em, .sync-state, .sidebar-foot small { font-size: 12px; }
.breadcrumb, .user-menu b { font-size: 14px; }
.user-menu span { font-size: 12px; }
.content { padding: 16px 19px 28px; }
.page-head h1 { font-size: 32px; }
.page-head p { font-size: 15px; }
.button, .text-button { font-size: 15px; }
.button.small { font-size: 13px; }
.field-label, .input, .select, .textarea { font-size: 15px; }
.summary-strip span { font-size: 14px; }
.summary-strip b { font-size: 21px; }
.kpi-label, .kpi-value small, .kpi-foot, .date-stamp, .segmented button { font-size: 13px; }
.panel-head h2 { font-size: 17px; }
.panel-head p, .legend { font-size: 13px; }
.risk-row b, .store-name b, .task-item b, .rank-value { font-size: 14px; }
.risk-row span, .store-name span, .task-item span, .rank-value span { font-size: 13px; }
.data-table { font-size: 15px; }
.data-table th { font-size: 14px; }
.row-title b { font-size: 15px; }
.row-title span, .mono { font-size: 13px; }
.badge, .table-action, .table-foot, .pagination button { font-size: 13px; }
.empty-state { font-size: 14px; }
.empty-state strong { font-size: 17px; }
.ticket h3, .review-content, .post-card h3, .board-head h3, .entity-head h3, .automation-quick h3 { font-size: 15px; }
.ticket p, .ticket-meta, .ticket-top b, .ticket-type, .owner,
.review-buyer b, .review-buyer span, .review-reply, .stars,
.channel-row b, .channel-row span, .channel-row strong, .rule-item,
.insight-box b, .insight-box p, .bar-row span, .bar-row b, .bar-row em,
.notice-strip, .entity-head p, .entity-amount span, .entity-foot,
.board-head p, .board-metrics span, .tag-row span, .board-foot,
.check-list b, .check-list small, .express-search > p:not(.eyebrow), .query-hero > div > p:not(.eyebrow),
.quick-tags, .quick-tags button, .timeline b, .timeline span, .shipment-cost span, .shipment-cost b,
.price-list b, .price-list strong, .preset-grid button, .upload-zone b, .upload-zone small,
.workspace-head p, .asset-card footer b, .asset-card footer span, .pending-asset b, .pending-asset p,
.keyword-input span, .keyword-input input, .result-option header span, .result-option header b,
.result-option > p, .input-suffix, .breakdown div, .profit-rating,
.report-list p, .report-list em, .report-pending, .forum-tabs button,
.post-card header p, .topic-chip, .post-card > p, .post-card footer,
.hot-topics b, .hot-topics small, .forum-guide h2, .forum-guide p,
.permission-matrix > div > *, .system-list div, .warning-box,
.audit-item b, .audit-item p, .audit-item time, .integration-tag,
.agent-state p, .agent-meta span, .agent-meta b, .automation-quick p, .automation-quick strong,
.automation-summary, .guardrail-list b, .guardrail-list small, .agent-contract b, .agent-contract p,
.form-note, .csv-columns code, .toast { font-size: 13px; }

.platform-summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 10px; margin-bottom: 11px; }
.platform-summary-card { appearance: none; min-height: 96px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; border: 1px solid var(--line); padding: 14px 15px; color: var(--ink); text-align: left; cursor: pointer; }
.platform-summary-card:hover { border-color: #efb389; transform: translateY(-1px); }
.platform-summary-card.active { border-color: #f28a43; box-shadow: 0 0 0 2px rgba(242,138,67,.13); }
.platform-summary-card span { color: #596477; font-size: 15px; font-weight: 750; }
.platform-summary-card b { color: var(--accent); font-size: 27px; }
.platform-summary-card small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.platform-summary-card.clear b { color: var(--blue); }
.company-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 11px; border: 1px solid #f2d8c3; border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; background: linear-gradient(90deg,#fff7ef,#f7f9ff); }
.company-banner > div { display: flex; align-items: center; gap: 12px; }
.company-banner-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #a85c2b; background: #ffe8d5; font-size: 20px; font-weight: 850; }
.company-banner span:not(.company-banner-icon) { display: block; color: var(--muted); font-size: 13px; }
.company-banner b { display: block; margin-top: 2px; color: var(--accent); font-size: 24px; }
.company-banner p { margin: 0; color: var(--muted); font-size: 14px; }
.license-stack { display: grid; gap: 12px; }
.license-card { overflow: hidden; }
.license-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 15px 16px; background: linear-gradient(180deg,#fff,#fbfcfe); }
.license-company { min-width: 0; display: flex; align-items: center; gap: 13px; }
.license-icon { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #9c572b; background: var(--accent-soft); font-size: 17px; font-weight: 850; }
.license-company > div { min-width: 0; }
.license-title-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.license-title-line h2 { margin: 0; font-size: 19px; }
.license-company p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.license-totals { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.license-totals span { border-left: 1px solid var(--line); padding-left: 12px; }
.license-totals b { color: #394459; font-size: 16px; }
.company-store-table th, .company-store-table td { padding-top: 12px; padding-bottom: 12px; }
.platform-pill { display: inline-flex; border-radius: 99px; padding: 5px 9px; color: #a15a2c; background: var(--accent-soft); font-size: 13px; font-weight: 750; }
.login-cell { display: flex; align-items: center; gap: 4px; }
.security-note { font-size: 14px; }

@media (max-width: 1080px) {
  .sidebar { width: 258px; }
  .license-head, .company-banner { align-items: flex-start; flex-direction: column; }
  .license-totals { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .main-shell { margin-left: 0; }
}

@media (max-width: 640px) {
  .content { padding: 13px 11px 26px; }
  .page-head h1 { font-size: 27px; }
  .page-head p { font-size: 14px; }
  .platform-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .license-title-line h2 { font-size: 17px; }
  .license-totals span { border-left: 0; padding-left: 0; }
}

/* v0.7：主体折叠与真实税务数据版 */
.license-head { border-bottom: 0; padding: 0; }
.license-card.expanded .license-head { border-bottom: 1px solid var(--line); }
.license-toggle { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; padding: 15px 16px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.license-toggle:hover { background: #fff8f1; }
.license-toggle:focus-visible, .tax-license-toggle:focus-visible { outline: 3px solid rgba(52,120,212,.2); outline-offset: -3px; }
.license-company { flex: 1; }
.license-company small { display: block; margin-top: 6px; color: var(--blue); font-size: 13px; }
.license-arrow { display: inline-grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--blue); background: #edf4ff; font-size: 21px; line-height: 1; transition: transform .18s ease; }
.license-card.expanded .license-arrow, .tax-license-card.expanded .license-arrow { transform: rotate(180deg); }
.license-totals { flex: 0 0 auto; padding: 12px 16px 12px 0; }
.license-body { background: #fff; }

.tax-year-form { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.tax-year-form .select { min-width: 118px; }
.tax-year-form .button { min-width: 64px; flex: 0 0 auto; white-space: nowrap; }
.head-actions > .button { white-space: nowrap; }
.tax-source-note { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border: 1px solid #cfe8da; border-left: 4px solid var(--green); border-radius: 10px; padding: 12px 15px; color: #416452; background: #f2fbf6; }
.tax-source-note span { flex: 0 0 auto; border-radius: 99px; padding: 5px 9px; color: #24724a; background: #fff; font-size: 13px; font-weight: 800; }
.tax-source-note p { margin: 0; font-size: 14px; line-height: 1.6; }
.tax-parameter-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin: 12px 0; overflow: hidden; background: var(--line); }
.tax-parameter-strip > div { padding: 14px 16px; background: #fff; }
.tax-parameter-strip span { display: block; color: var(--muted); font-size: 13px; }
.tax-parameter-strip b { display: block; margin-top: 4px; color: #344258; font-size: 18px; }
.tax-license-stack { display: grid; gap: 11px; }
.tax-license-card { overflow: hidden; }
.tax-license-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(180deg,#fff,#fbfcfe); }
.tax-license-card.expanded .tax-license-head { border-bottom: 1px solid var(--line); }
.tax-license-toggle { min-width: 0; flex: 1; display: grid; grid-template-columns: 42px minmax(0,1fr) 30px; align-items: center; gap: 12px; border: 0; padding: 14px 16px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.tax-license-toggle:hover { background: #fff8f1; }
.tax-license-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tax-license-title h2 { margin: 0; font-size: 18px; }
.tax-license-toggle p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.tax-license-totals { flex: 0 0 auto; display: flex; align-items: center; gap: 15px; padding: 11px 16px 11px 0; }
.tax-license-totals span { color: var(--muted); font-size: 12px; text-align: right; }
.tax-license-totals b { display: block; margin-top: 3px; color: #354156; font-size: 16px; }
.tax-license-body { background: #fff; }
.tax-table th, .tax-table td { padding-top: 12px; padding-bottom: 12px; }
.tax-usage { min-width: 115px; display: flex; align-items: center; gap: 8px; }
.tax-usage progress { width: 82px; height: 7px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
.tax-usage progress::-webkit-progress-bar { background: #edf0f4; }
.tax-usage progress::-webkit-progress-value { background: var(--accent); }
.tax-usage progress::-moz-progress-bar { background: var(--accent); }
.tax-usage span { color: var(--muted); font-size: 12px; }
.tax-quarter-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tax-disclaimer { margin-top: 12px; border-radius: 10px; padding: 13px 15px; color: #6c665e; background: #f7f5f1; font-size: 13px; line-height: 1.65; }

@media (max-width: 1100px) {
  .license-head, .tax-license-head { align-items: stretch; flex-direction: column; gap: 0; }
  .license-totals, .tax-license-totals { justify-content: flex-start; padding: 0 16px 13px; }
  .tax-license-totals span { text-align: left; }
}

@media (max-width: 720px) {
  .tax-parameter-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tax-source-note { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tax-quarter-fields { grid-template-columns: 1fr; }
  .tax-license-totals { flex-wrap: wrap; }
  .license-toggle { align-items: flex-start; }
}

/* ===== 经营算账增强 ===== */
.row-missing { background: #fff8ec; }
.row-missing:hover { background: #fff3dd !important; }
.row-missing .money { color: #c77b14; font-weight: 600; }
.head-actions-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head-actions-inline .search { max-width: 220px; }
.pagination-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; color: var(--text-soft, #8a93a6); font-size: 13px; }
.cell-note { display: block; color: var(--text-soft, #9aa2ae); font-size: 12px; font-weight: 400; }
.board-subs-list { display: grid; gap: 8px; }
.board-subs-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--border, #e6eaf0); border-radius: 10px; background: var(--surface, #fff); cursor: pointer; text-align: left; }
.board-subs-item:hover { border-color: #f28a43; background: #fff8f2; }
.board-subs-item b { font-size: 14px; }
.board-subs-item span { color: var(--text-soft, #9aa2ae); font-size: 12px; }
.poll-box { display: grid; gap: 10px; margin-top: 14px; }
.poll-option { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border, #e6eaf0); border-radius: 10px; }
.poll-option.mine { border-color: #f28a43; background: #fff8f2; }
.poll-option > div { display: flex; align-items: center; justify-content: space-between; }
.poll-option progress { width: 100%; height: 8px; }
.poll-option em { color: #2f9e63; font-size: 12px; font-style: normal; font-weight: 600; }
.reply-form { display: grid; gap: 10px; padding: 14px; }
.reply-form .textarea { min-height: 64px; }
.checkbox-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft, #667085); }
.reply-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border, #eef1f5); align-items: flex-start; }
.reply-item p { flex: 1; font-size: 14px; line-height: 1.6; }
.reply-item time { color: var(--text-soft, #9aa2ae); font-size: 12px; white-space: nowrap; }
.report-list small { display: block; color: #8a93a6; font-size: 12px; margin-top: 4px; }
.attendance-state.badge { font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.hidden-topic { background: #f0f2f5; color: #8a93a6; }

/* ================================================================
   弘图智营 · 精细化视觉增强（v2）
   在既有设计语言之上叠加：渐变、毛玻璃、微动效、精致细节
   ================================================================ */
:root {
  --accent-2: #ff7a59;
  --ink-strong: #101828;
  --card-radius: 16px;
  --shadow-soft: 0 4px 24px rgba(22, 34, 61, .05), 0 1px 3px rgba(22, 34, 61, .04);
  --shadow-lift: 0 12px 34px rgba(22, 34, 61, .11), 0 2px 6px rgba(22, 34, 61, .05);
  --nav-grad: linear-gradient(172deg, #0f1a30 0%, #172742 55%, #1c2f52 100%);
}

/* ---------- 侧边栏：渐变 + 精致导航 ---------- */
.sidebar { background: var(--nav-grad); box-shadow: 2px 0 26px rgba(10, 18, 38, .18); }
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(255, 150, 90, .10), transparent 42%), radial-gradient(circle at 100% 90%, rgba(90, 130, 220, .12), transparent 45%); }
.sidebar > * { position: relative; z-index: 1; }
.brand { padding: 4px 8px 14px; }
.brand img { filter: drop-shadow(0 2px 8px rgba(255, 150, 90, .35)); }
.brand b { font-size: 17px; letter-spacing: .05em; background: linear-gradient(100deg, #fff, #ffc9a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav p { color: #54637e; font-size: 10px; letter-spacing: .14em; margin: 20px 8px 8px; }
.nav a { position: relative; border-radius: 11px; padding: 9px 12px; margin: 1px 0; gap: 11px; color: #a8b3c6; transition: all .16s ease; }
.nav a:hover { color: #eef2f8; background: rgba(255, 255, 255, .06); }
.nav a.active { color: #fff; background: linear-gradient(92deg, rgba(242, 138, 67, .22), rgba(242, 138, 67, .06)); box-shadow: inset 0 0 0 1px rgba(242, 138, 67, .35); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 20%; bottom: 20%; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #ffb37a, #f28a43); box-shadow: 0 0 10px rgba(242, 138, 67, .6); }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; background: rgba(255,255,255,.05); transition: all .16s; }
.nav a.active .nav-icon { background: rgba(242, 138, 67, .25); color: #ffc9a3; }
.sidebar-foot .sync-state i { box-shadow: 0 0 10px rgba(33, 164, 117, .7); }

/* ---------- 顶部栏：毛玻璃 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(244, 246, 249, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(230, 233, 239, .8); }
.breadcrumb strong { color: var(--ink-strong); }

/* ---------- 卡片：更圆润 + 悬浮 ---------- */
.card { border-radius: var(--card-radius); box-shadow: var(--shadow-soft); border-color: rgba(230, 233, 239, .9); transition: box-shadow .2s ease, transform .2s ease; }
.panel:hover, .table-card:hover, .kpi-card:hover { box-shadow: var(--shadow-lift); }
.page-head h1 { font-size: 26px; letter-spacing: -.03em; color: var(--ink-strong); }
.page-head h1 { position: relative; display: inline-block; }
.page-head h1::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 85%); opacity: .55; }
.panel-head h2, .table-panel-head h2 { color: var(--ink-strong); letter-spacing: -.02em; }

/* ---------- KPI 卡：数字渐变 + 图标胶囊 ---------- */
.kpi-value { font-size: 27px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #1d2b4a, #3b4d74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }

/* ---------- 表格：表头渐变 + 斑马纹 ---------- */
.data-table thead th { background: linear-gradient(180deg, #f8f9fc, #f1f3f8); color: #4a5568; font-size: 11.5px; letter-spacing: .03em; }
.data-table tbody tr:nth-child(even) { background: #fbfcfe; }
.data-table tbody tr:hover { background: #fff7f0; }
.data-table td { padding: 12px 14px; }
.rank-number { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: #c0631d; font-weight: 800; font-size: 12px; }

/* ---------- 按钮：主按钮渐变 ---------- */
.button { border-radius: 10px; }
.button.primary { background: linear-gradient(120deg, #f28a43, #ff7a59); box-shadow: 0 8px 20px rgba(242, 122, 79, .28); }
.button.primary:hover { background: linear-gradient(120deg, #e67e38, #f26a48); box-shadow: 0 10px 26px rgba(242, 122, 79, .36); }
.button.soft { background: linear-gradient(120deg, #fff3e8, #ffe9d6); }
.table-action { font-size: 12px; padding: 4px 8px; border-radius: 7px; background: var(--blue-soft); color: #2b63a8; }
.table-action.danger { background: var(--red-soft); color: #cf4d4d; }

/* ---------- 徽章：胶囊化 ---------- */
.badge { border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.row-actions { display: flex; gap: 6px; }

/* ---------- 导航/分段控件 ---------- */
.segmented button { border-radius: 9px; }
.summary-strip > div { border-radius: 14px; background: linear-gradient(180deg, #ffffff, #fbfcfe); box-shadow: var(--shadow-soft); }
.summary-strip > div b { font-variant-numeric: tabular-nums; }

/* ---------- 空状态 & 弹窗 ---------- */
.empty-state strong { font-size: 15px; color: var(--ink-strong); }
.modal-card { border-radius: 20px; box-shadow: 0 24px 60px rgba(10, 20, 40, .28); }
.modal-card header { border-bottom: 1px solid var(--line); }

/* ---------- 进度条 & 资产卡 ---------- */
progress { border-radius: 999px; overflow: hidden; height: 7px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #f28a43, #ff7a59); border-radius: 999px; }
.asset-card, .board-card, .post-card { border-radius: 16px; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease; }
.asset-card:hover, .board-card:hover, .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.board-icon { border-radius: 13px; background: linear-gradient(135deg, #f28a43, #ffb37a); box-shadow: 0 6px 14px rgba(242, 138, 67, .3); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #ccd3de; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #aab4c4; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 考勤/论坛细节 ---------- */
.owner i { border-radius: 9px; background: linear-gradient(135deg, #3478d4, #5c9ae8); }
.topic-chip { border-radius: 999px; }
.task-item { border-radius: 12px; transition: background .15s; }
.task-item:hover { background: #fff6ee; }
.insight-box { border-left: 3px solid var(--accent); border-radius: 10px; background: linear-gradient(90deg, var(--accent-soft), transparent); }
.warning-box { border-radius: 12px; border-color: #f3d9b8; background: #fffaf2; }
.channel-row, .bar-row { border-radius: 10px; }

/* ---------- 响应式微调 ---------- */
@media (max-width: 900px) {
  .page-head h1 { font-size: 22px; }
  .kpi-value { font-size: 23px; }
}

/* ---------- 产品图片 ---------- */
.product-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: #f7f8fb; flex-shrink: 0; }
.product-thumb-empty { display: grid; place-items: center; color: #c3cad6; font-size: 16px; }
.product-cell { display: flex; align-items: center; gap: 12px; }
.product-cell > div { min-width: 0; }
.board-thumb { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; flex-shrink: 0; box-shadow: 0 3px 10px rgba(20, 30, 50, .12); }
.board-head { align-items: center; }
.board-icon { flex-shrink: 0; }

/* ---------- 可点击面包屑导航 ---------- */
.crumb-nav { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }
.crumb-item { font-size: 12.5px; line-height: 1; }
.crumb-item.current { color: #a6b0bf; font-weight: 600; letter-spacing: .01em; }
.crumb-item.link { background: none; border: none; padding: 4px 8px; border-radius: 7px; cursor: pointer; color: #52627d; font-weight: 600; transition: all .15s ease; }
.crumb-item.link:hover { color: #f28a43; background: rgba(242, 138, 67, .10); }
.crumb-item.link:active { transform: scale(.96); }
.crumb-sep { color: #ccd3de; font-style: normal; font-weight: 300; }
.crumb-nav + .eyebrow { margin-top: 2px; }

/* ---------- 成本核算:多行计算器 ---------- */
.cost-rows-wrap { padding: 14px 16px; }
.cost-rows-head { display: grid; grid-template-columns: 130px 1fr 100px 90px 78px 96px 32px; gap: 8px; padding: 0 4px 8px; color: #8a93a6; font-size: 12px; font-weight: 600; }
.cost-row { display: grid; grid-template-columns: 130px 1fr 100px 90px 78px 96px 32px; gap: 8px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line, #eef1f5); }
.cost-row:first-of-type { border-top: none; }
.cost-field { min-width: 0; padding: 8px 10px; border: 1px solid var(--border, #e6eaf0); border-radius: 9px; font-size: 13px; background: #fff; color: #1d2b4a; }
.cost-field:focus { outline: none; border-color: #f28a43; box-shadow: 0 0 0 3px rgba(242, 138, 67, .12); }
.cost-subtotal { font-weight: 700; font-size: 13.5px; color: #1d2b4a; text-align: right; font-variant-numeric: tabular-nums; }
.cost-del { width: 30px; height: 30px; border: none; border-radius: 8px; background: var(--red-soft, #fdeeee); color: #cf4d4d; cursor: pointer; font-size: 13px; transition: all .15s; }
.cost-del:hover { background: #f8d7d7; }
.cost-total-bar { display: flex; gap: 16px; margin: 4px 16px 16px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(120deg, #fff7ef, #fff); border: 1px solid #f5e3cf; }
.cost-total-bar > div { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.cost-total-bar span { color: #8a93a6; font-size: 12.5px; }
.cost-total-bar b { font-size: 20px; font-weight: 800; color: #c0631d; font-variant-numeric: tabular-nums; }
.cost-total-bar > div:nth-child(2) b { color: #1d2b4a; font-size: 16px; }
.cost-total-bar > div:nth-child(3) b { color: #1d2b4a; font-size: 16px; }
@media (max-width: 1100px) {
  .cost-row, .cost-rows-head { grid-template-columns: 110px 1fr 84px 80px 66px 84px 28px; }
}

/* ---------- 商品图片上传 ---------- */
.img-pick { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.img-pick-preview { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line, #eef1f5); background: #f7f8fb; }
.img-pick-input { flex: 1; padding: 10px; border: 1.5px dashed #d5dbe5; border-radius: 12px; font-size: 13px; color: #5b6b85; background: #fafbfd; cursor: pointer; }
.img-pick-input:hover { border-color: #f28a43; background: #fff8f2; }

/* ---------- 订单批次管理 ---------- */
.batch-grid { display: grid; gap: 12px; max-height: 64vh; overflow-y: auto; padding: 4px 2px; }
.batch-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line, #e6eaf0); border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(20,30,55,.04); }
.batch-card.highlight { border-color: #f28a43; background: linear-gradient(180deg, #fff8f2, #ffffff); box-shadow: 0 4px 14px rgba(242,138,67,.16); }
.batch-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.batch-card header > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.batch-card header b { font-size: 14px; color: #1d2b4a; }
.batch-card header .batch-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.batch-card .subtle { color: #6c7689; font-size: 12px; }
.batch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px 16px; margin: 0; }
.batch-stats > div { display: flex; flex-direction: column; gap: 2px; }
.batch-stats dt { font-size: 11px; color: #8c95a7; }
.batch-stats dd { margin: 0; font-weight: 700; font-size: 14px; color: #1d2b4a; }
.batch-tag { display: inline-block; max-width: 130px; padding: 2px 8px; border: 1px solid var(--line, #e6eaf0); border-radius: 99px; font-size: 11px; color: #5b6b85; background: #f5f7fa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.batch-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 10px 14px; border: 1px dashed #f28a43; border-radius: 10px; background: #fff8f2; color: #6d4319; font-size: 13px; }
.batch-banner > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.batch-banner .subtle { color: #a07a52; }
.batch-banner .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.batch-unbatched { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; border: 1px solid #f1c0b0; border-left: 4px solid var(--red, #e3503a); border-radius: 12px; background: #fff6f4; }
.batch-unbatched > div { display: flex; flex-direction: column; gap: 3px; }
.batch-unbatched b { font-size: 15px; color: #b3301c; }
.batch-unbatched .subtle { color: #b9776a; font-size: 12.5px; margin: 0; }
.batch-unbatched .button.danger { white-space: nowrap; }

/* ===== 经营算账批次详情：经营指标卡（对齐旧版"投产比/保本线"思维） ===== */
.acc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 10px; }
.acc-metrics .mini-card { position: relative; padding: 12px 14px; border: 1px solid var(--line, #e6eaf0); border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(20,30,60,.04); }
.acc-metrics .mini-card.hl { background: linear-gradient(180deg, #f3f8ff, #ffffff); border-color: #bcd6ff; }
.acc-metrics .mc-label { font-size: 12px; color: #6c7689; display: flex; flex-direction: column; gap: 1px; }
.acc-metrics .mc-label small { font-size: 10px; color: #9aa3b4; font-weight: 400; }
.acc-metrics .mc-val { margin-top: 6px; font-size: 20px; font-weight: 800; color: #1d2b4a; letter-spacing: -.3px; }
.acc-metrics .mc-val.positive { color: #1f9d5b; }
.acc-metrics .mc-val.negative { color: #e3503a; }
.acc-metrics .mc-edit { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line, #e6eaf0); background: #f5f7fa; color: #6c7689; font-size: 11px; line-height: 1; padding: 2px 7px; border-radius: 99px; cursor: pointer; }
.acc-metrics .mc-edit:hover { background: #eef2f7; color: #1d2b4a; }
.acc-formula { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; background: #f6f9ff; border: 1px solid #e3ecfb; color: #44546e; font-size: 12.5px; }
.acc-formula b { color: #1d2b4a; }

/* ===== 订单利润列表：品牌/快递费/备注 + 行内编辑 ===== */
.data-table th .col-hint { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 400; color: #9aa3b4; background: #eef2f7; border-radius: 99px; padding: 0 6px; }
td.inline-edit { cursor: pointer; position: relative; transition: background .12s; }
td.inline-edit:hover { background: #fff7e6; box-shadow: inset 0 0 0 1px #ffd591; }
td.inline-edit .inline-input { width: 72px; padding: 3px 6px; border: 1px solid #3b6cff; border-radius: 6px; font-size: 13px; text-align: right; }
td.order-remark { max-width: 180px; color: #54607a; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 经营算账明细：复选框/品牌行内/成本行内/批量栏/汇总 ===== */
.acc-check-col { width: 30px; text-align: center; }
.acc-brand-inline { max-width: 84px; padding: 3px 4px; border: 1px solid #e3e8f0; border-radius: 6px; font-size: 12px; background: white; }
.acc-cost-inline { width: 80px; padding: 3px 6px; border: 1px solid #3b6cff; border-radius: 6px; font-size: 13px; text-align: right; }
.acc-cost-inline.negative { border-color: #ff7875; background: #fff1f0; }
.acc-express-inline { width: 80px; border-color: #fa8c16 !important; background: #fffaf0; }
.acc-batch-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; background: #f6f9ff; border: 1px solid #e3ecff; border-radius: 10px; margin-top: 10px; }
.acc-batch-hint { font-size: 12px; color: #6b7689; }
.select.small { padding: 4px 8px; font-size: 12px; border-radius: 7px; border: 1px solid #e3e8f0; background: white; }
.button.small, .button.ghost.small, .button.primary.small { padding: 5px 10px; font-size: 12px; }
.button.tiny { padding: 3px 8px; font-size: 11px; border-radius: 6px; }

/* ===== 订单状态诊断面板 =====
   平台改了导出措辞时，状态匹配不上的订单会被静默判成「忽略」，
   净营业额归零却看不出原因。这个面板把没认出来的状态原样列出来。 */
.acc-status-diag { border-color: #ffd571; background: #fffdf6; margin-top: 10px; }
.acc-status-diag .panel-head p { font-size: 12px; color: #6b7689; margin: 4px 0 0; }
.acc-status-diag .panel-head p b.negative { color: #ff5757; }
.acc-diag-tip { font-size: 12px; color: #6b7689; margin: 8px 0 6px; }
.acc-diag-table { font-size: 12px; }
.acc-diag-table td { vertical-align: middle; padding: 7px 10px; }
.acc-diag-table td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: #1d2b4a; }
.acc-diag-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: #ff5757; }
.acc-diag-table td.acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.acc-diag-table .tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eaf3ff; color: #3b6cff; font-size: 11px; font-weight: 600; }

/* ===== 经营算账顶部：旧版 grid 卡片 + 可编辑费用 + 旧版筛选 ===== */
.acc-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.acc-stat { background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; padding: 10px 12px; }
.acc-stat .t { font-size: 11px; color: #6b7689; margin-bottom: 4px; }
.acc-stat .t small { display: block; color: #9aa3b4; font-size: 10px; font-weight: 400; }
.acc-stat .v { font-size: 17px; font-weight: 700; color: #1d2b4a; line-height: 1.2; }
.acc-stat .v.big { font-size: 21px; }
.acc-stat .v.name { font-size: 14px; font-weight: 600; }
.acc-stat .v.blue { color: #3b6cff; }
.acc-stat .s { font-size: 10px; color: #9aa3b4; margin-top: 3px; }
.acc-stat .s b { color: #929aa8; }
.acc-stat .negative { color: #ff5757; }
.acc-stat .positive { color: #1a9b6c; }
.acc-stat.warn { background: #fff8e6; border-color: #ffd571; }
.acc-stat.rose { background: #fff1f0; border-color: #ffb3ae; }

/* ===== 批次成本规则面板（按店铺批次配置折扣/快递价） ===== */
.batch-rules-card { margin: 12px 0; border: 1px solid #d9e4fb; box-shadow: 0 2px 10px rgba(40, 90, 200, .06); }
.batch-rules-card .panel-head h2 { font-size: 15px; }
.batch-rules-body { padding: 4px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.batch-rules-block h3 { font-size: 13px; margin: 12px 0 4px; color: #2a3550; }
.batch-rules-note { font-size: 11.5px; color: #8893a6; margin-bottom: 8px; }
.batch-rules-table { width: 100%; }
.batch-rules-table th { font-size: 11px; color: #7a8597; font-weight: 600; text-align: left; padding: 6px 8px; }
.batch-rules-table td { padding: 4px 8px; vertical-align: middle; }
.batch-rules-table .input { width: 110px; padding: 5px 8px; font-size: 13px; border: 1px solid #d7deea; border-radius: 7px; }
.batch-rules-table .input:focus { border-color: #3b6cff; outline: none; }
.batch-rules-table .s { font-size: 11px; }
.tag { display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: #eef1f6; color: #8790a2; }
.tag.tag-batch { background: #e7f0ff; color: #2f6bff; }
.tag.tag-global { background: #eafaf1; color: #1a9b6c; }
.batch-rules-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px dashed #e3e8f0; }
.batch-rules-warn { font-size: 11.5px; color: #c08a2b; }
@media (max-width: 720px) {
  .batch-rules-body { grid-template-columns: 1fr; gap: 8px; }
}
.acc-stat.accent { background: #ecfdf5; border-color: #6ee7b7; }
.acc-stat.blue { background: #eff5ff; border-color: #c0d3ff; }
.acc-stat.sky { background: #f0f9ff; border-color: #bae6fd; }
.acc-stat.good { background: #f0fdf4; border-color: #86efac; }
.acc-stat.bad { background: #fef2f2; border-color: #fca5a5; }
.acc-stat .negative.b { color: #ff5757; font-weight: 700; }
.acc-stat .positive.b { color: #1a9b6c; font-weight: 700; }
/* 导入时间：只读卡（无输入框、无保存按钮），视觉上要和可编辑卡区分开 */
.acc-stat.readonly { background: #f7f8fb; border-style: dashed; }
.acc-stat.readonly .v.time { font-size: 14px; font-weight: 600; color: #4b5768; font-variant-numeric: tabular-nums; }
.acc-import-time { display: inline-block; font-size: 11px; color: #8a95a5; }
.acc-import-time { margin-top: 3px; font-variant-numeric: tabular-nums; }
.acc-inline-form { display: inline-flex; align-items: center; gap: 3px; }
.acc-inline-form .yuan { color: #6b7689; font-size: 13px; }
.acc-inline-input { width: 76px; padding: 4px 6px; border: 1px solid #3b6cff; border-radius: 6px; font-size: 13px; text-align: right; background: white; }
.acc-inline-save { background: #3b6cff; color: white; border: 0; border-radius: 5px; padding: 4px 9px; font-size: 12px; cursor: pointer; }
.acc-inline-save:hover { background: #2a5be0; }
/* 账期（年月）下拉：跟金额输入同一套 inline 编辑观感，年份宽一点放得下 4 位数 */
.acc-period-form { gap: 2px; }
.acc-period-select { padding: 4px 4px; border: 1px solid #3b6cff; border-radius: 6px; font-size: 13px; background: white; color: #1d2b4a; cursor: pointer; }
.acc-period-select[name="year"] { width: 68px; }
.acc-period-select[name="month"] { width: 48px; }
.acc-period-unit { color: #6b7689; font-size: 12px; }
.acc-stat.period .acc-period-form { margin: 2px 0; }
/* 账单名称 / 店铺名称：比金额输入宽，装得下中文长名 */
.acc-stat.name .acc-name-form { width: 100%; }
.acc-name-input { flex: 1; min-width: 0; width: 100%; padding: 4px 7px; border: 1px solid #3b6cff; border-radius: 6px; font-size: 13px; background: white; color: #1d2b4a; }
.acc-name-input::placeholder { color: #a9b2c3; }
.acc-filter-form { padding: 12px 14px !important; }
.acc-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.acc-filter-row:last-child { margin-bottom: 0; }
.acc-filter-label { font-size: 12px; color: #6b7689; margin-right: 4px; }
.acc-chk { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 7px; background: #f5f7fa; border: 1px solid #e3e8f0; font-size: 12px; color: #1d2b4a; cursor: pointer; }
.acc-chk:hover { background: #ebeef3; }
.acc-chk input { margin: 0; }
.acc-filter-sep { color: #c8cdd8; margin: 0 6px; }

/* ================= 经营建议 / AI 成本健康分析 ================= */
.suggest-divider { height: 1px; background: #eef1f6; margin: 18px 0 14px; }
.suggest-block { display: block; }
.suggest-head { padding: 2px 0 10px; border: 0; }
.suggest-head h2 { font-size: 15px; }
.suggest-shops { display: flex; flex-direction: column; gap: 10px; }
.shop-risk { padding: 10px 12px; border: 1px solid #eef1f6; border-radius: 10px; background: #fafbfd; }
.shop-risk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-risk-head b { font-size: 13px; color: #1d2b4a; }
.shop-margin { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.shop-margin.pos { color: #2f9e63; background: #e8f7ef; }
.shop-margin.neg { color: #e5484d; background: #fdecec; }
.shop-risk-sub { font-size: 11px; color: #8a93a6; margin: 4px 0 8px; line-height: 1.5; }
.risk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.risk-chip { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; border: 1px solid transparent; }
.risk-chip.high { color: #e5484d; background: #fdecec; border-color: #f7c5c7; }
.risk-chip.mid { color: #d98a00; background: #fff6e6; border-color: #f6e0b5; }
.risk-chip.low { color: #6b7689; background: #f1f3f7; border-color: #e3e8f0; }
.risk-chip.ok { color: #2f9e63; background: #e8f7ef; border-color: #c7ebd5; }
.suggest-actions { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.suggest-hint { font-size: 11px; color: #aab2c2; }
.ai-out { margin-top: 4px; }
.ai-loading { font-size: 13px; color: #6b7689; padding: 12px 0; }
.ai-note { font-size: 12px; color: #d98a00; background: #fff6e6; border: 1px solid #f6e0b5; border-radius: 8px; padding: 9px 11px; margin-top: 10px; line-height: 1.6; }
.ai-md { font-size: 13px; line-height: 1.75; color: #2a3245; }
.ai-md h2 { font-size: 15px; margin: 14px 0 6px; color: #1d2b4a; }
.ai-md h3 { font-size: 14px; margin: 12px 0 5px; color: #1d2b4a; }
.ai-md h4 { font-size: 13px; margin: 10px 0 4px; color: #1d2b4a; }
.ai-md p { margin: 6px 0; }
.ai-md ul { margin: 6px 0; padding-left: 20px; }
.ai-md li { margin: 4px 0; }
.ai-md b { color: #15324f; }
.warn-text { color: #b07a00; }
/* 盈亏告警卡：亏损商品 / 低利润率 / 型号集中度 */
.pnl-alert-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #ffd6d6; border-radius: 10px; background: #fff5f5; font-size: 13px; color: #2a3245; }
.pnl-alert-head .pnl-sep { width: 4px; height: 4px; border-radius: 50%; background: #c3ccdb; }
.pnl-thr { display: inline-flex; align-items: center; gap: 4px; color: #6b7689; font-size: 12px; }
.pnl-thr-input { width: 56px; padding: 3px 6px; border: 1px solid #e3c9c9; border-radius: 6px; font-size: 12px; text-align: right; }
.pnl-thr-btn { border: 1px solid #d8a0a0; background: #fff; color: #b42323; border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.pnl-thr-btn:hover { background: #ffe9e9; }
.pnl-alert { margin-top: 10px; border: 1px solid #ffd6d6; border-radius: 10px; background: #fffafa; padding: 10px 12px; }
.pnl-alert-low { border-color: #ffd571; background: #fffdf6; }
.pnl-alert-model { border-color: #c9d6ff; background: #f8faff; }
.pnl-alert-title { font-size: 13px; font-weight: 700; color: #b42323; margin-bottom: 8px; }
.pnl-alert-low .pnl-alert-title { color: #9a6b00; }
.pnl-alert-model .pnl-alert-title { color: #2b4bb4; }
.pnl-table { font-size: 12px; }
.pnl-table th, .pnl-table td { padding: 6px 8px; }
.pnl-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pnl-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pnl-gid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; background: #eef2f9; border-radius: 4px; padding: 1px 5px; color: #4a5b78; }
.pnl-model { font-size: 11px; color: #6b7689; background: #f0f2f6; border-radius: 999px; padding: 1px 7px; }
.pnl-alert .tag { display: inline-block; margin: 3px 6px 0 0; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pnl-alert .tag-red { background: #ffe3e3; color: #c22a2a; }
.pnl-alert .tag-warn { background: #fff0cc; color: #8a6100; }
.pnl-md-fold { margin-top: 12px; }
.pnl-md-fold summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #1d2b4a; padding: 6px 0; user-select: none; }
.rule-suggest-list { display: flex; flex-direction: column; gap: 10px; }
.rule-suggest { border: 1px solid #eef1f6; border-left-width: 3px; border-radius: 10px; padding: 10px 12px; background: #fff; }
.rule-suggest.high { border-left-color: #e5484d; }
.rule-suggest.mid { border-left-color: #f0a020; }
.rule-suggest.low { border-left-color: #4a90d9; }
.shop-action-title { font-size: 13px; font-weight: 700; color: #1d2b4a; margin: 6px 0 10px; }
.shop-action-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.shop-action-card { border: 1px solid #e6ecf5; border-left-width: 3px; border-radius: 10px; padding: 11px 13px; background: #fff; }
.shop-action-card.high { border-left-color: #e5484d; }
.shop-action-card.mid { border-left-color: #f0a020; }
.shop-action-card.low { border-left-color: #2f9e6e; }
.sac-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sac-head b { font-size: 14px; color: #1d2b4a; }
.sac-head span { font-size: 12px; color: #6b7689; }
.sac-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.6; color: #2a3245; padding: 3px 0; }
.sac-tag { flex: 0 0 auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; color: #fff; }
.sac-tag.good { background: #2f9e6e; }
.sac-tag.bad { background: #e5484d; }
.sac-tag.mid { background: #f0a020; }
.sac-tag.low { background: #2f9e6e; }
.sac-tag.high { background: #e5484d; }
.sac-tag.muted { background: #9aa4b5; }
.rs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rs-head b { font-size: 13px; color: #1d2b4a; }
.rs-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; color: #fff; }
.rs-badge.high { background: #e5484d; }
.rs-badge.mid { background: #f0a020; }
.rs-badge.low { background: #4a90d9; }
.rs-title { font-size: 13px; font-weight: 600; color: #1d2b4a; margin-bottom: 3px; }
.rs-detail { font-size: 12px; color: #6b7689; line-height: 1.6; }

/* ===== 经营总览卡片 ===== */
.overview-card { margin-bottom: 16px; }
.overview-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 4px 2px 12px; }
.ov-kpi { background: #f7f9fc; border: 1px solid #eef1f6; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ov-kpi span { font-size: 12px; color: #6b7689; }
.ov-kpi b { font-size: 19px; font-weight: 700; color: #1d2b4a; }
.brand-goods { border-top: 1px dashed #e6eaf0; padding-top: 12px; }
.brand-goods h3 { font-size: 14px; color: #1d2b4a; margin: 0 0 10px; }
.brand-goods .data-table th, .brand-goods .data-table td { padding: 8px 10px; font-size: 13px; }
.tax-sync-pending { font-size: 12px; color: #d98a00; }

/* ===== 经营风险雷达 / 销售分析看板 / 待办动态 (v0.7.23) ===== */
.radar-wrap { width: 100%; height: 240px; }
.radar-wrap.tall { height: 300px; }
.radar-wrap canvas { width: 100%; height: 100%; display: block; }
.risk-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rl { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: #f1f3f7; color: #6b7689; }
.rl.good { color: #2f9e63; background: #e8f7ef; }
.rl.warn { color: #d98a00; background: #fff6e6; }
.rl.bad { color: #e5484d; background: #fdecec; }
.radar-foot { margin-top: 8px; font-size: 11px; color: #8a93a6; display: flex; align-items: center; gap: 6px; }
.radar-foot.subtle { color: #8a93a6; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot.overall { background: #f28a43; }
.legend-dot.shop { background: #7459c7; }
.panel-head-actions { display: flex; align-items: center; gap: 8px; }
.risk-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eef1f6; display: grid; gap: 9px; }
.risk-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eff1f4; text-decoration: none; color: inherit; }
.risk-row:last-child { border-bottom: 0; }
.risk-row.clear { opacity: .55; }
.risk-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.risk-row > div b { display: block; font-size: 13px; color: #1d2b4a; }
.risk-row > div span { font-size: 11px; color: #8a93a6; }
.risk-row strong { font-size: 15px; color: #1d2b4a; }
.task-scope { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: #f28a43; border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.task-level { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.task-level.high { color: #e5484d; background: #fdecec; }
.task-level.mid { color: #d98a00; background: #fff6e6; }
.task-dot.high { background: #e5484d; }
.task-dot.mid { background: #f0a020; }
.task-dot.low { background: #4a90d9; }
.store-line { display: grid; grid-template-columns: minmax(0,1fr) 90px auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eff1f4; }
.store-line:last-child { border-bottom: 0; }
.sales-rank .store-line { width: 100%; text-align: left; background: #fff; border: 1px solid #eef1f6; border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sales-rank .store-line:hover { border-color: #f3c9a8; }
.sales-rank .store-line.focused { border-color: #7459c7; box-shadow: 0 0 0 2px rgba(116,89,199,.15); }
.promo-advice { font-size: 12px; line-height: 1.5; max-width: 380px; }
.promo-advice.high { color: #e5484d; }
.promo-advice.mid { color: #b9791a; }
.promo-advice.low { color: #2f9e63; }
.axis-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.axis-toggle { display: flex; align-items: center; gap: 8px; border: 1px solid #eef1f6; border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.axis-toggle input { width: 16px; height: 16px; }
.axis-toggle span { display: flex; flex-direction: column; }
.axis-toggle b { font-size: 13px; }
.axis-toggle small { font-size: 11px; color: #8a93a6; }
@media (max-width: 640px) { .axis-toggles { grid-template-columns: 1fr; } .promo-advice { max-width: none; } }

/* ===== v0.7.24：成本告警 / 订单占比 / 复盘 / 性能 ===== */
.cost-warn{display:flex;gap:10px;align-items:flex-start;background:#fff4f4;border:1px solid #f3c2c2;color:#b42323;border-radius:11px;padding:10px 14px;margin-bottom:12px}
.cost-warn-icon{font-size:18px;line-height:1.4}
.cost-warn b{display:block;margin-bottom:2px}
.cost-warn span{font-size:12.5px;color:#a23a3a}
/* v0.7.32：整行可点——以前只是静态提示，点不动，用户得自己翻是哪个账单缺成本 */
.cost-warn-btn{width:100%;text-align:left;font:inherit;cursor:pointer;align-items:center;transition:background .15s,border-color .15s,transform .1s}
.cost-warn-btn:hover{background:#ffecec;border-color:#e79c9c}
.cost-warn-btn:active{transform:translateY(1px)}
.cost-warn-btn:focus-visible{outline:2px solid #b42323;outline-offset:2px}
.cost-warn-btn>div{flex:1;min-width:0}
.cost-warn-go{flex:none!important;font-size:12.5px;font-weight:600;color:#b42323;white-space:nowrap;padding-left:8px}

/* ===== v0.7.32：经营算账分布板块折叠（默认收起） ===== */
.acc-block{border:1px solid #e6eaf0;border-radius:10px;margin-bottom:10px;background:#fff;overflow:hidden}
.acc-block-head{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;background:#fafbfd;border:0;padding:10px 13px;cursor:pointer;color:#1d2b4a;transition:background .15s}
.acc-block-head:hover{background:#f2f5fa}
.acc-block-head:focus-visible{outline:2px solid #f28a43;outline-offset:-2px}
.acc-block-head b{font-size:13.5px;flex:none}
.acc-block-arrow{display:inline-block;font-size:11px;color:#7b8798;transition:transform .18s;flex:none}
.acc-block.open .acc-block-arrow{transform:rotate(90deg)}
.acc-block-note{font-size:12px;color:#7b8798;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc-block-hint{font-size:12px;color:#f28a43;font-weight:600;flex:none}
.acc-block-warn{flex:none;font-size:12px;font-weight:600;color:#b42323;background:#fff1f1;border:1px solid #f3c2c2;border-radius:20px;padding:1px 8px}
.acc-block-body{padding:4px 10px 10px}
.acc-block-body[hidden]{display:none}

.order-profile{padding:6px 4px}
.op-segs{display:flex;flex-direction:column;gap:10px}
.op-row .op-head{display:flex;align-items:baseline;gap:8px;font-size:13px}
.op-row .op-head b{font-size:13px}
.op-row .op-head span{color:#8a93a3;font-size:12px}
.op-row .op-head em{margin-left:auto;font-style:normal;font-weight:700}
.op-bar{height:10px;border-radius:6px;background:#eef1f6;overflow:hidden;margin-top:5px}
.op-bar i{display:block;height:100%;border-radius:6px}
.op-single .op-bar i{background:#3478d4}
.op-two .op-bar i{background:#2f9e63}
.op-multi .op-bar i{background:#f28a43}
.op-note{margin:12px 0 4px;font-size:12.5px;color:#5b6679;background:#f7f9fc;border-left:3px solid #3478d4;padding:8px 10px;border-radius:0 8px 8px 0}
.op-shop{margin-top:8px}
.op-shop summary{cursor:pointer;color:#5b6679;font-size:12.5px;padding:4px 0}

/* 长页面离屏面板延迟渲染，降低滚动合成开销（防卡顿）。带 contain-intrinsic-size 防滚动跳动 */
.dashboard-grid>.card,.bottom-grid>.card,section.card.table-card{content-visibility:auto;contain-intrinsic-size:auto 420px}

/* ================= v0.7.30 移动端适配修复 ================= */
/* ================= v0.7.30 移动端适配修复 ================= */

/* 1) 900px 断点：1fr 改为 minmax(0, 1fr)
      1fr 等价 minmax(auto, 1fr)，轨道最小尺寸取内容的 min-content，
      会被「风险清单」等卡片中无法收缩的内容顶宽（经营总览移动端曾撑到 463px / 视口 390px）。 */
@media (max-width: 900px) {
  .dashboard-grid, .bottom-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 2) 栅格子项允许收缩到 0，避免 min-width:auto 撑破布局 */
.dashboard-grid > *, .bottom-grid > *, .kpi-grid > *,
.card, .panel, .table-card { min-width: 0; }
.risk-row > div { min-width: 0; }
.risk-row > div > b, .risk-row > div > span { overflow-wrap: anywhere; }

/* 3) 物流查询「最近查询」：快递单号较长，允许换行
      原为 display:flex 无换行，5 个单号横排把页面撑到 642px / 视口 390px。 */
.quick-tags { flex-wrap: wrap; row-gap: 6px; }
.quick-tags button { max-width: 100%; overflow-wrap: anywhere; }

/* 4) 分段选择器选项多时（财务页「全年 + 12 个月」共 13 个，宽 734px）在窄屏换行，
      否则会被卡片的 overflow-x:hidden 直接裁掉，8~12 月在手机上完全点不到。 */
@media (max-width: 640px) {
  .segmented { flex-wrap: wrap; max-width: 100%; }
}

/* 5) 成本测算明细行是 7 列固定栅格（最小约 508px），窄屏放进横向滚动容器，
      否则最右侧的删除 ✕ 会被卡片裁掉且点不到。桌面端内容够宽时不会出现滚动条。 */
.cost-rows-wrap { overflow-x: auto; }
.cost-row, .cost-rows-head { min-width: 540px; }

/* ---------- 快速新建菜单（v0.7.30） ---------- */
.qc-menu { display: grid; gap: 8px; }
.qc-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  text-align: left; transition: border-color .15s, background .15s, transform .1s; }
.qc-item:hover { border-color: #f2b98a; background: #fffaf5; }
.qc-item:active { transform: translateY(1px); }
.qc-item.qc-locked { opacity: .5; cursor: not-allowed; }
.qc-item.qc-locked:hover { border-color: var(--line); background: #fff; }
.qc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); font-size: 17px; flex: none; }
.qc-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.qc-text b { font-size: 13.5px; color: var(--ink-strong, #1d2b4a); }
.qc-text span { font-size: 11.5px; color: var(--muted); }
.qc-arrow { color: #b6bdc9; font-size: 18px; flex: none; }

/* === 整合蓝图：运营中心 + PLAN 4 章 RPA === */
.ops-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.ops-group-card { padding: 14px 16px; }
.ops-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ops-group-head h3 { font-size: 14px; margin: 0; }
.ops-group-shops { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; }
.ops-shop-tag { display: inline-block; padding: 2px 8px; background: #eef4ff; color: #1d4ed8; border-radius: 999px; font-size: 12px; cursor: pointer; }
.ops-shop-tag.more { background: #f0f0f0; color: #666; cursor: default; }
.ops-manual-form form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }
.ops-manual-form label { font-size: 12px; color: #475569; display: flex; flex-direction: column; gap: 4px; }
.ops-manual-form .input { padding: 6px 8px; }
.ops-manual-form button { padding: 6px 14px; }
.placeholder-card { padding: 20px 22px; }
.placeholder-card h2 { font-size: 15px; margin-bottom: 8px; }
.placeholder-card h3 { font-size: 13px; margin: 14px 0 6px; }
.placeholder-card ol { padding-left: 20px; color: #475569; line-height: 1.8; }
.review-text { max-width: 220px; color: #4a5568; font-size: 12px; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.ops-group-card p { font-size: 12px; }
.empty-state { padding: 30px 20px; text-align: center; color: #b45309; background: #fff7ed; border: 1px dashed #f6c089; border-radius: 10px; margin: 10px 0; }

/* ===== v0.7.39 生日提醒 ===== */
.birthday-banner { display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: linear-gradient(90deg, #fff4e3, #ffe9f0 60%, #f3ecff); border-bottom: 1px solid #f3d9b8; color: #7a4a12; font-size: 14px; }
.birthday-banner .bb-icon { font-size: 18px; }
.birthday-banner .bb-text b { color: #d4540a; }
.birthday-banner .bb-close { margin-left: auto; background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: #a0703a; padding: 2px 6px; border-radius: 6px; }
.birthday-banner .bb-close:hover { background: rgba(160, 112, 58, .12); }
.birthday-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(15, 20, 35, .72); display: flex; align-items: center; justify-content: center; animation: htFadeIn .25s ease; }
.birthday-card { background: linear-gradient(160deg, #fffdf8, #fff3e4); border-radius: 20px; padding: 44px 52px; text-align: center; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); animation: htPopIn .35s cubic-bezier(.2, 1.4, .4, 1); max-width: 420px; margin: 20px; }
.birthday-card .bc-cake { font-size: 52px; margin-bottom: 12px; letter-spacing: 6px; }
.birthday-card h2 { font-size: 26px; color: #d4540a; margin: 0 0 10px; }
.birthday-card p { color: #8a6a4a; margin: 0 0 22px; font-size: 14px; }
@keyframes htFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes htPopIn { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== v0.7.39 拼多多官方 API 状态卡 ===== */
.pdd-api-card { margin-bottom: 4px; }
.pdd-api-card code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.pdd-hint { padding: 14px 16px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; color: #475569; font-size: 13px; line-height: 1.7; }
.pdd-store-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px dashed #e2e8f0; flex-wrap: wrap; font-size: 13px; }
.pdd-store-row:first-of-type { border-top: none; }
.pdd-store-row .pdd-mall { font-size: 14px; color: #1e293b; }
.pdd-store-row .select { max-width: 220px; }
.pdd-store-row .danger { color: #dc2626; }
.pdd-error { margin: 4px 0 8px; padding: 8px 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: #b91c1c; font-size: 12px; }
.warn-text { color: #b45309; }

/* ================= 货盘大类分组（v0.7.41） ================= */
.board-group { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.board-group-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; background: linear-gradient(135deg, #fbfcff, #f6f8fc); border-bottom: 1px solid var(--line); }
.board-group.closed .board-group-head { border-bottom-color: transparent; }
.board-group-head:hover { background: #f2f6fd; }
.board-group-arrow { font-size: 18px; color: #7b8aa0; width: 18px; text-align: center; flex-shrink: 0; }
.board-group-title { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
.board-group-title h2 { margin: 0; font-size: 16px; }
.board-group-count { font-size: 12px; color: #8a95a5; }
.board-group-meta { display: flex; align-items: baseline; gap: 4px; color: #55627a; }
.board-group-meta b { font-size: 15px; }
.board-group-meta span { font-size: 12px; color: #8a95a5; }
.board-group .board-grid { padding: 14px; }
.board-group.closed .board-grid { display: none; }

/* ================= 全员公告（v0.7.44） ================= */
/* 列表页 */
.anno-list { display: flex; flex-direction: column; gap: 12px; }
.anno-card { padding: 16px 18px; border-left: 4px solid var(--blue); position: relative; }
.anno-card.warn { border-left-color: var(--amber); }
.anno-card.important { border-left-color: var(--red); }
.anno-card.expired { opacity: .58; background: #fafbfd; }
.anno-card.pinned { box-shadow: 0 6px 20px rgba(52, 120, 212, .1); }
.anno-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.anno-card header time { margin-left: auto; font-size: 12px; color: #8a95a5; font-variant-numeric: tabular-nums; }
.anno-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--blue-soft); color: var(--blue); }
.anno-badge.warn { background: var(--amber-soft); color: var(--amber); }
.anno-badge.important { background: var(--red-soft); color: var(--red); }
.anno-pin { font-size: 11px; color: #8a95a5; }
.anno-dot { padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; }
.anno-expired { padding: 1px 7px; border-radius: 999px; background: #eef0f4; color: #7b8aa0; font-size: 10px; font-weight: 700; }
.anno-card h3 { margin: 0 0 6px; font-size: 16px; }
.anno-body { margin: 0; color: #4b5768; font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.anno-card footer { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: #8a95a5; flex-wrap: wrap; }
.anno-actions { margin-left: auto; display: flex; gap: 8px; }

/* 进站弹窗：挂在 .main-shell 内、main 之前，覆盖整个内容区 */
.anno-popup-overlay { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-start; justify-content: center; padding: 76px 20px 20px; background: rgba(18, 27, 47, .38); backdrop-filter: blur(2px); animation: annoFadeIn .18s ease-out; }
@keyframes annoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes annoSlideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
.anno-popup { width: min(560px, 100%); background: var(--card); border-radius: 18px; border-top: 5px solid var(--blue); box-shadow: 0 24px 60px rgba(15, 25, 45, .28); padding: 20px 22px 18px; animation: annoSlideDown .22s cubic-bezier(.2, .9, .3, 1); }
.anno-popup.warn { border-top-color: var(--amber); }
.anno-popup.important { border-top-color: var(--red); }
.anno-popup header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.anno-popup-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }
.anno-popup.warn .anno-popup-badge { background: var(--amber-soft); color: var(--amber); }
.anno-popup.important .anno-popup-badge { background: var(--red-soft); color: var(--red); }
.anno-popup-more { font-size: 12px; color: #8a95a5; }
.anno-popup-close { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2f4f8; color: #55627a; font-size: 19px; line-height: 1; cursor: pointer; transition: background .15s; }
.anno-popup-close:hover { background: #e6e9ef; }
.anno-popup h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.anno-popup-body { margin: 0; color: #4b5768; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow-y: auto; }
.anno-popup footer { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.anno-popup-meta { font-size: 12px; color: #8a95a5; }
.anno-popup-btns { margin-left: auto; display: flex; gap: 8px; }

@media (max-width: 640px) {
  .anno-popup-overlay { padding: 56px 12px 12px; }
  .anno-popup { padding: 16px 16px 14px; }
  .anno-popup h3 { font-size: 17px; }
  .anno-card footer { gap: 8px; }
  .anno-actions { margin-left: 0; width: 100%; }
}

/* ================= 货盘表格导入（v0.7.45） ================= */
.import-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; padding: 12px; background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px; }
.import-map-item { display: flex; align-items: center; gap: 8px; }
.import-map-item > span { flex: 0 0 92px; font-size: 12px; color: #55627a; }
.import-map-item.required > span::after { content: " *"; color: var(--red); font-weight: 700; }
.import-map-item .select { flex: 1; min-width: 0; }
.import-preview-wrap { max-width: 100%; }
.import-preview-title { margin: 4px 0 6px; font-size: 12px; color: #8a95a5; }
.import-preview th, .import-preview td { font-size: 12px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
