/* Biotech OS · visual language follows the Module 3 roadmap tool:
   Calibri (Carlito on the web), Biotech Booster blue, teal and green, quiet surfaces, mono for numbers. */
:root {
  --bg: #F4F6F8; --surface: #FFFFFF; --sunk: #EFF6FB; --ink: #1E2A33; --muted: #5B6873; --line: #D5DEE6; --grid: #E4EAEF;
  --accent: #0070B0; --accent-ink: #FFFFFF; --accent-soft: #E1EEF8; --teal: #2C9C8E; --teal-soft: #DDF2EE; --lime: #7BBE36;
  --amber: #B77A09; --amber-soft: #FBEFD6; --neg: #C8414F; --neg-soft: #F9E1E4; --pos: #3F8A14; --pos-soft: #E6F3D6;
  --f-body: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 6px; --shadow: 0 1px 2px rgba(20, 40, 60, .06), 0 4px 16px rgba(20, 40, 60, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F171D; --surface: #16212A; --sunk: #1B2A35; --ink: #E6EDF2; --muted: #95A4AF; --line: #283844; --grid: #22313C;
  --accent: #4AA8E0; --accent-ink: #0B1620; --accent-soft: #123247; --teal: #4CC3B3; --teal-soft: #12332E; --lime: #8CCB55;
  --amber: #E3A93C; --amber-soft: #3A2C12; --neg: #F07A86; --neg-soft: #3D1D22; --pos: #8CCB55; --pos-soft: #1D3214;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F171D; --surface: #16212A; --sunk: #1B2A35; --ink: #E6EDF2; --muted: #95A4AF; --line: #283844; --grid: #22313C;
  --accent: #4AA8E0; --accent-ink: #0B1620; --accent-soft: #123247; --teal: #4CC3B3; --teal-soft: #12332E; --lime: #8CCB55;
  --amber: #E3A93C; --amber-soft: #3A2C12; --neg: #F07A86; --neg-soft: #3D1D22; --pos: #8CCB55; --pos-soft: #1D3214;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 1.9rem; line-height: 1.12; } h2 { font-size: 1.35rem; } h3 { font-size: 1.08rem; } h4 { font-size: .95rem; }
p { margin: 0; } a { color: var(--accent); } img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
[hidden] { display: none !important; }

/* ── Top bar ── */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 44px; height: 20px; }
.brand b { font-size: 1.12rem; } .brand small { color: var(--muted); font-size: 12.5px; display: block; line-height: 1.1; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r); color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav svg { width: 17px; height: 17px; }
.me { display: flex; align-items: center; gap: 10px; flex: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; border: 0; cursor: pointer; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; cursor: default; }
.menu { position: absolute; right: 20px; top: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 220px; padding: 6px; display: grid; }
.menu a, .menu button { text-align: left; padding: 8px 10px; border-radius: 5px; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--sunk); }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.announce { background: var(--accent); color: var(--accent-ink); padding: 8px 20px; text-align: center; font-weight: 600; font-size: 14px; }

