:root {
  --bg: #071225;
  --bg2: #0b1f3a;
  --card: #f7f9fc;
  --card2: #ffffff;
  --ink: #0d1b2e;
  --muted: #64748b;
  --line: #d9e2ef;
  --blue: #0f63d7;
  --blue2: #084fb3;
  --green: #1fa463;
  --orange: #f59e0b;
  --red: #d9534f;
  --purple: #8b5cf6;
  --shadow: 0 24px 70px rgba(0,0,0,.30);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #1b355a 0, #081327 40%, #030812 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.app-shell {
  width: min(1440px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 292px 1fr;
  background: linear-gradient(135deg, #061126, #0b1d36);
  box-shadow: var(--shadow);
}
.sidebar {
  color: #eaf2ff;
  background: linear-gradient(180deg, #06172d, #09213e 70%, #06152a);
  border-right: 1px solid rgba(255,255,255,.14);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 46px; height: 46px; border: 2px solid #dbeafe; border-radius: 14px; display: grid; place-items: center; font-size: 23px; }
.brand strong { display: block; font-size: 23px; letter-spacing: .02em; }
.brand span { display: block; font-size: 13px; color: #bcd3f1; }
.assessment-picker small { display: block; color: #8fb1d8; font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.assessment-picker strong { display: flex; justify-content: space-between; font-size: 15px; }
nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 11px; color: #d6e6fa; font-weight: 650; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { background: linear-gradient(90deg, var(--blue), var(--blue2)); color: #fff; }
.nav-icon { width: 21px; text-align: center; font-size: 19px; }
.nav-badge, .count-badge { margin-left: auto; background: #2f7be8; color: white; border-radius: 8px; min-width: 26px; padding: 3px 8px; text-align: center; font-weight: 800; }
.sync-card { margin-top: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 18px; background: rgba(255,255,255,.04); display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; }
.sync-icon { grid-row: span 3; color: #67e88e; font-size: 28px; }
.sync-card span, .sync-card small { color: #aac1df; }
.settings { color: #c5d8f4; font-size: 14px; }
.content { padding: 34px 30px 22px; overflow: auto; }
.topbar { color: #fff; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.topbar h1 { margin: 0 0 6px; font-size: 29px; }
.topbar p { margin: 0; color: #cfe0f7; }
.status-chip { display: inline-block; background: var(--blue); color: white; padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 800; margin-left: 12px; }
.top-actions { display: flex; align-items: center; gap: 14px; font-weight: 650; color: #e8f1ff; }
.green-dot { width: 10px; height: 10px; background: #62d853; border-radius: 50%; display: inline-block; }
.lock { opacity: .8; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.metric-card { background: linear-gradient(180deg, #fff, #edf3fa); border: 1px solid #dce5f1; border-radius: 13px; padding: 18px; min-height: 112px; display: grid; grid-template-columns: 46px 1fr; gap: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.metric-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #dbeafe; color: var(--blue); font-weight: 900; }
.metric-icon.file { background: #dcfce7; color: var(--green); }
.metric-icon.question { background: #fef3c7; color: var(--orange); }
.metric-icon.review { background: #f3e8ff; color: var(--purple); }
.metric-card strong { display: block; font-size: 27px; line-height: 1; }
.metric-card span { display: block; font-size: 12px; color: #40516a; margin: 3px 0 9px; }
.metric-card small { color: #55667d; }
.mini-progress, .progress { height: 6px; background: #d5dde9; border-radius: 99px; overflow: hidden; }
.mini-progress i, .progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 330px; gap: 14px; margin-bottom: 14px; }
.panel, .page-panel { background: linear-gradient(180deg, #fff, #f4f7fb); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.panel-title { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; border-bottom: 1px solid #e3eaf4; }
.panel-title h2, .page-panel h2 { margin: 0; font-size: 18px; }
.panel-title span { color: #40516a; font-size: 13px; }
.panel-title span strong { color: var(--blue); font-size: 20px; margin-left: 8px; }
.domain-row { display: grid; grid-template-columns: minmax(250px, 1.6fr) minmax(140px, 1fr) 70px 50px; gap: 18px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #e5edf6; }
.domain-row:last-child { border-bottom: 0; }
.domain-name { font-weight: 700; }
.domain-name em { color: var(--muted); font-style: normal; }
.domain-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 12px; border-radius: 8px; background: #e8f1ff; color: #0e3d84; }
.domain-stat { color: #334155; font-size: 13px; }
.open-panel { overflow: hidden; }
.open-panel .panel-title { padding-bottom: 12px; }
.open-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e5edf6; }
.dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; margin-top: 5px; }
.open-item strong { display: block; font-size: 14px; }
.open-item p { margin: 4px 0 8px; color: #334155; font-size: 13px; line-height: 1.25; }
.open-item small { color: #b42318; }
.priority { border-radius: 7px; padding: 4px 8px; align-self: start; font-style: normal; font-size: 12px; font-weight: 800; }
.priority.high { color: #1d4ed8; border: 1px solid #93c5fd; background: #eff6ff; }
.priority.medium { color: #c2410c; border: 1px solid #fed7aa; background: #fff7ed; }
.priority.low { color: #475569; border: 1px solid #cbd5e1; background: #f8fafc; }
.view-link { display: block; padding: 12px 16px; color: var(--blue); font-weight: 750; font-size: 13px; }
.practice-panel { overflow: hidden; }
.breadcrumb { padding: 16px 20px 4px; color: var(--blue); font-weight: 800; font-size: 13px; }
.breadcrumb span { color: var(--muted); margin: 0 8px; }
.practice-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 20px 16px; }
.practice-header h2 { margin: 0 0 7px; }
.practice-header p { max-width: 780px; margin: 0; font-weight: 760; line-height: 1.45; }
.practice-tools { color: #334155; font-size: 22px; letter-spacing: 14px; }
.practice-columns { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dfe7f1; }
.practice-columns article { padding: 18px; border-right: 1px solid #dfe7f1; min-height: 300px; }
.practice-columns article:last-child { border-right: none; }
.practice-columns h3 { margin: 0 0 14px; font-size: 14px; color: #102849; }
.count-badge.small { font-size: 11px; min-width: 22px; padding: 2px 7px; margin-left: 6px; }
.checkline { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0 0 17px; font-size: 13px; line-height: 1.35; }
.checkline input { width: 17px; height: 17px; accent-color: var(--green); }
.artifact { position: relative; padding: 0 0 15px 37px; margin-bottom: 14px; border-bottom: 1px solid #e8eef7; }
.artifact:before { content: '▧'; position: absolute; left: 0; top: 0; width: 27px; height: 31px; border-radius: 7px; display: grid; place-items: center; color: white; background: var(--blue); }
.artifact.csv:before { background: var(--green); } .artifact.pdf:before { background: var(--red); }
.artifact b { display: block; font-size: 13px; } .artifact small { color: var(--muted); }
.interview-person { display: grid; grid-template-columns: 28px 1fr; gap: 6px 8px; font-size: 13px; }
.interview-person small { grid-column: 2; color: var(--muted); }
.notes { padding-left: 18px; color: #26364a; font-size: 13px; line-height: 1.45; }
.button { border: 1px solid #b9c7da; background: #fff; color: #12345b; border-radius: 8px; min-height: 38px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--blue); border-color: var(--blue); color: white; }
.call-chip { width: 100%; min-height: 35px; border-radius: 9px; background: white; border: 1px solid #c6d2e3; margin-bottom: 9px; text-align: left; padding: 0 12px; font-weight: 780; cursor: pointer; }
.call-chip.selected { background: #fbbf24; border-color: #d97706; }
.rationale-label { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin: 12px 0 6px; }
textarea { width: 100%; min-height: 86px; border: 1px solid #bdc9da; border-radius: 8px; padding: 10px; font: inherit; font-size: 13px; color: #243449; resize: vertical; }
.practice-footer { background: #071831; color: #d7e6fb; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.practice-footer .button { background: transparent; color: white; border-color: #507097; margin-left: 10px; }
.practice-footer .button.primary { background: var(--blue); border-color: var(--blue); }
.page-panel { padding: 26px; min-height: 620px; }
.muted { color: var(--muted); }
.scope-map { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 28px; border: 1px dashed #b8c6d8; border-radius: 18px; background: #f8fbff; margin: 22px 0; }
.scope-node { padding: 15px 18px; background: white; border: 1px solid #d9e2ef; border-radius: 14px; font-weight: 800; box-shadow: 0 8px 18px rgba(15,30,60,.08); }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-panel { padding: 18px; }
.mini-panel h3 { margin-top: 0; }
.practice-list { display: grid; gap: 10px; margin-top: 16px; }
.practice-row { display: grid; grid-template-columns: 160px 1fr 160px; gap: 16px; align-items: center; background: #f8fbff; border: 1px solid #dbe5f1; border-radius: 12px; padding: 16px; }
.practice-row em { font-style: normal; color: #9a5b00; background: #fff7d6; padding: 6px 10px; border-radius: 999px; text-align: center; font-weight: 800; }
.evidence-table { width: 100%; border-collapse: collapse; margin-top: 20px; overflow: hidden; border-radius: 13px; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid #dbe5f1; background: #fff; } th { background: #eff5fb; color: #334155; }
.table-chip { background: #dcfce7; color: #166534; padding: 5px 9px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.open-list-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.open-card { background: #fff; border: 1px solid #dbe5f1; border-radius: 14px; padding: 18px; }
.open-card h3 { margin: 14px 0 8px; }
.empty-state { display: grid; place-content: center; text-align: center; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 84px 1fr; }
  .brand div:not(.brand-mark), .assessment-picker, .nav-item span:not(.nav-icon), .sync-card strong, .sync-card span, .sync-card small, .settings { display: none; }
  .sidebar { align-items: center; padding-left: 12px; padding-right: 12px; }
  .nav-item { width: 54px; justify-content: center; padding: 0; }
  .nav-badge { position: absolute; right: -5px; top: 3px; }
  .sync-card { display: block; padding: 10px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .practice-columns { grid-template-columns: repeat(2, 1fr); }
  .asset-grid, .open-list-full { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; }
  .brand, .sync-card, .settings { display: none; }
  nav { display: flex; }
  .content { padding: 18px; }
  .topbar, .practice-footer { flex-direction: column; gap: 12px; }
  .metric-grid, .practice-columns { grid-template-columns: 1fr; }
  .practice-columns article { border-right: none; border-bottom: 1px solid #dfe7f1; }
  .domain-row { grid-template-columns: 1fr; }
}
