/* TFU Hub — brand book 2026 skin (v2.14). Loaded after styles.css.
   Same system as the Admission Portal: 60/30/10 — white and soft blue ground,
   True Blue for structure and links, Terracott orange only for main actions,
   counters and big numbers. Inter everywhere. To roll back the redesign,
   remove the <link> to this file in index.html. */

:root {
  --accent: #004580;          /* structure: links, active nav, tabs, focus, charts */
  --accent-ink: #ffffff;
  --link: #004580;
  --primary: #e88918;         /* main action */
  --primary-hover: #c9700a;
  --on-primary: #0e1a26;
  --stat: #c9700a;            /* big numbers */
  --bg: #eef5fa;              /* app ground (soft blue) */
  --surface: #ffffff;         /* cards */
  --surface-2: #eef5fa;       /* hovers, inner boxes, table heads */
  --surface-3: #dfeaf4;       /* kanban columns, tracks */
  --field: #ffffff;
  --ink: #0e1a26;
  --muted: #4a5868;
  --line: #dce3ea;
  --field-line: #dce3ea;
  --danger: #b03426;
  --danger-line: #c0392b;
  --danger-bg: #fbe9e7;
  --ok: #17693a;
  --ok-bg: #e3f4ea;
  --blue-bg: #ddf3fb;
  --blue-ink: #004580;
  --warm-bg: #fdf3e8;
  --warm-line: #fae7d1;
  --warm-ink: #a85406;
  --wait-bg: #fbdea6;
  --wait-ink: #5b4300;
  --ink-6: rgb(14 26 38 / .06);
  --nav-on-bg: #ddf3fb;
  --nav-on-ink: #004580;
  --btn-blue: #004580;
  --btn-blue-ink: #ffffff;
  --hdr-bg: #ffffff;
  --viz-1: #004580; --viz-2: #57c3e9; --viz-3: #e88918; --viz-4: #b8985a; --viz-track: #dfeaf4;
  --radius: 20px;
  --shadow: none;
  --shadow-pop: 0 18px 50px -24px rgb(14 26 38 / .45);
  --sidebar-w: 232px;
  color-scheme: light;
}
[data-theme="dark"] {
  --accent: #57c3e9;
  --accent-ink: #002a4d;
  --link: #8fd3f0;
  --primary: #eda146;
  --primary-hover: #f1b874;
  --on-primary: #0e1a26;
  --stat: #f1b874;
  --bg: #0a1f33;
  --surface: #10293f;
  --surface-2: #163350;
  --surface-3: #13304a;
  --field: #0c2238;
  --ink: #e7edf4;
  --muted: #a9b8c8;
  --line: #1f3a55;
  --field-line: #2a4a69;
  --danger: #ff9b8f;
  --danger-line: #ff8a7a;
  --danger-bg: rgb(240 110 95 / .14);
  --ok: #6fd39f;
  --ok-bg: rgb(76 195 138 / .14);
  --blue-bg: rgb(87 195 233 / .14);
  --blue-ink: #8fd3f0;
  --warm-bg: rgb(237 161 70 / .14);
  --warm-line: transparent;
  --warm-ink: #f1b874;
  --wait-bg: rgb(251 222 166 / .14);
  --wait-ink: #fbdea6;
  --ink-6: rgb(231 237 244 / .07);
  --nav-on-bg: rgb(87 195 233 / .13);
  --nav-on-ink: #8fd3f0;
  --btn-blue: #57c3e9;
  --btn-blue-ink: #002a4d;
  --hdr-bg: #0a1f33;
  --viz-1: #57c3e9; --viz-2: #2f7fb8; --viz-3: #eda146; --viz-4: #b8985a; --viz-track: #163350;
  --shadow: none;
  --shadow-pop: 0 18px 50px -24px rgb(0 0 0 / .8);
  color-scheme: dark;
}