/* ── Layout ── */
.page { max-width: 1280px; margin: 0 auto; padding: 26px 20px 80px; display: grid; gap: 22px; align-content: start; }
.page.split { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.sub { position: sticky; top: 76px; display: grid; gap: 2px; }
.sub a { padding: 8px 10px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; gap: 8px; }
.sub a:hover { background: var(--surface); }
.sub a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.sub .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 14px 10px 4px; }
.main { display: grid; gap: 20px; min-width: 0; align-content: start; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.head > div:first-child:not(.row) { display: grid; gap: 6px; min-width: 0; }
.eyebrow { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; }
.lede { color: var(--muted); max-width: 70ch; }
.crumbs { font-size: 13.5px; color: var(--muted); } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.card.flat { padding: 0; overflow: hidden; }
.card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-h small { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; } .stack { display: grid; gap: 10px; } .stack.tight { gap: 4px; }
.hero { background: linear-gradient(120deg, var(--accent) 0%, #0A5E91 60%, var(--teal) 140%); color: #fff; border-radius: 12px; padding: 26px 28px; display: grid; gap: 8px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; } .hero p { opacity: .9; max-width: 62ch; }
.hero svg.art { position: absolute; right: 18px; bottom: 0; width: min(40%, 340px); opacity: .9; pointer-events: none; }

/* ── KPIs ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 2px; }
.kpi .l { font-size: 12.5px; color: var(--muted); } .kpi .v { font-size: 1.7rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; } .kpi .d { font-size: 12.5px; color: var(--muted); }
.kpi.hero-kpi { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .kpi.hero-kpi .l, .kpi.hero-kpi .d { color: var(--accent-ink); opacity: .85; }

/* ── Controls ── */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 7px 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 14.5px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--sunk); }
.btn.danger { color: var(--neg); border-color: var(--neg); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 9px; min-width: 0; }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { display: grid; gap: 5px; } .field > label, .field > .lab { font-size: 13px; color: var(--muted); font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.fields .wide { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.search { position: relative; } .search input { padding-left: 34px; } .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

/* ── Pills and status ── */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 2px 9px; border-radius: 99px; background: var(--sunk); color: var(--muted); white-space: nowrap; font-weight: 600; }
.pill.blue { background: var(--accent-soft); color: var(--accent); } .pill.teal { background: var(--teal-soft); color: var(--teal); }
.pill.green { background: var(--pos-soft); color: var(--pos); } .pill.amber { background: var(--amber-soft); color: var(--amber); } .pill.red { background: var(--neg-soft); color: var(--neg); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--line); }
.dot.green { background: var(--pos); } .dot.amber { background: var(--amber); } .dot.red { background: var(--neg); }
.bar { height: 6px; border-radius: 99px; background: var(--grid); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.stackbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--grid); gap: 2px; }
.stackbar i { display: block; height: 100%; }

/* ── Tables ── */
.tablewrap { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--sunk); }
table.t td.num, table.t th.num { text-align: right; } table.t td.num { font-family: var(--f-mono); font-size: 13.5px; }
.co { display: flex; align-items: center; gap: 10px; min-width: 0; } .co b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent); object-fit: contain; border: 1px solid var(--line); }
.logo.lg { width: 64px; height: 64px; font-size: 22px; border-radius: 12px; }
.logo.mono { background: var(--surface); padding: 5px; }
.logo.mono > i { display: block; width: 100%; height: 100%; background: var(--ink); opacity: 0; transition: opacity .15s;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.logo.mono.ready > i { opacity: .88; }
.logo.mono > img { width: 100%; height: 100%; object-fit: contain; }
.vrow .logo.mono { padding: 8px; }

/* ── Lists ── */
.list { display: grid; } .list > * { padding: 12px 0; border-bottom: 1px solid var(--grid); } .list > *:last-child { border-bottom: 0; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); }

