/* IEMA HRops — IEMA-HR-SYS-01 Rev 02
   Bento interface: navy-led, brand red as the accent, rounded tiles on a cool canvas.
   Icons are Lucide, inlined by lib/icons.php. */

:root{
  color-scheme:light;
  --navy:#0F1E3D; --navy-2:#182B52; --navy-3:#24396A; --navy-ink:#0B1630;
  --brand:#E93737; --brand-ink:#B21F1A; --brand-soft:#FDE8E6; --on-brand:#FFFFFF;
  --bg:#EEF1F6; --surface:#FFFFFF; --surface-2:#F4F6FA; --surface-3:#E7EBF2;
  --line:#E1E6EF; --line-strong:#C9D1DE;
  --text:#101828; --text-2:#475467; --text-3:#7A8699;
  --accent:#2F4B8A; --accent-soft:#E6ECF7;
  --ok:#157A4F; --ok-soft:#E1F3EA;
  --warn:#946200; --warn-soft:#FBF0D9;
  --crit:#B21F1A; --crit-soft:#FCE4E2;
  --mute:#5B6678; --mute-soft:#EDF0F5;
  --r-lg:20px; --r:14px; --r-sm:10px; --r-xs:7px;
  --shadow:0 1px 2px rgba(16,24,40,.05), 0 1px 1px rgba(16,24,40,.03);
  --shadow-hi:0 1px 2px rgba(16,24,40,.06), 0 12px 32px rgba(16,24,40,.10);
  --gap:14px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:"Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0; font-weight:600; letter-spacing:-.018em; text-wrap:balance}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
button,input,select,textarea{font:inherit; color:inherit}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.mono{font-family:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace}
.ic{flex:none; display:inline-block; vertical-align:middle}

/* ---------- app frame: navy sidebar + canvas ---------- */
.app{display:flex; min-height:100vh; background:linear-gradient(to right, var(--navy) 244px, transparent 244px)}
.side{
  position:sticky; top:0; height:100vh; flex:0 0 244px; background:var(--navy); color:#C9D3E8;
  display:flex; flex-direction:column; padding:18px 12px 14px; overflow-y:auto;
}
.side .brand{display:flex; align-items:center; gap:11px; padding:4px 8px 18px; color:#fff; text-decoration:none}
.side .brand img{height:26px; width:auto; display:block; border-radius:4px}
.side .brand .sysname{font-weight:700; font-size:17px; letter-spacing:-.02em}
.side .brand .sysname small{display:block; font-weight:500; font-size:10.5px; letter-spacing:.02em; color:#8FA0C4; margin-top:1px}
.side .grouplabel{font-family:"IBM Plex Mono",monospace; font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:#7F90B5; padding:14px 10px 6px}
.navbtn{position:relative; display:flex; align-items:center; gap:10px; padding:8px 10px; margin:1px 0;
  border-radius:var(--r-sm); color:#C9D3E8; font-size:13.5px; font-weight:500; text-decoration:none}
.navbtn .ic{color:#8FA0C4}
.navbtn:hover{background:rgba(255,255,255,.06); color:#fff; text-decoration:none}
.navbtn:hover .ic{color:#fff}
.navbtn.active{background:rgba(255,255,255,.10); color:#fff; font-weight:600}
.navbtn.active .ic{color:#fff}
.navbtn.active::before{content:""; position:absolute; left:-12px; top:8px; bottom:8px; width:3px;
  border-radius:0 3px 3px 0; background:var(--brand)}
.navbtn .n{margin-left:auto; font-family:"IBM Plex Mono",monospace; font-size:10.5px; font-variant-numeric:tabular-nums;
  background:rgba(255,255,255,.08); color:#DDE4F3; padding:1px 7px; border-radius:99px}
.navbtn .n.hot{background:var(--brand); color:#fff}
.side .me{margin-top:auto; padding:12px 10px 4px; border-top:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; gap:10px}
.side .me .av{width:34px; height:34px; border-radius:10px; background:var(--navy-3); color:#fff; display:grid;
  place-items:center; font-weight:700; font-size:13px; flex:none}
.side .me .who{min-width:0; flex:1}
.side .me .nm{color:#fff; font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.side .me .rl{font-size:11px; color:#8FA0C4}
.side .me a{color:#8FA0C4; display:grid; place-items:center; width:30px; height:30px; border-radius:8px}
.side .me a:hover{background:rgba(255,255,255,.08); color:#fff}

.canvas{flex:1 1 auto; min-width:0; display:flex; flex-direction:column}
main{flex:1 1 auto; width:100%; max-width:1360px; margin:0 auto; padding:26px 28px 56px}
.mobilebar{display:none}

/* ---------- page head ---------- */
.eyebrow{font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--text-3)}
.pagehead{display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; margin:4px 0 4px}
.pagehead h1{font-size:27px; font-weight:700; letter-spacing:-.03em}
.pagehead .actions{margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.pagehead .actions form{display:inline}
.lede{color:var(--text-2); max-width:72ch; margin:6px 0 22px}
.rule{height:1px; background:var(--line); margin:14px 0 18px}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; gap:7px; cursor:pointer; background:var(--surface);
  color:var(--text); border:1px solid var(--line-strong); padding:7px 14px; font-size:13px;
  font-weight:600; text-decoration:none; border-radius:var(--r-sm); box-shadow:var(--shadow); line-height:1.3}
.btn:hover{background:var(--surface-2); text-decoration:none}
.btn .ic{width:16px; height:16px}
.btn.primary{background:var(--navy); border-color:var(--navy); color:#fff}
.btn.primary:hover{background:var(--navy-2)}
.btn.accent{background:var(--brand); border-color:var(--brand); color:#fff}
.btn.accent:hover{background:var(--brand-ink)}
.btn.ghost{border-color:transparent; background:transparent; color:var(--text-2); font-weight:500; box-shadow:none}
.btn.ghost:hover{background:var(--surface-3); color:var(--text)}
.btn.sm{padding:4px 10px; font-size:12px; border-radius:var(--r-xs)}
.btn.sm .ic{width:14px; height:14px}
.btn.danger{color:var(--crit); border-color:rgba(178,31,26,.35)}
.btn.danger:hover{background:var(--crit-soft); border-color:var(--crit)}
.btn:disabled{opacity:.45; cursor:not-allowed}

/* ---------- bento grid ---------- */
.bento{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:var(--gap); align-items:stretch; margin-bottom:var(--gap)}
.bento > *{min-width:0; margin:0}
.s2{grid-column:span 2}.s3{grid-column:span 3}.s4{grid-column:span 4}.s5{grid-column:span 5}.s6{grid-column:span 6}
.s7{grid-column:span 7}.s8{grid-column:span 8}.s9{grid-column:span 9}.s12{grid-column:span 12}
.r2{grid-row:span 2}

/* stat tiles — the small bento cells */
.tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:var(--gap); margin-bottom:var(--gap)}
.tile{position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:16px 18px 16px; display:flex; flex-direction:column; gap:4px; box-shadow:var(--shadow); min-height:128px;
  color:inherit; text-decoration:none}
a.tile:hover{box-shadow:var(--shadow-hi); text-decoration:none}
.tile .tic{width:36px; height:36px; border-radius:11px; display:grid; place-items:center; margin-bottom:8px;
  background:var(--accent-soft); color:var(--accent)}
.tile .k{font-size:12.5px; font-weight:600; color:var(--text-2)}
.tile .v{font-size:32px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1.05; letter-spacing:-.04em; color:var(--text)}
.tile .v small{font-size:14px; font-weight:600; color:var(--text-3); letter-spacing:0; margin-left:3px}
.tile .m{font-size:12px; color:var(--text-3); margin-top:auto}
.tile .go{position:absolute; top:16px; right:16px; color:var(--text-3)}
.tile.alert .tic{background:var(--warn-soft); color:var(--warn)}
.tile.crit .tic{background:var(--brand-soft); color:var(--brand)}
.tile.crit .v{color:var(--brand-ink)}
.tile.good .tic{background:var(--ok-soft); color:var(--ok)}
.tile.hero{background:var(--navy); border-color:var(--navy); color:#fff}
.tile.hero .k{color:#AFBCD8}
.tile.hero .v{color:#fff}
.tile.hero .m{color:#8FA0C4}
.tile.hero .tic{background:rgba(255,255,255,.1); color:#fff}
.tile.hero .go{color:#8FA0C4}

/* ---------- panels (the large bento cells) ---------- */
.panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); margin-bottom:var(--gap);
  box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column}
.panel > .ph{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:14px 18px 12px}
.panel > .ph + *{border-top:1px solid var(--line)}
.panel > .ph h2{font-size:15px; font-weight:700; letter-spacing:-.015em; display:flex; align-items:center; gap:9px}
.panel > .ph h2 .hic{width:30px; height:30px; border-radius:9px; background:var(--accent-soft); color:var(--accent);
  display:grid; place-items:center; flex:none}
.panel > .ph h2 .hic .ic{width:16px; height:16px}
.panel > .ph h2 .hic.red{background:var(--brand-soft); color:var(--brand)}
.panel > .ph h2 .hic.green{background:var(--ok-soft); color:var(--ok)}
.panel > .ph h2 .hic.amber{background:var(--warn-soft); color:var(--warn)}
.panel > .ph .right{margin-left:auto; display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.panel .pb{padding:16px 18px}
.panel .grow{flex:1 1 auto}
.panel.navy{background:var(--navy); border-color:var(--navy); color:#DDE4F3}
.panel.navy .ph h2{color:#fff}
.panel.navy .ph h2 .hic{background:rgba(255,255,255,.1); color:#fff}
.panel.navy .ph + *{border-top-color:rgba(255,255,255,.1)}
.panel.navy .eyebrow{color:#8FA0C4}
.cols{display:grid; gap:var(--gap); grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); align-items:start; margin-bottom:var(--gap)}
.cols > .panel{margin-bottom:0}

/* ---------- registers ---------- */
.tablewrap{overflow-x:auto}
table{border-collapse:collapse; width:100%; min-width:520px}
table.compact{min-width:340px}
th{text-align:left; font-family:"IBM Plex Mono",monospace; font-weight:500; font-size:10.5px;
  letter-spacing:.09em; text-transform:uppercase; color:var(--text-3); padding:10px 14px;
  border-bottom:1px solid var(--line); white-space:nowrap; background:var(--surface-2)}
td{padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr.clickable{cursor:pointer}
tbody tr.clickable:hover td{background:var(--surface-2)}
td .id,.id{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--text-2); font-variant-numeric:tabular-nums}
td .nm{font-weight:600}
td .sm,.sm{font-size:12px; color:var(--text-2)}
td.num,th.num{font-family:"IBM Plex Mono",monospace; font-variant-numeric:tabular-nums; text-align:right}
.rowactions{display:flex; gap:6px; justify-content:flex-end; align-items:center}
.rowactions form{display:inline}

/* ---------- chips ---------- */
.chip{display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600;
  padding:2px 9px 2px 8px; white-space:nowrap; border-radius:99px; border:1px solid transparent; line-height:1.55}
.chip::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor; flex:none}
.chip.ok{background:var(--ok-soft); color:var(--ok)}
.chip.warn{background:var(--warn-soft); color:var(--warn)}
.chip.crit{background:var(--crit-soft); color:var(--crit)}
.chip.mute{background:var(--mute-soft); color:var(--mute)}
.chip.info{background:var(--accent-soft); color:var(--accent)}
.chip.navy{background:var(--navy); color:#fff}
.chip.plain::before{display:none}
.chip .ic{width:12px; height:12px}
.syschip{display:inline-flex; font-family:"IBM Plex Mono",monospace; font-size:11px; font-weight:600; color:var(--text);
  background:var(--surface-3); padding:1px 7px; border-radius:6px}

/* ---------- progress ---------- */
.bar{height:6px; background:var(--surface-3); overflow:hidden; min-width:70px; flex:1; border-radius:99px}
.bar > span{display:block; height:100%; background:var(--navy); border-radius:99px}
.bar.done > span{background:var(--ok)}
.barwrap{display:flex; align-items:center; gap:8px; min-width:120px}

/* ---------- forms ---------- */
.field{display:flex; flex-direction:column; gap:5px}
.field > label{font-size:12px; font-weight:600; color:var(--text-2)}
.field input,.field select,.field textarea{background:var(--surface); border:1px solid var(--line-strong);
  padding:8px 11px; font-size:13.5px; width:100%; border-radius:var(--r-sm)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent); outline:3px solid var(--accent-soft); outline-offset:0}
.field input[readonly]{background:var(--surface-2); color:var(--text-2)}
.field textarea{resize:vertical; min-height:70px}
.field .hint{font-size:11.5px; color:var(--text-3)}
.field.full{grid-column:1/-1}
.req{color:var(--brand)}
.grid2{display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.formrow{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:16px}
.check{display:flex; gap:9px; align-items:flex-start; font-size:13px}
.check input{margin-top:3px; accent-color:var(--navy)}
fieldset{border:0; margin:0; padding:0}

/* ---------- checklist ---------- */
.clist{display:flex; flex-direction:column}
.citem{display:flex; gap:12px; align-items:flex-start; padding:11px 18px; border-bottom:1px solid var(--line)}
.citem:last-child{border-bottom:0}
.citem .cbox{margin-top:2px; width:16px; height:16px; flex:none; accent-color:var(--navy)}
.citem .body{flex:1 1 auto; min-width:0}
.citem .t{font-size:13.5px}
.citem.done .t{color:var(--text-3); text-decoration:line-through}
.citem .meta{font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--text-3);
  letter-spacing:.05em; text-transform:uppercase; margin-top:3px}
.citem .auto{font-size:11.5px; color:var(--text-2)}
.citem .autobox{width:16px;height:16px;flex:none;margin-top:2px;border:1px solid var(--line-strong);
  display:inline-block;background:var(--surface-2); border-radius:5px}
.citem .autobox.on{background:var(--ok); border-color:var(--ok)}

/* ---------- misc ---------- */
.kv{display:grid; grid-template-columns:minmax(130px,auto) 1fr; gap:9px 16px; font-size:13px; margin:0}
.kv dt{font-size:12px; font-weight:600; color:var(--text-3); padding-top:1px}
.kv dd{margin:0; overflow-wrap:anywhere}
.empty{padding:30px 18px; text-align:center; color:var(--text-3); font-size:13px}
.empty .ic{display:block; margin:0 auto 8px; color:var(--line-strong)}
.banner{display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap; border:1px solid var(--line);
  background:var(--surface); padding:11px 14px; border-radius:var(--r);
  font-size:13px; color:var(--text-2); margin-bottom:var(--gap); box-shadow:var(--shadow)}
.banner::before{content:""; width:4px; align-self:stretch; border-radius:4px; background:var(--accent); flex:none}
.banner strong{color:var(--text)}
.banner.warn::before{background:var(--warn)}
.banner.ok::before{background:var(--ok)}
.banner.crit::before{background:var(--crit)}
.banner > div{flex:1; min-width:0}
.banner .b-actions{margin-left:auto; display:flex; gap:6px}
.filters{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.filters select,.filters input{background:var(--surface); border:1px solid var(--line-strong);
  padding:6px 10px; font-size:13px; border-radius:var(--r-sm)}
.searchbox{position:relative; display:inline-flex; align-items:center}
.searchbox .ic{position:absolute; left:10px; color:var(--text-3); pointer-events:none}
.searchbox input{padding-left:32px!important}

/* process strip, used on the Overview */
.flow{display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12px}
.flow .step{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); background:var(--surface-2);
  padding:5px 10px; color:var(--text-2); border-radius:99px; font-weight:500}
.flow .step .ic{width:14px; height:14px}
.flow .step.acc{background:var(--navy); color:#fff; border-color:var(--navy)}
.flow .ar{color:var(--text-3); display:inline-flex}

.foot{max-width:1360px; width:100%; margin:0 auto; padding:18px 28px 34px; color:var(--text-3); font-size:11.5px;
  display:flex; gap:14px; flex-wrap:wrap; align-items:center}
.foot img{height:14px; width:auto}

/* ---------- Phase 2: pipeline board ---------- */
.board{display:grid; grid-template-columns:repeat(4,minmax(210px,1fr)) minmax(200px,.9fr); gap:var(--gap); overflow-x:auto;
  padding-bottom:4px; margin-bottom:var(--gap)}
.lane{background:var(--surface-3); border-radius:var(--r-lg); padding:10px; display:flex; flex-direction:column; gap:8px; min-height:160px}
.lane .lh{display:flex; align-items:center; gap:8px; padding:4px 6px 6px; font-weight:700; font-size:13px}
.lane .lh .ic{color:var(--text-3)}
.lane .lh .n{margin-left:auto; font-family:"IBM Plex Mono",monospace; font-size:11px; background:var(--surface);
  padding:1px 8px; border-radius:99px; color:var(--text-2)}
.lane.outcomes{background:var(--surface-2); border:1px dashed var(--line-strong)}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:11px 12px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:6px; color:inherit; text-decoration:none}
a.card:hover{box-shadow:var(--shadow-hi); text-decoration:none; border-color:var(--line-strong)}
.card .top{display:flex; align-items:center; gap:8px}
.card .av{width:30px; height:30px; border-radius:9px; background:var(--accent-soft); color:var(--accent); display:grid;
  place-items:center; font-size:11.5px; font-weight:700; flex:none}
.card .nm{font-weight:600; font-size:13.5px; line-height:1.25}
.card .meta{display:flex; gap:10px; flex-wrap:wrap; font-size:11.5px; color:var(--text-3)}
.card .meta span{display:inline-flex; align-items:center; gap:4px}
.card .meta .ic{width:12px; height:12px}
.card form{margin:0}
.card.hired .av{background:var(--ok-soft); color:var(--ok)}
.card.rejected .av{background:var(--mute-soft); color:var(--mute)}
.card.rejected .nm{color:var(--text-2)}
.lane .more{font-size:12px; color:var(--text-3); padding:2px 6px}

/* stage stepper on a candidate record */
.stepper{display:flex; gap:6px; flex-wrap:wrap; align-items:center}
.stepper .st{display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:99px; font-size:12.5px; font-weight:600;
  background:var(--surface-3); color:var(--text-3)}
.stepper .st.done{background:var(--accent-soft); color:var(--accent)}
.stepper .st.now{background:var(--navy); color:#fff}
.stepper .st.hired{background:var(--ok); color:#fff}
.stepper .st.rejected{background:var(--crit); color:#fff}
.stepper .sep{color:var(--line-strong); display:inline-flex}

/* horizontal bars — funnel, sources, reasons (single hue, labelled, value in text ink) */
.hbars{display:flex; flex-direction:column; gap:10px; padding:16px 18px}
.hbar{display:grid; grid-template-columns:minmax(110px,32%) 1fr 36px; gap:10px; align-items:center; font-size:12.5px}
.hbar .lbl{color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.hbar .trk{height:12px; background:var(--surface-3); border-radius:4px; overflow:hidden}
.hbar .trk span{display:block; height:100%; background:var(--accent); border-radius:4px}
.hbar .val{font-family:"IBM Plex Mono",monospace; font-size:12px; text-align:right; color:var(--text); font-variant-numeric:tabular-nums}
.panel.navy .hbar .lbl{color:#C9D3E8}
.panel.navy .hbar .trk{background:rgba(255,255,255,.1)}
.panel.navy .hbar .trk span{background:#8FA8DC}
.panel.navy .hbar .val{color:#fff}

/* stacked variant: label on its own line, for long labels such as rejection reasons */
.hbars.stack .hbar{grid-template-columns:1fr 36px; row-gap:4px}
.hbars.stack .hbar .lbl{grid-column:1/-1; white-space:normal}

/* timeline */
.timeline{list-style:none; margin:0; padding:14px 18px}
.timeline li{position:relative; padding:0 0 14px 22px; font-size:13px}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{content:""; position:absolute; left:4px; top:6px; width:8px; height:8px; border-radius:50%; background:var(--accent)}
.timeline li::after{content:""; position:absolute; left:7.5px; top:17px; bottom:0; width:1px; background:var(--line-strong)}
.timeline li:last-child::after{display:none}
.timeline .when{font-size:11.5px; color:var(--text-3)}

/* interview feedback cards */
.notes{display:flex; flex-direction:column}
.note{padding:14px 18px; border-bottom:1px solid var(--line)}
.note:last-child{border-bottom:0}
.note .nh{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:6px}
.note .nh b{font-size:13.5px}
.stars{display:inline-flex; gap:1px; color:#D39B0A}
.stars .off{color:var(--line-strong)}
.stars span:not(.off) svg{fill:currentColor}
.stars .ic{width:14px; height:14px}
.note p{margin:4px 0 0; font-size:13px; color:var(--text-2); white-space:pre-line}
.note p strong{color:var(--text); font-weight:600}

/* ---------- sign in / careers ---------- */
.authwrap{min-height:100%; display:flex; align-items:center; justify-content:center; padding:40px 16px;
  background:radial-gradient(1200px 500px at 50% -10%, #1C3264 0%, var(--navy) 55%, var(--navy-ink) 100%)}
.authcard{width:min(420px,100%); background:var(--surface); border-radius:var(--r-lg); box-shadow:0 30px 60px rgba(0,0,0,.35); overflow:hidden}
.authcard .ah{padding:26px 26px 8px; text-align:center}
.authcard .ah img{height:30px; width:auto; margin-bottom:14px}
.authcard .ah h1{font-size:20px; font-weight:700; letter-spacing:-.02em}
.authcard .ah p{margin:6px 0 0; font-size:12.5px; color:var(--text-3)}
.authcard .ab{padding:16px 26px 26px; display:flex; flex-direction:column; gap:12px}
.authfoot{text-align:center; font-size:11px; color:#8FA0C4; margin-top:18px; line-height:1.7}
.authcard + .authfoot a{color:#C9D3E8}

.pub-hero{background:var(--navy); color:#fff; padding:34px 20px 70px}
.pub-hero .in{max-width:980px; margin:0 auto}
.pub-hero img{height:28px; width:auto}
.pub-hero h1{font-size:34px; font-weight:700; letter-spacing:-.035em; margin-top:26px}
.pub-hero p{color:#AFBCD8; max-width:62ch; margin:8px 0 0}
.pub-hero .red{display:inline-block; width:44px; height:4px; background:var(--brand); border-radius:4px; margin-top:18px}
.pub-main{max-width:980px; margin:-44px auto 0; padding:0 20px 50px}

/* ---------- install ---------- */
.installwrap{max-width:760px; margin:0 auto; padding:34px 20px 60px}
.installwrap .step{border:1px solid var(--line); background:var(--surface); padding:18px 20px; margin-bottom:12px; border-radius:var(--r-lg); box-shadow:var(--shadow)}
.installwrap .step h3{font-size:15px; font-weight:700; margin-bottom:6px}
code{font-family:"IBM Plex Mono",monospace; font-size:12.5px; background:var(--surface-2);
  border:1px solid var(--line); padding:1px 5px; border-radius:5px}
pre{background:var(--surface-2); border:1px solid var(--line); padding:12px; overflow-x:auto; border-radius:var(--r-sm);
  font-family:"IBM Plex Mono",monospace; font-size:12px}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .s2,.s3{grid-column:span 6}
  .s4,.s5{grid-column:span 6}
  .s7,.s8,.s9{grid-column:span 12}
  .s6{grid-column:span 12}
  .r2{grid-row:auto}
}
@media (max-width:900px){
  .app{flex-direction:column; background:none}
  .side{display:none}
  .mobilebar{display:flex; position:sticky; top:0; z-index:30; background:var(--navy); color:#fff; flex-direction:column}
  .mobilebar .row{display:flex; align-items:center; gap:10px; padding:10px 16px}
  .mobilebar .row img{height:20px; width:auto}
  .mobilebar .row b{font-size:15px}
  .mobilebar .row a.out{margin-left:auto; color:#C9D3E8; display:grid; place-items:center}
  .mobilebar nav{display:flex; gap:4px; overflow-x:auto; padding:0 12px 10px}
  .mobilebar .grouplabel{display:none}
  .mobilebar .navbtn{white-space:nowrap; padding:6px 10px; font-size:13px}
  .mobilebar .navbtn.active::before{display:none}
  main{padding:18px 16px 48px}
  .foot{padding:16px}
  .tile .v{font-size:27px}
  .pagehead h1{font-size:23px}
}
@media (max-width:620px){
  .bento > *{grid-column:1/-1!important}
  .bento > .tile{grid-column:span 6!important}
  .tile .go{display:none}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile{min-height:112px; padding:14px}
  .board{grid-template-columns:repeat(5,minmax(230px,1fr))}
  .pub-hero h1{font-size:27px}
}
@media print{
  .side,.mobilebar,.actions,.rowactions,.foot,.banner{display:none!important}
  body{background:#fff}
  .panel,.tile{break-inside:avoid; box-shadow:none; border-color:#999}
  main{padding:0}
}