/* ============================================================
   TVLG Board Certification Tracker — Dark Atlas Theme
   ============================================================ */

:root {
  --bg-base:     #0d0f1e;
  --bg-surface:  #14162a;
  --bg-card:     #1a1d35;
  --bg-hover:    #1f2240;
  --border:      #2a2d4a;
  --border-light:#323560;
  --text-primary:#e8eaf6;
  --text-muted:  #8890c4;
  --text-dim:    #5560a0;
  --accent:      #5c6bc0;
  --accent-hover:#7986cb;
  --accent-active:#3949ab;
  --green:       #4caf50;
  --green-bg:    #1b3a1c;
  --amber:       #ffc107;
  --amber-bg:    #3a2e00;
  --red:         #ef5350;
  --red-bg:      #3a0e0e;
  --blue:        #42a5f5;
  --blue-bg:     #0d2a3a;
  --sidebar-w:   220px;
  --radius:      6px;
  --shadow:      0 2px 8px rgba(0,0,0,.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-base); color: var(--text-primary); font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: var(--text-primary); }

/* ---- App Shell ---- */
.app-shell { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--bg-surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-header { padding: 20px 16px 12px; border-bottom: 1px solid var(--border); }
.sidebar-logo { font-size: 18px; font-weight: 700; color: var(--accent-hover); letter-spacing: .5px; }
.sidebar-firm { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: .3px; margin-top: 1px; }
.sidebar-subtitle { font-size: 11px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.sidebar-nav { list-style: none; padding: 8px 0; flex: 1; }
.sidebar-nav li { }
.sidebar-nav a {
  display: block; padding: 8px 16px; color: var(--text-muted); font-size: 13px;
  border-radius: 0; transition: background .15s, color .15s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-nav a.active { border-left: 3px solid var(--accent); }
.nav-section { padding: 16px 16px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.sidebar-user { font-size: 13px; font-weight: 600; }
.sidebar-role { margin: 4px 0; }
.btn-logout { font-size: 12px; color: var(--text-muted); }
.btn-logout:hover { color: var(--red); }

/* ---- Main Content ---- */
.main-content { flex: 1; padding: 24px 32px; overflow-x: hidden; }

/* ---- Page Header ---- */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-header h1 { font-size: 22px; font-weight: 700; }
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-primary); }

/* ---- Flash Messages ---- */
.flash { padding: 10px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.flash-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.flash-error   { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-light); }
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent); }
.btn-ghost     { background: transparent; color: var(--text-muted); border-color: var(--border-light); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm        { padding: 4px 10px; font-size: 12px; }
.btn-xs        { padding: 2px 6px; font-size: 11px; }
.btn-group     { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form   { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-actions  { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- Badges ---- */
.badge {
  display: inline-block; padding: 2px 7px; border-radius: 9999px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-green     { background: var(--green-bg); color: var(--green); }
.badge-red       { background: var(--red-bg); color: var(--red); }
.badge-amber     { background: var(--amber-bg); color: var(--amber); }
.badge-blue      { background: var(--blue-bg); color: var(--blue); }
.badge-gray      { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }
.badge-lg        { font-size: 13px; padding: 4px 12px; }
.badge-xs        { font-size: 10px; padding: 1px 5px; }
.badge-administrator { background: var(--red-bg); color: var(--red); }
.badge-attorney      { background: var(--blue-bg); color: var(--blue); }
.badge-reviewer      { background: var(--amber-bg); color: var(--amber); }
.badge-staff         { background: var(--green-bg); color: var(--green); }
.badge-readonly      { background: var(--bg-card); color: var(--text-muted); }
.ml-1 { margin-left: 4px; }

/* ---- Cards ---- */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); text-transform: uppercase; letter-spacing: .5px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---- Tables ---- */
.table-container { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--bg-surface); color: var(--text-muted); padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }
.data-table .empty-state { text-align: center; color: var(--text-muted); padding: 24px; }
.row-selected { background: rgba(76,175,80,.05) !important; }
.row-backup   { background: rgba(66,165,245,.05) !important; }

/* ---- Forms ---- */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius);
  color: var(--text-primary); padding: 8px 10px; font-size: 13px;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.form-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); margin: 20px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.checkbox-group label { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text-primary); cursor: pointer; }
