:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-subtle: #fbfcfe;
  --surface-strong: #f4f6f8;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #0f766e;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-card-soft: 0 8px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --highlight-inset: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 var(--text-md) / 1.55 var(--font-sans);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  appearance: none;
  border: none;
  min-height: 40px;
  padding: 0 15px;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  background: #2563eb;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: none;
  white-space: nowrap;
}

button:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.92;
}

button:active {
  transform: translateY(0);
}

.ghost-button,
.inline-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.ghost-button:hover,
.inline-button:hover {
  box-shadow: var(--shadow-sm);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #bfd4ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

pre {
  margin: 0;
  min-height: 140px;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-subtle);
  color: #233246;
}

.dashboard-body,
.login-body {
  min-height: 100vh;
}

.action-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.action-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.action-toast.success {
  border-left: 4px solid var(--success);
}

.action-toast.warning {
  border-left: 4px solid var(--warning);
}

.action-toast.error {
  border-left: 4px solid var(--danger);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 28px 40px;
}

.side-rail {
  position: static;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card-soft);
  overflow: visible;
}

.brand-block h1,
.topbar-copy h2,
.hero-primary h3 {
  margin: 8px 0 0;
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 600;
  font-family: var(--font-display);
}

.brand-block h1 {
  font-size: 22px;
}

.brand-kicker,
.section-kicker,
.child-kicker,
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-block {
  flex: 1 1 320px;
  max-width: 460px;
}

.brand-copy,
.section-copy,
.subtitle,
.hero-text,
.module-copy,
.module-note,
.stack-card p,
.task-card p,
.initiative-card p,
.child-card p,
.skill-card p,
.role-skill-card p,
.detail-panel p,
.portal-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.rail-status-card,
.surface,
.inner-surface,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.metric-card,
.mini-card,
.selector-card,
.role-tab,
.skill-card,
.role-skill-card,
.intelligence-card,
.timeline-card,
.kanban-column,
.meta-card {
  min-width: 0;
}

.surface,
.inner-surface,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.metric-card,
.mini-card,
.selector-card,
.role-tab,
.skill-card,
.role-skill-card,
.intelligence-card,
.timeline-card,
.kanban-column {
  display: grid;
  gap: 12px;
  align-content: start;
  height: 100%;
}

.surface,
.inner-surface,
.rail-status-card,
.meta-card,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.metric-card,
.mini-card,
.selector-card,
.role-tab,
.skill-card,
.role-skill-card,
.intelligence-card,
.timeline-card,
.kanban-column,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: var(--shadow-card);
}

.surface,
.inner-surface,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.metric-card,
.mini-card,
.skill-card,
.role-skill-card,
.intelligence-card,
.timeline-card,
.kanban-column {
  padding: 18px;
}

.online-badge,
.status-pill,
.chip,
.shortcut-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-soft);
  white-space: nowrap;
}

.rail-status-card {
  flex: 0 1 320px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.online-badge {
  grid-column: 1 / -1;
}

.online-badge,
.status-pill.accent,
.shortcut-pill {
  color: var(--accent);
}

.online-badge {
  width: fit-content;
  background: var(--accent-soft);
  border-color: #dbeafe;
  box-shadow: var(--highlight-inset);
}

.status-pair {
  display: grid;
  gap: 6px;
}

.status-pair span,
.meta-card span,
.metric-card span,
.mini-card span,
.time-card span {
  font-size: 12px;
  color: var(--text-muted);
}

.status-pair strong,
.meta-card strong,
.metric-card strong,
.mini-card strong,
.stack-card strong,
.task-card strong,
.initiative-card strong,
.child-card strong,
.skill-card strong,
.role-skill-card strong,
.detail-panel h4 {
  color: var(--text);
}

.rail-nav {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-content: start;
}

.rail-group-label {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
  box-shadow: var(--highlight-inset);
}

.rail-module-link {
  display: grid;
  justify-items: start;
  align-content: start;
  min-height: 92px;
  padding: 14px 16px;
  gap: 6px;
  text-align: left;
  border-radius: 18px;
  white-space: normal;
}

.rail-module-link span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.rail-module-link small {
  display: block;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 12px;
}

.rail-link::before {
  display: none;
}

.rail-link:hover {
  color: var(--text);
  background: var(--surface-subtle);
}

.rail-link.is-active {
  color: var(--accent);
  border-color: #dbeafe;
  background: linear-gradient(180deg, #fafdff 0%, #eef5ff 100%);
}

.rail-module-link.is-active {
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.08);
}

.rail-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.topbar {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px) auto;
  gap: 16px;
  align-items: end;
  padding: 4px 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.module-shell {
  gap: 16px;
}

.module-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.module-shell-head h3 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-family: var(--font-display);
}

.module-shell-side {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.module-subnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-app-button {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-height: 110px;
  padding: 16px;
  color: var(--text);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-card-soft);
  text-align: left;
}

.module-app-button:hover {
  transform: none;
  opacity: 1;
  border-color: #c7d9ff;
}

