/* AI Institute web app — "Blueprint Command": an architect's drawing set on a night-blue drafting table.
   Every page is a sheet (code, title, title block); numbers sit on dimension lines; modules stand as towers. */
:root {
  --navy: #050c1d; --navy-2: #0a1734; --navy-3: #10224a; --panel: rgba(10, 24, 56, .78); --panel-2: rgba(16, 36, 80, .7);
  --blue: #445AA5; --blue-2: #5b73c4; --royal: #223D8E; --cyan: #7cc4ff; --cyan-2: #b8e0ff; --orange: #F6A623; --gold: #f8c56a;
  --ink: #eaf1ff; --muted: #9fb0d0; --dim: #6f82aa; --line: rgba(124, 172, 255, .18); --line-2: rgba(124, 172, 255, .34);
  --grid: rgba(110, 150, 240, .07); --grid-2: rgba(110, 150, 240, .13); --good: #45d49a; --bad: #ff7f7f; --warn: #f6c453;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --r: 4px;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; min-height: 100vh; color: var(--ink); padding-bottom: 48px;
  font: 15.5px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(68, 90, 165, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(246, 166, 35, .08), transparent 60%),
    linear-gradient(var(--grid-2) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--navy);
  background-attachment: fixed }
a { color: var(--orange) }
.muted { color: var(--muted) } .dim { color: var(--dim) } .center { text-align: center } .small { font-size: 13px }
.mono { font-family: var(--mono); word-break: break-word }
.code { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan) }
.up { font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim) }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(5, 12, 29, .88);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(10px) }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent); opacity: .5 }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: .02em }
.brand small { font: 600 10px/1 var(--mono); letter-spacing: .2em; color: var(--cyan); border: 1px solid var(--line-2); padding: 3px 6px; border-radius: 2px }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0 }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted) }
.viewing { background: var(--orange); color: var(--navy); padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 14px;
  align-items: center; justify-content: space-between; font-weight: 700; position: sticky; top: 53px; z-index: 19 }
.viewing button { background: var(--navy); color: #fff; border-color: var(--navy) }

main { max-width: 820px; margin: 0 auto; padding: 22px 16px }
main.narrow { max-width: 470px }
main.wide { max-width: 1320px; padding: 0 }
h1 { font-size: clamp(24px, 5.6vw, 34px); line-height: 1.12; margin: 6px 0 8px; letter-spacing: -.01em }
h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: .01em }
h3 { font-size: 16px; margin: 0 }
p { margin: 0 0 14px }

/* ---------- panels: a drawn frame with corner ticks ---------- */
.card, .panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  margin-bottom: 14px; backdrop-filter: blur(4px) }
.panel::before, .panel::after, .card::before, .card::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none }
.panel::before, .card::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan) }
.panel::after, .card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan) }
.card.flat, .panel.flat { padding: 14px }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -2px 0 12px;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line) }
.panel-h h2 { margin: 0 }
.stack > * + * { margin-top: 12px }

/* ---------- forms ---------- */
label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 5px; color: var(--cyan-2) }
label .hint { font-weight: 400; color: var(--muted) }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: rgba(5, 12, 29, .85); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 11px 12px; min-height: 46px }
textarea { min-height: 90px; resize: vertical }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr } }

button, .btn { font: inherit; font-weight: 650; border-radius: var(--r); padding: 10px 16px; min-height: 44px; cursor: pointer;
  border: 1px solid var(--blue-2); background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; letter-spacing: .01em }
button:hover, .btn:hover { filter: brightness(1.12) }
button:disabled { opacity: .5; cursor: not-allowed; filter: none }
button.wide { width: 100% }
button.ghost, .btn.ghost { background: rgba(5, 12, 29, .4); border-color: var(--line-2); color: var(--ink) }
button.accent, .btn.accent { background: linear-gradient(180deg, var(--gold), var(--orange)); border-color: var(--orange); color: #1a1205 }
button.danger { background: transparent; border-color: rgba(255, 127, 127, .55); color: var(--bad) }
button.sm, .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px }
button.link { background: none; border: 0; color: var(--orange); padding: 0; min-height: 0; text-decoration: underline; font-weight: 500 }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px }
.error { color: var(--bad); font-size: 14px } .error:empty { display: none }
.note { border-left: 3px solid var(--orange); background: var(--panel-2); padding: 12px 14px; border-radius: var(--r); margin-bottom: 14px }
.note.good { border-color: var(--good) } .note.bad { border-color: var(--bad) }
.key { font: 700 clamp(15px, 4.6vw, 20px)/1.4 var(--mono); letter-spacing: .06em; background: var(--navy); border: 1px dashed var(--orange);
  border-radius: var(--r); padding: 14px; text-align: center; word-break: break-all; user-select: all }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink) }