body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; font-feature-settings: "cv11"; background: var(--bg); }
a { color: var(--link); }
h1, h2, h3, h4 { letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 2px solid transparent; background: var(--primary); color: var(--on-primary);
  font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: var(--primary-hover); filter: none; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.secondary:hover { background: var(--ink-6); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.btn svg { vertical-align: middle; flex: 0 0 auto; }
.btn.danger, .btn.secondary.danger { background: transparent; color: var(--danger); border: 2px solid var(--danger-line); }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--hdr-bg); color: var(--ink); display: inline-grid; place-items: center; padding: 0; flex: 0 0 auto; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn.sm, .iconbtn.xs { width: auto; height: auto; padding: 3px 9px; border-radius: 10px; display: inline-flex; }
.iconbtn svg { display: block; }

/* ---------- forms ---------- */
input, select, textarea { border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); color: var(--ink); font-size: 16px; }
input, select { min-height: 44px; padding: 9px 14px; }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--btn-blue); width: 18px; height: 18px; }
input[type="color"] { padding: 2px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.frow label { font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.error { color: var(--danger); font-weight: 550; }

/* ---------- header (work header, as for portal staff) ---------- */
.hdr { position: sticky; top: 0; z-index: 20; height: 64px; background: var(--hdr-bg); border-bottom: 1px solid var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 32px; }
.logo { display: flex; align-items: center; gap: 14px; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; flex-shrink: 0; }
.logo img { height: 36px; width: auto; display: block; }
.logo .l-dark, [data-theme="dark"] .logo .l-light { display: none; }
[data-theme="dark"] .logo .l-dark { display: block; }
.logo .portal { font-size: 15px; font-weight: 600; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); line-height: 28px; white-space: nowrap; }
.hdr .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hsearch { height: 40px; min-width: 240px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; color: var(--muted); font-size: 14px; cursor: pointer; }
.hsearch .kbd { margin-left: auto; font-size: 11px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.lang-pill { position: relative; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--hdr-bg); display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.lang-pill select { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; width: 100%; height: 100%; border: 0; }
.lang-pill svg.chev { width: 14px; height: 14px; }
.flag { width: 20px; height: 14px; border-radius: 3px; overflow: hidden; display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 1px rgb(14 26 38 / .12); line-height: 0; }
.flag svg { width: 100%; height: 100%; display: block; }
.acct-btn { height: 40px; width: auto; border-radius: 999px; padding: 0 10px 0 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.acct-name { max-width: 180px; }
.avatar { background: #004580; color: #fff; }
[data-theme="dark"] .avatar { background: #57c3e9; color: #002a4d; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.notif-wrap .iconbtn { position: relative; }
.notif-badge { top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; background: var(--primary); color: #0e1a26; font-size: 11px; font-weight: 750; }
.account-menu, .dropdown-menu { border-radius: 16px; box-shadow: var(--shadow-pop); padding: 6px; }
.account-menu button, .dropdown-menu button { border-radius: 10px; font-size: 14px; font-weight: 550; }
.account-menu { top: 48px; }
.board-banner { justify-content: center; gap: 8px; padding: 9px 16px; font-size: 14px; font-weight: 550; background: #004580; color: #fff; border-bottom: 0; }
[data-theme="dark"] .board-banner { background: #00365f; color: #fff; }

/* ---------- layout: sidebar card + content ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: 28px; padding: 32px 32px 64px; min-height: auto; align-items: start; }
.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; position: sticky; top: 88px; height: auto; max-height: calc(100vh - 104px); overflow-y: auto; gap: 2px; }
.nav-scroll { overflow: visible; flex: 0 0 auto; margin: 0; padding: 0; }
.nav-group { font-size: 12px; font-weight: 750; letter-spacing: .08em; color: var(--muted); margin: 0; padding: 14px 12px 6px; }
.nav-item { min-height: 42px; padding: 8px 12px; border-radius: 12px; font-size: 15px; font-weight: 550; gap: 12px; line-height: 1.25; }
.nav-item:hover { background: var(--ink-6); }
.nav-item.active { background: var(--nav-on-bg); color: var(--nav-on-ink); font-weight: 650; }
.nav-item.active::before { display: none; }
.nav-ico { color: var(--muted); opacity: 1; }
.nav-item.active .nav-ico { color: var(--nav-on-ink); }
.nav-bottom { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.main { min-width: 0; }
.content { padding: 0; max-width: none; }
.scrim { background: rgb(10 31 51 / .45); }

/* page head: title 36 px and a plain intro line (no pattern inside the Hub) */
.page-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 6px; }
.page-head h2 { font-size: 36px; font-weight: 700; line-height: 1.1; }
.sec-hint { margin: 0 0 22px; font-size: 17px; color: var(--muted); }
.sec-hint svg { display: none; }

/* ---------- cards, stats ---------- */
.card { border-radius: var(--radius); box-shadow: none; padding: 24px; margin-bottom: 20px; }
.card:hover { box-shadow: none; }
.card-nav:hover, .kpi[data-nav]:hover, .link-btn:hover, .report-list-item:hover, .proj-card:hover { border-color: #9cc4e4; }
[data-theme="dark"] .card-nav:hover, [data-theme="dark"] .kpi[data-nav]:hover, [data-theme="dark"] .link-btn:hover { border-color: #2f6f9e; }
.dash-title { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.kpi-row { gap: 16px; margin-bottom: 20px; }
.kpi { border-radius: 20px; box-shadow: none; padding: 18px 20px; }
.kpi:hover { transform: none; box-shadow: none; }
.kpi[data-nav]:hover { transform: translateY(-2px); }
.kpi-val { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; color: var(--stat); font-variant-numeric: tabular-nums; }
.kpi-lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }
.kpi-sub { color: var(--link); font-size: 13px; }
.badge { background: var(--ink-6); border: 0; border-radius: 7px; color: var(--muted); font-weight: 650; font-size: 12px; padding: 3px 9px; }
.pill-accent { background: var(--blue-bg); color: var(--blue-ink); }
.welcome-card { background: var(--blue-bg); border: 0; border-radius: 16px; padding: 16px 18px; color: #00365f; }
[data-theme="dark"] .welcome-card { color: #cfeefa; }
.welcome-h svg { color: var(--link); }
.welcome-sub, .welcome-tips { color: inherit; }
.ann-box { border-left: 4px solid var(--primary); }
.ann-item { background: var(--surface-2); border-color: var(--line); border-radius: 14px; }
.ann-item.ann-high { border-left-color: var(--danger-line); }
.empty-ico { border-radius: 24px; width: 72px; height: 72px; background: var(--blue-bg); color: var(--blue-ink); }
.empty-title { font-size: 18px; font-weight: 700; }

/* ---------- status pills, tags, chips ---------- */
.chip, .fp-status, .src-badge, .prio, .role-chip, [class*="st-l-"] { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; border: 0; line-height: 1.2; white-space: nowrap; }
.chip::before, .fp-status::before, [class*="st-l-"]::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; flex: 0 0 auto; }
.chip { background: var(--ink-6); color: var(--muted); }
.chip.ok, .fp-status.st-placed, .fp-status.st-in_training, .fp-status.st-accepted, .fp-status.st-engaged, .fp-status.st-mou-signed, .fp-status.st-rel-active, .fp-status.st-g-active, .fp-status.st-g-awarded, .st-l-approved, .st-l-answered { background: var(--ok-bg); color: var(--ok); }
.chip.risk, .fp-status.st-withdrawn, .fp-status.st-mou-expired, .st-l-rejected { background: var(--danger-bg); color: var(--danger); }
.fp-status.st-alumni, .st-l-sent, .st-l-received, .fp-status.st-rel-prospect { background: var(--blue-bg); color: var(--blue-ink); }
.fp-status.st-occasional, .fp-status.st-mou-draft, .fp-status.st-g-reporting, .st-l-pending, .st-l-in_review { background: var(--warm-bg); color: var(--warm-ink); box-shadow: inset 0 0 0 1px var(--warm-line); }
.fp-status.st-applicant, .fp-status.st-inactive, .fp-status.st-mou-none, .fp-status.st-rel-dormant, .fp-status.st-g-pipeline, .fp-status.st-g-closed, .st-l-draft, .st-l-filed, .st-l-none { background: var(--ink-6); color: var(--muted); }
.role-chip { background: var(--blue-bg); color: var(--blue-ink); border-radius: 7px; min-height: 24px; font-size: 12px; }
.role-chip.role-admin, .role-chip.role-director, .role-chip.role-vice, .role-chip.role-head, .role-chip.role-accountant { background: var(--blue-bg); color: var(--blue-ink); }
.src-badge { font-size: 12px; min-height: 22px; }
.src-internal, .src-manual { background: var(--blue-bg); color: var(--blue-ink); }
.src-outlook { background: var(--blue-bg); color: var(--blue-ink); }
.src-google { background: var(--ok-bg); color: var(--ok); }
.prio { font-size: 11.5px; min-height: 22px; padding: 2px 9px; }
.prio.p-low { background: var(--ink-6); color: var(--muted); }
.prio.p-med { background: var(--blue-bg); color: var(--blue-ink); }
.prio.p-high { background: var(--warm-bg); color: var(--warm-ink); }
.prio.p-urg { background: var(--danger-bg); color: var(--danger); }
.chip-btn, .mp-chip { min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 14px; font-size: 13.5px; font-weight: 600; }
.chip-btn:hover, .mp-chip:hover { border-color: #9cc4e4; }
.chip-btn.on, .mp-chip.on { background: var(--btn-blue); color: var(--btn-blue-ink); border-color: var(--btn-blue); }
.chip-tag { background: var(--ink-6); border: 0; }
.mini.assignee { background: var(--btn-blue); color: var(--btn-blue-ink); }
.apr-chip { border-radius: 999px; }
.apr-chip b { background: var(--primary); color: #0e1a26; width: 22px; height: 22px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; }
.apr-score { border-color: var(--line); }

/* ---------- tabs and segmented controls ---------- */
.tabs { gap: 4px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 20px; scrollbar-width: thin; }
.tab { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab.on { color: var(--link); border-bottom-color: var(--link); }
.seg { border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: var(--field); overflow: visible; flex-wrap: wrap; }
.seg button { border: 0; border-radius: 999px; padding: 0 14px; min-height: 34px; font-size: 13px; font-weight: 650; color: var(--muted); }
.seg button.on { background: var(--btn-blue); color: var(--btn-blue-ink); }
.seg.seg-sm button { min-height: 30px; padding: 0 11px; font-size: 12.5px; }

/* ---------- tables ---------- */
.tbl-wrap { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tbl { font-size: 14px; }
.tbl th, .tbl td { padding: 11px 14px; }
.tbl th { background: var(--surface-2); text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 650; color: var(--muted); }
[data-theme="dark"] .tbl th { background: rgb(255 255 255 / .03); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--ink-6); }
.tbl tr.sel td, .tbl tr:has(.tsel input:checked) td { background: var(--nav-on-bg); }
.bud-total td, .bud-total:hover { background: var(--surface-2); }
th.tsort:hover { color: var(--link); }
.tbl-controls .tf-q { min-height: 44px; }
.bulkbar { background: #004580; color: #fff; border: 0; border-radius: 16px; padding: 10px 14px; font-size: 14px; }
[data-theme="dark"] .bulkbar { background: #163350; }
.bulkbar .btn { background: #fff; color: #004580; border-color: #fff; }
.bulkbar .btn.secondary { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .55); }
.flt-opt:hover { background: var(--ink-6); }

/* ---------- dialogs, toasts, search ---------- */
.modal-overlay { background: rgb(10 31 51 / .45); }
.modal { border-radius: 24px; box-shadow: var(--shadow-pop); overflow: hidden; }
.modal-head { padding: 18px 24px; }
.modal-head b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; background: var(--surface-2); }
.toast { background: #0e1a26; color: #fff; border-radius: 16px; padding: 12px 18px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-pop); bottom: 24px; }
[data-theme="dark"] .toast { background: #e7edf4; color: #0e1a26; }
.search-overlay { background: rgb(10 31 51 / .45); }
.search-box { border-radius: 24px; box-shadow: var(--shadow-pop); }
.vtip, .gtip { border-radius: 14px; box-shadow: var(--shadow-pop); }

/* ---------- small charts that used the accent colour ---------- */
.bar-track, .proj-bar, .rcr-track { background: var(--viz-track); border-radius: 99px; }
.bar-fill, .rcr-prog { background: var(--viz-1); border-radius: 99px; }
.met-col { background: var(--viz-1); }
.g-bar { background: var(--viz-1); color: #fff; }
[data-theme="dark"] .g-bar { color: #002a4d; }
.g-bar.prio-high { background: var(--viz-3); color: #0e1a26; }
.g-bar.prio-medium { background: var(--viz-2); color: #0e1a26; }
.g-proj { color: var(--link); }

/* ---------- sign-in (one of two places with a pattern) ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--hdr-bg); }
.auth-hero { flex: 1; background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; padding: 56px 32px 72px; }
[data-theme="dark"] .auth-hero { background: #10293f; }
.auth-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-color: var(--accent); opacity: .065;
  -webkit-mask-image: url(/assets/brand/abr-diamond.svg), linear-gradient(90deg, transparent 46%, rgb(0 0 0 / .6) 70%, #000 100%);
  mask-image: url(/assets/brand/abr-diamond.svg), linear-gradient(90deg, transparent 46%, rgb(0 0 0 / .6) 70%, #000 100%);
  -webkit-mask-size: 44px 79px, 100% 100%; mask-size: 44px 79px, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.auth-grid { max-width: 1152px; margin: 0 auto; display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .auth-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.auth-eyebrow { font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--link); }
.auth-title { font-size: 40px; font-weight: 700; line-height: 1.1; margin: 12px 0; }
.auth-lead { font-size: 19px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; max-width: 560px; }
.auth-note { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.5; background: var(--blue-bg); color: #00365f; max-width: 520px; }
[data-theme="dark"] .auth-note { color: #cfeefa; }
.auth-note svg { flex: 0 0 auto; margin-top: 2px; }
.auth-card { max-width: 460px; width: 100%; border-radius: 28px; box-shadow: var(--shadow-pop); padding: 28px; border: 1px solid var(--line); justify-self: end; }
.auth-card .btn { width: 100%; min-height: 48px; font-size: 16px; }
.sso-div { display: flex; align-items: center; gap: 12px; }
.sso-div::before, .sso-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso-btn.btn.secondary { border-color: var(--line); }

/* ---------- footer (full, like the site) ---------- */
.ftr { background: #004580; color: #fff; position: relative; isolation: isolate; overflow: hidden; font-size: 15px; }
.ftr::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 760px; left: 18%; top: -60px; background: #fff; opacity: .08;
  -webkit-mask-image: url(/assets/brand/brand-pattern-mask.png), radial-gradient(circle 380px at 40% 64%, #000 0%, rgb(0 0 0 / .55) 50%, transparent 100%);
  mask-image: url(/assets/brand/brand-pattern-mask.png), radial-gradient(circle 380px at 40% 64%, #000 0%, rgb(0 0 0 / .55) 50%, transparent 100%);
  -webkit-mask-size: 760px, 100% 100%; mask-size: 760px, 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-composite: source-in; mask-composite: intersect; }
[data-theme="dark"] .ftr { background: #00365f; }
.ftr-wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.ftr a, .ftr button.flink { color: #fff; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.ftr a:hover, .ftr button.flink:hover { text-decoration: underline; }
.ftr .sub { color: #d6e2ee; }
.ftr-top { display: grid; gap: 36px; padding: 56px 0 40px; }
@media (min-width: 1024px) { .ftr-top { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; } }
.ftr-logo img { height: 48px; width: auto; display: block; }
.ftr-col { display: grid; gap: 14px; align-content: start; }
.ftr h5 { margin: 0 0 2px; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: #57c3e9; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ftr-soc { display: flex; gap: 8px; flex-wrap: wrap; }
.ftr-soc a { width: 44px; height: 44px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .3); display: grid; place-items: center; }
.ftr-langs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; padding: 4px; gap: 2px; max-width: 280px; }
.ftr-langs button { height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; color: #fff; background: transparent; border: 0; cursor: pointer; }
.ftr-langs button.on { background: #57c3e9; color: #002a4d; }
.ftr-theme { justify-self: start; height: 36px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .3); display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 13px; font-weight: 650; color: #fff; background: transparent; cursor: pointer; }
.ftr-bottom { border-top: 1px solid rgb(255 255 255 / .24); padding: 22px 0 28px; display: grid; gap: 14px; font-size: 13px; color: #d6e2ee; }
@media (min-width: 1024px) { .ftr-bottom { grid-template-columns: 1fr 1.6fr; } }
.ftr-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ftr-bottom .links a, .ftr-bottom .links button.flink { color: #d6e2ee; }

/* ---------- phone ---------- */
.mobile-flex { display: none !important; }
@media (max-width: 1023px) { .hsearch .hs-text, .hsearch .kbd { display: none; } .hsearch { min-width: 0; width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 820px) {
  .mobile-flex { display: inline-grid !important; }
  .hdr-in { padding: 0 12px; gap: 10px; }
  .logo img { height: 30px; }
  .logo .portal { display: none; }
  .hdr .tools { gap: 6px; }
  .shell { display: block; padding: 20px 16px calc(84px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; inset: 0 auto 0 0; top: 0; width: 84%; max-width: 320px; max-height: none; height: 100%; border-radius: 0 20px 20px 0; border-left: 0; z-index: 30; padding: 16px 10px 32px; }
  .page-head h2 { font-size: 30px; }
  .sec-hint { font-size: 16px; }
  .card { padding: 18px; }
  .btn { min-height: 44px; }
  .ftr-wrap { padding: 0 20px; }
  .ftr { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .auth-hero { padding: 32px 16px 48px; }
  .auth-title { font-size: 32px; }
  .auth-card { justify-self: stretch; padding: 22px; }
  .content { padding: 0; }
  .settings-actions { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.bottombar { background: var(--hdr-bg); border-top: 1px solid var(--line); box-shadow: none; padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); }
.bb-item { font-size: 11px; font-weight: 600; color: var(--muted); gap: 3px; }
.bb-item svg { width: 22px; height: 22px; }
.bb-item.on { color: var(--link); }
.bb-item.on svg { background: var(--nav-on-bg); border-radius: 99px; width: 52px; height: 28px; padding: 3px 15px; box-sizing: border-box; }

/* ---------- section-level pieces restyled to the system ---------- */
.link-btn { border-radius: 20px; padding: 16px 18px; }
.link-btn:hover { transform: translateY(-4px); box-shadow: none; }
.link-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--blue-bg); color: var(--blue-ink); }
.report-list-item, .dossier, .oc-box, .fp-box, .cmp-pillar, .cmp-ch, .intg, .proj-card, .kb-card, .tg-post, .reorder-row { border-radius: 16px; }
.dossier:hover { border-color: #9cc4e4; }
.proj-card { box-shadow: none; }
.kb-col { background: var(--surface-3); border: 0; border-radius: 18px; padding: 12px; }
[data-theme="dark"] .kb-col { background: rgb(255 255 255 / .03); border: 1px solid var(--line); }
.kb-card { box-shadow: none; border-radius: 14px; }
.kb-card:hover { border-color: #9cc4e4; }
.kb-add { border-radius: 12px; }
.cal-cell { border-radius: 12px; }
.cal-cell.today, .tcal-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.today .cal-dnum { color: var(--btn-blue-ink); background: var(--btn-blue); border-radius: 99px; width: 24px; height: 24px; display: grid; place-items: center; }
.cal-date, .cal-when { color: var(--link); }
.tcal-ev { background: var(--blue-bg); border-color: transparent; color: var(--blue-ink); }
.cm-user { background: var(--btn-blue); color: var(--btn-blue-ink); border: 0; border-bottom-right-radius: 6px; border-radius: 18px; }
.cm-ai { background: var(--surface-2); border-color: var(--line); border-radius: 18px; border-bottom-left-radius: 6px; }
.fp-ava { background: #004580; color: #fff; }
[data-theme="dark"] .fp-ava { background: #57c3e9; color: #002a4d; }
.fp-box-h, .cmp-ch-h, .cmp-pillar b { color: var(--link); }
.fp-tl { border-left-color: var(--line); }
.fp-tl-dot { background: var(--btn-blue); }
.fp-link { color: var(--link); }
.oc-box { box-shadow: none; }
.oc-box.tier-founder, .oc-box.tier-director { border-color: var(--btn-blue); background: var(--surface); box-shadow: inset 0 0 0 1px var(--btn-blue); }
.oc-box.tier-deputy, .oc-box.tier-head { border-color: var(--line); }
.ocx-box { border-color: var(--line); border-radius: 16px; background: var(--surface); }
.ocx-org { background: #004580; color: #fff; border-color: #004580; }
[data-theme="dark"] .ocx-org { background: #57c3e9; color: #002a4d; border-color: #57c3e9; }
.ocx-spine .ocx-box:not(.ocx-org) { background: var(--surface); box-shadow: inset 0 0 0 1px var(--btn-blue); border-color: var(--btn-blue); }
.ocx-blue { border-color: var(--btn-blue); background: var(--blue-bg); }
.ocx-line, .ocx-riser { background: var(--line); }
.ocx-row::before, .ocx-col::before { border-color: var(--line); }
.ocx-n { background: var(--primary); color: #0e1a26; }
.settings-actions { border-radius: 16px; box-shadow: var(--shadow-pop); }
.notif-item.unread { background: var(--nav-on-bg); }
.nt-h svg { color: var(--link); }
.na-h.na-week { color: var(--warm-ink); }
.dq-row:hover, .sp-fellow:hover, .tl-row:hover, .cal-ev:hover, .sr-item:hover { background: var(--ink-6); }
.uzg path:hover { stroke: var(--primary); }
.tips-list li::marker { color: var(--primary); }
.notif-badge[hidden] { display: none !important; }
.card-go { opacity: 1; color: var(--link); font-weight: 650; margin-left: 8px; letter-spacing: 0; }
.card-nav .dash-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

/* ---------- phase 2: maps, funnels, social channels, admin layout ---------- */
.uzg path.uzg-planned { stroke: var(--primary); stroke-width: 2.2; stroke-dasharray: 6 4; }
.uzg text { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.uzg-key i { border-radius: 4px; }
.rcf-bar { background: var(--viz-track); border-radius: 99px; height: 20px; }
.rcf-fill { border-radius: 99px; }
.rcf-num { text-shadow: none; font-weight: 750; }
.rcf-num.rcf-c1 { color: #fff; } [data-theme="dark"] .rcf-num.rcf-c1 { color: #002a4d; }
.rcf-num.rcf-c2, .rcf-num.rcf-c3, .rcf-num.rcf-c4 { color: #0e1a26; } [data-theme="dark"] .rcf-num.rcf-c2 { color: #fff; }
.rcf-num.rcf-c0 { color: #fff; }
.cr-bar { border-radius: 99px; background: var(--viz-track); }
.social-btn { background: transparent; color: var(--link); border: 2px solid var(--accent); min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 650; }
.social-btn:hover { background: var(--blue-bg); filter: none; }
.admin-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-grid > .card { margin-bottom: 0; }
.admin-grid > .card.wide { grid-column: 1 / -1; }
@media (max-width: 1100px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .settings-actions { flex-wrap: wrap; } .settings-actions > :first-child { flex: 1 1 100%; } }
