/* ==========================================================================
   Accountability Manager design system
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e7ee;
  --border-2: #eef0f5;

  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-soft: #eef2ff;
  --accent-ink: #3730a3;

  --step1: #2563eb; --step1-soft: #dbeafe; --step1-ink: #1e40af;
  --step2: #0d9488; --step2-soft: #ccfbf1; --step2-ink: #115e59;
  --step3: #d97706; --step3-soft: #fef3c7; --step3-ink: #92400e;

  --ok: #16a34a;   --ok-soft: #dcfce7;   --ok-ink: #166534;
  --warn: #d97706; --warn-soft: #fef3c7; --warn-ink: #92400e;
  --bad: #dc2626;  --bad-soft: #fee2e2;  --bad-ink: #991b1b;
  --info: #0284c7; --info-soft: #e0f2fe; --info-ink: #075985;

  --sidebar-w: 268px;
  --topbar-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .16), 0 2px 6px -2px rgba(15, 23, 42, .06);

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .9375rem;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--border);
  --bs-link-color: var(--accent);
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: var(--accent-ink);
  --bs-link-hover-color-rgb: 55, 48, 163;
  --bs-primary: var(--accent);
  --bs-primary-rgb: 79, 70, 229;
  --bs-secondary-color: var(--muted);
}

html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); min-height: 100vh; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h1.h3, .page-title { font-size: 1.55rem; margin-bottom: .1rem; }
.text-muted { color: var(--muted) !important; }
.small-muted { font-size: .8rem; color: var(--muted); }
code { color: var(--accent-ink); background: var(--accent-soft); padding: .1em .35em; border-radius: 5px; font-size: .85em; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
  background: linear-gradient(180deg, #0b1222 0%, #121c33 100%);
  color: #c9d2e3; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .25s ease;
}
.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-md); }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; display: none; }
.sidebar-open .sidebar-backdrop { display: block; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .sidebar { transform: none; }
  .main { margin-left: var(--sidebar-w); }
  .sidebar-backdrop { display: none !important; }
}

.brand { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem .9rem; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, #6366f1, #0ea5e9); box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .8);
}
.brand-name { font-weight: 700; letter-spacing: -.01em; line-height: 1.1; font-size: 1rem; }
.brand-sub { font-size: .7rem; color: #8b97b1; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

.nav-scroll { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; }
.nav-section { margin-top: 1.1rem; }
.nav-eyebrow { display: flex; align-items: center; gap: .5rem; padding: 0 .75rem .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #7f8cab; }
.nav-eyebrow .step-dot { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 800; }
.step-dot.s1 { background: var(--step1); } .step-dot.s2 { background: var(--step2); } .step-dot.s3 { background: var(--step3); }
.snav { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 10px; color: #c9d2e3; font-weight: 500; font-size: .9rem; position: relative; }
.snav i { font-size: 1.05rem; color: #8b97b1; width: 20px; text-align: center; }
.snav:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.snav:hover i { color: #c7d2fe; }
.snav.active { background: rgba(99, 102, 241, .22); color: #fff; }
.snav.active i { color: #a5b4fc; }
.snav.active::before { content: ""; position: absolute; left: -.75rem; top: 25%; bottom: 25%; width: 3px; border-radius: 0 3px 3px 0; background: #818cf8; }
.snav .count { margin-left: auto; font-size: .7rem; font-weight: 700; background: rgba(255, 255, 255, .12); color: #e2e8f0; padding: .1rem .45rem; border-radius: 999px; }
.snav .count.hot { background: var(--bad); color: #fff; }

.user-card { margin: .5rem .75rem .9rem; padding: .7rem .75rem; border-radius: 12px; background: rgba(255, 255, 255, .05); display: flex; align-items: center; gap: .7rem; }
.user-card .name { color: #fff; font-weight: 600; font-size: .85rem; line-height: 1.15; }
.user-card .role { color: #8b97b1; font-size: .72rem; }
.user-card .btn-link { color: #8b97b1; padding: .15rem .35rem; font-size: 1rem; }
.user-card .btn-link:hover { color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 1020; height: var(--topbar-h);
  display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem;
  background: rgba(243, 244, 248, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-2);
}
.topbar .today { font-weight: 600; color: var(--ink-2); }
.topbar .today small { color: var(--muted); font-weight: 500; margin-left: .4rem; }
.topbar .icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); }
.topbar .icon-btn:hover { background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; border-color: #c7d2fe; }
.content { padding: 1.5rem 1.75rem 3rem; max-width: 1480px; width: 100%; }
@media (max-width: 575px) { .content { padding: 1rem; } .topbar { padding: 0 1rem; } .topbar .today { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .topbar .today small { display: none; } }

/* ---------- Avatars ---------- */
.avatar {
  --h: 220; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%; font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 32%); border: 2px solid #fff; box-shadow: 0 0 0 1px hsl(var(--h) 40% 85%);
}
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-dark { background: hsl(var(--h) 60% 40%); color: #fff; border-color: rgba(255,255,255,.15); box-shadow: none; }
.who { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.who .t { font-weight: 600; line-height: 1.2; }
.who .s { font-size: .78rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-header { background: transparent; border-bottom: 1px solid var(--border-2); padding: .85rem 1.15rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card-header .card-title-sm { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.card-body { padding: 1.15rem; }
.card-footer { background: var(--surface-2); border-top: 1px solid var(--border-2); border-radius: 0 0 var(--radius) var(--radius) !important; }
.card.bg-light { background: var(--surface-2) !important; box-shadow: none; border: 1px dashed var(--border); }
.card.border-danger { box-shadow: 0 0 0 1px var(--bad), var(--shadow-sm); }
.card.border-warning { box-shadow: 0 0 0 1px var(--warn), var(--shadow-sm); }
.list-group-flush > .list-group-item { border-color: var(--border-2); padding: .75rem 1.15rem; }
.list-group-item { background: transparent; }

/* Principle card (gradient) */
.principle { border-radius: var(--radius); padding: 1.15rem 1.25rem; color: #e2e8f0; background: linear-gradient(135deg, #0f172a, #1e1b4b 60%, #312e81); box-shadow: var(--shadow-md); }
.principle h6 { color: #fff; font-weight: 700; letter-spacing: -.01em; }
.principle ol { padding-left: 1.1rem; margin: 0; }
.principle li { margin-bottom: .35rem; font-size: .86rem; }
.principle li strong { color: #fff; }
.principle .quote { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: #c7d2fe; font-size: .95rem; margin-top: .75rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: .75rem; }

/* ---------- Stats ---------- */
.stat { background: var(--surface); border-radius: var(--radius); padding: .95rem 1.05rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .85rem; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.stat-icon.i1 { background: var(--step1-soft); color: var(--step1-ink); }
.stat-icon.i2 { background: var(--step2-soft); color: var(--step2-ink); }
.stat-icon.i3 { background: var(--step3-soft); color: var(--step3-ink); }
.stat-icon.ok { background: var(--ok-soft); color: var(--ok-ink); }
.stat-icon.bad { background: var(--bad-soft); color: var(--bad-ink); }
.stat-icon.accent { background: var(--accent-soft); color: var(--accent-ink); }
.stat-value { font-size: 1.55rem; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.stat-value small { font-size: .9rem; color: var(--faint); font-weight: 600; }
.stat-label { font-size: .76rem; color: var(--muted); font-weight: 500; margin-top: .15rem; }
.stat.alert-bad .stat-value { color: var(--bad); }

/* ---------- Hero ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero h1 { font-size: 1.8rem; margin: 0; }
.hero .sub { color: var(--muted); margin-top: .25rem; }

/* ---------- Badges / pills ---------- */
.badge { border-radius: 999px; font-weight: 600; padding: .32em .7em; font-size: .72rem; letter-spacing: .01em; }
.badge.bg-success { background: var(--ok-soft) !important; color: var(--ok-ink); }
.badge.bg-danger { background: var(--bad-soft) !important; color: var(--bad-ink); }
.badge.bg-warning { background: var(--warn-soft) !important; color: var(--warn-ink) !important; }
.badge.bg-info { background: var(--info-soft) !important; color: var(--info-ink) !important; }
.badge.bg-primary { background: var(--accent-soft) !important; color: var(--accent-ink); }
.badge.bg-secondary { background: #eef0f5 !important; color: var(--ink-2); }
.badge.bg-light { background: var(--surface-2) !important; color: var(--ink-2) !important; border-color: var(--border) !important; }
.badge.bg-dark { background: var(--ink) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 500; padding: .5rem .95rem; }
.btn-sm { padding: .32rem .7rem; font-size: .8rem; border-radius: 8px; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca; --bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3; --bs-btn-disabled-bg: #a5b4fc; --bs-btn-disabled-border-color: #a5b4fc; box-shadow: 0 1px 2px rgba(79, 70, 229, .3); }
.btn-outline-primary { --bs-btn-color: var(--accent-ink); --bs-btn-border-color: #c7d2fe; --bs-btn-hover-bg: var(--accent-soft); --bs-btn-hover-color: var(--accent-ink); --bs-btn-hover-border-color: #a5b4fc; --bs-btn-active-bg: #e0e7ff; --bs-btn-active-color: var(--accent-ink); --bs-btn-active-border-color: #a5b4fc; background: var(--surface); }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--border); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #cbd5e1; --bs-btn-active-bg: var(--border-2); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: #cbd5e1; background: var(--surface); }
.btn-secondary { --bs-btn-bg: var(--ink-2); --bs-btn-border-color: var(--ink-2); --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); }
.btn-outline-success { --bs-btn-color: var(--ok-ink); --bs-btn-border-color: #bbf7d0; --bs-btn-hover-bg: var(--ok-soft); --bs-btn-hover-color: var(--ok-ink); --bs-btn-hover-border-color: #86efac; --bs-btn-active-bg: var(--ok-soft); --bs-btn-active-color: var(--ok-ink); --bs-btn-active-border-color: #86efac; background: var(--surface); }
.btn-outline-danger { --bs-btn-color: var(--bad-ink); --bs-btn-border-color: #fecaca; --bs-btn-hover-bg: var(--bad-soft); --bs-btn-hover-color: var(--bad-ink); --bs-btn-hover-border-color: #fca5a5; --bs-btn-active-bg: var(--bad-soft); --bs-btn-active-color: var(--bad-ink); --bs-btn-active-border-color: #fca5a5; background: var(--surface); }
.btn-outline-warning { --bs-btn-color: var(--warn-ink); --bs-btn-border-color: #fde68a; --bs-btn-hover-bg: var(--warn-soft); --bs-btn-hover-color: var(--warn-ink); --bs-btn-hover-border-color: #fcd34d; --bs-btn-active-bg: var(--warn-soft); --bs-btn-active-color: var(--warn-ink); --bs-btn-active-border-color: #fcd34d; background: var(--surface); }
.btn-success { --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; }
.btn-link { font-weight: 500; }
.btn-group-sm > .btn { border-radius: 8px; }
.btn-group-sm > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group-sm > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.btn-group-sm > .btn-secondary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); }

/* ---------- Forms ---------- */
.form-label { font-weight: 500; font-size: .85rem; color: var(--ink-2); margin-bottom: .3rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); padding: .55rem .8rem; background: var(--surface); color: var(--ink); }
.form-control-sm, .form-select-sm { border-radius: 8px; padding: .35rem .6rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-text { color: var(--faint); font-size: .78rem; }
.form-check-input { border-color: #cbd5e1; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent-2); }
.form-range::-webkit-slider-thumb { background: var(--accent); }
.form-range::-moz-range-thumb { background: var(--accent); }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.breadcrumb { font-size: .8rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--faint); }
.text-danger { color: var(--bad) !important; }
.field-validation-error { font-size: .8rem; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--surface-2); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .8rem; border-bottom-color: var(--border-2); }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr { transition: background .12s ease; }
.content > .table, .content > .table-responsive > .table, .content > form > .table { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.content > .table thead th:first-child, .content > form > .table thead th:first-child { border-top-left-radius: var(--radius); }
.content > .table thead th:last-child, .content > form > .table thead th:last-child { border-top-right-radius: var(--radius); }
.table-bordered { --bs-table-border-color: var(--border-2); }
.table-sm > :not(caption) > * > * { padding: .5rem .65rem; }
.table-secondary { --bs-table-bg: var(--surface-2); }
.table-danger { --bs-table-bg: var(--bad-soft); }
.table-light { --bs-table-bg: var(--surface-2); }

/* ---------- Alerts ---------- */
.alert { border: 0; border-radius: var(--radius-sm); font-size: .9rem; }
.alert-info { background: var(--info-soft); color: var(--info-ink); }
.alert-success { background: var(--ok-soft); color: var(--ok-ink); }
.alert-warning { background: var(--warn-soft); color: var(--warn-ink); }
.alert-danger { background: var(--bad-soft); color: var(--bad-ink); }
.alert-secondary { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }
.flash { position: sticky; top: calc(var(--topbar-h) + .75rem); z-index: 1010; box-shadow: var(--shadow-md); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 2.25rem 1rem; color: var(--muted); }
.empty i { display: block; font-size: 2rem; color: var(--faint); margin-bottom: .5rem; }
.empty .btn { margin-top: .75rem; }

/* ---------- Step markers ---------- */
.step-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-weight: 800; font-size: .8rem; margin-right: .55rem; background: var(--accent); box-shadow: 0 2px 6px -2px rgba(0,0,0,.35); }
.step-badge.s1 { background: var(--step1); } .step-badge.s2 { background: var(--step2); } .step-badge.s3 { background: var(--step3); }
.section-head { display: flex; align-items: center; gap: .25rem; }
.section-head .eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; display: block; }
.section-head .title { font-weight: 700; font-size: 1rem; line-height: 1.1; }

/* ---------- Ratings ---------- */
.rating-cell { font-weight: 700; text-align: center; min-width: 2.6rem; border-radius: 8px; }
.rating-low { background: var(--bad-soft); color: var(--bad-ink); }
.rating-mid { background: var(--warn-soft); color: var(--warn-ink); }
.rating-high { background: var(--ok-soft); color: var(--ok-ink); }
.rating-chip { display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.7rem; padding: 0 .5rem; border-radius: 8px; font-weight: 700; font-size: .85rem; }
.rating-ring { --p: 0; --c: var(--ok); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: var(--ink);
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--border-2) 0); }
.rating-ring > span { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }

/* ---------- Meters ---------- */
.meter { height: 6px; border-radius: 99px; background: var(--border-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s ease; }
.meter.ok > span { background: var(--ok); } .meter.warn > span { background: var(--warn); } .meter.bad > span { background: var(--bad); }

/* ---------- Date block ---------- */
.date-block { width: 46px; flex: 0 0 auto; text-align: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); padding: .3rem 0; line-height: 1.05; }
.date-block .d { font-weight: 700; font-size: 1.1rem; }
.date-block .m { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.date-block.today { background: var(--accent-soft); border-color: #c7d2fe; color: var(--accent-ink); }
.date-block.today .m { color: var(--accent-ink); }

/* ---------- Agenda / meeting ---------- */
.agenda-item { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; padding: .9rem 0; position: relative; }
.agenda-item + .agenda-item { border-top: 1px solid var(--border-2); }
.agenda-no { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.agenda-item.covered .agenda-no { background: var(--ok-soft); color: var(--ok-ink); }
.agenda-item.covered .agenda-title { color: var(--muted); }
.agenda-title { font-weight: 600; }
.agenda-min { font-size: .72rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 999px; padding: .1rem .5rem; font-weight: 600; margin-left: .4rem; }
.agenda-prompts { white-space: pre-line; color: var(--ink-2); font-size: .86rem; margin: .35rem 0 .5rem; padding-left: .75rem; border-left: 2px solid var(--border); }
.vmv { background: linear-gradient(135deg, var(--accent-soft), #f5f3ff); border-radius: 10px; padding: .75rem .9rem; font-size: .85rem; margin: .4rem 0 .6rem; }
.vmv strong { color: var(--accent-ink); }
.timer { display: inline-flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .4rem .3rem .9rem; font-variant-numeric: tabular-nums; }
.timer .t { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.timer .p { font-size: .75rem; color: var(--muted); }
.timer.over .t { color: var(--bad); }
.timer .btn { border-radius: 999px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; }
.script-line { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.02rem; color: var(--ink-2); border-left: 3px solid var(--step2); background: #f0fdfa; padding: .6rem 1rem; border-radius: 0 10px 10px 0; }
.pre-line { white-space: pre-line; }
.overdue { color: var(--bad); font-weight: 600; }

/* H.E.R.D. */
.herd-grid textarea { min-height: 4.2rem; font-size: .86rem; }
.herd-grid th { background: var(--surface-2); vertical-align: middle; font-size: .78rem; }

/* Matrix */
.matrix-table th.row-head { background: var(--surface-2); width: 16rem; vertical-align: top; font-weight: 600; }
.matrix-table td { vertical-align: top; min-width: 16rem; }
.matrix-table thead th { font-size: .85rem; text-transform: none; letter-spacing: 0; }

/* Guide */
.guide h2 { margin-top: 2.25rem; padding-top: .5rem; }
.guide .list-group-item.active { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--border-2); font-weight: 600; }
.sticky-top { top: calc(var(--topbar-h) + 1rem); }

/* Quick actions */
.quick-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.quick-actions .btn i { margin-right: .3rem; }

/* ---------- Auth layout ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth { grid-template-columns: 5fr 7fr; } }
.auth-side { background: linear-gradient(160deg, #0b1222, #1e1b4b 55%, #312e81); color: #c7d2fe; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand-mark { width: 48px; height: 48px; font-size: 1.4rem; }
.auth-side h2 { color: #fff; font-size: 2rem; margin: 2.5rem 0 1rem; line-height: 1.15; }
.auth-side .step { display: flex; gap: .9rem; margin-bottom: 1rem; }
.auth-side .step .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: 0 0 auto; }
.auth-side .step b { color: #fff; display: block; }
.auth-side .quote { font-family: Georgia, serif; font-style: italic; color: #a5b4fc; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-main .wrap { width: 100%; max-width: 440px; }
.auth-main h1 { font-size: 1.6rem; }
.auth-main h2 { font-size: 1rem; color: var(--muted); font-weight: 500; }
.auth-main hr { display: none; }
.auth-main .row > .col-md-4, .auth-main .row > .col-lg-6 { width: 100%; }
.auth-main .row > .col-md-6, .auth-main .row > .col-lg-4, .auth-main .col-md-offset-2, .auth-main .col-lg-offset-2 { display: none; }
.auth-main .form-floating { margin-bottom: .75rem; }
.auth-main .form-floating > .form-control { border-radius: var(--radius-sm); }
.auth-main .btn-lg, .auth-main .btn-primary { width: 100%; padding: .7rem; font-weight: 600; }
.auth-main p a { font-weight: 500; }
.auth-main .checkbox { margin: .5rem 0; }
.auth-main .card-auth { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-md); padding: 2rem; }

/* ---------- Pending ---------- */
.pending-wrap { max-width: 520px; margin: 4rem auto; }

/* Utilities */
.hover-lift { transition: transform .15s ease, box-shadow .15s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.divider-dot::before { content: "·"; margin: 0 .4rem; color: var(--faint); }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-7 { font-size: .8rem; }
.mono { font-variant-numeric: tabular-nums; }
::selection { background: #c7d2fe; }
@media print { .sidebar, .topbar, .flash, .quick-actions { display: none !important; } .main { margin: 0; } .card { box-shadow: none; border: 1px solid var(--border); } }