.check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 2px }

/* ---------- chips and switches ---------- */
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle }
.chip { font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; padding: 5px 7px;
  border: 1px solid var(--line-2); white-space: nowrap; color: var(--cyan-2) }
.chip.plan { background: rgba(68, 90, 165, .45); border-color: var(--blue-2); color: #fff }
.chip.on { color: var(--good); border-color: rgba(69, 212, 154, .5) }
.chip.off { color: var(--bad); border-color: rgba(255, 127, 127, .5) }
.chip.test, .chip.warn { color: var(--orange); border-color: rgba(246, 166, 35, .5) }
.switch { position: relative; width: 52px; height: 28px; min-height: 28px; padding: 0; border-radius: 14px; flex: none;
  background: rgba(255, 127, 127, .2); border: 1px solid rgba(255, 127, 127, .5) }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bad); transition: left .15s }
.switch.on { background: rgba(69, 212, 154, .2); border-color: rgba(69, 212, 154, .6) }
.switch.on::after { left: 27px; background: var(--good) }

/* ---------- the console: sheet index + sheet ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 54px) }
.rail { position: sticky; top: 54px; align-self: start; height: calc(100vh - 54px); overflow-y: auto; border-right: 1px solid var(--line);
  background: rgba(5, 12, 29, .6); padding: 18px 12px 30px }
.rail .up { padding: 0 10px 10px }
.rail button { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; width: 100%; text-align: left; background: none;
  border: 1px solid transparent; color: var(--muted); padding: 9px 10px; min-height: 40px; font-weight: 600; margin-bottom: 2px }
.rail button .code { color: var(--dim) }
.rail button .n { font: 600 11px/1 var(--mono); color: var(--dim) }
.rail button:hover { background: rgba(124, 172, 255, .06); filter: none; color: var(--ink) }
.rail button.on { color: var(--ink); background: linear-gradient(90deg, rgba(124, 196, 255, .14), transparent); border-color: var(--line);
  border-left: 2px solid var(--cyan) }
.rail button.on .code { color: var(--cyan) }
.rail hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 10px }
.sheet { padding: 24px clamp(16px, 3vw, 36px) 40px; min-width: 0 }
.sheet-h { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2); position: relative }
.sheet-h::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 120px; height: 3px; background: var(--orange) }
.sheet-h h1 { margin: 6px 0 4px }
.sheet-h p { margin: 0; color: var(--muted); max-width: 680px }
@media (max-width: 900px) {
  .shell { display: block }
  .rail { position: sticky; top: 53px; z-index: 15; height: auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px;
    border-right: 0; border-bottom: 1px solid var(--line); background: rgba(5, 12, 29, .92); scrollbar-width: none; backdrop-filter: blur(10px) }
  .rail .up, .rail hr { display: none }
  .rail button { display: inline-flex; width: auto; gap: 8px; white-space: nowrap; margin: 0; min-height: 36px; padding: 6px 10px;
    border: 1px solid var(--line); border-radius: 2px }
  .rail button.on { border-left: 1px solid var(--cyan); border-color: var(--cyan) }
  .rail button .n { display: none }
  .sheet-h { grid-template-columns: 1fr }
}

/* title block: bottom-right of every sheet, like a drawing */
.titleblock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line-2); margin-top: 26px; background: rgba(5, 12, 29, .55) }
.titleblock div { padding: 8px 10px; border-left: 1px solid var(--line); min-width: 0 }
.titleblock div:first-child { border-left: 0 }
.titleblock b { display: block; font: 600 12.5px/1.35 var(--mono); color: var(--ink); overflow-wrap: anywhere; margin-top: 4px }
@media (max-width: 700px) { .titleblock { grid-template-columns: 1fr 1fr } .titleblock div { border-top: 1px solid var(--line) } .titleblock div:nth-child(odd) { border-left: 0 } }

/* KPIs on dimension lines */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px }
.kpi { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 22px; overflow: hidden }
.kpi .v { font: 700 clamp(26px, 4vw, 34px)/1.05 var(--mono); margin: 10px 0 4px; letter-spacing: -.02em }
.kpi .s { font-size: 12.5px; color: var(--muted) }
.kpi::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 7px;
  border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat }
.kpi.hot .v { color: var(--gold) } .kpi.cool .v { color: var(--cyan) }

/* module towers: stacked floors with a glowing roof */
.towers { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; margin-bottom: 18px }
.tower { position: relative; display: flex; flex-direction: column; background: linear-gradient(170deg, rgba(34, 61, 142, .55), rgba(10, 24, 56, .9) 55%);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 16px 16px; min-height: 250px; overflow: hidden }
.tower::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(124, 172, 255, .07) 27px 28px) }
.tower .roof { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c, var(--cyan)); box-shadow: 0 0 18px var(--c, var(--cyan)) }
.tower .mk { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 2px;
  background: rgba(5, 12, 29, .6); color: var(--c, var(--cyan)); margin-bottom: 12px }
