:root {
  --ink: #17241f;
  --ink-strong: #0f1d18;
  --ink-soft: #63716c;
  --ink-muted: #7d8985;
  --paper: #ffffff;
  --canvas: #f4f6f5;
  --line: #dce4e1;
  --line-soft: #e9eeec;
  --nav: #14231f;
  --nav-soft: #20332e;
  --accent: #137c5e;
  --accent-dark: #0c664c;
  --accent-soft: #e4f4ee;
  --blue: #376b9e;
  --blue-soft: #e8f0f8;
  --amber: #a9650d;
  --amber-soft: #fff3dc;
  --red: #ac4646;
  --red-soft: #fcebea;
  --purple: #6f58a0;
  --purple-soft: #f0ecf8;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 16px;
  --sidebar-width: 272px;
  --content-max: 1560px;
  --shadow: 0 16px 42px rgba(20, 42, 34, 0.1);
  --shadow-soft: 0 7px 24px rgba(20, 42, 34, 0.07);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv02" 1;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(19, 124, 94, 0.2);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #eff8f5;
  background:
    radial-gradient(circle at 24% -8%, rgba(54, 156, 123, 0.24), transparent 31%),
    linear-gradient(180deg, #172923 0%, var(--nav) 48%, #101d19 100%);
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sidebar-brand {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.brand-glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #12352b;
  background: #a9e1cd;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px 12px 12px 5px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.22);
  font-size: 16px;
  font-weight: 800;
}
.sidebar-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.sidebar-brand span:not(.brand-glyph) {
  display: block;
  margin-top: 4px;
  color: #92aaa2;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.06em;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.nav-label {
  margin: 20px 11px 8px;
  color: #799188;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.nav-label:first-child { margin-top: 2px; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 0;
  border-radius: 10px;
  color: #c0cfca;
  background: transparent;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.065); }
.nav-item.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(44, 155, 119, .3), rgba(42, 116, 95, .15));
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 3px;
  height: 24px;
  background: #65c8a8;
  border-radius: 0 3px 3px 0;
}
.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #9bb1aa;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 800;
}
.nav-item.is-active .nav-icon { color: #d1f3e7; background: rgba(62, 176, 141, .24); }
.nav-item em {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 12px;
  color: #9ae4ca;
  background: rgba(57, 156, 126, .2);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.nav-item em.warn { color: #f9d49a; background: rgba(211, 139, 38, .19); }
.sidebar-foot {
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.09);
  background: rgba(3, 12, 9, 0.08);
}
.environment-pill {
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  color: #91a9a1;
  background: rgba(255,255,255,.03);
  font-size: 12px;
  line-height: 1.4;
}
.environment-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #63c7a3;
  box-shadow: 0 0 0 3px rgba(99,199,163,.13);
}
.operator-card { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.avatar-light { color: #173b31; background: #b6dfd1; }
.operator-card strong, .operator-card small { display: block; }
.operator-card strong { font-size: 14px; line-height: 1.35; }
.operator-card small { margin-top: 2px; color: #8ca099; font-size: 12px; line-height: 1.35; }
.operator-card button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #91a39d;
  background: none;
  font-size: 14px;
  cursor: pointer;
}
.operator-card button:hover { color: #fff; background: rgba(255,255,255,0.06); }

.workspace { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 72px;
  padding: 0 clamp(22px, 2.5vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-start, .topbar-actions, .breadcrumbs { display: flex; align-items: center; }
.breadcrumbs { gap: 10px; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.breadcrumbs span { color: var(--ink-muted); }
.breadcrumbs b { color: #bdc8c4; font-weight: 400; }
.breadcrumbs strong { color: #293832; font-weight: 700; }
.topbar-actions { gap: 10px; }
.global-search {
  width: min(340px, 29vw);
  height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #71807a;
  background: #f8faf9;
}
.global-search:focus-within { border-color: #83c4b0; background: #fff; box-shadow: 0 0 0 3px rgba(19,124,94,.09); }
.global-search input {
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}
.global-search input::placeholder { color: #8b9692; }
.global-search kbd {
  min-width: 24px;
  padding: 3px 6px;
  border: 1px solid #d7dfdc;
  border-bottom-color: #bdc9c4;
  border-radius: 6px;
  color: #7d8985;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.date-switch, .icon-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.date-switch { padding: 0 14px; color: #4e5e58; font-size: 13px; font-weight: 650; }
.date-switch:hover, .icon-button:hover { border-color: #acbeb7; background: #f8faf9; box-shadow: 0 4px 14px rgba(24,45,38,.05); }
.icon-button { position: relative; width: 42px; display: grid; place-items: center; color: #465650; font-size: 18px; }
.has-dot::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.mobile-menu { display: none; margin-right: 8px; }

.content-area { min-height: calc(100vh - 72px); padding: 34px clamp(22px, 2.5vw, 38px) 48px; }
.page-head {
  max-width: var(--content-max);
  min-height: 88px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.page-head > div:first-child { min-width: 0; }
.page-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-head h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(28px, 2.3vw, 32px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.page-head p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.page-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #3f5049;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: #aec1ba; box-shadow: var(--shadow-soft); }
.button-primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button-danger { border-color: #ebc0be; color: var(--red); background: #fff7f7; }
.button-danger:hover { border-color: #dca8a5; background: #fff2f1; }
.button-quiet { background: #f6f8f7; }
.button-small { min-height: 36px; padding: 0 12px; font-size: 13px; }

.metric-grid {
  max-width: var(--content-max);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  position: relative;
  min-height: 136px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.metric-card::after { content: ""; position: absolute; right: -29px; bottom: -45px; width: 116px; height: 116px; border-radius: 50%; background: var(--metric-tint, #eff7f4); opacity: .8; }
.metric-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: #60706a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--metric-color, var(--accent));
  background: var(--metric-tint, var(--accent-soft));
  font-size: 13px;
  font-weight: 800;
}
.metric-value { position: relative; z-index: 1; margin: 13px 0 8px; color: var(--ink-strong); font-size: 30px; line-height: 1; font-weight: 760; letter-spacing: -.04em; }
.metric-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-muted); font-size: 12px; line-height: 1.4; }
.delta { color: var(--accent); font-weight: 800; }
.delta.down { color: var(--red); }
.delta.neutral { color: var(--amber); }

.content-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, .78fr);
  gap: 18px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.panel-head {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { margin: 0; color: #1e2d27; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.panel-head p { margin: 5px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.45; }
.panel-body { padding: 20px; }
.link-button { min-height: 34px; border: 0; padding: 0 4px; color: var(--accent); background: transparent; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.link-button:hover { color: var(--accent-dark); }

.queue-list { display: grid; gap: 3px; padding: 8px 10px 12px; }
.queue-item {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .17s ease, transform .17s ease;
}
.queue-item:hover { background: #f5f8f7; transform: translateX(2px); }
.queue-count { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 16px; font-weight: 800; }
.queue-count.is-red { color: var(--red); background: var(--red-soft); }
.queue-count.is-amber { color: var(--amber); background: var(--amber-soft); }
.queue-count.is-blue { color: var(--blue); background: var(--blue-soft); }
.queue-item strong { display: block; margin-bottom: 5px; color: #27362f; font-size: 14px; line-height: 1.35; }
.queue-item small { display: block; overflow: hidden; color: var(--ink-muted); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.queue-meta { min-width: 118px; text-align: right; }
.queue-meta b { display: block; margin-bottom: 4px; color: #5e6e67; font-size: 12px; line-height: 1.35; }
.queue-meta span { color: #8b9692; font-size: 12px; line-height: 1.35; }
.queue-meta b.urgent { color: var(--red); }

.stack { display: grid; gap: 18px; }
.shift-card { padding: 20px; color: #ecf8f4; background: linear-gradient(145deg, #1b3d33, #102720); border-color: transparent; box-shadow: 0 12px 30px rgba(16,39,32,.14); }
.shift-card .panel-head { min-height: auto; padding: 0 0 16px; border-color: rgba(255,255,255,.1); }
.shift-card .panel-head h2 { color: #fff; }
.shift-card .panel-head p { color: #8aaba1; }
.shift-live { display: flex; align-items: center; gap: 7px; color: #9bdac5; font-size: 12px; font-weight: 700; }
.shift-live i { width: 7px; height: 7px; border-radius: 50%; background: #67d2ae; box-shadow: 0 0 0 4px rgba(103,210,174,.1); }
.shift-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; }
.shift-summary div { padding-right: 10px; border-right: 1px solid rgba(255,255,255,.1); }
.shift-summary div:last-child { border: 0; }
.shift-summary strong { display: block; color: #fff; font-size: 24px; line-height: 1.15; }
.shift-summary span { display: block; margin-top: 4px; color: #8aa89f; font-size: 12px; line-height: 1.35; }
.progress-track { height: 7px; margin-top: 18px; overflow: hidden; border-radius: 7px; background: rgba(255,255,255,.09); }
.progress-track i { display: block; width: var(--progress, 50%); height: 100%; border-radius: inherit; background: #60c9a6; }

.signal-list { display: grid; gap: 14px; }
.signal-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.signal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.signal-dot.amber { background: var(--amber); }
.signal-dot.red { background: var(--red); }
.signal-item span { color: #4f6059; font-size: 13px; line-height: 1.4; }
.signal-item b { color: #27362f; font-size: 13px; line-height: 1.4; }
.mini-bars { height: 70px; display: flex; align-items: flex-end; gap: 6px; margin-top: 20px; }
.mini-bars i { flex: 1; min-width: 5px; height: var(--h); border-radius: 4px 4px 1px 1px; background: #c7e8dc; }
.mini-bars i:nth-last-child(-n+3) { background: #68bca0; }

.table-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.table-heading {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.table-heading h2 { margin: 0; color: #1d2c26; font-size: 19px; line-height: 1.35; letter-spacing: -.015em; }
.table-heading p { margin: 5px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.45; }
.table-summary {
  min-width: 98px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 8px;
  color: var(--ink-muted);
}
.table-summary strong { color: var(--ink-strong); font-size: 24px; line-height: 1; }
.table-summary span { font-size: 12px; line-height: 1.3; }
.table-toolbar {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fcfdfd;
}
.toolbar-start, .toolbar-end, .filter-tabs { display: flex; align-items: center; gap: 8px; }
.toolbar-start { min-width: 0; }
.filter-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #66766f;
  background: transparent;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.filter-tab:hover { background: #f1f5f3; }
.filter-tab.is-active { color: var(--accent-dark); background: var(--accent-soft); font-weight: 750; }
.filter-tab span { display: inline-block; min-width: 21px; margin-left: 5px; padding: 2px 6px; border-radius: 10px; color: #65756e; background: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; line-height: 1.35; }
.field {
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #495a53;
  background: #fff;
  font-size: 13px;
}
.table-note { color: var(--ink-muted); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.data-table-wrap { width: 100%; overflow-x: auto; scrollbar-color: #c7d3cf transparent; }
.data-table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: auto; }
.data-table th {
  height: 48px;
  padding: 0 16px;
  color: #697872;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .01em;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: #3f5049;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.data-table tbody tr:hover { background: #f7faf9; box-shadow: inset 3px 0 0 var(--accent); }
.entity-cell { min-width: 238px; display: flex; align-items: center; gap: 12px; }
.entity-thumb { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--thumb-color, #316952); background: var(--thumb-bg, #dff2eb); font-size: 12px; font-weight: 850; letter-spacing: -.03em; }
.entity-cell strong, .entity-cell small { display: block; }
.entity-cell strong { max-width: 270px; overflow: hidden; color: #23332c; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.entity-cell small { max-width: 285px; margin-top: 5px; overflow: hidden; color: var(--ink-muted); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.person-cell { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.person-cell .avatar { width: 30px; height: 30px; color: #37574d; background: #e2ece8; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border-radius: 14px; color: #4c5b55; background: #eef2f0; font-size: 12px; font-weight: 750; line-height: 1.35; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .72; }
.badge.green { color: var(--accent-dark); background: var(--accent-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.badge.purple { color: var(--purple); background: var(--purple-soft); }
.badge.gray { color: #64736d; background: #eef1f0; }
.priority { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.priority::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a8b4b0; }
.priority.high { color: var(--red); }
.priority.high::before { background: var(--red); }
.priority.medium { color: var(--amber); }
.priority.medium::before { background: var(--amber); }
.priority.low { color: #68766f; }
.cell-main { display: block; color: #30413a; font-size: 13px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.cell-sub { display: block; margin-top: 5px; color: var(--ink-muted); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.row-action { width: 36px; height: 36px; border: 0; border-radius: 9px; color: #73817c; background: transparent; font-size: 14px; cursor: pointer; }
.row-action:hover { color: #33433d; background: #eaf0ed; }
.table-empty { padding: 66px 20px; color: #75837e; font-size: 13px; line-height: 1.5; text-align: center; }
.table-empty strong { display: block; margin-bottom: 7px; color: #3e4f48; font-size: 16px; line-height: 1.4; }
.table-pagination { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px; border-top: 1px solid var(--line-soft); color: #71807a; background: #fcfdfd; font-size: 12px; line-height: 1.4; }
.page-numbers { display: flex; gap: 5px; }
.page-numbers button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; cursor: pointer; }
.page-numbers button:hover { background: #edf2f0; }
.page-numbers button.is-active { color: #fff; background: var(--accent); }

.insight-grid {
  max-width: var(--content-max);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.insight-card {
  min-height: 232px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.insight-card.wide { grid-column: span 2; overflow-x: auto; }
.insight-card h3 { margin: 0 0 7px; color: #203028; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.insight-card > p { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }
.funnel { display: grid; gap: 10px; margin-top: 20px; }
.funnel-row { display: grid; grid-template-columns: 78px minmax(100px, 1fr) 62px; gap: 10px; align-items: center; color: #4f6059; font-size: 13px; line-height: 1.4; }
.funnel-track { height: 26px; padding: 4px; border-radius: 7px; background: #eff3f1; }
.funnel-track i { display: block; width: var(--w); height: 100%; border-radius: 5px; background: var(--fill, #62b99c); }
.funnel-row b { color: #25362f; text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: #5f7069; font-size: 12px; line-height: 1.4; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--legend); }
.line-chart { position: relative; height: 126px; display: flex; align-items: flex-end; gap: 9px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.line-chart::before, .line-chart::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed #e4eae7; }
.line-chart::before { top: 25%; }
.line-chart::after { top: 60%; }
.line-chart .bar { position: relative; z-index: 1; flex: 1; height: var(--h); min-width: 7px; border-radius: 5px 5px 1px 1px; background: linear-gradient(#52ad8f, #b8e0d2); }
.line-chart .bar:hover::after { content: attr(data-label); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); padding: 6px 8px; border-radius: 6px; color: #fff; background: #20332d; font-size: 12px; line-height: 1.35; white-space: nowrap; box-shadow: var(--shadow-soft); }
.heat-grid { min-width: 580px; display: grid; grid-template-columns: 104px repeat(4, 1fr); gap: 7px; margin-top: 19px; align-items: center; }
.heat-grid span { padding: 10px 7px; border-radius: 7px; color: #586962; background: #f3f6f5; font-size: 12px; line-height: 1.35; text-align: center; }
.heat-grid span.head { padding: 4px; color: #7a8782; background: none; font-weight: 700; }
.heat-grid span.level-1 { background: #e5f4ee; }
.heat-grid span.level-2 { color: #835e1c; background: #fcefd7; }
.heat-grid span.level-3 { color: #934743; background: #f9dcd9; }
.permission-matrix { width: 100%; min-width: 700px; margin-top: 16px; border-collapse: collapse; color: #4a5a54; font-size: 13px; line-height: 1.4; }
.permission-matrix th, .permission-matrix td { height: 44px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.permission-matrix th { color: #66756f; background: #f9fbfa; font-size: 12px; font-weight: 750; }
.permission-matrix th:first-child, .permission-matrix td:first-child { min-width: 112px; text-align: left; }
.permission-matrix .yes { color: var(--accent); font-weight: 850; }
.permission-matrix .approval { color: var(--amber); font-weight: 800; }
.audit-list { display: grid; gap: 16px; margin-top: 19px; }
.audit-item { position: relative; padding-left: 21px; }
.audit-item::before { content: ""; position: absolute; left: 1px; top: 5px; width: 8px; height: 8px; border: 2px solid #72bca3; border-radius: 50%; background: #fff; }
.audit-item::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: -17px; border-left: 1px solid #dfe8e5; }
.audit-item:last-child::after { display: none; }
.audit-item strong { display: block; color: #293a33; font-size: 13px; line-height: 1.45; }
.audit-item small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 12px; line-height: 1.5; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 70; display: none; border: 0; background: rgba(10, 24, 19, .3); backdrop-filter: blur(3px); }
.drawer-backdrop.is-open { display: block; }
.detail-drawer { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(560px, 95vw); display: grid; grid-template-rows: auto 1fr auto; background: #fff; box-shadow: -28px 0 60px rgba(15, 36, 29, .16); transform: translateX(105%); transition: transform .26s cubic-bezier(.2,.72,.2,1); }
.detail-drawer.is-open { transform: translateX(0); }
.drawer-head { min-height: 100px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer-head span { color: var(--accent); font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: .1em; }
.drawer-head h2 { margin: 7px 0 0; color: var(--ink-strong); font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
.drawer-body { overflow-y: auto; padding: 24px 26px; }
.drawer-actions { min-height: 78px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); background: #fafcfb; }
.drawer-section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.drawer-section:last-child { margin-bottom: 0; border: 0; }
.drawer-section h3 { margin: 0 0 14px; color: #273832; font-size: 16px; line-height: 1.4; }
.drawer-summary { padding: 16px; border: 1px solid #d8e7e1; border-radius: 11px; color: #3b4c45; background: #f4faf7; font-size: 13px; line-height: 1.75; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.detail-field span, .detail-field strong { display: block; }
.detail-field span { margin-bottom: 6px; color: var(--ink-muted); font-size: 12px; line-height: 1.35; }
.detail-field strong { color: #293a33; font-size: 14px; line-height: 1.45; }
.detail-note { width: 100%; min-height: 104px; padding: 12px 13px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; color: #374841; background: #fbfcfc; font-size: 13px; line-height: 1.65; }
.timeline { display: grid; gap: 18px; }
.timeline-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
.timeline-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 800; }
.timeline-item strong { display: block; color: #293a33; font-size: 13px; line-height: 1.45; }
.timeline-item small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }
.evidence-box { padding: 15px; border: 1px dashed #c4d3ce; border-radius: 10px; background: #fbfcfc; }
.evidence-box strong { display: block; color: #34463f; font-size: 13px; line-height: 1.45; }
.evidence-box span { display: block; margin-top: 6px; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }

.toast { position: fixed; right: 26px; bottom: 26px; z-index: 100; min-width: 320px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 15px 17px; border: 1px solid #c7dfd6; border-radius: 13px; color: #2c4c41; background: #f8fffc; box-shadow: var(--shadow); opacity: 0; transform: translateY(18px); pointer-events: none; transition: .23s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 14px; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 14px; line-height: 1.4; }
.toast small { margin-top: 3px; color: #687a72; font-size: 12px; line-height: 1.4; }
.sidebar-scrim { display: none; }

@media (max-width: 1240px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid .stack { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .insight-card.wide { grid-column: auto; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-start, .toolbar-end { width: 100%; }
  .toolbar-end { justify-content: flex-end; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .sidebar { transform: translateX(-104%); transition: transform .24s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(12,27,22,.38); }
  .sidebar-scrim.is-open { display: block; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 20px; }
  .content-area { padding: 28px 20px 42px; }
  .global-search { width: min(320px, 38vw); }
  .breadcrumbs span, .breadcrumbs b { display: none; }
}

@media (max-width: 720px) {
  .topbar { height: 64px; padding: 0 14px; }
  .content-area { min-height: calc(100vh - 64px); padding: 24px 14px 34px; }
  .global-search { width: 42px; grid-template-columns: 1fr; padding: 0; cursor: pointer; }
  .global-search > span { display: grid; place-items: center; }
  .global-search input, .global-search kbd { display: none; }
  .global-search.is-expanded { position: fixed; inset: 9px 10px auto 10px; z-index: 90; width: auto; grid-template-columns: 22px 1fr auto; padding: 0 11px; background: #fff; box-shadow: var(--shadow); }
  .global-search.is-expanded input, .global-search.is-expanded kbd { display: block; }
  .date-switch { display: none; }
  .page-head { min-height: 0; align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 22px; }
  .page-head h1 { font-size: 28px; }
  .page-head p:last-child { font-size: 14px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .metric-grid { gap: 10px; }
  .metric-card { min-height: 126px; padding: 17px; }
  .metric-value { font-size: 27px; }
  .content-grid .stack, .insight-grid { grid-template-columns: 1fr; }
  .panel-head { min-height: 68px; padding: 15px 17px; }
  .queue-item { grid-template-columns: 42px minmax(0, 1fr); }
  .queue-meta { display: none; }
  .table-heading { min-height: 80px; padding: 16px; }
  .table-toolbar { padding: 10px 12px; }
  .toolbar-end { justify-content: space-between; }
  .table-note { display: none; }
  .table-pagination { align-items: flex-start; flex-direction: column; padding: 13px 16px; }
  .drawer-head { padding: 20px; }
  .drawer-body { padding: 20px; }
  .drawer-actions { flex-wrap: wrap; padding: 14px 20px; }
  .drawer-actions .button { flex: 1; }
  .toast { left: 14px; right: 14px; bottom: 14px; min-width: 0; }
}

@media (max-width: 480px) {
  .breadcrumbs strong { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 116px; }
  .page-actions { flex-direction: column-reverse; }
  .page-actions .button { width: 100%; }
  .table-heading { align-items: flex-start; }
  .table-summary { min-width: auto; }
  .table-summary span { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .drawer-actions { display: grid; grid-template-columns: 1fr; }
  .drawer-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