/* ── Learn ── */
.mod { display: grid; gap: 12px; }
.mod-h { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.lessons { display: grid; gap: 2px; }
.lesson { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.lesson:hover { background: var(--sunk); }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.tick.on { background: var(--teal); border-color: var(--teal); color: #fff; } .tick svg { width: 13px; height: 13px; }
.prose { max-width: 74ch; display: grid; gap: 14px; font-size: 16.5px; line-height: 1.6; }
.prose h2 { font-size: 1.35rem; margin-top: 10px; } .prose h3 { font-size: 1.12rem; margin-top: 6px; } .prose h4 { font-size: 1rem; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose li.task { list-style: none; margin-left: -22px; display: flex; gap: 10px; align-items: baseline; }
.prose .box { width: 15px; height: 15px; border: 2px solid var(--muted); border-radius: 3px; flex: none; transform: translateY(2px); }
.prose .box.on { background: var(--teal); border-color: var(--teal); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.prose th { color: var(--muted); font-size: 13px; background: var(--sunk); }
.prose blockquote { margin: 0; padding: 8px 16px; border-left: 3px solid var(--teal); background: var(--teal-soft); border-radius: 0 6px 6px 0; }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.workframe { width: 100%; height: calc(100vh - 140px); min-height: 640px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

/* ── Track ── */
.obj { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.obj-h { padding: 14px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--grid); }
.obj-h h3 { font-size: 1.05rem; } .obj-h .why { color: var(--muted); font-size: 14px; }
.kr { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(90px, .8fr) minmax(130px, 1fr) 132px 34px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--grid); }
.kr:last-child { border-bottom: 0; }
.kr .t { font-weight: 600; } .kr .m { font-size: 12.5px; color: var(--muted); }
.kr input.cur { font-family: var(--f-mono); text-align: right; padding: 4px 6px; }
.kr select { padding: 4px 6px; }
.status-not { color: var(--muted); } .status-on { color: var(--pos); } .status-risk { color: var(--amber); } .status-off { color: var(--neg); } .status-done { color: var(--teal); }
.rag { display: flex; gap: 8px; } .rag label { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; }
.rag input { position: absolute; opacity: 0; pointer-events: none; }
.rag label:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 2px currentColor inset; }
.rag .g { color: var(--pos); } .rag .a { color: var(--amber); } .rag .r { color: var(--neg); }
.rag label span { color: var(--ink); }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; position: relative; }
.tl::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--grid); }
.tl:last-child::before { display: none; } .tl .dot { margin-top: 5px; width: 12px; height: 12px; margin-left: 3px; }

/* ── Connect ── */
.dir { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.facets { display: grid; gap: 16px; position: sticky; top: 76px; }
.facet h4 { font-size: 13px; margin-bottom: 6px; } .facet .check { justify-content: space-between; font-size: 14px; padding: 2px 0; }
.facet .check span.n { color: var(--muted); font-size: 12px; font-family: var(--f-mono); }
.vlist { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--grid); cursor: pointer; align-items: center; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; color: inherit; }
.vrow:last-child { border-bottom: 0; } .vrow:hover { background: var(--sunk); }
.vrow .logo { width: 56px; height: 56px; font-size: 20px; border-radius: 10px; }
.vrow h3 { font-size: 1.02rem; } .vrow .loc { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.conn { display: grid; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--grid); }
.conn:last-child { border-bottom: 0; }
.conn .line { font-size: 15px; } .conn .line .via { color: var(--muted); }
.conn .quote { display: inline-block; font-size: 13.5px; background: var(--sunk); border: 1px solid var(--grid); padding: 2px 10px; border-radius: 6px; color: var(--muted); }
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 25, 35, .45); z-index: 50; display: flex; justify-content: flex-end; animation: fade .15s; }
.drawer { width: min(720px, 100%); height: 100%; background: var(--surface); overflow-y: auto; box-shadow: var(--shadow); animation: slide .2s ease-out; display: grid; align-content: start; }
.drawer .cover { height: 92px; background: linear-gradient(120deg, var(--accent), var(--teal)); }
.drawer .dh { padding: 0 24px 16px; display: grid; gap: 10px; margin-top: -36px; }
.drawer .dh .logo.lg { border: 3px solid var(--surface); }
.drawer .tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 24px; gap: 4px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.drawer .tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.drawer .tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.drawer .db { padding: 20px 24px 40px; display: grid; gap: 18px; }
.drawer .x { position: absolute; margin: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #1E2A33; cursor: pointer; font-size: 20px; line-height: 1; z-index: 3; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
.ftl { display: grid; gap: 0; } .ftl .tl .dot { background: var(--teal); }
.opp { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.date { border: 1px solid var(--line); border-radius: 8px; text-align: center; overflow: hidden; background: var(--surface); }
.date b { display: block; font-size: 1.4rem; line-height: 1.2; padding-top: 4px; } .date span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0 4px; }
.date i { display: block; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 0; }
.date.soon i { background: var(--neg); color: #fff; } .date.none i { background: var(--muted); color: #fff; }

/* ── Report ── */
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.rsec { display: grid; gap: 12px; }
.rsec h3 { display: flex; gap: 8px; align-items: center; }
.rsec h3 .n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 5px; }
.lock { background: var(--amber-soft); color: var(--amber); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.review { border: 1px solid var(--line); border-left: 4px solid var(--amber); padding: 12px 14px; border-radius: 8px; background: var(--surface); }
.review.ok { border-left-color: var(--pos); }
.sumbar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 18px; display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-radius: 0 0 10px 10px; z-index: 5; }

/* ── Login ── */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.login .side { background: linear-gradient(135deg, #0070B0 0%, #0A5E91 55%, #2C9C8E 120%); color: #fff; padding: 56px; display: grid; align-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.login .side h1 { font-size: 2.6rem; color: #fff; max-width: 16ch; } .login .side p { opacity: .9; max-width: 46ch; font-size: 17px; }
.login .side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.login .side li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; } .login .side li b { opacity: 1; } .login .side li span { opacity: .85; }
.login .form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.login .form > div { width: min(380px, 100%); display: grid; gap: 16px; }
.login .code input { font-family: var(--f-mono); font-size: 1.6rem; letter-spacing: .4em; text-align: center; }
.devcode { background: var(--amber-soft); color: var(--amber); padding: 10px 12px; border-radius: 8px; font-size: 14px; }

/* ── Misc ── */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 8px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); animation: fade .2s; }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 25, 35, .45); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 12px; width: min(620px, 100%); max-height: 90vh; overflow: auto; padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.owner-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--teal-soft); color: var(--teal); }
.owner-tag.prog { background: var(--accent-soft); color: var(--accent); }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: .6; } }