.tower .mk svg { width: 26px; height: 26px }
.tower h3 { font-size: 20px; margin-bottom: 2px }
.tower .floors { margin: 12px 0 14px; display: grid; gap: 6px; position: relative }
.tower .floors div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 5px }
.tower .floors b { font-family: var(--mono) }
.tower .go { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; position: relative }
.tower.off { filter: saturate(.3); opacity: .75 }

/* lists of people and records */
.rows > .row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px dashed var(--line) }
.rows > .row:first-child { border-top: 0; padding-top: 2px }
.row .info { min-width: 0; flex: 1 1 240px }
.row .info > div { overflow-wrap: anywhere }
.avatar { width: 36px; height: 36px; border-radius: 2px; display: grid; place-items: center; flex: none; font: 700 13px/1 var(--mono);
  background: rgba(68, 90, 165, .4); border: 1px solid var(--line-2); color: var(--cyan-2) }
.who-cell { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1 1 260px }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px }
.filters input { flex: 1 1 220px; min-height: 40px; padding: 8px 12px }
.filters button { min-height: 40px }
.filters button.on { background: var(--ink); color: var(--navy); border-color: var(--ink) }
.empty { color: var(--muted); margin: 0; padding: 8px 0 }

/* timeline */
.log { list-style: none; padding: 0; margin: 0; font-size: 14px; position: relative }
.log li { position: relative; padding: 8px 0 8px 22px; border-top: 1px dashed var(--line) }
.log li:first-child { border-top: 0 }
.log li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; border: 1px solid var(--cyan); transform: rotate(45deg) }
.log li.warn::before { border-color: var(--orange); background: rgba(246, 166, 35, .4) }

/* two columns on a wide screen */
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px }
@media (max-width: 1050px) { .cols { grid-template-columns: 1fr } }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14px; margin: 0 }
.spec dt { font: 600 11px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim) }
.spec dd { margin: 0; overflow-wrap: anywhere }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 700 12px/24px var(--mono);
  width: 28px; text-align: center; border: 1px solid var(--line-2); color: var(--cyan) }
.bar { height: 8px; background: rgba(124, 172, 255, .12); border-radius: 1px; overflow: hidden }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue-2)) }

/* the home page of students and companies */
.hello { padding: 28px 0 8px }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px }

dialog { background: var(--navy-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px;
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px) }
dialog::backdrop { background: rgba(0, 4, 14, .72); backdrop-filter: blur(3px) }
button svg, .btn svg { width: 16px; height: 16px; flex: none }
.avatar svg { width: 20px; height: 20px }
.rail button svg { display: none }
@media (max-width: 520px) { .who span { display: none } .brand small { display: none } }