.checkbox-group input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; }
.input-sm { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); padding: 5px 8px; font-size: 12px; }
.input-md { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); padding: 7px 10px; font-size: 13px; min-width: 180px; }
.input-xs { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); padding: 3px 6px; font-size: 12px; width: 70px; }
.select-sm { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); padding: 5px 8px; font-size: 12px; }
.select-xs { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); padding: 3px 6px; font-size: 11px; }
.label-sm { font-size: 11px; color: var(--text-muted); }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }

/* ---- Filter Bar ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar select, .filter-bar input { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); padding: 7px 10px; font-size: 13px; }
.search-input { min-width: 200px; }

/* ---- Status Banners ---- */
.status-banner { padding: 10px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; border: 1px solid; }
.status-green  { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.status-amber  { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.status-red    { background: var(--red-bg);   color: var(--red);   border-color: var(--red);   }
.status-blue   { background: var(--blue-bg);  color: var(--blue);  border-color: var(--blue);  }
.status-gray   { background: var(--bg-card);  color: var(--text-muted); border-color: var(--border); }

.info-banner { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue); padding: 10px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.info-banner-amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.info-banner-red   { background: var(--red-bg); color: var(--red); border-color: var(--red); }

/* ---- Detail Layouts ---- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-muted); font-size: 12px; }
.stat-value { font-size: 20px; font-weight: 700; }
.detail-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 12px; }
.text-muted { color: var(--text-muted); }
.text-red    { color: var(--red); }
.text-green  { color: var(--green); }
.text-amber  { color: var(--amber); }
.text-sm     { font-size: 12px; }
.text-mono   { font-family: monospace; }
/* detail field full-width (matters detail) */
.detail-field-full { grid-column: 1 / -1; padding: 10px 0; }
.detail-value { font-size: 13px; margin-top: 4px; line-height: 1.6; }

/* ---- Attorney Profile Detail ---- */
.profile-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.summary-card  { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.summary-label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.summary-val   { font-size: 16px; font-weight: 700; }
/* req card inner stats row */
.req-name     { font-size: 13px; font-weight: 700; }
.req-numbers  { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.req-stat     { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.req-stat-num { font-size: 20px; font-weight: 800; line-height: 1; }
.req-stat-label { font-size: 10px; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
/* nav sections row on attorney detail */
.nav-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.nav-section-link { display: inline-block; padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-muted); transition: all .15s; }
.nav-section-link:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent); }
/* next deadline banner */
.next-deadline-banner { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue); border-radius: var(--radius); padding: 10px 16px; font-size: 13px; margin: 12px 0; }
/* notes card */
.notes-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ---- Attorney Dashboard (attorney role) ---- */
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.profile-card-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.profile-meta { font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; text-align: right; }
.next-deadline { color: var(--amber); }
.readiness-overall { }
.readiness-pct { font-size: 22px; font-weight: 800; margin-top: 4px; }
/* gap labels under req cards */
.req-gap { font-size: 12px; margin-top: 8px; padding: 4px 8px; border-radius: var(--radius); }
.req-gap-red   { background: var(--red-bg); color: var(--red); }
.req-gap-amber { background: var(--amber-bg); color: var(--amber); }
/* section links row (attorney dashboard) */
.section-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.section-link  { display: inline-block; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-muted); font-weight: 500; transition: all .15s; }
.section-link:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent); }
/* finding rec text */
.finding-rec { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 4px; }