@media (max-width: 980px) {
  .page.split, .dir { grid-template-columns: 1fr; }
  .sub, .facets { position: static; }
  .sub { display: flex; overflow-x: auto; gap: 4px; } .sub .lbl { display: none; }
  .sub a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .login { grid-template-columns: 1fr; } .login .side { padding: 32px 24px; } .login .side h1 { font-size: 2rem; } .login .side ul { display: none; }
  .kr { grid-template-columns: 1fr 1fr; } .kr > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 12px; gap: 8px; } .brand small { display: none; } .brand b { display: none; }
  .nav a span { display: none; } .nav a { padding: 8px 10px; }
  .page { padding: 18px 16px 60px; } h1 { font-size: 1.55rem; }
  .grid2 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
  .vrow { grid-template-columns: 44px minmax(0, 1fr); } .vrow > :last-child { display: none; } .vrow .logo { width: 44px; height: 44px; }
  .opp { grid-template-columns: 60px minmax(0, 1fr); } .opp > :last-child { grid-column: 2; }
}
@media (max-width: 980px) { .cgrid { grid-template-columns: 1fr !important; } }
@media print { .top, .sub, .sumbar, .announce, .head .row .btn { display: none !important; } .page.split { grid-template-columns: 1fr; } body { background: #fff; } .card { break-inside: avoid; } }

/* ── Learn: programmes, modules, exercises ── */
.prog-card { text-decoration: none; color: inherit; gap: 12px; }
.prog-card:hover { border-color: var(--accent); }
.prog-band { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -18px -18px 0; padding: 12px 18px; border-radius: 10px 10px 0 0; background: linear-gradient(120deg, var(--accent), var(--teal)); color: #fff; }
.prog-band.lib { background: linear-gradient(120deg, var(--teal), var(--lime)); }
.prog-band .pill { background: rgba(255,255,255,.2); color: #fff; }
.prog-hero h1 { font-size: 2.1rem; }
.prog-hero .pill { background: rgba(255,255,255,.18); color: #fff; }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.outcomes li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14.5px; }
.outcomes svg { width: 16px; height: 16px; color: var(--teal); margin-top: 3px; }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; }
.jstep { display: grid; gap: 2px; padding: 8px 10px; border-top: 3px solid var(--accent-soft); position: relative; }
.jstep .n { font-family: var(--f-mono); font-size: 11px; color: var(--accent); }
.jstep small { color: var(--muted); font-size: 12px; }
.mod-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.mod-row:hover, .mc-card:hover { border-color: var(--accent); }
.mod-num { font-family: var(--f-mono); font-size: 1.4rem; color: var(--accent); background: var(--accent-soft); border-radius: 10px; height: 54px; display: grid; place-items: center; }
.mc-card { text-decoration: none; color: inherit; }
.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 14px; }
.tabs-row button { border: 0; background: none; padding: 12px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.tabs-row button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ex-card { gap: 16px; border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.ex-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.ex-top .co .logo { width: 26px; height: 26px; }
.exercise { display: grid; gap: 16px; }
.ex-intro { color: var(--muted); }
.ex-h { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--grid); }
.ex-note { font-size: 14px; background: var(--sunk); border-radius: 8px; padding: 10px 12px; }
.ex-lab { font-size: 14px; font-weight: 700; color: var(--ink); }
.ex-num input { max-width: 200px; text-align: right; font-family: var(--f-mono); }
.ex-table table.t td { padding: 4px 6px; }
.ex-table input, .ex-table select, .ex-table textarea { border-color: var(--grid); background: var(--sunk); padding: 5px 6px; }
.ex-table input:hover, .ex-table textarea:hover { border-color: var(--line); }
.ex-table input.numin { text-align: right; font-family: var(--f-mono); }
.ex-table td.calc { font-family: var(--f-mono); color: var(--accent); white-space: nowrap; }
.ex-rowlab { font-weight: 600; font-size: 14px; min-width: 160px; }
.ex-total, .ex-calc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--accent-soft); border-radius: 8px; flex-wrap: wrap; }
.ex-calc b, .ex-total b { color: var(--accent); font-size: 1.1rem; }
.ex-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ex-choice label { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ex-choice label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ex-choice span { display: grid; gap: 2px; } .ex-choice small { color: var(--muted); font-size: 12.5px; }
.ex-dots { display: inline-flex; gap: 3px; }
.ex-dots button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-family: var(--f-mono); font-size: 12px; cursor: pointer; color: var(--muted); }
.ex-dots button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ex-dots button:disabled { cursor: default; }
.ex-sentence { font-size: 16.5px; line-height: 2.2; max-width: 80ch; }
.ex-sentence input { display: inline; width: auto; padding: 3px 6px; margin: 0 3px; border-width: 0 0 2px; border-radius: 0; border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.exercise.ro input, .exercise.ro textarea, .exercise.ro select { color: var(--ink); opacity: 1; -webkit-text-fill-color: var(--ink); }
.ex-roster { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip { position: relative; display: inline-block; border-radius: 10px; padding: 2px; border: 2px solid transparent; }
.ex-chip.on { border-color: var(--accent); }
.ex-chip .logo { width: 34px; height: 34px; }
.ex-chip .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--surface); }
.ex-thread { border-top: 1px solid var(--grid); padding-top: 14px; }
@media (max-width: 640px) { .mod-row { grid-template-columns: 44px minmax(0, 1fr); } .mod-row > :last-child { grid-column: 2; } .mod-num { height: 44px; font-size: 1.1rem; } }

/* Single sign-on buttons */
.sso { display: grid; gap: 8px; }
.sso-btn { justify-content: center; gap: 10px; text-decoration: none; padding: 10px 14px; }
.sso-ic { width: 18px; height: 18px; display: inline-block; background-size: contain; background-repeat: no-repeat; }
.sso-ic.google { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E"); }
.sso-ic.microsoft { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath fill='%23f25022' d='M1 1h9v9H1z'/%3E%3Cpath fill='%2300a4ef' d='M1 11h9v9H1z'/%3E%3Cpath fill='%237fba00' d='M11 1h9v9h-9z'/%3E%3Cpath fill='%23ffb900' d='M11 11h9v9h-9z'/%3E%3C/svg%3E"); }
.sso-ic.linkedin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='4' fill='%230A66C2'/%3E%3Cpath fill='%23fff' d='M7.1 9.5H4.6V19h2.5V9.5zM5.9 5.2a1.4 1.4 0 1 0 0 2.9 1.4 1.4 0 0 0 0-2.9zM19.4 13.6c0-2.6-.6-4.3-3.5-4.3-1.4 0-2.3.7-2.7 1.4h0V9.5h-2.4V19h2.5v-4.7c0-1.2.2-2.4 1.8-2.4 1.5 0 1.5 1.4 1.5 2.5V19h2.5v-5.4z'/%3E%3C/svg%3E"); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pill.lime { background: color-mix(in srgb, var(--lime) 22%, transparent); color: var(--ink); }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card.person { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 14px; }
.card.person:hover, .card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
img.avatar { object-fit: cover; padding: 0; background: var(--sunk); }
.co .avatar { width: 24px; height: 24px; font-size: 10px; }
.wb-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; text-decoration: none; color: inherit; border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--surface)); }

/* ── Consulting ── */
tr.click { cursor: pointer; } tr.click:hover td { background: var(--sunk); }
.card.offer { gap: 10px; } .card.offer.muted { opacity: .6; }
.quote { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; font-size: 15px; line-height: 1.55; }
.quote h1 { font-size: 1.7rem; margin-top: 10px; } .quote h2 { font-size: 1.15rem; margin-top: 14px; } .quote h3 { font-size: 1rem; margin-top: 8px; }
.quote ul { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 2px; } .quote p { margin: 0; }
.q-head { display: flex; justify-content: flex-end; text-align: right; font-size: 13px; color: var(--muted); } .q-head b { color: var(--ink); font-size: 14px; }
.q-meta { display: grid; grid-template-columns: 130px 1fr; gap: 2px 10px; margin: 0; } .q-meta dt { font-weight: 700; } .q-meta dd { margin: 0; }
table.qt { border-collapse: collapse; width: 100%; font-size: 13.5px; } table.qt th, table.qt td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; } table.qt thead th { background: var(--sunk); } table.qt tfoot th { background: var(--sunk); }
.q-sign { display: grid; gap: 14px; margin: 8px 0; } .q-sign span { display: inline-block; width: 260px; border-bottom: 1px solid var(--ink); }
.tl.done b { text-decoration: line-through; opacity: .6; }
.dot.amber { background: var(--amber); } .dot.teal { background: var(--teal); }
@media print { .top, .tabs-row, .head .row, .grid4, .sub { display: none !important; } .quote { max-width: none; font-size: 11pt; } .card { border: 0; box-shadow: none; } }
.list a.item { text-decoration: none; color: inherit; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.list a.item > :last-child { white-space: nowrap; flex: none; }
.list a.item:hover b { color: var(--accent); }
/* Partner logos on programmes: always shown on a white plate so the brand colours stay true in dark mode. */
.prog-logos { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 6px 12px; flex: none; }
.prog-logos img { height: 26px; width: auto; display: block; } .prog-logos .x { color: #8C99A3; font-size: 13px; }
.prog-logos.sm img { height: 20px; } .prog-logos.sm { padding: 5px 9px; border: 1px solid var(--line); }
.prog-hero { position: relative; } .prog-logos.hero { position: absolute; top: 22px; right: 24px; } .prog-logos.hero img { height: 30px; }
@media (max-width: 640px) { .prog-logos.hero { position: static; justify-self: start; margin-bottom: 6px; } }
/* Track overview */
.pcard { text-decoration: none; color: inherit; gap: 10px; } .pcard:hover { border-color: var(--accent); }
.ragbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); min-width: 120px; } .ragbar i { display: block; height: 100%; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pstat { display: grid; } .pstat b { font-size: 1.15rem; font-family: var(--f-mono); } .pstat span { font-size: 11.5px; color: var(--muted); }
.c-neg { color: var(--neg); } .c-amber { color: var(--amber); }
.phasebar { display: flex; gap: 4px; } .phasebar i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); } .phasebar i.live { background: var(--teal); } .phasebar i.done { background: var(--pos); }
table.heat td { text-align: center; } table.heat td.lag { outline: 2px solid var(--neg); outline-offset: -2px; }
footer.licence { max-width: 1240px; margin: 24px auto 18px; padding: 0 24px; font-size: 11.5px; color: var(--muted); }
@media print { footer.licence { display: block; } }

.viewas { position: sticky; top: 0; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: #E8590C; color: #fff; font-size: 14px; }
.viewas .btn { background: #fff; color: #1f2a37; border-color: #fff; }

/* Master classes: groups and coming-soon cards */
.mc-group-h { margin: 10px 0 2px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mc-card.soon { opacity: .5; filter: grayscale(1); cursor: default; }
.mc-card.soon:hover { border-color: var(--line); }