.module-app-button.is-active {
  border-color: #bfd4ff;
  background: linear-gradient(180deg, #fafdff 0%, #eef5ff 100%);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.08);
}

.module-app-copy {
  display: grid;
  gap: 6px;
}

.module-app-copy strong {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.module-app-copy small {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.module-app-hint {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.topbar-copy h2 {
  font-size: 30px;
}

.topbar-copy {
  max-width: 720px;
}

.topbar-main-tools {
  display: grid;
  gap: 12px;
}

.quick-search,
.toolbar-row {
  display: grid;
  gap: 10px;
}

.quick-search {
  grid-template-columns: 1fr auto;
}

.topbar-shortcuts {
  display: none;
}

.toolbar-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
}

.topbar-shortcuts,
.pill-row,
.chip-row,
.hero-actions,
.kpi-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-side {
  display: none;
}

.meta-card {
  display: grid;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.page-section {
  display: grid;
  gap: 14px;
}

.page-section.is-hidden {
  display: none !important;
}

.section-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-tab {
  min-height: 36px;
  padding: 0 14px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--highlight-inset);
}

.section-tab:hover {
  opacity: 1;
  color: var(--text);
  border-color: var(--line-strong);
}

.section-tab.is-active {
  color: var(--accent);
  border-color: #dbeafe;
  background: linear-gradient(180deg, #fafdff 0%, #eef5ff 100%);
}

.subpage-panel {
  display: grid;
  gap: 16px;
}

.subpage-panel.is-hidden {
  display: none !important;
}

.section-head,
.panel-title-row,
.stack-card-top,
.hero-head,
.detail-panel-head,
.module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.section-head > *,
.panel-title-row > *,
.stack-card-top > *,
.hero-head > *,
.detail-panel-head > *,
.module-head > * {
  min-width: 0;
}

.section-head {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h3 {
  margin: 8px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.panel-title-row {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel-title-row h4,
.module-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-title-row .status-pill,
.stack-card-top .status-pill,
.detail-panel-head .status-pill,
.section-head .status-pill {
  align-self: start;
}

.hero-grid,
.home-grid,
.analysis-grid,
.workspace-grid,
.metric-grid,
.mini-grid,
.kanban-grid,
.timeline-grid,
.card-grid,
.detail-stat-grid,
.portal-grid {
  display: grid;
  gap: 16px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.hero-primary {
  min-height: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.hero-primary h3 {
  font-size: 24px;
}

.hero-text {
  max-width: 680px;
}

.home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric-card {
  min-height: 126px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.mini-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-grid.compact-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-grid.twin-analysis-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.workspace-header {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.workspace-agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.workspace-agent-primary,
.workspace-agent-secondary {
  display: grid;
  gap: 16px;
}

.workspace-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-action-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
  align-content: start;
}

.quick-action-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.quick-action-card .task-card-actions {
  margin-top: auto;
}

.agent-prompt-strip .shortcut-pill {
  cursor: pointer;
}

.list-panel,
.detail-panel-shell {
  height: 100%;
}

.list-stack,
.selector-column,
.role-tabs {
  display: grid;
  gap: 12px;
}

#forecast-ranking-list,
#forecast-focus-list,
#home-action-list,
#analysis-topic-list,
#visitor-persona-list,
#collection-case-list,
#workflow-grid,
#service-stage-list,
#skills-history,
#management-focus-list,
#support-focus-list,
#role-task-list,
#role-support-list,
#management-role-grid {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

#skills-grid,
#support-items {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

#agent-focus-list,
#role-task-list,
#role-support-list,
#role-skill-actions {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.detail-panel {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.kanban-grid {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.selector-card,
.role-tab {
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  box-shadow: var(--shadow-card-soft);
}

.selector-card span,
.selector-card small,
.role-tab span {
  display: block;
  color: var(--text-muted);
}

.selector-card strong,
.role-tab strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
}

.selector-card.is-active,
.role-tab.is-active,
.stack-card.is-selected,
.task-card.is-selected,
.initiative-card.is-selected,
.skill-card.is-recommended {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #fbfdff 0%, #eff6ff 100%);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.1);
}

.detail-panel {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.detail-panel-head h4 {
  margin: 8px 0 0;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.detail-group {
  display: grid;
  gap: 10px;
}

.detail-group h5,
.sub-panel h5,
.inner-surface h5,
.module-sub h5 {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.detail-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flow-step {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
}

.flow-step span {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.flow-step strong {
  font-size: 16px;
}

.flow-step p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.compact-flow .flow-step {
  min-height: 120px;
  background: var(--surface-subtle);
}

.portal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-card {
  display: grid;
  gap: 8px;
  min-height: 144px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.portal-card strong {
  font-size: 16px;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.summary-banner {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  box-shadow: var(--shadow-card-soft);
}

.summary-banner strong {
  font-size: 16px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.horizon-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.horizon-card {
  appearance: none;
  display: grid;
  gap: 10px;
  min-height: 158px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--shadow-card-soft);
}

.horizon-card h5 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.horizon-card small {
  color: var(--text-muted);
}

.horizon-card:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.horizon-card.is-active {
  border-color: #93c5fd;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.12);
}

.horizon-card.horizon-high {
  background: linear-gradient(180deg, #fff9f9 0%, #ffffff 100%);
}

.horizon-card.horizon-medium {
  background: linear-gradient(180deg, #fffcf6 0%, #ffffff 100%);
}

.horizon-card.horizon-low {
  background: linear-gradient(180deg, #fafdff 0%, #ffffff 100%);
}

.horizon-meta {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.ranking-list {
  gap: 10px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: start;
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--highlight-inset);
}

.ranking-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ranking-content p {
  margin: 0;
}

.ranking-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.ranking-meta strong {
  font-size: 24px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.heatmap-board {
  overflow-x: auto;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(96px, 1fr));
  gap: 10px;
  min-width: 680px;
}

.heatmap-corner,
.heatmap-head,
.heatmap-row-label,
.heatmap-cell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
}

.heatmap-corner,
.heatmap-row-label {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 14px;
}

.heatmap-head {
  display: grid;
  place-items: center;
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.heatmap-cell {
  appearance: none;
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.heatmap-cell:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.heatmap-cell strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.heatmap-cell span,
.heatmap-cell small,
.heatmap-row-label small,
.heatmap-corner small {
  color: var(--text-muted);
}

.heatmap-cell.heat-high {
  background: linear-gradient(180deg, #fff8f8 0%, #fffefe 100%);
  border-color: rgba(220, 38, 38, 0.12);
}

.heatmap-cell.heat-medium {
  background: linear-gradient(180deg, #fffcf6 0%, #fffefe 100%);
  border-color: rgba(217, 119, 6, 0.12);
}

.heatmap-cell.heat-low {
  background: linear-gradient(180deg, #fafdff 0%, #fffefe 100%);
  border-color: rgba(37, 99, 235, 0.12);
}

.score-card {
  gap: 12px;
}

.score-card.score-high {
  border-color: rgba(220, 38, 38, 0.16);
  background: linear-gradient(180deg, #fff9f9 0%, #ffffff 100%);
}

.score-card.score-medium {
  border-color: rgba(217, 119, 6, 0.16);
  background: linear-gradient(180deg, #fffcf7 0%, #ffffff 100%);
}

.score-card.score-low {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.score-value {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.score-sub {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #0f766e 100%);
}

.trend-card {
  gap: 12px;
}

.sparkline {
  display: block;
  width: 100%;
  height: 84px;
}

.trend-axis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.twin-stage-panel {
  min-height: 100%;
}

.twin-map-stage {
  display: grid;
  align-items: center;
  min-height: 440px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafe 100%);
  box-shadow: var(--shadow-card-soft);
}

.twin-svg {
  width: 100%;
  height: auto;
  display: block;
}

.twin-svg-title {
  font-size: 14px;
  font-weight: 700;
  fill: #162033;
}

.twin-svg-sub {
  font-size: 11px;
  fill: #5d6b82;
}

.region-card {
  gap: 12px;
}

.region-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.region-card-top small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}

.region-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-card-metrics span,
.twin-route {
  color: var(--text-muted);
  font-size: 12px;
}

.twin-flow-card {
  gap: 10px;
}

.stack-card,
.task-card,
.initiative-card,
.child-card,
.skill-card,
.role-skill-card,
.intelligence-card,
.timeline-card,
.kanban-column {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.stack-card p,
.task-card p,
.initiative-card p,
.child-card p,
.skill-card p,
.role-skill-card p {
  margin: 8px 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.stack-card small,
.task-card small,
.initiative-card small,
.skill-card small,
.metric-card small,
.mini-card small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.55;
}

.selectable-card {
  cursor: pointer;
}

.module-value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-sub {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-subtle);
}

.module-note {
  color: var(--text-soft);
}

.kpi-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.chip {
  font-size: 12px;
  color: var(--text);
  background: #fff;
}

.chip.link-chip {
  cursor: pointer;
}

.task-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.stack-card-top strong,
.task-card strong,
.initiative-card strong,
.child-card strong,
.skill-card strong,
.role-skill-card strong,
.metric-card strong,
.mini-card strong,
.summary-banner strong,
.portal-card strong,
.ranking-content strong,
.region-card strong,
.flow-step strong {
  min-width: 0;
  line-height: 1.4;
}

.stack-card-top strong,
.task-card strong,
.initiative-card strong,
.child-card strong,
.skill-card strong,
.role-skill-card strong,
.ranking-content strong,
.region-card strong,
.portal-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.chip-row,
.pill-row,
.hero-actions,
.kpi-chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar,
.pill-row::-webkit-scrollbar,
.hero-actions::-webkit-scrollbar,
.kpi-chip-row::-webkit-scrollbar {
  display: none;
}

.chip,
.kpi-chip,
.status-pill,
.shortcut-pill,
.online-badge {
  white-space: nowrap;
}

.horizon-card,
.score-card,
.heatmap-cell,
.portal-card,
.summary-banner,
.intelligence-banner,
.skill-mini-card,
.compact-form-shell,
.region-card,
.twin-flow-card,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.skill-card,
.role-skill-card,
.timeline-card,
.kanban-column {
  color: var(--text);
}

.horizon-card small,
.score-card small,
.heatmap-cell small,
.portal-card p,
.summary-banner small,
.intelligence-banner p,
.region-card p,
.twin-flow-card p,
.stack-card small,
.task-card small,
.initiative-card small {
  color: var(--text-soft);
}

.metric-grid,
.mini-grid,
.card-grid,
.analysis-grid,
.workspace-grid {
  align-items: stretch;
}

.summary-banner,
.selector-card,
.role-tab,
.portal-card,
.region-card,
.twin-flow-card,
.score-card,
.trend-card,
.ranking-card {
  height: 100%;
}

.intelligence-banner {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
}

.intelligence-banner h4 {
  margin: 0;
  font-size: 22px;
}

.intelligence-high {
  border-color: rgba(220, 38, 38, 0.18);
}

.intelligence-medium {
  border-color: rgba(217, 119, 6, 0.18);
}

.intelligence-low {
  border-color: rgba(37, 99, 235, 0.18);
}

.skill-mini-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
}

.kanban-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kanban-column {
  display: grid;
  gap: 12px;
}

.board-list,
.route-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.75;
}

.board-list li,
.route-list li {
  margin: 6px 0;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.compact-form-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
}

.compact-form-shell summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.compact-form-shell summary::-webkit-details-marker {
  display: none;
}

.compact-form-shell[open] summary {
  border-bottom: 1px solid var(--line);
}

.compact-form-shell .form-grid,
.compact-form-shell .kanban-grid {
  padding: 14px;
}

.action-panel button {
  width: 100%;
}

.quick-action-card p {
  min-height: 48px;
}

#workspace-agent-output,
#agent-output {
  min-height: 180px;
}

.content-stack {
  display: grid;
  gap: 16px;
}

.section-block[id],
.hero-stage[id] {
  scroll-margin-top: 26px;
}

.stack-card,
.task-card,
.initiative-card,
.child-card,
.portal-card,
.selector-card,
.role-tab,
.metric-card,
.mini-card,
.skill-card,
.role-skill-card,
.intelligence-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.stack-card:hover,
.task-card:hover,
.initiative-card:hover,
.child-card:hover,
.portal-card:hover,
.selector-card:hover,
.role-tab:hover,
.metric-card:hover,
.mini-card:hover,
.skill-card:hover,
.role-skill-card:hover,
.intelligence-card:hover {
  transform: none;
  box-shadow: none;
}

#home-portals {
  display: block;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 48px 56px;
}

.login-card {
  padding: 28px;
}

.login-brand h1 {
  margin: 12px 0 0;
  font-size: 50px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.login-points {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.9;
}

.login-tip,
.login-message {
  margin-top: 10px;
  color: var(--text-soft);
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.demo-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
}

.demo-box p,
.demo-box ul {
  margin: 10px 0 0;
}

@media (max-width: 1440px) {
  .topbar,
  .hero-grid,
  .home-grid,
  .analysis-grid,
  .analysis-grid.compact-two,
  .workspace-grid,
  .workspace-agent-layout,
  .workspace-header,
  .portal-grid,
  .kanban-grid,
  .three-grid,
  .detail-stat-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .side-rail {
    padding: 16px;
  }

  .rail-actions {
    width: 100%;
    margin-left: 0;
  }

  .quick-search {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .module-shell-head {
    flex-direction: column;
  }

  .module-shell-side {
    justify-content: flex-start;
  }

  .module-subnav {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-side {
    gap: 12px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
}

@media (max-width: 720px) {
  .side-rail {
    gap: 14px;
  }

  .rail-nav {
    padding-top: 12px;
  }

  .rail-module-link,
  .module-app-button {
    min-height: auto;
  }

  .topbar-copy h2 {
    font-size: 26px;
  }

  .hero-primary h3 {
    font-size: 24px;
  }

  .surface,
  .inner-surface,
  .stack-card,
  .task-card,
  .initiative-card,
  .child-card,
  .metric-card,
  .mini-card,
  .skill-card,
  .role-skill-card,
  .intelligence-card,
  .timeline-card,
  .kanban-column {
    padding: 16px;
  }

  .module-subnav {
    grid-template-columns: 1fr;
  }
}

/* 2026 Product Refresh */
:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-subtle: #f8fbff;
  --surface-strong: #eef4ff;
  --text: #142033;
  --text-soft: #526277;
  --text-muted: #8b9ab1;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(96, 165, 250, 0.42);
  --accent: #0b63f6;
  --accent-soft: #eaf2ff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 24px 60px rgba(15, 23, 42, 0.08), 0 10px 24px rgba(15, 23, 42, 0.04);
  --shadow-card-soft: 0 14px 36px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.03);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "PingFang SC", "SF Pro Text", "SF Pro Display", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "PingFang SC", "SF Pro Display", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.18), transparent 26%),
    linear-gradient(180deg, #f9fbff 0%, #f4f7fb 42%, #eef3f8 100%);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  max-width: 1540px;
  padding: 24px;
}

.side-rail {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.side-rail::-webkit-scrollbar {
  width: 8px;
}

.side-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.side-rail::-webkit-scrollbar-track {
  background: transparent;
}

.brand-block {
  max-width: none;
  padding: 4px 2px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.brand-kicker,
.section-kicker,
.child-kicker,
.eyebrow {
  color: #1d4ed8;
  letter-spacing: 0.14em;
}

.brand-block h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #0f172a;
}

.brand-copy,
.section-copy,
.subtitle,
.hero-text,
.module-copy,
.module-note,
.stack-card p,
.task-card p,
.initiative-card p,
.child-card p,
.skill-card p,
.role-skill-card p,
.detail-panel p,
.portal-card p {
  color: var(--text-soft);
}

.rail-status-card {
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.online-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.status-pair {
  display: grid;
  gap: 4px;
}

.status-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.workspace-center-panel {
  display: grid;
  gap: 18px;
}

.status-pair strong,
.meta-card strong,
.metric-card strong,
.mini-card strong {
  font-variant-numeric: tabular-nums;
}

.rail-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.rail-group-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #334155;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.rail-module-link {
  display: grid;
  justify-items: start;
  align-content: start;
  min-height: 94px;
  padding: 14px 16px;
  gap: 6px;
  text-align: left;
  white-space: normal;
  border-color: rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-card-soft);
}

.rail-module-link span {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.rail-module-link small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.48;
}

.rail-link:hover {
  color: #0f172a;
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(248, 250, 252, 0.92);
}

.rail-link.is-active {
  color: #0b63f6;
  border-color: rgba(96, 165, 250, 0.34);
  background: linear-gradient(180deg, #f3f8ff 0%, #eaf2ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.rail-module-link.is-active {
  box-shadow: 0 16px 32px rgba(11, 99, 246, 0.08);
}

.rail-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.main-shell {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.topbar {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.module-shell {
  gap: 16px;
}

.module-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.module-shell-head h3 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.module-shell-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.module-subnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-app-button {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-height: 108px;
  padding: 16px;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-card-soft);
  text-align: left;
}

.module-app-button:hover {
  transform: none;
  opacity: 1;
  border-color: rgba(96, 165, 250, 0.34);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.module-app-button.is-active {
  border-color: rgba(96, 165, 250, 0.38);
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  box-shadow: 0 18px 32px rgba(11, 99, 246, 0.08);
}

.module-app-copy {
  display: grid;
  gap: 6px;
}

.module-app-copy strong {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.module-app-copy small {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.module-app-hint {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #0b63f6;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.topbar-copy h2 {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #0f172a;
}

.topbar-main-tools {
  display: grid;
  gap: 12px;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.quick-search input {
  min-height: 46px;
  border-radius: 14px;
  background: #fbfdff;
}

.topbar-shortcuts,
.pill-row,
.chip-row,
.hero-actions,
.kpi-chip-row {
  gap: 8px;
}

.shortcut-pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #33506d;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.shortcut-pill:hover,
.link-chip:hover {
  color: #0b63f6;
  border-color: rgba(96, 165, 250, 0.36);
  background: #f7fbff;
}

.topbar-side {
  display: grid;
  gap: 10px;
}

.meta-card {
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.8);
}

.surface,
.inner-surface,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.metric-card,
.mini-card,
.selector-card,
.role-tab,
.skill-card,
.role-skill-card,
.intelligence-card,
.timeline-card,
.kanban-column,
.action-panel {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 255, 0.98) 100%);
  box-shadow: var(--shadow-card-soft);
}

.surface-tint {
  background: linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
}

.hero-primary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.99) 100%);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(15, 23, 42, 0.03);
}

.hero-primary::after {
  content: "";
  position: absolute;
  inset: -20% -8% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16) 0%, transparent 72%);
  pointer-events: none;
}

.hero-primary .section-kicker,
.hero-primary h3,
.hero-primary .hero-text {
  color: #0f172a;
}

.hero-primary .brand-copy,
.hero-primary .section-copy,
.hero-primary .subtitle,
.hero-primary .hero-text,
.hero-primary .stack-card p {
  color: var(--text-soft);
}

.hero-primary .status-pill,
.hero-primary .shortcut-pill,
.hero-primary .chip {
  color: #1d4ed8;
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(234, 242, 255, 0.9);
}

.hero-shell {
  gap: 16px;
}

.hero-mode-button {
  min-height: 32px;
  padding: 0 12px;
  color: #476179;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.hero-mode-button:hover {
  opacity: 1;
  background: #f8fbff;
}

.hero-mode-button.is-active {
  color: #0b63f6;
  background: #eef5ff;
  border-color: rgba(96, 165, 250, 0.34);
}

.hero-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-preview-card {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-preview-card:hover {
  opacity: 1;
  background: #f4f8ff;
}

.hero-preview-card.is-active {
  background: #eef5ff;
  border-color: rgba(96, 165, 250, 0.34);
}

.hero-preview-label,
.hero-preview-copy {
  color: var(--text-soft);
}

.hero-preview-label {
  font-size: 12px;
  font-weight: 700;
}

.hero-preview-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.hero-preview-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
}

.hero-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 14px;
}

.hero-console-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-console-main {
  grid-template-rows: auto auto minmax(72px, auto) auto;
}

.hero-console-side {
  display: grid;
  gap: 12px;
}

.hero-console-list-panel {
  align-content: start;
}

.hero-console-head,
.hero-list-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.hero-console-kicker,
.hero-console-badge,
.hero-list-top span,
.hero-stat-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.hero-console-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 999px;
  background: #eef5ff;
}

.hero-console-panel h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.hero-console-summary,
.hero-list-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-console-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-card {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-stat-card strong {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.hero-inline-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid rgba(96, 165, 250, 0.16);
}

.hero-console-list {
  display: grid;
  gap: 10px;
}

.hero-list-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: #ffffff;
}

.hero-list-top strong {
  color: #0f172a;
  font-size: 15px;
}

.hero-note-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: auto;
  align-items: stretch;
}

.hero-console-footnote {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.hero-action-button,
.hero-list-button {
  min-height: 34px;
  padding: 0 12px;
  justify-content: center;
  color: #0b63f6;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 12px;
  background: #eef5ff;
  box-shadow: none;
}

.hero-action-button:hover,
.hero-list-button:hover {
  opacity: 1;
  background: #e4eeff;
}

.hero-list-actions {
  display: flex;
  justify-content: flex-end;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.hero-metrics-card,
.leadership-public-shell {
  display: grid;
  gap: 16px;
}

.leadership-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leadership-public-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leadership-public-list {
  gap: 10px;
}

.leadership-public-list .stack-card p {
  font-size: 13px;
  line-height: 1.5;
}

.compact-stack-card {
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
}

.home-intelligence-grid,
.home-visual-grid,
.analysis-grid,
.workspace-grid {
  display: grid;
  gap: 20px;
}

.home-visual-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.home-intelligence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-grid {
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
}

.card-grid,
.metric-grid,
.mini-grid,
.detail-stat-grid,
.workspace-header,
.role-tabs,
.form-grid,
.three-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-header {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.panel-title-row,
.section-head,
.stack-card-top,
.hero-head,
.detail-panel-head,
.module-head {
  align-items: center;
  gap: 14px;
}

.panel-title-row h4,
.section-head h3,
.detail-panel-head h4,
.hero-primary h3,
.stack-card-top strong,
.mini-card strong,
.metric-card strong,
.ranking-content strong,
.horizon-card h5 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel-title-row h4,
.detail-panel-head h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.hero-primary h3 {
  font-size: 34px;
  font-weight: 700;
}

.metric-card,
.mini-card {
  gap: 8px;
}

.metric-card strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.mini-card strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mini-card small,
.metric-card small,
.stack-card small,
.ranking-meta small,
.horizon-card small,
.heatmap-row-label small,
.heatmap-cell small {
  color: var(--text-muted);
}

.list-stack,
.board-list,
.route-list,
.flow-steps {
  display: grid;
  gap: 14px;
}

.selectable-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.selectable-card:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: var(--shadow-md);
}

.selectable-card.is-selected {
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(180deg, #fafdff 0%, #eef5ff 100%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #476179;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: #f8fbff;
  white-space: nowrap;
}

.status-pill.accent {
  color: #0b63f6;
  border-color: rgba(37, 99, 235, 0.18);
  background: #eaf2ff;
}

.overview-switcher {
  gap: 10px;
}

.overview-switcher .section-tab {
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
  border-radius: 14px;
}

.chart-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.chart-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.chart-title {
  display: block;
  color: #5c6c80;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-value {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #0f172a;
}

.sparkline {
  width: 100%;
  height: 72px;
}

.empty-sparkline {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  color: var(--text-soft);
  font-size: 12px;
  background: rgba(248, 250, 252, 0.9);
}

.mini-table {
  display: grid;
  gap: 8px;
}

.mini-table-head,
.mini-table-row {
  display: grid;
  grid-template-columns: 1.25fr 0.82fr 0.72fr 0.8fr 1fr;
  gap: 12px;
  align-items: center;
}

.mini-table-head {
  padding: 0 14px 8px;
  color: #8b9ab1;
  font-size: 12px;
  font-weight: 700;
}

.mini-table-row {
  min-height: 52px;
  padding: 12px 14px;
  color: #314155;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: none;
}

.mini-table-row:hover {
  color: #0f172a;
  border-color: rgba(96, 165, 250, 0.28);
  background: #f7fbff;
  opacity: 1;
}

.mini-table-row strong,
.mini-table-row span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-panel,
pre {
  min-height: 160px;
  border-radius: 18px;
  background: #f8fbff;
}

.detail-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

pre {
  padding: 16px 18px;
  color: #26415b;
  border-color: rgba(148, 163, 184, 0.14);
}

.board-list,
.route-list {
  margin: 0;
  padding-left: 18px;
}

.board-list li,
.route-list li {
  color: var(--text-soft);
}

.horizon-card,
.heatmap-cell,
.section-tab {
  box-shadow: none;
}

.section-tab {
  min-height: 38px;
  padding: 0 14px;
  color: #526277;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
}

.section-tab.is-active {
  color: #0b63f6;
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
}

.toolbar-row,
.task-card-actions,
.report-toolbar,
.report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-row > * {
  flex: 1 1 180px;
}

.report-toolbar .ghost-button {
  min-width: 112px;
}

.task-card-actions button,
.action-panel button {
  width: 100%;
}

.flow-step {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: #fbfdff;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #0b63f6;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #eaf2ff;
}

.heatmap-grid {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.heatmap-head,
.heatmap-corner,
.heatmap-row-label,
.heatmap-cell {
  padding: 14px 16px;
  background: #ffffff;
}

.heatmap-head,
.heatmap-corner {
  font-weight: 700;
  color: #334155;
}

.heat-low {
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.heat-medium {
  background: linear-gradient(180deg, #fff8ee 0%, #fff1d8 100%);
}

.heat-high {
  background: linear-gradient(180deg, #fff4f4 0%, #ffe3e3 100%);
}

.login-shell,
.login-card,
.login-side {
  box-shadow: var(--shadow-card-soft);
}

@media (max-width: 1320px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.compact-grid,
  .three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
  }

  .topbar,
  .hero-grid,
  .hero-preview-strip,
  .hero-console-grid,
  .home-visual-grid,
  .home-intelligence-grid,
  .analysis-grid,
  .workspace-grid,
  .workspace-agent-layout,
  .workspace-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .surface,
  .inner-surface,
  .stack-card,
  .task-card,
  .initiative-card,
  .child-card,
  .metric-card,
  .mini-card,
  .skill-card,
  .role-skill-card,
  .intelligence-card,
  .timeline-card,
  .kanban-column,
  .action-panel {
    padding: 18px;
  }

  .metric-grid,
  .mini-grid,
  .card-grid.compact-grid,
  .three-grid,
  .hero-console-metrics,
  .hero-preview-strip,
  .hero-note-actions,
  .workspace-role-grid {
    grid-template-columns: 1fr;
  }

  .mini-table-head,
  .mini-table-row {
    grid-template-columns: 1.1fr 0.9fr 0.75fr 0.8fr 1fr;
  }

  .topbar-copy h2,
  .hero-primary h3,
  .section-head h3 {
    font-size: 26px;
  }
}

/* Alignment polish */
.panel-title-row,
.section-head,
.stack-card-top,
.detail-panel-head,
.hero-head,
.module-head,
.chart-card-head,
.hero-console-head,
.hero-list-top {
  align-items: start;
}

.panel-title-row > div,
.section-head > div,
.chart-card-head > div,
.detail-panel-head > div,
.hero-head > div,
.module-head > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.panel-title-row h4,
.detail-panel-head h4,
.section-head h3,
.stack-card-top strong,
.chart-card-head strong,
.hero-list-top strong,
.hero-console-panel h4,
.metric-card strong,
.mini-card strong,
.chart-value {
  line-height: 1.2;
}

.panel-title-row h4,
.detail-panel-head h4,
.stack-card-top strong,
.hero-list-top strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-title-row h4,
.detail-panel-head h4 {
  -webkit-line-clamp: 2;
  min-height: 42px;
}

.stack-card-top strong,
.hero-list-top strong {
  -webkit-line-clamp: 2;
  min-height: 38px;
}

.metric-grid,
.mini-grid,
.card-grid,
.analysis-grid,
.workspace-grid,
.home-visual-grid,
.home-intelligence-grid,
.three-grid,
.detail-stat-grid {
  align-items: stretch;
}

.metric-card,
.mini-card,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.chart-card,
.hero-stat-card,
.hero-list-item,
.flow-step {
  align-content: start;
}

.metric-card,
.mini-card {
  grid-template-rows: minmax(34px, auto) auto minmax(34px, auto);
}

.metric-card span,
.mini-card span,
.metric-card small,
.mini-card small,
.status-pair span,
.meta-card span {
  min-width: 0;
}

.metric-card span,
.mini-card span {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.metric-card small,
.mini-card small {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.stack-card,
.task-card,
.initiative-card,
.child-card {
  grid-template-rows: auto minmax(44px, auto) auto;
}

.stack-card p,
.task-card p,
.initiative-card p,
.child-card p {
  min-height: 44px;
  margin: 0;
}

.stack-card small,
.task-card small,
.initiative-card small,
.child-card small {
  display: block;
  min-height: 18px;
}

.hero-console-metrics {
  align-items: stretch;
}

.hero-stat-card {
  grid-template-rows: minmax(30px, auto) auto;
}

.hero-stat-card span {
  display: -webkit-box;
  min-height: 30px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-list-item {
  grid-template-rows: auto minmax(44px, auto);
}

.hero-list-item p {
  min-height: 44px;
}

.mini-table-head,
.mini-table-row {
  align-items: center;
}

.mini-table-head {
  padding-top: 2px;
}

.mini-table-row {
  min-height: 56px;
}

.mini-table-row strong,
.mini-table-row span {
  font-variant-numeric: tabular-nums;
}

.detail-panel {
  align-content: start;
}

.detail-panel .detail-group,
.detail-panel .detail-stat-grid,
.detail-panel .task-card-actions {
  min-width: 0;
}

.report-links {
  align-items: center;
}

#generated-report-list .stack-card {
  grid-template-rows: auto minmax(48px, auto) auto auto;
}

#generated-report-list .stack-card p {
  min-height: 48px;
}

#generated-report-list .chip-row {
  min-height: 36px;
}

#generated-report-list .report-links {
  min-height: 40px;
}

.report-toolbar {
  align-items: center;
}

pre,
.detail-panel,
.stack-card,
.metric-card,
.mini-card,
.chart-card {
  word-break: break-word;
}

.overview-data-grid,
.overview-application-grid,
.overview-skills-grid {
  display: grid;
  gap: 16px;
}

.overview-data-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-application-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-capability-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.overview-stat-card,
.overview-module-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e7edf5;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.overview-stat-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.overview-module-card {
  grid-template-rows: auto minmax(88px, auto) auto auto;
}

.overview-stat-card strong {
  margin: 0;
  font-size: 32px;
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.overview-module-card strong {
  margin: 0;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: #0f172a;
}

.overview-stat-card small,
.overview-module-card p {
  margin: 0;
}

.overview-stat-card small {
  color: var(--text-soft);
  line-height: 1.5;
}

.overview-module-card p {
  min-height: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.overview-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.overview-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.overview-card-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-card-tag,
.overview-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
}

.overview-card-index {
  min-width: 38px;
  color: #2563eb;
  background: #eff6ff;
  border-color: #dbeafe;
}

.overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.overview-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-icon-revenue {
  color: #0f766e;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
}

.overview-icon-debt {
  color: #d97706;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.overview-icon-service {
  color: #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

.overview-icon-execution,
.overview-icon-skill {
  color: #1d4ed8;
}

.overview-icon-visitor {
  color: #0f766e;
}

.overview-stat-main,
.overview-module-body {
  display: grid;
  gap: 8px;
}

.overview-card-actions {
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.78);
}

.overview-card-actions .inline-button,
.overview-card-actions .ghost-button {
  min-height: 36px;
  border-radius: 12px;
}

.overview-realtime-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--shadow-card-soft);
}

.overview-realtime-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-realtime-head strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.overview-realtime-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.overview-realtime-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.56;
}

.overview-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.overview-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.overview-inline-list {
  display: grid;
  gap: 10px;
}

.overview-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #ffffff;
}

.overview-inline-row strong,
.overview-inline-row span {
  font-size: 13px;
}

.overview-inline-row span {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.table-action-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

@media (max-width: 1320px) {
  .rail-nav,
  .module-subnav,
  .overview-data-grid,
  .overview-application-grid,
  .overview-skills-grid,
  .home-capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .leadership-metric-grid,
  .leadership-public-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .rail-nav,
  .module-subnav,
  .overview-data-grid,
  .overview-application-grid,
  .overview-skills-grid,
  .home-capability-grid {
    grid-template-columns: 1fr;
  }

  .leadership-metric-grid,
  .leadership-public-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #eef4ff 100%);
}

.mobile-shell {
  display: grid;
  gap: 14px;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px calc(108px + env(safe-area-inset-bottom, 0px));
}

.mobile-topbar,
.mobile-hero,
.mobile-panel {
  display: grid;
  gap: 12px;
}

.mobile-panel.is-hidden {
  display: none;
}

.mobile-topbar-actions,
.mobile-query-bar,
.mobile-hero-head,
.mobile-double-grid {
  display: grid;
  gap: 10px;
}

.mobile-topbar-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-hero-head {
  grid-template-columns: repeat(2, max-content);
  align-items: center;
}

.mobile-topbar h1,
.mobile-hero h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.mobile-hero h2 {
  font-size: 28px;
  line-height: 1.08;
}

.mobile-query-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(560px, calc(100vw - 24px));
  padding: 10px;
  transform: translateX(-50%);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
}

.mobile-tab-button {
  min-height: 46px;
  padding: 0 10px;
  color: var(--text-soft);
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
}

.mobile-tab-button.is-active {
  color: #fff;
  background: var(--accent);
}

.mobile-body .mini-grid,
.mobile-body .card-grid,
.mobile-body .compact-grid,
.mobile-body .task-card-actions,
.mobile-body .list-stack {
  gap: 10px;
}

.mobile-body pre {
  min-height: 120px;
  max-height: 260px;
}

.mobile-app-detail {
  display: grid;
  gap: 12px;
}

.mobile-app-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.mobile-app-card.is-active {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.10);
}

.mobile-app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-app-tone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mobile-app-tone-blue {
  color: #2563eb;
  background: #dbeafe;
}

.mobile-app-tone-amber {
  color: #d97706;
  background: #ffedd5;
}

.mobile-app-tone-cyan {
  color: #0891b2;
  background: #cffafe;
}

.mobile-app-tone-emerald {
  color: #059669;
  background: #d1fae5;
}

.mobile-app-tone-violet {
  color: #7c3aed;
  background: #ede9fe;
}

.mobile-app-card strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.mobile-app-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.analysis-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.segment-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.segment-button.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 10px;
  align-items: end;
}

.field-inline {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-inline span {
  font-size: 12px;
  color: var(--text-soft);
}

.history-chart-grid {
  display: grid;
  gap: 12px;
}

.history-bar-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--shadow-card-soft);
}

.history-bar-head,
.history-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-bar-head strong {
  font-size: 14px;
}

.history-bar-head span,
.history-bar-meta small {
  color: var(--text-soft);
}

.history-bar-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eefb;
}

.history-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: var(--surface-subtle);
}

.data-table td {
  color: var(--text);
}

.wrap-actions {
  justify-content: flex-start;
}

@media (min-width: 721px) {
  .mobile-double-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mobile-shell {
    padding: 14px 14px calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-topbar-actions,
  .mobile-query-bar,
  .mobile-double-grid,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .mobile-hero-head {
    grid-template-columns: 1fr;
  }

  .mobile-hero h2 {
    font-size: 24px;
  }
}

/* Reference-shell alignment */

body.dashboard-body {
  background: #f3f5f7;
}

.app-shell {
  grid-template-columns: minmax(272px, 284px) minmax(0, 1fr);
  gap: 0;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  align-items: stretch;
  overflow-x: clip;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  gap: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 12;
}

.brand-shell,
.rail-view-switch,
.rail-section,
.rail-status-card,
.rail-nav-utility,
.rail-actions {
  padding-left: 18px;
  padding-right: 18px;
}

.brand-shell {
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.mobile-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.brand-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-shell .brand-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.brand-shell h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.brand-shell .brand-copy {
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

.rail-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.rail-view-button {
  min-height: 40px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.rail-view-button.is-active {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
}

.rail-section {
  padding-top: 18px;
  padding-bottom: 4px;
}

.rail-group-label {
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.rail-nav {
  gap: 8px;
}

.rail-app-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.rail-link-secondary,
.rail-utility-link {
  min-height: 60px;
}

.rail-link-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #eff6ff;
  color: #2563eb;
}

.rail-icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.rail-icon-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.rail-icon-amber {
  background: #fff7ed;
  color: #d97706;
}

.rail-icon-emerald {
  background: #ecfdf5;
  color: #059669;
}

.rail-icon-violet {
  background: #f5f3ff;
  color: #7c3aed;
}

.rail-icon-slate {
  background: #f1f5f9;
  color: #475569;
}

.rail-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.rail-copy > span {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-copy small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.rail-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 24px;
  padding: 0 8px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: #eff6ff;
}

.rail-link-badge-soft {
  color: #475569;
  background: #f8fafc;
}

.rail-app-link:hover,
.rail-utility-link:hover {
  opacity: 1;
  border-color: #dbeafe;
  background: #f9fbff;
}

.rail-app-link.is-active,
.rail-view-button.is-active,
.rail-utility-link.is-active,
.rail-module-link.is-active {
  box-shadow: none;
}

.rail-app-link.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.rail-app-link.is-active .rail-copy > span,
.rail-app-link.is-active .rail-link-badge {
  color: #1d4ed8;
}

.rail-status-card {
  margin-top: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
  border: 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rail-nav-utility {
  padding-top: 18px;
  padding-bottom: 10px;
}

.rail-actions {
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f1f5f9;
}

.rail-actions .ghost-button {
  justify-content: center;
}

.main-shell {
  gap: 18px;
  min-height: 100vh;
  min-width: 0;
  padding: 22px 24px 36px;
  background: #f8fafc;
  overflow-x: hidden;
}

.topbar,
.module-shell {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
}

.topbar {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 20px;
  align-items: start;
}

.topbar-copy,
.topbar-main-tools,
.topbar-side,
.module-shell-head,
.module-shell-side,
.page-section,
.hero-primary,
.hero-metrics-card,
.leadership-public-shell {
  min-width: 0;
}

.topbar-copy h2 {
  font-size: 28px;
}

.module-shell {
  gap: 14px;
  padding: 18px 20px;
}

.module-shell-head h3 {
  font-size: 24px;
}

.module-subnav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-app-button,
.surface,
.inner-surface,
.stack-card,
.task-card,
.initiative-card,
.child-card,
.metric-card,
.mini-card,
.selector-card,
.role-tab,
.skill-card,
.role-skill-card,
.intelligence-card,
.timeline-card,
.kanban-column,
.action-panel {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.surface-tint {
  background: #f8fbff;
}

.hero-primary,
.hero-console-panel,
.hero-stat-card,
.hero-preview-card {
  background: #ffffff;
}

.hero-primary {
  border-color: #e5e7eb;
}

.hero-primary::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 72%);
}

.hero-primary h3 {
  font-size: 28px;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 660px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

.hero-preview-card {
  min-height: 76px;
  border-color: #edf2f7;
}

.hero-preview-value {
  font-size: 22px;
}

.hero-console-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.hero-console-panel h4 {
  font-size: 18px;
}

.hero-console-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat-card strong {
  font-size: 18px;
}

.hero-note-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-metrics-card {
  align-content: start;
}

.leadership-metric-grid,
.leadership-public-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-stat-card,
.overview-application-card,
.skill-card {
  border-radius: 20px;
}

.mobile-body {
  background: #f3f5f7;
}

.mobile-shell {
  gap: 12px;
  max-width: 560px;
  padding: 12px 12px calc(96px + env(safe-area-inset-bottom, 0px));
}

.mobile-topbar,
.mobile-hero,
.mobile-panel,
.mobile-tabbar {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
}

.mobile-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-brand-copy {
  display: grid;
  gap: 3px;
}

.mobile-brand-copy h1,
.mobile-hero h2 {
  letter-spacing: -0.04em;
}

.mobile-brand-copy h1 {
  margin: 0;
  font-size: 22px;
}

.mobile-brand-copy .subtitle {
  margin: 0;
  color: #64748b;
}

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 14px;
}

.mobile-topbar-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-hero {
  gap: 14px;
}

.mobile-hero h2 {
  font-size: 24px;
}

.mobile-tabbar {
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 6px;
  width: min(560px, calc(100vw - 20px));
  padding: 8px;
  transform: translateX(-50%);
}

.mobile-tab-button {
  min-height: 44px;
  color: #64748b;
  border-radius: 14px;
}

.mobile-tab-button.is-active {
  background: #2563eb;
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .home-visual-grid,
  .home-intelligence-grid,
  .analysis-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .module-subnav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    overflow: visible;
  }

  .main-shell {
    padding: 18px 16px 28px;
  }

  .rail-view-switch,
  .module-subnav,
  .leadership-metric-grid,
  .leadership-public-grid,
  .hero-preview-strip,
  .hero-console-metrics,
  .metric-grid,
  .mini-grid,
  .card-grid.compact-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-04 leadership one-screen refinement */
.app-shell {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 24px;
  max-width: 1600px;
}

.side-rail {
  width: 100%;
  max-width: 288px;
  z-index: 2;
}

.brand-block {
  width: 100%;
  max-width: none;
}

.main-shell {
  min-width: 0;
  overflow-x: hidden;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.86fr);
  align-items: start;
}

.hero-primary,
.hero-metrics-card,
.hero-console-panel,
.overview-stat-card {
  overflow: hidden;
}

.hero-primary h3 {
  font-size: 22px;
  line-height: 1.08;
}

.hero-text {
  max-width: 48rem;
}

.hero-preview-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-preview-card {
  min-height: 94px;
  padding: 12px 14px;
}

.hero-preview-value {
  font-size: 20px;
}

.hero-console-grid {
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 12px;
}

.hero-console-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat-card {
  min-height: 92px;
  padding: 14px;
}

.hero-stat-card strong {
  font-size: 24px;
}

.hero-console-list {
  max-height: 336px;
  overflow-y: auto;
}

/* 2026-04-14 readability cleanup */

.dashboard-body .brand-shell .brand-kicker,
.dashboard-body .topbar-copy .eyebrow {
  letter-spacing: 0.08em;
}

.dashboard-body .brand-shell .brand-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.62;
}

.dashboard-body .rail-copy {
  gap: 6px;
  min-height: 96px;
  padding: 14px 70px 14px 14px;
}

.dashboard-body .rail-copy span {
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-body .rail-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.46;
  min-height: 35px;
}

.dashboard-body .rail-link-badge {
  top: 14px;
  right: 14px;
  transform: none;
  min-width: 44px;
  padding: 5px 9px;
  font-size: 11px;
}

.dashboard-body .module-shell .section-copy,
.dashboard-body .hero-text,
.dashboard-body .hero-console-summary,
.dashboard-body .section-copy {
  max-width: 100%;
  overflow-wrap: break-word;
}

.dashboard-body .hero-text {
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.72;
}

.dashboard-body .hero-console-summary,
.dashboard-body .hero-console-footnote {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dashboard-body .hero-list-item p,
.dashboard-body .overview-inline-row strong,
.dashboard-body .overview-inline-row span,
.dashboard-body .overview-realtime-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-focus-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5ebf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.home-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-focus-head strong {
  min-width: 0;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-focus-meta {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.home-focus-card p {
  margin: 0;
  min-height: 40px;
  color: #475569;
  font-size: 13px;
  line-height: 1.56;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-focus-card .task-card-actions {
  margin-top: 0;
}

.home-focus-action {
  min-height: 36px;
  padding: 0 14px;
}

.mobile-brand-row {
  align-items: flex-start;
}

.mobile-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

.mobile-brand-copy {
  gap: 2px;
}

.mobile-brand-copy .eyebrow {
  display: none;
}

.mobile-brand-copy h1 {
  font-size: 18px;
}

.mobile-brand-copy .subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.5;
}

.mobile-hero h2 {
  font-size: 22px;
}

.mobile-hero .section-copy,
.mobile-panel .section-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.52;
}

.mobile-body .mini-grid,
.mobile-body .card-grid,
.mobile-body .compact-grid {
  grid-template-columns: 1fr;
}

.mobile-app-card {
  padding: 14px;
  gap: 8px;
}

.mobile-app-card strong {
  font-size: 15px;
}

.mobile-app-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.5;
}

.mobile-output {
  display: none;
}

.mobile-output.has-output {
  display: block;
}

.mobile-output.is-placeholder {
  display: none;
}

@media (max-width: 1180px) {
  .home-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mobile-shell {
    padding: 10px 10px calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-topbar,
  .mobile-hero,
  .mobile-panel {
    gap: 10px;
    border-radius: 18px;
  }

  .mobile-brand-copy h1 {
    font-size: 17px;
  }

  .mobile-brand-copy .subtitle {
    font-size: 11px;
  }
}

.hero-note-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leadership-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.metric-card,
.mini-card {
  padding: 14px;
}

.metric-card strong {
  font-size: 22px;
  line-height: 1.08;
}

.metric-card small,
.mini-card small {
  line-height: 1.45;
}

.leadership-public-shell {
  grid-template-columns: 1fr;
  gap: 12px;
}

.leadership-public-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.leadership-public-list {
  display: grid;
  gap: 10px;
  max-height: 332px;
  overflow-y: auto;
}

.overview-data-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.overview-stat-card {
  min-height: 146px;
  padding: 16px;
}

.overview-stat-main strong {
  font-size: 24px;
}

@media (max-width: 1440px) {
  .app-shell {
    grid-template-columns: 272px minmax(0, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-console-grid,
  .leadership-metric-grid,
  .overview-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-note-actions,
  .leadership-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    max-width: none;
  }

  .hero-console-grid,
  .leadership-metric-grid,
  .leadership-public-grid,
  .overview-data-grid,
  .hero-console-metrics,
  .hero-note-actions {
    grid-template-columns: 1fr;
  }
}

/* Final desktop shell override */
.app-shell {
  grid-template-columns: minmax(248px, 268px) minmax(0, 1fr);
  gap: 20px;
  max-width: 1520px;
  padding: 18px 22px 30px;
  align-items: start;
}

.side-rail {
  position: sticky;
  top: 18px;
  align-self: start;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 14px;
  max-height: calc(100vh - 36px);
  padding: 18px 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.rail-view-switch,
.rail-section,
.rail-status-card,
.rail-nav,
.rail-actions {
  width: 100%;
}

.rail-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rail-nav {
  grid-template-columns: 1fr;
  gap: 10px;
}

.rail-link,
.rail-module-link {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  white-space: normal;
}

.rail-link-main,
.rail-copy {
  min-width: 0;
}

.rail-copy small {
  display: block;
  line-height: 1.45;
}

.rail-status-card {
  grid-template-columns: 1fr;
  gap: 10px;
}

.rail-actions {
  margin-left: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.main-shell {
  min-width: 0;
  gap: 16px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px) minmax(170px, 210px);
  gap: 14px;
  align-items: start;
}

.topbar-copy,
.topbar-main-tools,
.topbar-side,
.hero-grid,
.hero-primary,
.leadership-public-shell,
.subpage-panel,
.home-visual-grid,
.home-capability-grid,
.home-intelligence-grid {
  min-width: 0;
}

.module-shell {
  padding: 16px 18px;
}

.module-subnav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-grid {
  grid-template-columns: minmax(0, 1.52fr) minmax(300px, 0.88fr);
  gap: 16px;
}

.hero-primary,
.surface,
.inner-surface,
.stack-card,
.mini-card,
.metric-card,
.task-card,
.initiative-card,
.child-card,
.skill-card,
.role-skill-card,
.timeline-card,
.kanban-column {
  padding: 16px;
}

.hero-primary h3 {
  font-size: 26px;
  line-height: 1.1;
}

.hero-text,
.section-copy,
.subtitle {
  font-size: 14px;
  line-height: 1.55;
}

.overview-switcher {
  margin-top: -2px;
}

.subpage-panel[data-panel="home-overview"] {
  display: grid;
  gap: 14px;
}

.overview-data-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-visual-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 14px;
}

.home-capability-grid,
.home-intelligence-grid {
  gap: 14px;
}

.mini-card strong,
.overview-stat-main strong {
  font-size: 22px;
  line-height: 1.1;
}

@media (max-width: 1320px) {
  .app-shell {
    grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
  }

  .overview-data-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    max-height: none;
    padding: 18px 16px;
    overflow: visible;
  }

  .topbar,
  .hero-grid,
  .home-visual-grid,
  .overview-data-grid,
  .home-capability-grid,
    .home-intelligence-grid {
    grid-template-columns: 1fr;
  }
}

/* Shell reset aligned to the user-provided reference */
.dashboard-body {
  background: #f4f7fb;
}

.dashboard-body .app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  max-width: 1440px;
  padding: 16px 18px 28px;
}

.dashboard-body .side-rail {
  position: sticky;
  top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  align-items: start;
  gap: 16px;
  width: 252px;
  min-width: 252px;
  max-width: 252px;
  height: calc(100vh - 32px);
  padding: 18px 14px 16px;
  overflow-y: auto;
  border: 1px solid #e7edf6;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(148, 163, 184, 0.12);
}

.dashboard-body .brand-block {
  max-width: none;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2f8;
}

.dashboard-body .brand-row {
  align-items: flex-start;
}

.dashboard-body .brand-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
}

.dashboard-body .brand-block h1 {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.dashboard-body .brand-subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: #64748b;
}

.dashboard-body .brand-copy {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.72;
  color: #64748b;
}

.dashboard-body .rail-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-body .rail-view-button {
  min-height: 42px;
  padding: 0 14px;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.dashboard-body .rail-view-button.is-active {
  color: #2563eb;
  border-color: #cfe0ff;
  background: #eef5ff;
}

.dashboard-body .rail-section {
  display: grid;
  gap: 12px;
}

.dashboard-body .rail-group-label,
.dashboard-body .rail-nav-secondary,
.dashboard-body .rail-status-card,
.dashboard-body .rail-nav-utility {
  display: none;
}

.dashboard-body .rail-nav-primary {
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 0;
  border-top: 0;
}

.dashboard-body .rail-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.dashboard-body .rail-link:hover {
  background: transparent;
}

.dashboard-body .rail-link-main {
  min-width: 0;
}

.dashboard-body .rail-icon {
  display: none;
}

.dashboard-body .rail-copy {
  display: grid;
  gap: 5px;
  min-height: 110px;
  padding: 16px 74px 16px 14px;
  border: 1px solid #e5ebf4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.08);
}

.dashboard-body .rail-copy span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: #0f172a;
}

.dashboard-body .rail-copy small {
  font-size: 12px;
  line-height: 1.58;
  color: #64748b;
}

.dashboard-body .rail-link-badge {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  min-width: 56px;
  padding: 7px 10px;
  color: #2563eb;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f3f7ff;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-body .rail-link.is-active .rail-copy {
  border-color: #c9ddff;
  background: #edf4ff;
  box-shadow: 0 10px 24px rgba(96, 165, 250, 0.18);
}

.dashboard-body .rail-link.is-active .rail-link-badge {
  color: #1d4ed8;
  background: #fff;
  border-color: #c9ddff;
}

.dashboard-body .rail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 0;
  margin-top: auto;
}

.dashboard-body .rail-actions .ghost-button,
.dashboard-body .rail-actions .link-button {
  justify-content: center;
  min-height: 42px;
  border-color: #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.dashboard-body .main-shell {
  gap: 18px;
  overflow: hidden;
}

.dashboard-body .topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0;
}

.dashboard-body .topbar-copy,
.dashboard-body .quick-search,
.dashboard-body .topbar-side .meta-card:first-child {
  display: none;
}

.dashboard-body .topbar-main-tools {
  display: flex;
  justify-content: flex-end;
}

.dashboard-body .topbar-shortcuts {
  display: flex;
  gap: 10px;
}

.dashboard-body .shortcut-pill {
  min-height: 40px;
  padding: 0 16px;
  color: #2563eb;
  border-color: #dbe7ff;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-body .topbar-side {
  display: flex;
}

.dashboard-body .topbar-side .meta-card:first-child {
  display: none;
}

.dashboard-body .meta-card {
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid #e6edf6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.08);
}

.dashboard-body .module-shell {
  padding: 18px 20px;
  border-radius: 28px;
}

.dashboard-body .module-shell-head h3 {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.dashboard-body #module-overview-copy {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.72;
}

.dashboard-body .module-shell-side {
  display: none;
}

.dashboard-body .module-subnav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-body .module-app-button {
  min-height: 118px;
  padding: 16px 18px 14px;
  border: 1px solid #e5ebf4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.08);
}

.dashboard-body .module-app-button.is-active {
  border-color: #c9ddff;
  background: #edf4ff;
  box-shadow: 0 12px 26px rgba(96, 165, 250, 0.16);
}

.dashboard-body .module-app-copy strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-body .module-app-copy small {
  font-size: 12px;
  line-height: 1.58;
  color: #64748b;
}

.dashboard-body .module-app-hint {
  padding: 6px 12px;
  color: #2563eb;
  border-color: #dbe7ff;
  background: #fff;
  font-size: 12px;
}

.dashboard-body .hero-grid {
  grid-template-columns: minmax(0, 1.38fr) 292px;
  gap: 16px;
  align-items: stretch;
}

.dashboard-body .hero-primary,
.dashboard-body .hero-metrics-card {
  padding: 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(148, 163, 184, 0.1);
  min-height: 516px;
}

.dashboard-body .hero-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.dashboard-body .hero-primary h3 {
  font-size: 20px;
  line-height: 1.08;
}

.dashboard-body .hero-text {
  margin-top: 14px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.68;
  color: #475569;
}

.dashboard-body #hero-mode-buttons {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.dashboard-body #hero-mode-buttons button {
  min-width: 66px;
  min-height: 34px;
  padding: 0 12px;
  color: #2563eb;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-body #hero-preview-strip {
  display: none;
}

.dashboard-body .chip-row {
  gap: 8px;
}

.dashboard-body .chip,
.dashboard-body .status-pill {
  min-height: 32px;
  padding: 0 12px;
  color: #2563eb;
  border-color: #dbe7ff;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-body .hero-console-grid {
  grid-template-columns: minmax(0, 1.08fr) 250px;
  gap: 14px;
  align-items: stretch;
}

.dashboard-body .hero-console-panel {
  padding: 16px;
  border: 1px solid #e5ebf4;
  border-radius: 26px;
  background: #fff;
  box-shadow: none;
}

.dashboard-body .hero-console-main {
  background: #edf4ff;
  border-color: #cfe0ff;
}

.dashboard-body .hero-console-head {
  margin-bottom: 12px;
}

.dashboard-body .hero-console-kicker,
.dashboard-body .hero-console-badge {
  font-size: 12px;
  font-weight: 700;
}

.dashboard-body .hero-console-title,
.dashboard-body #hero-console-title {
  font-size: 16px;
  line-height: 1.38;
}

.dashboard-body .hero-console-summary,
.dashboard-body #hero-console-summary {
  font-size: 13px;
  line-height: 1.68;
  color: #64748b;
}

.dashboard-body .hero-console-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-body .hero-console-metrics .mini-card,
.dashboard-body .leadership-metric-grid .metric-card,
.dashboard-body .overview-stat-card {
  min-height: 128px;
  padding: 14px;
  border: 1px solid #e5ebf4;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.dashboard-body .hero-console-main .mini-card,
.dashboard-body .overview-stat-card.is-active {
  background: #fff;
}

.dashboard-body .mini-card strong,
.dashboard-body .metric-card strong,
.dashboard-body .overview-stat-main strong {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.dashboard-body .hero-console-list {
  gap: 12px;
}

.dashboard-body .hero-console-list .stack-card,
.dashboard-body .leadership-public-list .stack-card {
  min-height: 88px;
  padding: 14px;
  border-radius: 22px;
  box-shadow: none;
}

.dashboard-body .hero-console-side {
  gap: 14px;
}

.dashboard-body .hero-note-actions {
  margin-top: auto;
}

.dashboard-body .hero-metrics-card .panel-title-row {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-body .hero-metrics-card .section-copy {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.58;
}

.dashboard-body .leadership-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-body .leadership-public-shell {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.dashboard-body .leadership-public-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-body .leadership-public-list {
  gap: 10px;
}

.dashboard-body .leadership-public-list .compact-lead-note {
  min-height: 82px;
  padding: 14px;
}

.dashboard-body #leadership-public-actions[hidden] {
  display: none !important;
}

.dashboard-body .overview-data-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-body .overview-stat-card {
  gap: 10px;
}

.dashboard-body .overview-card-topline {
  align-items: center;
}

.dashboard-body .overview-card-head {
  gap: 10px;
}

.dashboard-body .overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.dashboard-body .home-visual-grid {
  grid-template-columns: minmax(0, 1.1fr) 320px;
  gap: 16px;
}

.dashboard-body .section-switcher {
  gap: 10px;
}

.dashboard-body .section-tab {
  min-height: 38px;
  padding: 0 14px;
  color: #475569;
  border-color: #e2e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-body .section-tab.is-active {
  color: #2563eb;
  border-color: #cfe0ff;
  background: #eef5ff;
}

.dashboard-body .page-section,
.dashboard-body .subpage-panel {
  gap: 16px;
}

.dashboard-body .surface,
.dashboard-body .inner-surface,
.dashboard-body .stack-card,
.dashboard-body .task-card,
.dashboard-body .initiative-card,
.dashboard-body .child-card,
.dashboard-body .metric-card,
.dashboard-body .mini-card,
.dashboard-body .skill-card,
.dashboard-body .role-skill-card,
.dashboard-body .timeline-card,
.dashboard-body .kanban-column {
  border-color: #e6edf6;
}

.dashboard-body .overview-application-grid,
.dashboard-body .overview-skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-body .overview-module-card {
  min-height: 208px;
  padding: 18px;
  border: 1px solid #e5ebf4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.08);
}

.dashboard-body .overview-module-body strong {
  font-size: 16px;
}

.dashboard-body .overview-module-body p {
  font-size: 13px;
  line-height: 1.72;
  color: #64748b;
}

.dashboard-body .mobile-topbar,
.dashboard-body .mobile-hero,
.dashboard-body .mobile-panel .surface,
.dashboard-body .mobile-tabbar {
  border-radius: 24px;
}

@media (max-width: 1320px) {
  .dashboard-body .app-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .dashboard-body .side-rail {
    width: 236px;
    min-width: 236px;
    max-width: 236px;
  }

  .dashboard-body .module-subnav,
  .dashboard-body .overview-data-grid,
  .dashboard-body .overview-application-grid,
  .dashboard-body .overview-skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-body .hero-grid,
  .dashboard-body .home-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dashboard-body .app-shell {
    grid-template-columns: 1fr;
    padding: 14px 14px 24px;
  }

  .dashboard-body .side-rail {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    overflow: visible;
  }

  .dashboard-body .topbar,
  .dashboard-body .module-subnav,
  .dashboard-body .hero-grid,
  .dashboard-body .overview-data-grid,
  .dashboard-body .home-visual-grid,
  .dashboard-body .overview-application-grid,
  .dashboard-body .overview-skills-grid,
  .dashboard-body .leadership-metric-grid,
  .dashboard-body .leadership-public-grid,
  .dashboard-body .hero-console-grid,
  .dashboard-body .hero-console-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-body .topbar-main-tools,
  .dashboard-body .topbar-side {
    justify-content: flex-start;
  }
}