/* ---- Staff Dashboard ---- */
.empty-state-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--text-muted); font-size: 13px; }
.attorney-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.attorney-card  { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.attorney-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.card-links a { font-size: 12px; color: var(--accent-hover); padding: 2px 0; }

/* ---- Dashboard Stat Widgets ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-widget, .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-widget .stat-value, .stat-card .stat-value,
.stat-widget .stat-num,   .stat-card .stat-num   { font-size: 28px; font-weight: 800; }
.stat-widget .stat-label, .stat-card .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-top: 4px; }
.stat-red   { border-top: 3px solid var(--red);   }
.stat-amber { border-top: 3px solid var(--amber); }
.stat-green { border-top: 3px solid var(--green); }

/* ---- Progress Bars ---- */
.progress-bar-wrap { margin: 8px 0; background: var(--border); border-radius: 999px; height: 8px; position: relative; overflow: hidden; }
.progress-bar-track { background: var(--border); border-radius: 999px; height: 8px; position: relative; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; transition: width .4s; }
/* .progress-bar used directly as the fill element in several templates */
.progress-bar { height: 100%; border-radius: 999px; transition: width .4s; display: block; }
.progress-label { font-size: 12px; color: var(--text-muted); }
.progress-green  { background: var(--green); }
.progress-amber  { background: var(--amber); }
.progress-red    { background: var(--red); }
.progress-gray   { background: var(--text-dim); }
.progress-bar-pad-marker { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.3); }
/* readiness bar in attorney dashboard */
.readiness-bar-wrap { background: var(--border); border-radius: 999px; height: 10px; overflow: hidden; margin: 8px 0; }
.readiness-bar { height: 100%; border-radius: 999px; transition: width .4s; }
.bg-green { background: var(--green); }
.bg-amber { background: var(--amber); }
.bg-red   { background: var(--red); }