/* ---------- 0.5: accounts, the new-account wizard, module periods and the schedule ---------- */
.link { cursor: pointer }
.row.link:hover, .kpi.link:hover { background: rgba(124, 172, 255, .05) }
.rail .n.hot { color: var(--orange) }
.crumbs { margin: -6px 0 10px }
.grow { display: grid; gap: 2px; flex: 1; text-align: left; min-width: 0 }
dialog.wide { width: min(680px, calc(100vw - 24px)) }
.wizbar { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 8px 0 16px }
.wizbar li { border-top: 3px solid var(--line-2); padding-top: 6px; font-size: 12.5px; color: var(--dim) }
.wizbar li b { display: block; font: 700 11px/1.2 var(--mono); color: var(--dim) }
.wizbar li.on { border-color: var(--orange); color: var(--ink) } .wizbar li.on b { color: var(--orange) }
.wizbar li.done { border-color: var(--cyan); color: var(--muted) } .wizbar li.done b { color: var(--cyan) }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
@media (max-width: 520px) { .picks { grid-template-columns: 1fr } }
.pick { display: grid; justify-items: start; gap: 6px; text-align: left; padding: 18px; min-height: 150px; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink) }
.pick.on, .pick:hover { border-color: var(--orange); filter: none; background: rgba(246, 166, 35, .08) }
.pick b { font-size: 18px }
.mk { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 2px; color: var(--c, var(--cyan)); background: rgba(5, 12, 29, .6); flex: none }
.mk svg { width: 24px; height: 24px }
.modpick { border: 1px solid var(--line-2); border-left: 3px solid var(--c); border-radius: var(--r); background: rgba(5, 12, 29, .45) }
.modpick.on { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%) }
.modpick.blocked { opacity: .5 }
.modpick-h { display: flex; width: 100%; gap: 12px; align-items: center; background: none; border: 0; color: var(--ink); padding: 12px; min-height: 64px; text-align: left }
.modpick-h:hover { filter: none }
.modpick .tick { width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 2px; display: grid; place-items: center; color: var(--good); flex: none }
.modpick.on .tick { border-color: var(--good); background: rgba(69, 212, 154, .12) }
.pick-f { padding: 0 12px 14px; display: grid; gap: 10px }
.quick { display: flex; flex-wrap: wrap; gap: 6px }
.grants { display: grid; gap: 12px }
.grant { border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--r); padding: 12px; background: rgba(5, 12, 29, .4) }
.grant-h { display: flex; gap: 12px; align-items: center }
.grant-d { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px }
.grant-d b { display: block; font: 600 13px/1.4 var(--mono); margin-top: 3px }
@media (max-width: 560px) { .grant-d { grid-template-columns: 1fr 1fr } }
.tbar { position: relative; height: 10px; background: repeating-linear-gradient(90deg, rgba(124, 172, 255, .1) 0 1px, transparent 1px 10%); border: 1px solid var(--line) }
.tbar .span { position: absolute; top: 1px; bottom: 1px; background: var(--c) }
.tbar .span.expired, .tbar .span.off { background: repeating-linear-gradient(135deg, var(--dim) 0 4px, transparent 4px 8px) }
.tbar .span.future { opacity: .55 }
.tbar .now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--orange) }
.chip.mod { border-color: var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 18%, transparent) }
.chip.mod.expired, .chip.mod.off { background: transparent; color: var(--dim); border-style: dashed }
.chip.mod.future { background: transparent }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px }
.legend span { display: inline-flex; gap: 6px; align-items: center }
.legend i { width: 18px; height: 8px; display: inline-block }
.legend i.striped { background: repeating-linear-gradient(135deg, var(--dim) 0 3px, transparent 3px 6px); border: 1px solid var(--dim) }
.gantt { padding: 0; overflow-x: auto }
.gantt-row { display: grid; grid-template-columns: 200px minmax(640px, 1fr); border-top: 1px dashed var(--line); min-height: 50px }
.gantt-row.head { border-top: 0; min-height: 34px; position: sticky; top: 0; background: var(--navy-2); z-index: 1 }
.gantt-name { padding: 8px 12px; display: grid; align-content: center; gap: 2px; border-right: 1px solid var(--line); min-width: 0 }
.gantt-name .link { text-align: left; font-weight: 650; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gantt-track { position: relative }
.gantt-track .mon { position: absolute; top: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--dim); padding-left: 4px; text-transform: uppercase; white-space: nowrap }
.gantt-grid { position: absolute; inset: 0 }
.gantt-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line) }
.gantt-grid .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--orange); box-shadow: 0 0 8px var(--orange) }
.gbar { position: absolute; height: 13px; min-height: 13px; padding: 0 5px; border-radius: 1px; font: 700 9.5px/13px var(--mono); letter-spacing: .04em;
  justify-content: flex-start; overflow: hidden; white-space: nowrap; color: #071022; background: var(--c); border: 0 }
.gbar.future { background: color-mix(in srgb, var(--c) 45%, transparent); color: var(--ink) }
.gbar.expired, .gbar.off, .gbar.paused { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 50%, transparent) 0 4px, transparent 4px 8px); color: var(--ink); outline: 1px dashed var(--c) }
@media (max-width: 700px) { .gantt-row { grid-template-columns: 130px minmax(560px, 1fr) } }
.rail button.accent { display: inline-flex; grid-template-columns: none; justify-content: center; gap: 6px; color: #1a1205;
  background: linear-gradient(180deg, var(--gold), var(--orange)); border-color: var(--orange); font-weight: 700 }
.rail button.accent:hover { color: #1a1205; filter: brightness(1.08) }
.rail button.accent svg { display: inline; width: 16px; height: 16px }
@media (max-width: 900px) { .rail > div:last-child { flex: none; padding: 0 !important } .rail button.accent { min-height: 36px } }
.gantt-name .link { display: block; width: 100%; text-align: left; justify-content: flex-start }
/* KSmart's three parts */
.parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; position: relative }
.part { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 2px;
  background: rgba(5, 12, 29, .5); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600 }
.part svg { width: 15px; height: 15px; color: var(--c, var(--cyan)) }
a.part:hover { border-color: var(--c, var(--cyan)) }
.part.no { color: var(--dim); border-style: dashed } .part.no svg { color: var(--dim) }
.part small { font-weight: 400; color: var(--dim) }
button.part { background: rgba(5, 12, 29, .5); min-height: 36px }
button.part.on { border-color: var(--good); background: rgba(69, 212, 154, .1) }
.partpick { display: grid; gap: 2px }
/* the subscriptions grouped by module (0.7) */
.modgroup { margin: 0 0 14px }
.modgroup-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px }
