:root {
  --navy-950: #0b2036;
  --navy-900: #102b46;
  --navy-800: #163c5b;
  --blue-700: #17618b;
  --blue-100: #e8f1f6;
  --gold-700: #987233;
  --gold-500: #b79555;
  --gold-100: #f5efe4;
  --ink-950: #152238;
  --ink-700: #41536a;
  --ink-500: #738297;
  --ink-300: #aab6c3;
  --canvas: #f4f6f8;
  --panel: #ffffff;
  --line: #e4e9ef;
  --line-soft: #edf1f4;
  --green: #16866d;
  --green-soft: #e7f4ef;
  --amber: #b97820;
  --amber-soft: #fff3df;
  --red: #b75b52;
  --red-soft: #fbedeb;
  --shadow: 0 12px 30px rgba(13, 40, 66, .07);
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 7px;
  --focus: 0 0 0 3px rgba(23, 97, 139, .2);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-950);
  background: var(--canvas);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button { border: 0; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus); }
.inline-icon { display: inline-flex; width: 1em; height: 1em; flex: 0 0 auto; align-items: center; justify-content: center; }
.inline-icon svg { display: block; width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 236px;
  flex-direction: column;
  padding: 25px 15px 20px;
  color: #fff;
  background: var(--navy-950);
}
.brand, .mobile-brand { display: flex; align-items: center; gap: 11px; }
.brand { padding: 0 10px 30px; }
.brand strong, .mobile-brand strong { display: block; font-size: 15px; letter-spacing: .08em; font-weight: 700; }
.brand span { display: block; margin-top: 4px; color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .06em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy-950);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: linear-gradient(145deg, #d9c28d, #9d773b);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
  font-size: 15px;
  font-weight: 800;
}
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.sidebar-caption { padding: 0 12px 9px; color: rgba(255,255,255,.32); font-size: 10px; letter-spacing: .14em; }
.sidebar-caption:not(:first-of-type) { margin-top: 28px; }
.nav-list { display: grid; gap: 3px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  color: rgba(255,255,255,.64);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, color .2s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.is-active { color: #fff; background: rgba(51, 116, 153, .72); box-shadow: inset 3px 0 0 var(--gold-500); }
.nav-icon { display: inline-flex; width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.nav-icon .inline-icon, .metric-icon .inline-icon, .action-mark .inline-icon { width: 100%; height: 100%; }
.icon-button > .inline-icon, .user-chip > .inline-icon, .action-link > .inline-icon, .modal-close > .inline-icon { width: 100%; height: 100%; }
.nav-icon svg, .icon-button svg, .user-chip svg, .action-link svg, .modal-close svg { width: 100%; height: 100%; }
.nav-count { margin-left: auto; padding: 2px 6px; color: #fff; border-radius: 10px; background: rgba(255,255,255,.16); font-size: 10px; }
.nav-count-soft { color: #d8e8f2; background: rgba(97, 158, 190, .25); }
.nav-count-warn { color: #ecd59f; background: rgba(183,149,85,.21); }
.sidebar-foot { margin-top: auto; padding: 0 12px; color: rgba(255,255,255,.39); font-size: 10px; line-height: 1.8; }
.sidebar-foot small { display: block; color: rgba(255,255,255,.25); }
.sidebar-foot-rule { width: 28px; height: 1px; margin-bottom: 10px; background: var(--gold-500); }

.main-content { min-width: 0; width: calc(100% - 236px); margin-left: 236px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
}
.mobile-brand { display: none; }
.top-context { display: flex; align-items: baseline; gap: 11px; color: var(--ink-950); }
.top-context-label { color: var(--ink-500); font-size: 12px; }
.top-context strong { font-size: 14px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.select-wrap select {
  min-width: 176px;
  padding: 8px 30px 8px 11px;
  color: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  cursor: pointer;
}
.select-wrap select:hover { border-color: #bdcbd6; }
.icon-button, .user-chip { color: var(--ink-700); background: transparent; cursor: pointer; }
.icon-button { position: relative; display: grid; width: 34px; height: 34px; padding: 8px; place-items: center; border-radius: 8px; }
.icon-button:hover { background: var(--canvas); }
.icon-button svg { width: 17px; height: 17px; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: var(--red); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 0 4px 10px; border-left: 1px solid var(--line); text-align: left; }
.user-chip:hover .user-meta strong { color: var(--blue-700); }
.user-avatar { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; border-radius: 50%; background: var(--blue-700); font-size: 12px; font-weight: 700; }
.user-meta { display: grid; gap: 2px; min-width: 75px; }
.user-meta strong { font-size: 12px; font-weight: 600; }
.user-meta small { color: var(--ink-500); font-size: 10px; }
.user-chip > .inline-icon { width: 13px; height: 13px; color: var(--ink-300); }

.stage { width: min(1480px, 100%); margin: 0 auto; padding: 32px 34px 16px; }
.page-intro { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--gold-700); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.eyebrow::before { width: 19px; height: 2px; content: ""; background: var(--gold-500); }
.page-intro h1 { margin: 0; font-size: clamp(24px, 2.25vw, 32px); letter-spacing: -.03em; line-height: 1.25; }
.page-intro p { max-width: 610px; margin: 9px 0 0; color: var(--ink-500); line-height: 1.7; }
.intro-actions { display: flex; gap: 8px; margin-left: auto; }
.btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { color: var(--blue-700); border-color: #b5c8d5; background: #fbfcfd; }
.btn-primary { color: #fff; border-color: var(--blue-700); background: var(--blue-700); }
.btn-primary:hover { color: #fff; border-color: var(--navy-800); background: var(--navy-800); }
.btn svg { width: 14px; height: 14px; }

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 30px;
  min-height: 192px;
  margin-bottom: 16px;
  padding: 26px 30px;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  box-shadow: 0 18px 40px rgba(11,32,54,.15);
}
.hero-board::after { position: absolute; right: 165px; bottom: -80px; width: 390px; height: 230px; content: ""; border: 1px solid rgba(183,149,85,.25); border-radius: 50%; transform: rotate(-12deg); }
.hero-board::before { position: absolute; top: -150px; right: -50px; width: 330px; height: 330px; content: ""; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.hero-copy, .hero-score { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #83c9b1; box-shadow: 0 0 0 4px rgba(131,201,177,.12); }
.hero-copy h2 { margin: 0; font-size: clamp(22px, 2.2vw, 31px); letter-spacing: -.035em; line-height: 1.3; }
.hero-copy h2 em { color: #dfc98e; font-style: normal; }
.hero-copy p { max-width: 650px; margin: 10px 0 20px; color: rgba(255,255,255,.62); line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { padding: 5px 9px; color: rgba(255,255,255,.69); border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(255,255,255,.06); font-size: 11px; }
.hero-score { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.score-ring { display: grid; width: 106px; height: 106px; place-items: center; border-radius: 50%; background: conic-gradient(#d7be7e 0deg 342deg, rgba(255,255,255,.12) 342deg 360deg); box-shadow: inset 0 0 0 10px var(--navy-900); }
.score-ring-inner { display: grid; width: 79px; height: 79px; place-items: center; border-radius: 50%; background: var(--navy-900); text-align: center; }
.score-ring strong { display: block; font-size: 22px; line-height: 1; }
.score-ring small { display: block; margin-top: 4px; color: rgba(255,255,255,.52); font-size: 10px; }
.hero-score p { margin: 11px 0 0; color: #dbc98f; font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); box-shadow: 0 4px 16px rgba(20,39,62,.025); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-500); font-size: 12px; }
.metric-icon { display: grid; width: 27px; height: 27px; place-items: center; color: var(--blue-700); border-radius: 7px; background: var(--blue-100); }
.metric-icon.gold { color: var(--gold-700); background: var(--gold-100); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon svg { width: 15px; height: 15px; }
.metric-value { margin-top: 11px; font-size: 25px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.metric-value small { margin-left: 3px; color: var(--ink-500); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.metric-foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--ink-500); font-size: 11px; }
.metric-delta { color: var(--green); font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 16px; margin-bottom: 16px; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 16px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 15px; border-bottom: 1px solid var(--line-soft); }
.panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--ink-500); font-size: 11px; line-height: 1.5; }
.panel-head .panel-action { margin-left: auto; }
.panel-action { color: var(--blue-700); background: transparent; cursor: pointer; font-size: 11px; }
.panel-action:hover { text-decoration: underline; }
.panel-body { padding: 16px 20px 19px; }

.project-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.project-table th { padding: 0 10px 10px; color: var(--ink-500); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 500; text-align: left; }
.project-table td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.project-table th:first-child, .project-table td:first-child { padding-left: 0; width: 31%; }
.project-table th:last-child, .project-table td:last-child { padding-right: 0; text-align: right; }
.project-table tbody tr { cursor: pointer; transition: background .18s ease; }
.project-table tbody tr:hover { background: #fbfcfd; }
.project-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.project-initial { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; color: var(--blue-700); border-radius: 8px; background: var(--blue-100); font-size: 11px; font-weight: 700; }
.project-name strong { display: block; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-name small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.table-number { color: var(--ink-950); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-sub { display: block; margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.status::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: currentColor; }
.status.good { color: var(--green); background: var(--green-soft); }
.status.watch { color: var(--amber); background: var(--amber-soft); }
.status.alert { color: var(--red); background: var(--red-soft); }
.action-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-700); background: transparent; cursor: pointer; font-size: 11px; }
.action-link svg { width: 13px; height: 13px; transition: transform .2s ease; }
.action-link:hover svg { transform: translateX(3px); }

.action-list { display: grid; gap: 8px; }
.action-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fcfdfd; }
.action-mark { display: grid; width: 32px; height: 32px; place-items: center; color: var(--gold-700); border-radius: 8px; background: var(--gold-100); }
.action-mark.blue { color: var(--blue-700); background: var(--blue-100); }
.action-mark.red { color: var(--red); background: var(--red-soft); }
.action-mark svg { width: 15px; height: 15px; }
.action-item strong { display: block; overflow: hidden; color: var(--ink-700); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.action-item small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.action-time { align-self: start; color: var(--ink-300); font-size: 10px; white-space: nowrap; }
.action-more { width: 100%; margin-top: 12px; }

.chart-wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: stretch; }
.chart-legend { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--ink-500); font-size: 11px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-700); }
.chart-total { color: var(--ink-950); font-size: 19px; font-weight: 700; }
.chart-total small { margin-left: 4px; color: var(--ink-500); font-size: 10px; font-weight: 400; }
.bar-chart { display: flex; height: 146px; align-items: flex-end; gap: clamp(7px, 1.1vw, 18px); padding: 0 5px 0 3px; border-bottom: 1px solid var(--line); }
.bar-col { display: flex; min-width: 0; height: 100%; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.bar { position: relative; width: min(30px, 78%); min-height: 10px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #4e8cb5, #1c608c); transition: height .35s ease, filter .2s ease; }
.bar:hover { filter: brightness(1.08); }
.bar strong { position: absolute; top: -17px; left: 50%; color: var(--ink-500); font-size: 9px; font-weight: 500; transform: translateX(-50%); }
.bar-col label { color: var(--ink-500); font-size: 10px; }
.chart-aside { display: grid; width: 100px; align-content: end; gap: 10px; padding-bottom: 18px; }
.chart-aside-item { padding-left: 10px; border-left: 2px solid var(--gold-500); }
.chart-aside-item strong { display: block; color: var(--ink-950); font-size: 15px; font-weight: 700; }
.chart-aside-item span { display: block; margin-top: 2px; color: var(--ink-500); font-size: 10px; }

.phone-panel { position: relative; }
.phone-head { display: flex; align-items: flex-start; gap: 14px; }
.phone-tabs { display: flex; gap: 13px; margin-left: auto; }
.phone-tab { padding: 3px 0 5px; color: var(--ink-500); border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font-size: 11px; }
.phone-tab.is-active { color: var(--blue-700); border-bottom-color: var(--gold-500); font-weight: 700; }
.phone-stage { display: flex; min-height: 204px; align-items: center; justify-content: center; padding: 13px 0 4px; }
.phone {
  width: 220px;
  overflow: hidden;
  border: 5px solid #122c46;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(13,42,67,.18);
}
.phone-notch { width: 72px; height: 15px; margin: 0 auto -2px; border-radius: 0 0 10px 10px; background: #122c46; }
.phone-top { padding: 9px 13px 13px; color: #fff; background: var(--navy-800); }
.phone-top-line { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.74); font-size: 9px; }
.phone-top strong { display: block; margin-top: 13px; font-size: 14px; font-weight: 600; }
.phone-top small { display: block; margin-top: 3px; color: rgba(255,255,255,.55); font-size: 9px; }
.phone-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding: 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.09); }
.phone-card span { color: rgba(255,255,255,.55); font-size: 8px; }
.phone-card strong { margin-top: 3px; color: #fff; font-size: 14px; }
.phone-body { padding: 11px; background: #f8fafb; }
.phone-section-line { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-950); font-size: 10px; font-weight: 700; }
.phone-section-line small { color: var(--ink-500); font-size: 8px; font-weight: 400; }
.phone-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.phone-service { display: grid; gap: 4px; justify-items: center; color: var(--ink-700); font-size: 8px; text-align: center; }
.phone-service i { display: grid; width: 27px; height: 27px; place-items: center; color: var(--blue-700); border-radius: 8px; background: var(--blue-100); font-style: normal; }
.phone-service:nth-child(2n) i { color: var(--gold-700); background: var(--gold-100); }
.phone-service svg { width: 14px; height: 14px; }
.phone-event { margin-top: 12px; padding: 9px; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(20,39,62,.05); }
.phone-event span { color: var(--gold-700); font-size: 8px; }
.phone-event strong { display: block; margin-top: 5px; color: var(--ink-950); font-size: 10px; }
.phone-event small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 8px; }
.phone-foot { display: flex; justify-content: space-around; padding: 8px 7px 7px; color: var(--ink-500); border-top: 1px solid var(--line); background: #fff; font-size: 8px; }
.phone-foot span:first-child { color: var(--blue-700); font-weight: 700; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portfolio-card { position: relative; display: flex; min-height: 188px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); box-shadow: var(--shadow); }
.portfolio-card:hover { border-color: #b9cbd6; }
.portfolio-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.portfolio-card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.portfolio-card p { margin: 6px 0 17px; color: var(--ink-500); font-size: 11px; line-height: 1.6; }
.portfolio-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.portfolio-stats span { display: block; color: var(--ink-500); font-size: 10px; }
.portfolio-stats strong { display: block; margin-top: 4px; font-size: 15px; }
.portfolio-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.portfolio-cta small { color: var(--ink-500); font-size: 10px; }
.portfolio-list { margin-top: 18px; }

.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 78px 1fr 90px; gap: 12px; align-items: center; }
.funnel-row label { color: var(--ink-700); font-size: 11px; }
.funnel-track { height: 10px; overflow: hidden; border-radius: 10px; background: var(--line-soft); }
.funnel-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-700), #6fa6c2); }
.funnel-row strong { color: var(--ink-950); font-size: 11px; text-align: right; }
.funnel-row small { color: var(--ink-500); font-size: 10px; font-weight: 400; }
.campaign-list { display: grid; gap: 0; }
.campaign-row { display: grid; grid-template-columns: minmax(0,1fr) 76px 80px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.campaign-row:last-child { border-bottom: 0; }
.campaign-row strong { display: block; overflow: hidden; color: var(--ink-700); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.campaign-row small { display: block; margin-top: 4px; color: var(--ink-500); font-size: 10px; }
.campaign-num { color: var(--ink-950); font-size: 12px; font-weight: 700; text-align: right; }
.campaign-num small { margin-top: 2px; text-align: right; }

.empty-state { padding: 36px 20px; color: var(--ink-500); border: 1px dashed #ccd6de; border-radius: var(--radius-md); background: rgba(255,255,255,.6); text-align: center; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1480px, 100%); margin: 0 auto; padding: 14px 34px 25px; color: var(--ink-300); border-top: 1px solid var(--line); font-size: 10px; }

.toast { position: fixed; right: 25px; bottom: 24px; z-index: 50; max-width: 310px; padding: 11px 14px; color: #fff; border-radius: 8px; background: var(--navy-900); box-shadow: 0 9px 25px rgba(11,32,54,.22); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; padding: 20px; place-items: center; background: rgba(8, 25, 42, .55); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.detail-modal { position: relative; width: min(540px, 100%); max-height: 90vh; overflow: auto; padding: 25px; border-radius: 16px; background: #fff; box-shadow: 0 25px 65px rgba(5,25,43,.25); }
.modal-close { position: absolute; top: 17px; right: 17px; display: grid; width: 30px; height: 30px; padding: 7px; place-items: center; color: var(--ink-500); border-radius: 7px; background: var(--canvas); cursor: pointer; }
.modal-close:hover { color: var(--ink-950); }
.modal-title { padding-right: 32px; }
.modal-title .eyebrow { margin-bottom: 9px; }
.modal-title h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.modal-title p { margin: 8px 0 20px; color: var(--ink-500); line-height: 1.6; }
.modal-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 18px; }
.modal-stat { padding: 12px; border-radius: 8px; background: var(--canvas); }
.modal-stat span { display: block; color: var(--ink-500); font-size: 10px; }
.modal-stat strong { display: block; margin-top: 5px; font-size: 15px; }
.modal-section { padding-top: 16px; border-top: 1px solid var(--line); }
.modal-section h3 { margin: 0 0 10px; font-size: 12px; }
.modal-list { display: grid; gap: 8px; }
.modal-list li { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-700); font-size: 11px; list-style: none; }
.modal-list li span:last-child { color: var(--ink-500); text-align: right; }

@media (max-width: 1180px) {
  .sidebar { width: 208px; }
  .main-content { width: calc(100% - 208px); margin-left: 208px; }
  .topbar, .stage, .page-footer { padding-right: 24px; padding-left: 24px; }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: 70px; padding: 18px 10px; }
  .brand { justify-content: center; padding: 0 0 26px; }
  .brand > div:last-child, .sidebar-caption, .nav-item > span:not(.nav-icon), .sidebar-foot { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item.is-active { box-shadow: inset 0 -3px 0 var(--gold-500); }
  .nav-icon { width: 19px; height: 19px; }
  .nav-count { position: absolute; top: 6px; right: 5px; padding: 1px 4px; font-size: 8px; }
  .main-content { width: calc(100% - 70px); margin-left: 0; }
  .topbar { min-height: 62px; padding: 0 17px; }
  .mobile-brand { display: flex; }
  .top-context { display: none; }
  .top-actions { gap: 6px; }
  .select-wrap { display: none; }
  .user-meta, .user-chip > svg { display: none; }
  .user-chip { padding-left: 7px; }
  .stage { padding: 24px 17px 12px; }
  .page-intro { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .intro-actions { margin-left: 0; }
  .hero-board { grid-template-columns: 1fr; gap: 17px; padding: 22px 20px; }
  .hero-score { align-items: flex-start; padding: 15px 0 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .score-ring { width: 86px; height: 86px; box-shadow: inset 0 0 0 8px var(--navy-900); }
  .score-ring-inner { width: 65px; height: 65px; }
  .score-ring strong { font-size: 18px; }
  .hero-score p { position: absolute; top: 47px; left: 103px; margin: 0; }
  .metric-grid, .member-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .panel-head, .panel-body { padding-right: 15px; padding-left: 15px; }
  .project-table { min-width: 580px; }
  .project-table-wrap { overflow-x: auto; }
  .chart-wrap { grid-template-columns: 1fr; }
  .chart-aside { display: flex; width: auto; gap: 20px; padding: 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; padding: 12px 17px 20px; }
}
@media (max-width: 480px) {
  .brand-mark.small { width: 26px; height: 26px; }
  .mobile-brand strong { font-size: 13px; }
  .icon-button { width: 31px; height: 31px; }
  .intro-actions { width: 100%; }
  .intro-actions .btn { flex: 1; }
  .metric-card { padding: 14px 13px; }
  .metric-value { font-size: 21px; }
  .hero-copy h2 { font-size: 23px; }
  .hero-meta span { font-size: 10px; }
  .panel-head { align-items: flex-start; }
  .panel-head .panel-action { padding-top: 3px; }
  .funnel-row { grid-template-columns: 65px 1fr 74px; gap: 7px; }
  .campaign-row { grid-template-columns: minmax(0,1fr) 64px 70px; gap: 7px; }
  .modal-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
