/* System workspace design. Loaded after all feature styles. */
:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --surface-muted: #eef2f4;
  --text: #17252e;
  --text-soft: #344852;
  --muted: #687983;
  --muted-light: #89969d;
  --line: #dce4e7;
  --line-strong: #c8d3d8;
  --primary: #087d86;
  --primary-dark: #05636b;
  --primary-soft: #e8f5f5;
  --blue: #2b6cb0;
  --blue-soft: #edf5fc;
  --success: #167a5c;
  --success-soft: #eaf6f1;
  --warning: #a8660d;
  --warning-soft: #fff5df;
  --danger: #bd4650;
  --danger-soft: #fff0f1;
  --violet: #7355a5;
  --violet-soft: #f3eff9;
  --radius: 7px;
  --shadow: 0 1px 2px rgba(25, 43, 52, .045), 0 5px 14px rgba(25, 43, 52, .025);
  --sidebar-width: 248px;
  --topbar-height: 62px;
}

/* FINAL-SHELL-OVERRIDE */
body.app-body { background:#eef2f5 !important; color:#162b38 !important; }
.sidebar { width:232px !important; padding:0 !important; background:#102631 !important; border-right:1px solid #27434e !important; box-shadow:14px 0 34px rgba(15,34,43,.14) !important; }
.sidebar-brand { height:78px !important; margin:0 !important; padding:0 22px !important; border-bottom:1px solid rgba(226,245,246,.12) !important; }
.sidebar-brand .brand-mark { width:34px !important; height:34px !important; border-radius:10px !important; background:#5cc4b8 !important; color:#0e2d35 !important; }
.brand-copy strong { color:#f6ffff !important; } .brand-copy span { color:#91aeb6 !important; }
.sidebar-nav { padding:18px 12px 12px !important; }
.nav-module-switch { position:static !important; display:flex !important; flex-wrap:wrap !important; gap:6px !important; margin:0 0 18px !important; padding:0 0 18px !important; border-bottom:1px solid rgba(226,245,246,.12) !important; background:transparent !important; }
.nav-module-switch button { flex:1 1 calc(50% - 6px) !important; height:32px !important; min-height:32px !important; border:1px solid rgba(255,255,255,.08) !important; border-radius:6px !important; background:rgba(255,255,255,.06) !important; color:#9db6bc !important; font-size:11px !important; }
.nav-module-switch button.active { background:#2e6970 !important; border-color:#63c9bc !important; color:#fff !important; box-shadow:inset 3px 0 #63c9bc !important; }
.nav-section { padding-bottom:18px !important; } .nav-section-title { padding:0 12px 7px !important; color:#7899a2 !important; font-size:10px !important; letter-spacing:.1em !important; }
.nav-section + .nav-section .nav-section-title { padding-top:14px !important; border-top:1px solid rgba(226,245,246,.1) !important; }
.nav-item,.sidebar-nav.nav-enhanced .nav-item { height:38px !important; padding:0 11px !important; border-radius:6px !important; color:#aac0c5 !important; font-size:12px !important; }
.nav-item:hover,.sidebar-nav.nav-enhanced .nav-item:hover { background:rgba(255,255,255,.075) !important; color:#fff !important; }
.nav-item.active,.sidebar-nav.nav-enhanced .nav-item.active { background:#24505a !important; color:#fff !important; box-shadow:inset 3px 0 #65cabe !important; }
.nav-icon,.sidebar-nav.nav-enhanced .nav-icon { width:24px !important; height:24px !important; flex-basis:24px !important; border-radius:6px !important; background:rgba(255,255,255,.1) !important; color:#afd0d1 !important; }
.nav-item.active .nav-icon,.sidebar-nav.nav-enhanced .nav-item.active .nav-icon { background:#44858a !important; color:#fff !important; }
.sidebar-foot { min-height:70px !important; margin:0 !important; padding:12px 18px !important; border-top:1px solid rgba(226,245,246,.12) !important; background:#102631 !important; }
.main-area { margin-left:232px !important; background:#eef2f5 !important; }
.topbar { height:70px !important; padding:0 34px !important; border-bottom:1px solid #d8e2e7 !important; background:#fff !important; box-shadow:0 2px 12px rgba(24,48,60,.04) !important; }
.topbar-context > strong { color:#183340 !important; font-size:17px !important; }
.content-wrap { max-width:1600px !important; padding:30px 36px 52px !important; }
.page-intro,.qc-hero,.qc-page-head,.jst-page-head,.dt-head,.tm-hero,.tm-page-head,.tm-detail-head,.sops-head,.wi-head,.wb-head,.cl-head { align-items:center !important; margin-bottom:25px !important; padding:0 0 22px !important; border-bottom:1px solid #d4e0e5 !important; }
.page-intro h2,.qc-hero h2,.qc-page-head h2,.jst-page-head h2,.dt-head h2,.tm-hero h2,.tm-page-head h2,.tm-detail-head h2,.sops-head h2,.wi-head h2,.wb-title h2,.cl-head h2 { color:#132d3a !important; font-size:26px !important; font-weight:760 !important; }
.page-intro p,.qc-hero p,.qc-page-head p,.jst-page-head p,.dt-head p,.tm-hero p,.tm-page-head p,.tm-detail-head p,.sops-head p,.wi-head p,.wb-title p,.cl-head p { color:#718691 !important; font-size:13px !important; }
.card,.project-card,.qualification-card,.integration-card,.agent-card,.supplier-create-band,.supplier-section,.nmpa-create-band,.nmpa-section,.tianyancha-create-band,.tianyancha-section,.qc-panel,.jst-card,.jst-result-card,.dt-card,.tm-panel,.tm-setting-card,.sops-panel,.wb-panel,.wi-table-card,.dashboard-changelog,.cl-stat,.cl-empty { border:1px solid #dce5e9 !important; border-radius:8px !important; box-shadow:0 2px 10px rgba(28,52,64,.035) !important; }
.btn { min-height:36px !important; border-radius:6px !important; } .btn-primary { background:#167f87 !important; border-color:#167f87 !important; box-shadow:none !important; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,select { min-height:38px !important; border-radius:6px !important; border-color:#cbd8de !important; }
.table-wrap { border:1px solid #dbe5e9 !important; border-radius:7px !important; background:#fff !important; }
.workspace-table th,.qc-table th,table th { background:#f4f7f8 !important; color:#607883 !important; border-bottom-color:#d8e3e7 !important; }
@media (max-width:900px) { .sidebar { width:min(286px,88vw) !important; } .main-area { margin-left:0 !important; } .topbar { height:60px !important; padding:0 16px !important; } .content-wrap { padding:22px 16px 36px !important; } }

/* 2026 workspace visual system: quiet navy navigation, bright work area,
   stronger hierarchy and fewer competing surfaces. */
:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fa;
  --text: #172a35;
  --text-soft: #405661;
  --muted: #74858e;
  --line: #dbe4e8;
  --line-strong: #c5d2d8;
  --primary: #0c7a83;
  --primary-dark: #075d66;
  --primary-soft: #e4f3f3;
  --sidebar-width: 252px;
  --topbar-height: 64px;
  --radius: 10px;
}

body.app-body { background: #f3f6f8; }
.sidebar {
  background: #142832;
  border-right: 0;
  box-shadow: 10px 0 28px rgba(11, 31, 40, .11);
}
.sidebar-brand {
  border-bottom-color: rgba(255,255,255,.12);
}
.sidebar-brand .brand-mark { background: #3bb1a7; color: #10252d; }
.brand-copy strong { color: #f3fbfb; }
.brand-copy span { color: #9cb1b8; }
.nav-module-switch {
  border-bottom-color: rgba(255,255,255,.12);
  background: #142832;
}
.nav-module-switch button { background: rgba(255,255,255,.07); color: #a9bdc3; border-color: transparent; }
.nav-module-switch button:hover { background: rgba(255,255,255,.13); color: #fff; }
.nav-module-switch button.active { background: #24505a; border-color: #3c8790; color: #eaffff; box-shadow: inset 3px 0 #61c6bb, 0 3px 10px rgba(0,0,0,.12); }
.nav-section-title { color: #78939c; letter-spacing: .04em !important; }
.nav-item, .sidebar-nav.nav-enhanced .nav-item { color: #b4c6cb; }
.nav-item:hover, .sidebar-nav.nav-enhanced .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active, .sidebar-nav.nav-enhanced .nav-item.active { background: #24505a; color: #fff; box-shadow: inset 3px 0 #61c6bb, 0 3px 10px rgba(0,0,0,.1); }
.nav-icon, .sidebar-nav.nav-enhanced .nav-icon { background: rgba(255,255,255,.1) !important; color: #b8d0d2 !important; }
.nav-item.active .nav-icon, .sidebar-nav.nav-enhanced .nav-item.active .nav-icon { background: #3b777c !important; color: #fff !important; }
.sidebar-foot { border-top-color: rgba(255,255,255,.12); background: #142832; }
.user-chip strong { color: #e8f3f4; }
.user-chip small, .user-chip > small { color: #8ea8ae; }
.logout-link { color: #ffb0a9; }
.main-area { background: #f3f6f8; }
.topbar { height: var(--topbar-height); padding: 0 30px; background: rgba(255,255,255,.94); border-bottom-color: #dce5e8; box-shadow: 0 1px 0 rgba(25,43,52,.02); }
.topbar-context > strong { font-size: 16px; }
.content-wrap { max-width: 1600px; padding: 28px 34px 46px; }
.page-intro, .qc-hero, .qc-page-head, .jst-page-head, .dt-head, .tm-hero, .tm-page-head, .tm-detail-head, .sops-head, .wi-head, .wb-head, .cl-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom-color: #d5e0e4; }
.page-intro h2, .qc-hero h2, .qc-page-head h2, .jst-page-head h2, .dt-head h2, .tm-hero h2, .tm-page-head h2, .tm-detail-head h2, .sops-head h2, .wi-head h2, .wb-title h2, .cl-head h2 { color: #142b37; font-size: 25px; font-weight: 760; }
.eyebrow, .qc-eyebrow, .jst-eyebrow, .dt-eyebrow, .tm-eyebrow, .sops-eyebrow, .wi-eyebrow, .cl-eyebrow { color: #16838a; font-size: 11px; letter-spacing: .06em !important; }
.card, .project-card, .qualification-card, .integration-card, .agent-card, .supplier-create-band, .supplier-section, .nmpa-create-band, .nmpa-section, .tianyancha-create-band, .tianyancha-section, .qc-panel, .jst-card, .jst-result-card, .dt-card, .tm-panel, .tm-setting-card, .sops-panel, .wb-panel, .wi-table-card, .dashboard-changelog, .cl-stat, .cl-empty { border-radius: 10px !important; box-shadow: 0 5px 20px rgba(26,49,59,.045) !important; }
.card-head, .qc-panel-head, .jst-panel-head, .dt-card-head, .tm-panel-head, .sops-panel-head, .wb-panel-head, .finance-section-head, .supplier-section-head, .nmpa-section-head, .tianyancha-section-head { padding: 17px 19px 13px; }
.btn { min-height: 38px; border-radius: 8px; font-weight: 720; }
.btn-primary { background: #0c7a83; border-color: #0c7a83; box-shadow: 0 3px 8px rgba(12,122,131,.16); }
.btn-primary:hover { background: #075d66; border-color: #075d66; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select { min-height: 40px; border-radius: 8px; }
.table-wrap { border: 1px solid #dbe4e8; border-radius: 9px; background: #fff; }
.workspace-table th, .qc-table th, table th { background: #f1f5f6 !important; color: #58717b; font-size: 11px; font-weight: 760; }
.workspace-table td, .qc-table td, table td { border-bottom-color: #e6edef; }
.workspace-table tbody tr:hover td, .qc-table tbody tr:hover td, table tbody tr:hover td { background: #f7fbfb; }
.stat-card, .qc-stat, .dt-stat, .tm-stat, .sops-stat, .wi-stat, .wb-stat, .jst-module-card, .cl-stat { border-radius: 10px !important; }
@media (max-width: 900px) {
  .content-wrap { padding: 22px 18px 34px; }
  .topbar { padding: 0 18px; }
}

/* Final UI rebuild override. Keep this block last so legacy feature styles
   cannot flatten the new shell back into the previous layout. */
body.app-body {
  background: #eef2f5 !important;
  color: #162b38 !important;
}
.sidebar {
  width: 232px !important;
  padding: 0 !important;
  background: #102631 !important;
  border-right: 1px solid #27434e !important;
  box-shadow: 14px 0 34px rgba(15, 34, 43, .14) !important;
}
.sidebar-brand {
  height: 78px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border-bottom: 1px solid rgba(226,245,246,.12) !important;
}
.sidebar-brand .brand-mark { width: 34px !important; height: 34px !important; border-radius: 10px !important; background: #5cc4b8 !important; color: #0e2d35 !important; }
.brand-copy strong { color: #f6ffff !important; font-size: 14px !important; }
.brand-copy span { color: #91aeb6 !important; }
.sidebar-nav { padding: 18px 12px 12px !important; }
.nav-module-switch {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 0 18px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid rgba(226,245,246,.12) !important;
  background: transparent !important;
}
.nav-module-switch button {
  flex: 1 1 calc(50% - 6px) !important;
  height: 32px !important;
  min-height: 32px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.06) !important;
  color: #9db6bc !important;
  font-size: 11px !important;
}
.nav-module-switch button.active { background: #2e6970 !important; border-color: #63c9bc !important; color: #fff !important; box-shadow: inset 3px 0 #63c9bc !important; }
.nav-section { padding-bottom: 18px !important; }
.nav-section-title { padding: 0 12px 7px !important; color: #7899a2 !important; font-size: 10px !important; letter-spacing: .1em !important; }
.nav-section + .nav-section .nav-section-title { padding-top: 14px !important; border-top: 1px solid rgba(226,245,246,.1) !important; }
.nav-section-items { gap: 4px !important; }
.nav-item, .sidebar-nav.nav-enhanced .nav-item {
  height: 38px !important;
  padding: 0 11px !important;
  border-radius: 6px !important;
  color: #aac0c5 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
.nav-item:hover, .sidebar-nav.nav-enhanced .nav-item:hover { background: rgba(255,255,255,.075) !important; color: #fff !important; }
.nav-item.active, .sidebar-nav.nav-enhanced .nav-item.active { background: #24505a !important; color: #fff !important; box-shadow: inset 3px 0 #65cabe !important; }
.nav-icon, .sidebar-nav.nav-enhanced .nav-icon { width: 24px !important; height: 24px !important; flex-basis: 24px !important; border-radius: 6px !important; background: rgba(255,255,255,.1) !important; color: #afd0d1 !important; }
.nav-item.active .nav-icon, .sidebar-nav.nav-enhanced .nav-item.active .nav-icon { background: #44858a !important; color: #fff !important; }
.sidebar-foot { min-height: 70px !important; margin: 0 !important; padding: 12px 18px !important; border-top: 1px solid rgba(226,245,246,.12) !important; background: #102631 !important; }
.main-area { margin-left: 232px !important; background: #eef2f5 !important; }
.topbar {
  height: 70px !important;
  padding: 0 34px !important;
  border-bottom: 1px solid #d8e2e7 !important;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(24,48,60,.04) !important;
}
.topbar-context > span { color: #79909a !important; font-size: 11px !important; }
.topbar-context > strong { color: #183340 !important; font-size: 17px !important; }
.content-wrap { max-width: 1600px !important; padding: 30px 36px 52px !important; }
.page-intro, .qc-hero, .qc-page-head, .jst-page-head, .dt-head, .tm-hero, .tm-page-head, .tm-detail-head, .sops-head, .wi-head, .wb-head, .cl-head {
  align-items: center !important;
  margin-bottom: 25px !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid #d4e0e5 !important;
}
.page-intro h2, .qc-hero h2, .qc-page-head h2, .jst-page-head h2, .dt-head h2, .tm-hero h2, .tm-page-head h2, .tm-detail-head h2, .sops-head h2, .wi-head h2, .wb-title h2, .cl-head h2 { margin: 4px 0 5px !important; color: #132d3a !important; font-size: 26px !important; font-weight: 760 !important; letter-spacing: -.02em !important; }
.page-intro p, .qc-hero p, .qc-page-head p, .jst-page-head p, .dt-head p, .tm-hero p, .tm-page-head p, .tm-detail-head p, .sops-head p, .wi-head p, .wb-title p, .cl-head p { color: #718691 !important; font-size: 13px !important; }
.card, .project-card, .qualification-card, .integration-card, .agent-card, .supplier-create-band, .supplier-section, .nmpa-create-band, .nmpa-section, .tianyancha-create-band, .tianyancha-section, .qc-panel, .jst-card, .jst-result-card, .dt-card, .tm-panel, .tm-setting-card, .sops-panel, .wb-panel, .wi-table-card, .dashboard-changelog, .cl-stat, .cl-empty {
  border: 1px solid #dce5e9 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(28,52,64,.035) !important;
}
.card-head, .qc-panel-head, .jst-panel-head, .dt-card-head, .tm-panel-head, .sops-panel-head, .wb-panel-head, .finance-section-head, .supplier-section-head, .nmpa-section-head, .tianyancha-section-head { padding: 17px 20px 14px !important; border-bottom: 1px solid #e6edef !important; }
.btn { min-height: 36px !important; padding: 7px 13px !important; border-radius: 6px !important; font-size: 12px !important; }
.btn-primary { background: #167f87 !important; border-color: #167f87 !important; box-shadow: none !important; }
.btn-primary:hover { background: #0c626b !important; border-color: #0c626b !important; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select { min-height: 38px !important; border-radius: 6px !important; border-color: #cbd8de !important; }
.table-wrap { border: 1px solid #dbe5e9 !important; border-radius: 7px !important; background: #fff !important; }
.workspace-table th, .qc-table th, table th { background: #f4f7f8 !important; color: #607883 !important; border-bottom-color: #d8e3e7 !important; }
.workspace-table td, .qc-table td, table td { border-bottom-color: #e8eef0 !important; }
.workspace-table tbody tr:hover td, .qc-table tbody tr:hover td, table tbody tr:hover td { background: #f8fbfb !important; }
@media (max-width: 900px) {
  .sidebar { width: min(286px, 88vw) !important; }
  .main-area { margin-left: 0 !important; }
  .topbar { height: 60px !important; padding: 0 16px !important; }
  .content-wrap { padding: 22px 16px 36px !important; }
}

*, *::before, *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

html {
  min-width: 300px;
  background: var(--bg);
  scrollbar-color: #b8c5ca transparent;
  scrollbar-width: thin;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

body.app-body { overflow-x: clip; }
button, input, textarea, select { min-width: 0; }
button { touch-action: manipulation; }
a { text-underline-offset: 2px; }
::selection { background: #cce8e8; color: #12343a; }

:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid rgba(8, 125, 134, .55);
  outline-offset: 2px;
}

.hidden { display: none !important; }

/* Authentication */
.auth-body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 28px 18px;
  background: #eef2f3;
}

.auth-shell { width: min(408px, 100%); }
.auth-brand {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 11px;
  margin: 0 auto 14px;
}

.brand-mark,
.auth-brand .brand-mark,
.sidebar-brand .brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
  font-weight: 800;
}

.auth-brand .brand-mark { width: 40px; height: 40px; }
.auth-brand strong { color: #1d3039; font-size: 15px; }
.auth-brand span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(29, 48, 57, .1);
}

.auth-title h1 { margin: 0; color: #1c2d36; font-size: 23px; line-height: 1.3; }
.auth-title p { margin: 7px 0 21px; color: var(--muted); font-size: 13px; }
.auth-form { gap: 15px; }
.auth-form .btn { min-height: 42px; margin-top: 2px; }
.auth-foot { margin-top: 15px; color: #7c8a91; font-size: 11px; line-height: 1.65; }

/* Application shell */
.app-shell { min-height: 100dvh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 16px 14px 13px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fbfcfc;
  box-shadow: 8px 0 24px rgba(24, 47, 57, .035);
}

.sidebar-brand {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  padding: 2px 7px 15px;
  border-bottom: 1px solid #e8edef;
}

.sidebar-brand .brand-mark { width: 36px; height: 36px; }
.brand-copy { min-width: 0; }
.brand-copy strong,
.brand-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-copy strong { color: #1d3039; font-size: 14px; }
.brand-copy span { margin-top: 2px; color: var(--muted); font-size: 10px; }

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sidebar-nav::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.modal-panel::-webkit-scrollbar,
.log-list::-webkit-scrollbar { width: 7px; height: 7px; }
.sidebar-nav::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.modal-panel::-webkit-scrollbar-thumb,
.log-list::-webkit-scrollbar-thumb { border-radius: 7px; background: #bdc8cd; }
.sidebar-nav::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track { background: transparent; }

.sidebar-nav.nav-enhanced {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 0 2px 12px 0;
}

.nav-caption,
.nav-hint { display: none; }

.nav-module-switch {
  position: sticky !important;
  top: 0;
  z-index: 5;
  display: grid !important;
  grid-column: auto !important;
  grid-row: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(31px, auto);
  align-content: start;
  gap: 6px;
  width: 100%;
  min-height: 0 !important;
  flex: 0 0 auto;
  margin: 0 0 14px;
  padding: 2px 0 13px;
  border: 0;
  border-bottom: 1px solid #e8edef;
  background: #fff;
}

.nav-module-switch button {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f0f4f5;
  color: #677780;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nav-module-switch button:hover { border-color: #d5dfe2; background: #edf2f3; color: #253a43; }
.nav-module-switch button.active {
  border-color: #9bcccc;
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary), 0 2px 6px rgba(8, 125, 134, .08);
}

.nav-section {
  display: none !important;
  min-width: 0;
  padding: 0 0 12px;
}
.nav-section.active { display: flex !important; flex-direction: column; gap: 5px; }
.nav-section-title {
  min-height: 20px;
  padding: 1px 8px 3px;
  color: #73858d;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
}
.nav-section + .nav-section .nav-section-title { padding-top: 6px; border-top: 1px solid #eef2f3; }
.nav-section-items { display: flex; flex-direction: column; gap: 3px; }

.nav-item,
.sidebar-nav.nav-enhanced .nav-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 41px;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #52636d;
  font-size: 13px;
  font-weight: 680;
  text-align: left;
}

.nav-item > span:last-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover,
.sidebar-nav.nav-enhanced .nav-item:hover { background: #f1f5f6; color: #1f333d; }
.nav-item.active,
.sidebar-nav.nav-enhanced .nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary), 0 2px 7px rgba(8, 125, 134, .07);
}

.nav-icon,
.sidebar-nav.nav-enhanced .nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 7px;
  background: #eaf0f2 !important;
  color: #566a74 !important;
  font-size: 10px;
  font-weight: 800;
}
.nav-item.active .nav-icon,
.sidebar-nav.nav-enhanced .nav-item.active .nav-icon { background: #cfe8e8 !important; color: #075f67 !important; }
.nav-item em { margin-left: auto; border-radius: 9px; font-size: 10px; }
.nav-item-disabled { display: none !important; }

.sidebar-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 11px 5px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.user-chip { min-width: 0; }
.user-chip > span { width: 31px; height: 31px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); }
.user-chip strong { color: #2a3d46; }
.logout-link { padding: 7px 4px; color: #a04a52; font-size: 11px; white-space: nowrap; }

.main-area { min-width: 0; min-height: 100dvh; margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}
.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #40535d;
  font-size: 18px;
}
.topbar-context { display: flex; min-width: 0; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-context > span { color: #6f7f87; font-size: 11px; font-weight: 650; }
.topbar-context > i { color: #a2adb2; font-size: 11px; font-style: normal; }
.topbar-context > strong { overflow: hidden; color: #1e3039; font-size: 15px; font-weight: 760; text-overflow: ellipsis; }
.topbar-context > p {
  overflow: hidden;
  max-width: 560px;
  margin: 0 0 0 6px;
  padding-left: 13px;
  border-left: 1px solid var(--line);
  color: #77858d;
  font-size: 11px;
  text-overflow: ellipsis;
}
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.content-wrap { width: 100%; max-width: 1540px; margin: 0 auto; padding: 24px 30px 42px; }
.page-section { min-width: 0; }
.page-section.active { animation: page-enter .14s ease-out; }
@keyframes page-enter { from { opacity: .55; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-section.active { animation: none; } }
.page-section::before { display: none !important; content: none !important; }

/* Page headings */
.page-intro,
.qc-hero,
.qc-page-head,
.jst-page-head,
.dt-head,
.tm-hero,
.tm-page-head,
.tm-detail-head,
.sops-head,
.wi-head,
.wb-head,
.cl-head {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.page-intro > div:first-child,
.qc-hero > div:first-child,
.qc-page-head > div:first-child,
.jst-page-head > div:first-child,
.dt-head > div:first-child,
.tm-hero > div:first-child,
.tm-page-head > div:first-child,
.tm-detail-head > div:first-child,
.sops-head > div:first-child,
.wb-title { min-width: 0; }
.page-intro h2,
.qc-hero h2,
.qc-page-head h2,
.jst-page-head h2,
.dt-head h2,
.tm-hero h2,
.tm-page-head h2,
.tm-detail-head h2,
.sops-head h2,
.wi-head h2,
.wb-title h2,
  .cl-head h2 { margin: 3px 0 4px; color: #1b2d36; font-size: 23px; line-height: 1.32; }
.page-intro p,
.qc-hero p,
.qc-page-head p,
.jst-page-head p,
.dt-head p,
.tm-hero p,
.tm-page-head p,
.tm-detail-head p,
.sops-head p,
.wi-head p,
.wb-title p,
.cl-head p { max-width: 920px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.eyebrow,
.qc-eyebrow,
.jst-eyebrow,
.dt-eyebrow,
.tm-eyebrow,
.sops-eyebrow,
.wi-eyebrow,
.cl-eyebrow { color: var(--primary); font-size: 10px; font-weight: 750; }
.qc-eyebrow::before,
.tm-eyebrow::before { display: none; }
.intro-badge,
.cl-current { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #62737c; font-size: 11px; }
.qc-head-actions,
.dt-actions,
.tm-hero-actions,
.tm-head-actions,
.sops-head-actions,
.wb-head-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }

/* Surfaces */
.card,
.project-card,
.qualification-card,
.integration-card,
.agent-card,
.supplier-create-band,
.supplier-section,
.nmpa-create-band,
.nmpa-section,
.tianyancha-create-band,
.tianyancha-section,
.qc-panel,
.jst-card,
.jst-result-card,
.dt-card,
.tm-panel,
.tm-setting-card,
.sops-panel,
.wb-panel,
.wi-table-card,
.dashboard-changelog,
.cl-stat,
.cl-empty {
  border-color: var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--surface);
  box-shadow: var(--shadow) !important;
}
.card:hover,
.project-card:hover,
.qualification-card:hover,
.integration-card:hover,
.agent-card:hover { transform: none; border-color: #d2dcdf !important; box-shadow: var(--shadow) !important; }
.card-head,
.qc-panel-head,
.jst-panel-head,
.dt-card-head,
.tm-panel-head,
.sops-panel-head,
.wb-panel-head,
.finance-section-head,
.supplier-section-head,
.nmpa-section-head,
.tianyancha-section-head { min-width: 0; padding: 14px 16px 11px; }
.card-head h2,
.qc-panel-head h3,
.jst-panel-head h3,
.dt-card-head h3,
.tm-panel-head h3,
.sops-panel-head h3,
.wb-panel-head h3,
.finance-section-head h3 { margin: 0; color: #21343d; font-size: 15px; line-height: 1.4; }
.card-head p,
.qc-panel-head p,
.jst-panel-head p,
.dt-card-head p,
.tm-panel-head p,
.sops-panel-head p,
.wb-panel-head p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-card,
.info-card,
.tip-card,
.qc-settings-card,
.dt-settings,
.tm-setting-card { padding: 17px; }
.tip-card { border-color: #ead8b5 !important; background: #fffaf0; }

/* Buttons and fields */
.btn {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: #334851;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: none; border-color: #9fadb3; background: #f8fafb; box-shadow: none; }
.btn:active { background: #edf2f3; }
.btn:disabled,
.btn.disabled { cursor: not-allowed; opacity: .52; }
.btn-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-primary:hover { border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; }
.btn-danger { border-color: #e1b9bd; background: #fff7f7; color: #ae3742; }
.btn-danger:hover { border-color: #d79da3; background: var(--danger-soft); }
.btn-lg { min-height: 40px; padding: 9px 15px; font-size: 13px; }
.btn-sm { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.btn-block { width: 100%; }
.text-btn { border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 700; }
.icon-btn { min-width: 31px; min-height: 31px; padding: 5px 8px; border-radius: 5px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
textarea,
select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: #20343d;
  box-shadow: none;
  font-size: 12px;
  outline: none;
}
textarea { min-height: 78px; resize: vertical; line-height: 1.6; }
input::placeholder,
textarea::placeholder { color: #a0aaaf; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):focus,
textarea:focus,
select:focus { border-color: #65a9ad; box-shadow: 0 0 0 3px rgba(8, 125, 134, .11); }
input[type="checkbox"],
input[type="radio"] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--primary); }
input[type="range"] { min-height: 24px; padding: 0; accent-color: var(--primary); }
input[type="color"] { min-height: 32px; padding: 2px; }
input[type="file"] { min-height: 40px !important; padding: 5px 7px !important; }
input[type="file"]::file-selector-button {
  margin-right: 9px;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: #edf3f4;
  color: #36515a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
label small,
.form-help { color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-form label,
.form-stack label,
.form-grid label,
.qc-form-grid label,
.dt-form-grid label,
.finance-conversion-card label,
.finance-profit-upload label,
.finance-profit-settings label,
.finance-store-form label { min-width: 0; gap: 6px; }
.auth-form label > span,
.form-stack label > span,
.form-grid label > span,
.qc-form-grid label > span,
.dt-form-grid label > span,
.finance-conversion-card label > span,
.finance-profit-upload label > span,
.finance-profit-settings label > span,
.finance-store-form label > span { color: #4c5f69; font-size: 11px; font-weight: 750; }
.form-stack { gap: 13px; }
.form-grid,
.form-grid.two,
.qc-form-grid,
.dt-form-grid { gap: 11px; }
.switch-row { padding: 10px 11px; border-color: var(--line); border-radius: 6px; background: var(--surface-soft); }
.switch { background: #c6d0d4; }
.switch-row input:checked + .switch { background: var(--primary); }

/* Filters and command bars */
.toolbar,
.product-filter-panel,
.finance-filter-panel,
.audit-filter-panel,
.qc-filter,
.dt-filter,
.tm-filter,
.wi-filter,
.finance-bundle-toolbar {
  margin-bottom: 13px;
  padding: 12px;
  border-radius: var(--radius) !important;
}
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-row,
.toolbar-actions,
.card-actions { display: flex; align-items: center; gap: 7px; }
.product-filter-primary,
.advanced-filter-grid,
.finance-filter-grid,
.audit-filter-grid,
.qc-filter,
.qc-filter.compact,
.qc-video-filter,
.qc-plan-filter,
.qc-learning-filter,
.dt-filter,
.dt-new-product-filter,
.tm-filter,
.tm-filter.compact,
.wi-filter,
.jst-saleout-controls,
.finance-bundle-filter-grid,
.finance-tax-rate-filter-grid {
  display: flex !important;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px !important;
}
.product-filter-primary > label,
.advanced-filter-grid > label,
.finance-filter-grid > label,
.audit-filter-grid > label,
.qc-filter > label,
.dt-filter > label,
.tm-filter > label,
.wi-filter > label,
.jst-saleout-controls > label,
.finance-bundle-filter-grid > label,
.finance-tax-rate-filter-grid > label { width: auto; max-width: 260px; flex: 1 1 145px; }
.product-filter-primary > label:first-child,
.advanced-filter-grid > label:first-child,
.finance-filter-grid > label:first-child,
.audit-filter-grid > label:first-child,
.qc-filter > label:first-child,
.dt-filter > label:first-child,
.tm-filter > label:first-child,
.wi-filter > label:first-child,
.finance-bundle-filter-grid > label:first-child,
.finance-tax-rate-filter-grid > label:first-child { max-width: 390px; flex-basis: 230px; }
.product-filter-primary > button,
.advanced-filter-grid > button,
.finance-filter-grid > button,
.audit-filter-grid > button,
.qc-filter > button,
.dt-filter > button,
.tm-filter > button,
.wi-filter > button,
.jst-saleout-controls > button,
.filter-submit { width: auto; flex: 0 0 auto; }
.filter-submit { display: flex; gap: 7px; }
.filter-submit .btn { flex: 0 0 auto; }
.filter-summary { gap: 6px; color: var(--muted); font-size: 11px; }
.filter-summary span { padding: 4px 7px; border: 1px solid #dce7e9; border-radius: 4px; background: #f0f5f6; color: #526871; }
.advanced-filter,
.advanced-settings { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f8fafb; }
.advanced-settings > summary { min-height: 40px; padding: 10px 12px; color: var(--primary-dark); }

/* Metrics and layouts */
.stats-grid,
.qc-stats,
.dt-stats,
.tm-stats,
.sops-stats,
.wi-stats,
.wb-stats,
.jst-dashboard-grid,
.finance-commerce-stats,
.finance-bundle-stats,
.finance-profit-stats,
.outbound-invoice-kpis,
.cl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 14px;
}
.stat-card,
.qc-stat,
.dt-stat,
.tm-stat,
.sops-stat,
.wi-stat,
.wb-stat,
.jst-module-card,
.cl-stat {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-top: 3px solid #3a8795 !important;
  border-radius: var(--radius) !important;
  background: #fff;
  box-shadow: var(--shadow) !important;
}
.stats-grid > :nth-child(4n + 2), .qc-stats > :nth-child(4n + 2), .dt-stats > :nth-child(4n + 2), .tm-stats > :nth-child(4n + 2), .sops-stats > :nth-child(4n + 2), .wi-stats > :nth-child(4n + 2), .wb-stats > :nth-child(4n + 2), .jst-dashboard-grid > :nth-child(4n + 2), .finance-commerce-stats > :nth-child(4n + 2), .finance-bundle-stats > :nth-child(4n + 2), .finance-profit-stats > :nth-child(4n + 2), .cl-stats > :nth-child(4n + 2) { border-top-color: #3d8b6f !important; }
.stats-grid > :nth-child(4n + 3), .qc-stats > :nth-child(4n + 3), .dt-stats > :nth-child(4n + 3), .tm-stats > :nth-child(4n + 3), .sops-stats > :nth-child(4n + 3), .wi-stats > :nth-child(4n + 3), .wb-stats > :nth-child(4n + 3), .jst-dashboard-grid > :nth-child(4n + 3), .finance-commerce-stats > :nth-child(4n + 3), .finance-bundle-stats > :nth-child(4n + 3), .finance-profit-stats > :nth-child(4n + 3), .cl-stats > :nth-child(4n + 3) { border-top-color: #bf8427 !important; }
.stats-grid > :nth-child(4n + 4), .qc-stats > :nth-child(4n + 4), .dt-stats > :nth-child(4n + 4), .tm-stats > :nth-child(4n + 4), .sops-stats > :nth-child(4n + 4), .wi-stats > :nth-child(4n + 4), .wb-stats > :nth-child(4n + 4), .jst-dashboard-grid > :nth-child(4n + 4), .finance-commerce-stats > :nth-child(4n + 4), .finance-bundle-stats > :nth-child(4n + 4), .finance-profit-stats > :nth-child(4n + 4), .cl-stats > :nth-child(4n + 4) { border-top-color: #b76670 !important; }
.stat-card strong,
.qc-stat strong,
.dt-stat strong,
.tm-stat strong,
.sops-stat strong,
.wi-stat strong,
.wb-stat strong,
.jst-module-card strong,
.cl-stat strong { display: block; margin: 7px 0 3px; color: #1c3039; font-size: 22px; line-height: 1.17; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card span,
.qc-stat span,
.dt-stat span,
.tm-stat span,
.sops-stat span,
.wi-stat span,
.wb-stat span,
.jst-module-card span,
.cl-stat span { color: var(--muted); font-size: 11px; }
.stat-card small,
.qc-stat small,
.dt-stat small,
.tm-stat small,
.sops-stat small,
.wi-stat small,
.wb-stat small,
.jst-module-card small,
.cl-stat small { color: var(--muted-light); font-size: 10px; line-height: 1.45; }
.qc-stat i,
.tm-stat i { width: 8px; height: 8px; box-shadow: 0 0 0 5px #e8f2f4; }

.dashboard-grid,
.two-column-layout,
.settings-grid,
.qc-grid,
.qc-settings-grid,
.jst-layout,
.dt-grid,
.tm-dashboard-grid,
.tm-detail-grid,
.tm-settings-grid,
.sops-grid,
.sops-grid.secondary,
.wb-content-grid,
.finance-profit-workspace,
.finance-conversion-grid { gap: 14px; }
.integration-grid,
.agent-grid,
.project-grid,
.qualification-grid,
.tm-review-grid,
.tm-archive-grid,
.tm-integration-grid,
.finance-platform-grid { gap: 11px; }

/* Tables */
.table-card,
.qc-table-card,
.tm-table-card,
.dt-card,
.sops-panel,
.wb-panel,
.wi-table-card,
.supplier-section,
.nmpa-section,
.tianyancha-section { min-width: 0; overflow: hidden; }
.table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border-radius: 0 0 var(--radius) var(--radius);
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
}
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead th,
th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f3f7f8 !important;
  color: #536872 !important;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}
td {
  max-width: 440px;
  padding: 11px 12px;
  border-bottom: 1px solid #e9eef0;
  background: #fff;
  color: #293d46;
  font-size: 12px;
  line-height: 1.5;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f7fafb; }
.wide-table,
.product-table,
.finance-table,
.qc-table,
.dt-table,
.tm-table,
.jst-table,
.sops-job-table,
.sops-run-table { width: max-content; min-width: 100%; }
.workspace-wide-table th:first-child,
.workspace-wide-table td:first-child,
.workspace-sticky-actions th:last-child,
.workspace-sticky-actions td:last-child { position: sticky; }
.workspace-wide-table th:first-child { left: 0; z-index: 4; background: #f3f7f8 !important; }
.workspace-wide-table td:first-child { left: 0; z-index: 1; box-shadow: 1px 0 0 #e4eaed; }
.workspace-sticky-actions th:last-child { right: 0; z-index: 5; background: #f3f7f8 !important; }
.workspace-sticky-actions td:last-child { right: 0; z-index: 2; min-width: 76px; box-shadow: -1px 0 0 #e4eaed; }
.workspace-wide-table tbody tr:hover td:first-child,
.workspace-sticky-actions tbody tr:hover td:last-child { background: #f7fafb; }
.table-main,
.product-cell,
.qc-table-main,
.tm-table-main,
.dt-main { max-width: none; min-width: 0; }
.table-main strong,
.table-main small,
.qc-table-main strong,
.qc-table-main small,
.tm-table-main strong,
.tm-table-main small,
.dt-main strong,
.dt-main small,
.product-cell strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.table-main small,
.qc-table-main small,
.tm-table-main small,
.dt-main small,
.table-subline { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.table-actions,
.qc-row-actions,
.tm-row-actions { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px; }
.table-actions .btn,
.qc-row-actions .btn,
.tm-row-actions .btn { min-height: 29px; padding: 5px 8px; font-size: 11px; }
table code { color: #3c5660; font: 11px/1.5 Consolas, "Courier New", monospace; white-space: normal; overflow-wrap: anywhere; }
.pagination,
.qc-pagination,
.tm-pagination,
.dt-pagination,
.wi-pagination { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 5px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination button,
.qc-pagination button,
.tm-pagination button,
.dt-pagination button,
.wi-pagination button { min-width: 29px; height: 29px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #566a74; }
.pagination button.active,
.qc-pagination button.active,
.tm-pagination button.active,
.dt-pagination button.active,
.wi-pagination button.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.empty-row td,
.dt-empty,
.jst-empty,
.tm-empty,
.wi-empty,
.wb-empty,
.sops-loading { padding: 36px 16px; color: var(--muted); text-align: center; }

/* Status, notices and progress */
.status-badge,
.mark-badge,
.finance-badge,
.finance-store-status,
.audit-result,
.qc-badge,
.dt-badge,
.tm-badge,
.sops-badge,
.jst-badge,
.wi-badge,
.cl-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 4px 7px;
  border-radius: 4px !important;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
}
.alert { padding: 10px 12px; border-radius: 5px; font-size: 12px; line-height: 1.55; }
.alert-success { border-color: #c8e4d8; background: var(--success-soft); color: #176a52; }
.alert-error { border-color: #edc6ca; background: var(--danger-soft); color: #9e3740; }
.selection-bar { padding: 9px 11px; border-radius: 6px; background: #233942; }
.qc-history-summary,
.qc-plan-notice,
.qc-learning-lock,
.jst-formula-note,
.dt-note,
.sops-note,
.finance-auto-tax-rate,
.finance-profit-result,
.finance-conversion-result { border-radius: 5px; }
.qc-plan-notice,
.qc-learning-lock,
.sops-note { border-left-width: 3px; }
.progress-line { width: 140px; max-width: 100%; }
.progress-bar { height: 6px; border-radius: 3px; background: #e8edef; }
.progress-bar span { border-radius: 3px; background: var(--primary); }
.progress-line .progress-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-line { align-items: flex-start; }
.meta-line strong,
.tm-integration-card dd,
.wb-notice-main strong,
.wb-action small,
.wb-recent-copy strong,
.wb-recent-copy small,
.qc-plan-suggestions,
.qc-suggestion,
.sops-job,
.sops-reason,
.tianyancha-scope,
.finance-unmatched-codes { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }

/* Tabs */
.dt-tabs,
.jst-probe-tabs { display: flex; gap: 4px; margin-bottom: 14px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.dt-tabs button,
.jst-probe-tabs button { min-height: 36px; padding: 8px 11px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.dt-tabs button.active,
.jst-probe-tabs button.active { border-bottom-color: var(--primary); color: var(--primary-dark); }

/* Modals and messages */
.modal { padding: 16px; background: rgba(21, 35, 42, .44); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 21px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 62px rgba(18, 34, 42, .22);
}
.modal-wide { width: min(1080px, 100%); }
.finance-bundle-modal { width: min(1180px, 100%); }
.modal-close {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  float: right;
  width: 32px;
  height: 32px;
  margin: -5px -5px 4px 10px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f2f6f7;
  color: #60727b;
  font-size: 20px;
}
.modal-close:hover { background: #e9eff1; color: #283f49; }
.modal-head { min-width: 0; margin-bottom: 17px; padding-right: 0; }
.modal-head h2 { margin: 0; color: #1d3039; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.modal-actions,
.tm-modal-actions-sticky {
  position: sticky;
  bottom: -21px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin: 8px -21px -21px;
  padding: 12px 21px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.detail-grid,
.audit-detail-grid,
.dt-detail-grid,
.dt-sheet-meta { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.detail-box { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafb; }
.detail-box strong { overflow-wrap: anywhere; }
.audit-json-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.toast-container { top: 14px; right: 14px; gap: 7px; }
.toast { min-width: 240px; max-width: 420px; padding: 10px 12px; border-radius: 6px; box-shadow: 0 10px 28px rgba(20, 37, 45, .2); font-size: 12px; }

#frontendUpdateNotice {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 10000;
  display: grid;
  width: min(470px, calc(100% - 36px));
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 11px 11px 12px;
  border: 1px solid #bcd7da;
  border-radius: 7px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 38px rgba(25, 48, 56, .16);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
#frontendUpdateNotice.show { opacity: 1; transform: none; }
.frontend-update-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 800; }
.frontend-update-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.frontend-update-copy strong { color: #21353e; font-size: 12px; }
.frontend-update-copy span { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.frontend-update-actions { display: flex; gap: 5px; }
.frontend-update-actions button { min-height: 31px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: #425962; font-size: 11px; font-weight: 700; white-space: nowrap; }
.frontend-update-actions .frontend-update-button { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Feature compatibility */
.platform-picker { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 8px; }
.platform-option { min-width: 0; padding: 11px 12px; border-radius: 6px; }
.platform-option:hover { transform: none; }
.platform-option.active { border-color: #6cabad; background: #f0f8f8; box-shadow: 0 0 0 2px rgba(8, 125, 134, .08); }
.platform-icon { width: 38px; height: 38px; border-radius: 6px; }
.steps { gap: 12px; }
.steps li > span { width: 26px; height: 26px; border-radius: 5px; background: var(--primary-soft); color: var(--primary-dark); }
.supplier-create-band,
.nmpa-create-band,
.tianyancha-create-band { padding: 17px; border-top-width: 2px; }
.supplier-task-form,
.nmpa-task-form,
.tianyancha-task-form { gap: 10px; }
.supplier-section .table-wrap,
.nmpa-section .table-wrap,
.tianyancha-section .table-wrap { max-height: min(62vh, 620px); }
.product-image,
.supplier-product img { border-radius: 6px; }

.finance-conversion-grid { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); }
.finance-conversion-card,
.finance-profit-upload,
.finance-store-form { gap: 10px; padding: 16px; }
.finance-card-head { min-height: 38px; padding-bottom: 10px; }
.finance-library-card .toolbar-actions { gap: 6px; }
.finance-platform-card,
.finance-discovered-store { border-radius: 6px; }
.finance-profit-settings,
.finance-profit-allocation,
.finance-discovered-panel { border-radius: var(--radius); }
.finance-bundle-component { border-radius: 6px; background: #f7f9fa; }
.finance-bundle-components { padding-right: 2px; }
.finance-bundle-total { color: #213740; }
.finance-profit-result,
.finance-conversion-result { padding: 12px 14px; }

.qc-hero { padding: 0 0 14px; }
.qc-filter,
.dt-filter,
.tm-filter { padding: 11px; }
.qc-result-count,
.tm-result-count { padding: 10px 12px; background: #f8fafb; }
.qc-plan-suggestions,
.qc-suggestion { min-width: 0; }
.qc-plan-suggestions .qc-badge { max-width: 320px; }
.qc-material-list,
.qc-product-picker,
.qc-admin-tool-list { gap: 8px; }
.qc-material-item,
.qc-product-item,
.qc-admin-tools { border-radius: 6px; }
.qc-wizard-bar { border-radius: 6px; }
.qc-learning-lock { align-items: flex-start; background: #f0f8f5; }

.jst-layout { align-items: start; }
.jst-module-card { border-radius: var(--radius); }
.jst-module-nav { gap: 7px; }
.jst-settings-section { border-radius: 6px; }
.jst-settings-section-head { padding: 12px 14px; }
.jst-settings-section-body { padding: 14px; }
.jst-result-card { padding: 14px; }
.jst-table code,
.sops-command code { max-width: none; }

.dt-approval-sheet { width: min(940px, 100%); padding: 20px; }
.dt-sheet-meta,
.dt-sheet-details .table-wrap { border-color: var(--line); }
.dt-json { border-radius: 5px; }

.tm-logo { border-radius: 6px; }
.tm-logo.large { border-radius: 8px; }
.tm-filter input,
.tm-filter select,
.tm-inline-select { min-height: 38px; padding: 8px 10px; border-radius: 5px; }
.tm-watermark-preview-card { top: 78px; }
.tm-preset-card,
.tm-segment-grid label > span,
.tm-range-grid label,
.tm-color-field,
.tm-watermark-toggles label,
.tm-watermark-savebar { border-radius: 7px; }
.tm-preset-card:hover,
.tm-preset-card.active { transform: none; }
.tm-company-list strong { border-radius: 4px; }

.sops-command { gap: 9px; }
.sops-command code { border-radius: 4px; background: #f6f8f9; }
.sops-settings-form { gap: 11px; }
.yd-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.nav-icon.yd-nav-icon { background:#e8f7f0 !important; color:#157a57 !important; }
.yd-head h2 { margin:0 0 4px; }
.yd-head p, .yd-template span, .yd-record small { display:block; margin-top:4px; color:var(--muted); }
.yd-token, [data-section="yingdao_data"] > div > .card { margin-bottom:14px; padding:16px; }
.yd-token-row label { display:block; }
.yd-token-row label > span { display:block; margin-bottom:7px; font-weight:600; }
.yd-copy { display:grid; grid-template-columns:minmax(240px,1fr) auto auto; gap:8px; }
.yd-copy-url { grid-template-columns:minmax(240px,1fr) auto; margin-bottom:12px; }
.yd-copy input { font-family:ui-monospace,Consolas,monospace; }
.yd-secret-note { display:block; color:#8a5b16; line-height:1.6; }
.yd-template { display:grid; grid-template-columns:minmax(180px,.35fr) minmax(0,1fr); gap:18px; padding:14px 0; border-top:1px solid var(--line); }
.yd-template dl { display:grid; grid-template-columns:80px minmax(0,1fr); gap:8px 12px; margin:0; }
.yd-template dt { color:var(--muted); }
.yd-template dd { min-width:0; margin:0; }
.yd-template code { display:block; overflow:auto; padding:7px 9px; border-radius:4px; background:#f6f8f9; }
.yd-record { cursor:pointer; }
.yd-record:hover td { background:#f7faf9; }
.yd-files { white-space:nowrap; }
.yd-preview td { padding:14px !important; background:#f8fafb; }
.yd-empty { margin:0; color:var(--muted); }
.yd-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; margin:0 0 14px; }
.yd-summary-item { min-width:0; padding:14px 15px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--text); text-align:left; }
button.yd-summary-item { cursor:pointer; font:inherit; transition:border-color .16s,box-shadow .16s,transform .16s; }
button.yd-summary-item:hover { border-color:#74b8b5; box-shadow:0 5px 16px rgba(8,125,134,.09); transform:translateY(-1px); }
.yd-summary-item span,.yd-summary-item strong,.yd-summary-item small { display:block; }
.yd-summary-item span { color:var(--muted); font-size:11px; }
.yd-summary-item strong { margin-top:5px; color:#123c48; font-size:23px; line-height:1.1; }
.yd-summary-item small { margin-top:5px; color:#729099; font-size:10px; }
.yd-templates { overflow:hidden; }
.yd-template-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:10px; }
.yd-template { min-width:0; padding:14px; border:1px solid var(--line); border-radius:6px; background:#fbfdfd; }
.yd-template.is-planned { background:#fafbfc; opacity:.84; }
.yd-template-title { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.yd-template-title strong,.yd-template-title span { display:block; }
.yd-template-title strong { color:#173e49; }
.yd-template-title span { margin-top:5px; color:var(--muted); font-size:11px; line-height:1.45; }
.yd-template-title em { flex:0 0 auto; padding:3px 7px; border-radius:4px; background:#e7f6ef; color:#197553; font-size:10px; font-style:normal; }
.yd-template.is-planned .yd-template-title em { background:#f0f2f5; color:#76818d; }
.yd-report-tags { display:flex; flex-wrap:wrap; gap:5px; margin:12px 0 10px; }
.yd-report-tags span,.yd-report-badge { display:inline-block; padding:3px 7px; border:1px solid #cfe4e0; border-radius:4px; background:#f0f9f6; color:#287568; font-size:10px; white-space:nowrap; }
.yd-report-badge { border-color:#d5e2e7; background:#f3f7f9; color:#496775; }
.yd-report-daily { border-color:#d6e5fa; background:#f2f7ff; color:#3567a0; }
.yd-report-weekly { border-color:#d5e9d9; background:#f2faf3; color:#3c7950; }
.yd-report-monthly { border-color:#eadfca; background:#fff9ed; color:#8b6828; }
.yd-template dl { margin:0; }
.yd-template dl dt { margin-top:7px; color:var(--muted); font-size:10px; }
.yd-template dl dd { margin:3px 0 0; }
.yd-template dl code { display:block; overflow:auto; padding:6px 7px; border-radius:4px; background:#f2f5f6; font-size:10px; white-space:nowrap; }
.yd-filters { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:7px; }
.yd-filters select,.yd-filters input { min-width:125px; height:34px; }
.yd-record td { vertical-align:middle; }
.yd-record td small { display:block; margin-top:4px; color:var(--muted); }
.yd-report-badge { white-space:nowrap; }
@media (max-width:800px) { .yd-filters { justify-content:stretch; } .yd-filters select,.yd-filters input,.yd-filters .btn { flex:1 1 135px; min-width:0; } .yd-template-grid { grid-template-columns:1fr; } }
@media (max-width:800px) { .yd-copy, .yd-template { grid-template-columns:1fr; } .yd-template dl { grid-template-columns:1fr; } }
.wb-notice,
.wb-action,
.wb-recent-row { min-width: 0; }
.wb-notice-main p { display: block; overflow: visible; }
.wi-item { border-radius: 6px; }

.dashboard-changelog { margin-bottom: 14px; padding: 14px 16px 3px; border-top-color: #3a8795 !important; }
.dashboard-changelog-list { column-gap: 22px; }
.dashboard-changelog-entry { padding: 11px 0; }
.cl-root { max-width: none; }
.cl-filter { padding: 11px; }
.cl-entry ul { border-radius: 5px; }

@media (max-width: 1440px) {
  :root { --sidebar-width: 250px; }
  .content-wrap { padding: 20px 21px 34px; }
  .topbar { padding: 0 21px; }
  .topbar-context > p { max-width: 390px; }
  .finance-conversion-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .two-column-layout,
  .settings-grid,
  .qc-grid,
  .qc-settings-grid,
  .jst-layout,
  .dt-grid,
  .sops-grid,
  .sops-grid.secondary,
  .tm-dashboard-grid,
  .tm-detail-grid,
  .tm-settings-grid,
  .wb-content-grid,
  .finance-profit-workspace { grid-template-columns: 1fr !important; }
  .topbar-context > p { display: none; }
  .finance-profit-allocation-grid { grid-template-columns: 1fr; }
  .finance-profit-allocation-grid > section + section { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 56px; }
  .sidebar { width: min(294px, 88vw); padding: 11px 10px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-backdrop.show { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(19, 33, 40, .34); }
  .main-area { margin-left: 0; }
  .menu-button { display: grid; }
  .topbar { justify-content: flex-start; gap: 10px; padding: 0 12px; }
  .topbar-context > span,
  .topbar-context > i,
  .topbar-context > p { display: none; }
  .topbar-context > strong { font-size: 14px; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions #serverClock,
  .topbar-actions .live-dot { display: none; }
  .content-wrap { padding: 14px 11px 28px; }
  .page-intro,
  .qc-hero,
  .qc-page-head,
  .jst-page-head,
  .dt-head,
  .tm-hero,
  .tm-page-head,
  .tm-detail-head,
  .sops-head,
  .wi-head,
  .wb-head,
  .cl-head { align-items: stretch; flex-direction: column; gap: 9px; padding-bottom: 11px; }
  .page-intro h2,
  .qc-hero h2,
  .qc-page-head h2,
  .jst-page-head h2,
  .dt-head h2,
  .tm-hero h2,
  .tm-page-head h2,
  .tm-detail-head h2,
  .sops-head h2,
  .wi-head h2,
  .wb-title h2,
  .cl-head h2 { font-size: 19px; }
  .intro-badge { display: none; }
  .qc-head-actions,
  .dt-actions,
  .tm-hero-actions,
  .tm-head-actions,
  .sops-head-actions,
  .wb-head-tools { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-row { flex-wrap: wrap; }
  .filter-row input,
  .filter-row select { width: 100% !important; }
  .product-filter-primary > label,
  .advanced-filter-grid > label,
  .finance-filter-grid > label,
  .audit-filter-grid > label,
  .qc-filter > label,
  .dt-filter > label,
  .tm-filter > label,
  .wi-filter > label,
  .jst-saleout-controls > label,
  .finance-bundle-filter-grid > label,
  .finance-tax-rate-filter-grid > label { max-width: none; flex: 1 1 calc(50% - 5px); }
  .form-grid.two,
  .qc-form-grid,
  .dt-form-grid { grid-template-columns: 1fr; }
  .form-grid.two .span-2,
  .qc-form-grid .span-2,
  .dt-form-grid .wide { grid-column: auto; }
  .workspace-wide-table th:first-child,
  .workspace-wide-table td:first-child { position: static; box-shadow: none; }
  .workspace-sticky-actions th:last-child,
  .workspace-sticky-actions td:last-child { max-width: 126px; }
  .modal { padding: 8px; }
  .modal-panel { max-height: calc(100dvh - 16px); padding: 17px; }
  .modal-actions,
  .tm-modal-actions-sticky { bottom: -17px; margin: 7px -17px -17px; padding: 11px 17px; }
  .finance-store-form,
  #financeInvoiceConvertForm,
  .finance-profit-upload { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-profit-upload .finance-card-head,
  .finance-profit-upload .btn { grid-column: 1 / -1; }
  .finance-bundle-component { grid-template-columns: repeat(2, minmax(0, 1fr)) 38px; }
  .finance-bundle-code,
  .finance-bundle-name { grid-column: span 2; }
  .finance-profit-inline-form,
  .finance-profit-adjustment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-watermark-preview-card { position: relative; top: auto; }
}

@media (max-width: 560px) {
  .auth-card { padding: 23px 20px; }
  .content-wrap { padding: 12px 8px 24px; }
  .topbar-actions .btn { display: none; }
  .card-head,
  .qc-panel-head,
  .jst-panel-head,
  .dt-card-head,
  .tm-panel-head,
  .sops-panel-head,
  .wb-panel-head,
  .finance-section-head { align-items: flex-start; flex-direction: column; }
  .product-filter-primary > label,
  .advanced-filter-grid > label,
  .finance-filter-grid > label,
  .audit-filter-grid > label,
  .qc-filter > label,
  .dt-filter > label,
  .tm-filter > label,
  .wi-filter > label,
  .jst-saleout-controls > label,
  .finance-bundle-filter-grid > label,
  .finance-tax-rate-filter-grid > label { flex-basis: 100%; }
  .product-filter-primary > .filter-submit,
  .advanced-filter-grid > .filter-submit,
  .finance-filter-grid > .filter-submit,
  .audit-filter-grid > .filter-submit,
  .qc-filter > .filter-submit,
  .dt-filter > .filter-submit,
  .tm-filter > .filter-submit,
  .wi-filter > .filter-submit { width: 100%; }
  .filter-submit .btn { flex: 1 1 auto; }
  .stats-grid,
  .qc-stats,
  .dt-stats,
  .tm-stats,
  .sops-stats,
  .wi-stats,
  .wb-stats,
  .jst-dashboard-grid,
  .finance-commerce-stats,
  .finance-bundle-stats,
  .finance-profit-stats,
  .outbound-invoice-kpis,
  .cl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; }
  .stat-card,
  .qc-stat,
  .dt-stat,
  .tm-stat,
  .sops-stat,
  .wi-stat,
  .wb-stat,
  .jst-module-card,
  .cl-stat { min-height: 84px; padding: 11px; }
  .stat-card strong,
  .qc-stat strong,
  .dt-stat strong,
  .tm-stat strong,
  .sops-stat strong,
  .wi-stat strong,
  .wb-stat strong,
  .jst-module-card strong,
  .cl-stat strong { font-size: 19px; }
  .toolbar-actions,
  .card-actions { width: 100%; flex-wrap: wrap; }
  .toolbar-actions .btn,
  .card-actions .btn { flex: 1 1 auto; }
  .pagination,
  .qc-pagination,
  .tm-pagination,
  .dt-pagination,
  .wi-pagination { flex-wrap: wrap; justify-content: center; }
  .pagination > span,
  .qc-pagination > span,
  .tm-pagination > span,
  .dt-pagination > span,
  .wi-pagination > span { width: 100%; margin: 0; text-align: center; }
  .finance-store-form,
  #financeInvoiceConvertForm,
  .finance-profit-upload,
  .finance-profit-rate-grid,
  .finance-profit-inline-form,
  .finance-profit-adjustment-form { grid-template-columns: 1fr; }
  .finance-store-remark,
  .finance-profit-upload .finance-card-head,
  .finance-profit-upload .btn { grid-column: auto; }
  .finance-library-card .toolbar-actions { grid-template-columns: 1fr; }
  .finance-bundle-component { grid-template-columns: 1fr 38px; }
  .finance-bundle-code,
  .finance-bundle-name { grid-column: span 1; }
  .platform-picker { grid-template-columns: 1fr; }
  .detail-grid,
  .audit-detail-grid,
  .dt-detail-grid,
  .dt-sheet-meta { grid-template-columns: 1fr; }
  .toast-container { inset: 8px 8px auto; }
  .toast { min-width: 0; max-width: none; }
  #frontendUpdateNotice {
    top: 64px;
    right: 8px;
    width: calc(100% - 16px);
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
  }
  .frontend-update-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .dashboard-changelog { padding: 12px 11px 2px; }
  .dashboard-changelog-list { grid-template-columns: 1fr; }
  .dashboard-changelog-entry { grid-template-columns: 1fr; gap: 3px; }
  .cl-filter label,
  .cl-filter label:first-child { flex-basis: 100%; max-width: none; }
  .cl-date-group { grid-template-columns: 1fr; gap: 0; }
  .cl-date { position: static; padding: 13px 0 6px; }
}