/* ---- Requirements Dashboard ---- */
.requirements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.req-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.req-card-green  { border-left: 3px solid var(--green); }
.req-card-amber  { border-left: 3px solid var(--amber); }
.req-card-red    { border-left: 3px solid var(--red); }
.req-card-gray   { border-left: 3px solid var(--border-light); }
.req-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.req-title { font-size: 14px; font-weight: 700; }
.req-progress-row { display: flex; justify-content: space-between; align-items: center; }
.req-current { font-size: 24px; font-weight: 800; color: var(--text-primary); }
.req-min { font-size: 14px; color: var(--text-muted); }
.req-sep { font-size: 16px; color: var(--text-dim); margin: 0 4px; }
.req-pad { font-size: 12px; margin-left: 6px; }
.req-breakdown { display: flex; gap: 12px; margin-top: 10px; }
.req-sub { display: flex; flex-direction: column; align-items: center; }
.req-sub-label { font-size: 10px; text-transform: uppercase; color: var(--text-dim); }
.req-sub-val { font-size: 16px; font-weight: 700; }
.req-extra { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.req-extra-item { font-size: 11px; color: var(--text-muted); background: var(--bg-surface); padding: 2px 6px; border-radius: 3px; }
.req-actions { margin-top: 10px; }
.status-chip { display: inline-block; padding: 2px 8px; border-radius: var(--radius); font-size: 11px; font-weight: 700; }

/* ---- Breadth Grid ---- */
.breadth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.breadth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.breadth-card-active { border-color: var(--green); border-left: 3px solid var(--green); }
.breadth-card-has    { border-color: var(--amber); border-left: 3px solid var(--amber); }
.breadth-card-empty  { border-color: var(--border); opacity: .7; }
.breadth-card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.breadth-roman { font-size: 16px; font-weight: 800; color: var(--accent-hover); min-width: 20px; }
.breadth-name  { font-size: 12px; font-weight: 700; flex: 1; }
.breadth-counts { display: flex; gap: 4px; }
.breadth-desc  { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }
.breadth-warnings { margin-bottom: 6px; }
.breadth-best  { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.breadth-matters { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.breadth-matter-row { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.breadth-matter-row.selected { color: var(--green); }
.breadth-matter-row.backup   { color: var(--blue); }

/* ---- Warning Lists ---- */
.warning-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.warning-item { padding: 8px 12px; border-radius: var(--radius); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.warning-critical { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }
.warning-moderate { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.warning-icon { font-weight: 700; font-size: 15px; }
.warning-sm { font-size: 11px; color: var(--amber); margin-top: 2px; }

/* ---- AI Review ---- */
.findings-section { margin-bottom: 20px; }
.findings-header { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: var(--radius) var(--radius) 0 0; text-transform: uppercase; letter-spacing: .5px; }
.findings-critical { background: var(--red-bg); color: var(--red); }
.findings-moderate { background: var(--amber-bg); color: var(--amber); }
.findings-info     { background: var(--bg-card); color: var(--text-muted); }
.finding-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--border); padding: 12px; margin-top: 1px; }
.finding-card.finding-critical { border-left-color: var(--red); }
.finding-card.finding-moderate { border-left-color: var(--amber); }
.finding-card.finding-informational { border-left-color: var(--blue); }
.finding-card.finding-resolved { opacity: .6; }
.finding-header { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.finding-category { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.finding-description { font-size: 13px; margin-bottom: 6px; }
.finding-recommendation { font-size: 12px; color: var(--text-muted); font-style: italic; margin-bottom: 6px; }
.finding-resolution { font-size: 12px; color: var(--green); }
.finding-actions { margin-top: 8px; }

/* ---- Application Builder ---- */
.readiness-header { text-align: center; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.readiness-pct { font-size: 48px; font-weight: 800; color: var(--accent-hover); }
.readiness-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }
.readiness-bar { max-width: 300px; margin: 0 auto; }
.readiness-fill { height: 6px; border-radius: 999px; background: var(--accent); transition: width .4s; }
.app-sections { display: flex; flex-direction: column; gap: 20px; }
.app-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.app-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.app-section-header h2 { font-size: 15px; font-weight: 700; }
.pool-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pool-col { }
.pool-col-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }
.pool-item { padding: 8px 10px; border-radius: var(--radius); margin-bottom: 4px; font-size: 13px; }
.pool-item-selected { background: rgba(76,175,80,.1); border: 1px solid var(--green); }
.pool-item-backup   { background: rgba(66,165,245,.08); border: 1px solid var(--blue); }
.pool-item-name { font-weight: 600; }
.pool-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.checklist-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checklist-approvals { display: flex; flex-direction: column; gap: 10px; }
.approval-row { display: flex; align-items: center; gap: 12px; }
.override-item { padding: 8px; background: var(--bg-surface); border-radius: var(--radius); margin-bottom: 6px; font-size: 13px; }

/* ---- Practice Grid ---- */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.practice-item { display: flex; flex-direction: column; gap: 4px; }

/* ---- FAQ ---- */
.faq-category-header { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.faq-entry { padding: 10px 0; border-bottom: 1px solid var(--border); }
.faq-question { font-size: 14px; font-weight: 500; }
.faq-answer-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; font-size: 14px; line-height: 1.7; }
.faq-pending-card { background: var(--amber-bg); border: 1px solid var(--amber); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.related-list { display: flex; flex-direction: column; gap: 4px; }
.internal-note { background: var(--amber-bg); color: var(--amber); padding: 8px 12px; border-radius: var(--radius); font-size: 12px; }
.version-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.version-item { background: var(--bg-surface); padding: 8px; border-radius: var(--radius); font-size: 12px; }
.version-header { color: var(--text-muted); margin-bottom: 4px; }

/* ---- Admin ---- */
.req-config-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.req-config-label { flex: 1; min-width: 200px; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 16px; }
.page-btn { padding: 5px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 12px; }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ---- Auth Pages ---- */
body.auth-body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-base); }
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-base); }
.auth-card { width: 400px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.auth-logo { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 2px; color: var(--accent-hover); letter-spacing: 3px; }
.auth-firm { font-size: 11px; font-weight: 600; text-align: center; color: var(--text-muted); letter-spacing: .3px; margin-bottom: 12px; }
.auth-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-sub { font-size: 13px; text-align: center; color: var(--text-muted); margin-bottom: 24px; }
.auth-subtitle { font-size: 12px; text-align: center; color: var(--text-muted); margin-bottom: 24px; }
.auth-card .form-group { margin-bottom: 14px; }
.auth-card .form-group input { width: 100%; }
.auth-card .btn-primary, .btn-full { width: 100%; justify-content: center; padding: 10px; font-size: 14px; margin-top: 8px; }
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ---- Misc ---- */
.empty-state { color: var(--text-muted); text-align: center; padding: 32px; font-size: 13px; }
details summary { cursor: pointer; color: var(--text-muted); font-size: 13px; }
code { background: var(--bg-surface); padding: 1px 4px; border-radius: 3px; font-size: 12px; font-family: monospace; }
