:root {
  --bg: #0a0a0d;
  --panel: #121217;
  --panel-2: #1a1a21;
  --border: #25252e;
  --text: #f0f1f4;
  --muted: #8d93a1;
  --accent: #ed3b47;
  --accent-dark: #c92733;
  --accent-text: #ffffff;
  --danger: #e5654f;
  --ok: #4fce8a;
  --radius: 10px;
}

/* light mode */
body.light {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --panel-2: #eef0f4;
  --border: #d9dde5;
  --text: #15171c;
  --muted: #5e6573;
  --accent: #e0313e;
  --accent-dark: #c52531;
}
body.light .sidebar { background: #ffffff; }
body.light .thumb, body.light .fmedia, body.light .modal .preview { background: #e8eaef; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

button { font: inherit; color: inherit; cursor: pointer; border: none; border-radius: 8px; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
/* Checkboxes & radios must NOT inherit the full-width/padded text-input styling
   above — that stretched them across their labels. Keep them native & compact. */
input[type="checkbox"], input[type="radio"] {
  width: auto; padding: 0; border-radius: 0; background: none; border: none;
  accent-color: var(--accent); cursor: pointer; flex: none; margin: 0;
}
input[type="range"] { width: 100%; padding: 0; background: none; border: none; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 64px; }
label.f { display: block; margin-bottom: 10px; }
label.f span.lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }

.primary { background: var(--accent); color: var(--accent-text); font-weight: 600; padding: 10px 16px; }
.primary:hover { background: var(--accent-dark); }
.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 8px 12px; }
.ghost:hover { color: var(--text); border-color: var(--muted); }
.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 8px 12px; }
.ghost.sm { padding: 3px 10px; font-size: 12px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 400px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.auth-card .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 20px; }
.brandmark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 19px; color: #fff; flex: none; }
.auth-card h1 { margin: 0; font-size: 22px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; padding: 8px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
.auth-tabs button.on { background: var(--accent); color: #fff; font-weight: 600; border-color: var(--accent); }
.ssobtn { width: 100%; margin-bottom: 14px; padding: 11px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ssobtn:hover { border-color: var(--accent); }
.orsep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin: 4px 0 14px; }
.orsep::before, .orsep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-card .demo { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 6px 0; }

/* ---------- layout ---------- */
.topbar {
  height: 56px; display: flex; align-items: center; gap: 16px;
  padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; flex: none; }
.topbar input { min-width: 90px; }
.topbar .brand .bm { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; flex: none; }
.topbar .brand b { font-size: 15px; white-space: nowrap; }
.topbar .brand small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.topbar input { max-width: 340px; }
.prov { display: flex; gap: 8px; margin-left: auto; }
.prov .badge { font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.prov .badge.on { color: var(--ok); border-color: var(--ok); }
.userbox { display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; font-size: 13px; }

.layout { display: grid; grid-template-columns: 256px 460px 1fr; height: calc(100vh - 56px); }
.layout.nopanel { grid-template-columns: 256px 1fr; }
.layout.nopanel .genpanel { display: none; }

/* ---------- sidebar (Elevate platform shell) ---------- */
.sidebar { background: #0c0c10; border-right: 1px solid var(--border); padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.elogo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; }
.elogomark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.elogotxt b { display: block; font-size: 16px; }
.elogotxt span { font-size: 10.5px; color: var(--muted); }
.enav { display: flex; flex-direction: column; gap: 2px; }
.emod, .echild { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.emod:hover, .echild:hover { background: var(--panel-2); }
.emod .mtit { font-weight: 700; font-size: 13.5px; display: block; line-height: 1.25; }
.emod .msub, .echild .msub { font-size: 11px; color: var(--muted); display: block; line-height: 1.25; }
.echild { padding-left: 26px; }
.echild .mtit { font-weight: 600; font-size: 13px; display: block; line-height: 1.25; }
.echild.on { background: var(--accent); }
.echild.on .mtit { color: #fff; }
.echild.on .msub { color: rgba(255,255,255,.78); }
.echild.dim { opacity: .55; }
.chev { margin-left: auto; color: var(--muted); font-size: 13px; }
.emod.soon { opacity: .55; cursor: default; }
.soonbadge { font-size: 9px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 1px 6px; border-radius: 99px; vertical-align: middle; font-weight: 500; }
.euser { display: flex; align-items: center; gap: 9px; padding: 10px; border-top: 1px solid var(--border); }
.euser .mtit { font-size: 12.5px; font-weight: 600; display: block; line-height: 1.25; }
.euser .msub { font-size: 10.5px; color: var(--muted); display: block; }
.euser .etxt { flex: 1; min-width: 0; overflow: hidden; }
.euserbtn { background: var(--panel-2); border: 1px solid var(--border); color: var(--text); width: 28px; height: 28px; border-radius: 8px; font-size: 13px; padding: 0; flex: none; }
.euserbtn:hover { border-color: var(--accent); }

/* collapsed sidebar: icons only */
body.navcollapsed .layout { grid-template-columns: 64px 460px 1fr; }
body.navcollapsed .layout.nopanel { grid-template-columns: 64px 1fr; }
body.navcollapsed .etxt, body.navcollapsed .elogotxt, body.navcollapsed .chev, body.navcollapsed .enavsec, body.navcollapsed .draghandle { display: none; }
body.navcollapsed .sidebar { padding: 14px 6px; }
body.navcollapsed .emod, body.navcollapsed .echild { justify-content: center; padding: 10px 6px; }
body.navcollapsed .euser { flex-direction: column; gap: 6px; }
.module {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; color: var(--text);
}
.module .mico { width: 20px; text-align: center; font-size: 16px; margin-top: 1px; flex: none; }
.module .mtit { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.module .msub { font-size: 11px; color: var(--muted); line-height: 1.3; }
.module:hover { background: var(--panel-2); }
.module.on { background: var(--accent); }
.module.on .msub { color: rgba(255,255,255,.75); }
.sidebar .grow { flex: 1; }
.modsec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 12px 4px; }
.sidebar .orgtag { font-size: 11px; color: var(--muted); padding: 10px 12px; border-top: 1px solid var(--border); }

/* ---------- cumulative cost ---------- */
.coststrip {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 14px;
}
.coststrip .cclabel { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.coststrip b { font-size: 20px; }
.coststrip .ccsub { color: var(--muted); font-size: 12px; margin-left: auto; }

/* ---------- main ---------- */
.main { overflow-y: auto; padding: 18px 22px; }
.filterbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filterbar h2 { margin: 0; font-size: 17px; margin-right: auto; }
.filterbar .count { color: var(--muted); font-size: 12px; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 0; transition: background .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.favtoggle { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 6px 12px; }
.favtoggle.on { background: #f5c542; border-color: #f5c542; color: #1a1404; font-weight: 700; }
.scoperow { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.scoperow select { width: auto; min-width: 180px; }
.scoperow .sharednote { font-size: 11px; color: var(--muted); }

.jobcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.jobcard .prog { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.thumb { aspect-ratio: 16/10; background: #060608; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .kind { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .05em; background: rgba(0,0,0,.65); color: #fff; padding: 2px 7px; border-radius: 4px; }
.thumb .ver { position: absolute; bottom: 8px; left: 8px; font-size: 10px; background: rgba(0,0,0,.65); color: var(--accent); padding: 2px 7px; border-radius: 4px; }
.card .meta { padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.card .meta .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.card .meta .pv { font-size: 10px; color: var(--muted); white-space: nowrap; }
.favbtn { background: none; color: var(--muted); font-size: 15px; padding: 0; }
.favbtn.on { color: var(--accent); }
.empty { color: var(--muted); text-align: center; padding: 80px 20px; }
.empty b { color: var(--text); }

/* ---------- home ---------- */
.homewrap { max-width: 880px; }
.hero { background: linear-gradient(135deg, var(--panel) 0%, #1c1116 100%); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-bottom: 18px; }
.hero h1 { margin: 0 0 6px; font-size: 24px; }
.hero p { color: var(--muted); margin: 0 0 18px; max-width: 560px; }
.hero .heroBtns { display: flex; gap: 10px; flex-wrap: wrap; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.howcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.howcard .stepnum { margin-bottom: 10px; }
.howcard h4 { margin: 0 0 6px; font-size: 14px; }
.howcard p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- projects page ---------- */
.projgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.projcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.projcard h4 { margin: 0; font-size: 15px; }
.projcard .pmeta { font-size: 12px; color: var(--muted); }
.projcard .pfoot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sharetoggle { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.sharetoggle input { width: auto; }
.projcard.newcard { align-items: center; justify-content: center; color: var(--muted); cursor: pointer; min-height: 130px; border-style: dashed; }
.projcard.newcard:hover { color: var(--accent); border-color: var(--accent); }
.sharedbadge { font-size: 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--ok); padding: 2px 8px; border-radius: 99px; }

/* ---------- generate panel ---------- */
.genpanel { background: var(--panel); border-right: 1px solid var(--border); overflow-y: auto; padding: 16px; }
.genpanel h3 { margin: 0 0 14px; font-size: 15px; }
.kindseg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.kindseg button { flex: 1; background: transparent; color: var(--muted); padding: 9px; border-radius: 0; font-weight: 600; }
.kindseg button.on { background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form[data-kind="image"] .video-only { display: none; }
form[data-kind="video"] .image-only { display: none; }
.iterate-banner { background: var(--panel-2); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.iterate-banner .x { margin-left: auto; background: none; color: var(--muted); padding: 0 4px; }
.iterate-banner:empty { display: none; }
.seedrow { display: flex; gap: 8px; align-items: center; }
.genbtn { width: 100%; margin-top: 6px; padding: 12px; font-size: 15px; }
.varout { color: var(--accent); font-weight: 700; }
details.adv { margin: 10px 0; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
details.adv[open] { padding-bottom: 12px; }
.usualbtn { width: 100%; margin: 2px 0 8px; }

.step { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.step:first-of-type { margin-top: 4px; }
.stepnum { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.steplbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); font-weight: 600; }
.hint { font-size: 11px; color: var(--muted); margin: 6px 0 10px; line-height: 1.45; }
.promptwrap { position: relative; }
.promptwrap textarea { min-height: 86px; padding-right: 46px; }
.micbtn { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 15px; line-height: 1; }
.micbtn:hover { border-color: var(--accent); }
.micbtn.rec { background: var(--accent); border-color: var(--accent); color: #fff; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(237,59,71,.25); } }

.refsrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.refchip { display: flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px 4px 4px; font-size: 11px; max-width: 100%; }
.refchip img { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; }
.refchip .rname { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refchip button { background: none; color: var(--muted); padding: 0 2px; }
.refbtns { display: flex; gap: 8px; margin-bottom: 4px; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(4,4,7,.78); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; width: min(1100px, 100%); max-height: 92vh; display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; }
.modal .preview { background: #060608; display: flex; align-items: center; justify-content: center; min-height: 320px; position: relative; }
.modal .preview img, .modal .preview video { max-width: 100%; max-height: 92vh; object-fit: contain; }
.modal .preview.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-items: stretch; }
.modal .preview.split .pane { display: flex; flex-direction: column; min-width: 0; }
.modal .preview.split .pane .pane-label { font-size: 11px; color: var(--muted); padding: 6px 10px; background: var(--panel); display: flex; gap: 8px; align-items: center; }
.modal .preview.split .pane img, .modal .preview.split .pane video { width: 100%; flex: 1; object-fit: contain; min-height: 0; }
.modal .detail { padding: 20px; overflow-y: auto; }
.modal .detail input.rename { background: transparent; border: 1px solid transparent; padding: 4px 6px; font-size: 16px; font-weight: 600; margin-left: -6px; width: 100%; }
.modal .detail input.rename:hover, .modal .detail input.rename:focus { border-color: var(--border); background: var(--panel-2); }
.kv { font-size: 12px; color: var(--muted); margin: 12px 0; display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; }
.kv b { color: var(--text); font-weight: 500; }
.critchips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 14px; }
.critchips .cc { font-size: 11px; background: var(--panel-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 99px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.versions { margin-top: 16px; }
.versions h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vstrip { display: flex; gap: 8px; flex-wrap: wrap; }
.vthumb { width: 76px; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; background: #060608; }
.vthumb.on { border-color: var(--accent); }
.vthumb img, .vthumb video { width: 100%; height: 48px; object-fit: cover; display: block; }
.vthumb .vn { position: absolute; bottom: 0; right: 0; font-size: 9px; background: rgba(0,0,0,.7); color: #fff; padding: 1px 5px; border-radius: 4px 0 0 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-size: 11px; background: var(--panel-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 99px; }
.tag button { background: none; color: var(--muted); padding: 0 0 0 4px; font-size: 11px; }
.addtag { font-size: 11px; background: none; border: 1px dashed var(--border); color: var(--muted); padding: 2px 10px; border-radius: 99px; }
.closex { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; z-index: 2; }
.prompt-full { font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 8px; padding: 10px; margin: 8px 0; }

/* ---------- admin ---------- */
.adminwrap { max-width: 1180px; margin: 0 auto; width: 100%; }
.admincard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.admincard h3 { margin: 0 0 6px; }
.provrow { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.provhead { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--danger); }
.dot.saved { background: #f5a623; }
.connbadge { font-size: 10.5px; border-radius: 99px; padding: 2px 8px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.connbadge.ok { color: #4fce8a; border-color: color-mix(in srgb, #4fce8a 45%, var(--border)); }
.connbadge.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.connbadge.wait { color: #f5a623; border-color: color-mix(in srgb, #f5a623 45%, var(--border)); }
.testout { font-size: 12px; color: var(--muted); }
.provhead .ghost.sm { margin-left: auto; }
.mcpform { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: 8px; margin-top: 12px; }
.mcprow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }

/* ---------- dialog & toast ---------- */
.dialog { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: 420px; max-height: 80vh; overflow-y: auto; }
.dialog h3 { margin: 0 0 16px; }
.row.end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.splist { display: flex; flex-direction: column; gap: 4px; }
.spitem { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; font-size: 13px; }
.spitem:hover { background: var(--panel-2); }
.spitem .sz { margin-left: auto; color: var(--muted); font-size: 11px; }
.spitem.dim { opacity: .45; cursor: default; }
#toast .msg {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 20px; border-radius: 99px; z-index: 100; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  max-width: 80vw;
}

/* modal preview column + toolbar (fills the former dead space) */
.preview.pcol { flex-direction: column; align-items: stretch; }
.preview.pcol .pmedia { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.preview.pcol .pmedia img, .preview.pcol .pmedia video { max-height: 66vh; max-width: 100%; object-fit: contain; }
.ptools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px; background: #0d0d12; border-top: 1px solid var(--border); }

/* guided tour */
.tourov { position: fixed; inset: 0; z-index: 90; }
.tourhl {
  position: fixed; border: 2px solid var(--accent); border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(4,4,7,.72); pointer-events: none;
  transition: all .25s ease;
}
.tourtip {
  position: fixed; width: 320px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; z-index: 91; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.tourtip .ttitle { font-weight: 700; margin-bottom: 6px; }
.tourtip .ttext { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tourtip .tfoot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tourtip .tcount { font-size: 11px; color: var(--muted); margin-right: auto; }
.primary.sm { padding: 5px 14px; font-size: 12.5px; }

/* compact visual home */
.hero.compact { padding: 22px 24px; }
.hero.compact h1 { font-size: 20px; }
.hero.compact p { margin-bottom: 14px; }
.howart {
  height: 56px; border-radius: 9px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--ha1, #2a3b52), var(--ha2, #11202f));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; letter-spacing: 2px;
}

/* credit chip */
.creditchip { font-size: 12px; border: 1px solid var(--border); border-radius: 99px; padding: 4px 11px; color: var(--text); white-space: nowrap; }

/* assistant page: chat panel left, generation output right */
.assist2 {
  display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 20px;
  align-items: stretch; height: calc(100vh - 56px - 36px); min-height: 480px;
}
@media (max-width: 1100px) { .assist2 { grid-template-columns: 1fr; height: auto; } }
.aileft { min-height: 0; display: flex; }
.aileft .aicard { width: 100%; }
.airight { min-height: 0; overflow-y: auto; }
.quickrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.quickrow .coststrip { margin-bottom: 0; padding: 10px 16px; flex: 1; min-width: 240px; }
.quickrow .coststrip b { font-size: 16px; }
.quickbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.aicard.tall { height: 100%; min-height: 0; }
.aicard.tall .aimsgs { flex: 1; max-height: none; min-height: 0; }
.aicard.big { padding: 16px; min-height: 0; }
.faqside { overflow-y: auto; }
.rolelegend { font-size: 11px; color: var(--muted); border: 1px dashed var(--border); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.dimcard { opacity: .6; }
.emod.onx { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }

/* compact studio panel */
.genpanel h3 { font-size: 13.5px; margin-bottom: 10px; }
.stepbox { padding: 10px 12px 12px; margin-bottom: 10px; }
.step { margin: 12px 0 8px; }
.genpanel label.f { margin-bottom: 7px; }
.genpanel .hint { margin: 4px 0 8px; }
.genpanel textarea { min-height: 64px; }
.bigmodel select { padding: 9px 10px; font-size: 12.5px; }
.refbig { padding: 7px 6px; font-size: 11.5px; }
.refbig small { font-size: 9.5px; }
.genbtn { padding: 10px; font-size: 14px; }
.homefull2 { width: 100%; }
.homegrid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .homegrid2 { grid-template-columns: 1fr; } }
.homemain { max-width: 860px; width: 100%; margin: 0 auto; }
.faqside { display: flex; flex-direction: column; gap: 8px; }
.faqside h3 { margin: 0 0 6px; font-size: 14px; }
.aiavatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.aiavatar.sm { width: 28px; height: 28px; font-size: 15px; }
.aicard { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; min-height: 460px; }
.aicard.big { min-height: 480px; padding: 22px; border-color: #3a2226; box-shadow: 0 8px 40px rgba(237,59,71,.07); }
.aicard.big .aimsgs { max-height: none; }
.aimainform input { padding: 12px 14px; }

/* floating assistant bubble + popover */
.aibubble {
  position: fixed; bottom: 20px; right: 20px; z-index: 45;
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 24px; display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(237,59,71,.45); transition: transform .15s;
}
.aibubble:hover { transform: scale(1.08); }
.aipop {
  position: fixed; bottom: 86px; right: 20px; z-index: 46; width: 370px; max-width: calc(100vw - 32px);
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  display: none; flex-direction: column; padding: 14px; max-height: 540px;
  box-shadow: 0 16px 60px rgba(0,0,0,.6);
}
.aipop.open { display: flex; }
.aipop .aimsgs { min-height: 180px; max-height: 320px; }
.aipophead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.aihead { font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.aimsgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; min-height: 240px; max-height: 420px; }
.aimsg { max-width: 88%; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; }
.aimsg p { margin: 0 0 6px; } .aimsg p:last-child { margin: 0; }
.aimsg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.aimsg.ai { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.aimsg .primary.sm { margin-top: 8px; }
.aisugs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.aiform { display: flex; gap: 8px; }
.faq { margin-top: 22px; }
.faq h3 { margin: 0 0 12px; }
.faqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 900px) { .faqgrid { grid-template-columns: 1fr; } }
.faqitem { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.faqitem summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.faqitem p { color: var(--muted); font-size: 13px; margin: 10px 0 2px; line-height: 1.5; }

/* feed */
.feedwrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.lbstrip { margin-left: auto; margin-right: auto; }
.feedwrap.grid { margin: 0 auto; }
.fmedia { position: relative; overflow: hidden; }
.fmedia img, .fmedia video { transition: transform .25s ease; }
.feeditem:hover .fmedia img, .feeditem:hover .fmedia video { transform: scale(1.015); }
.heartpop {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.4);
  font-size: 84px; color: #fff; text-shadow: 0 4px 24px rgba(237,59,71,.9);
  pointer-events: none; animation: heartpop .85s ease forwards;
}
@keyframes heartpop {
  20% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(1); opacity: 0; }
}
.likebtn.pop { animation: likepop .35s ease; }
@keyframes likepop { 50% { transform: scale(1.25); } }
.linklike { background: none; border: none; color: var(--muted); font-size: 12px; padding: 0; }
.linklike:hover { color: var(--text); }
.feeditem { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.fhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.favatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.fmedia { background: #060608; cursor: pointer; }
.fmedia img, .fmedia video { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.fbody { padding: 12px 14px 4px; }
.fact { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.fcomments { padding: 0 14px; }
.fcomment { font-size: 13px; padding: 5px 0; border-top: 1px solid var(--border); }
.fcomment b { margin-right: 6px; }
.fcform { padding: 10px 14px 14px; }
.fcform input { font-size: 13px; }

/* compile tab visibility */
form:not([data-kind="compile"]) .compile-only { display: none; }
form[data-kind="compile"] .nocompile { display: none; }
form[data-kind="compile"] .video-only { display: none; }

/* dedicated generator modules — near full-screen, form left, results right */
.modwrap { max-width: 720px; margin: 0 auto; }
.modwrap2 { display: grid; grid-template-columns: 480px 1fr; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .modwrap2 { grid-template-columns: 1fr; } }
.modwrap2 .modleft form { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.modwrap2 .modright .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.uploadbox {
  border: 2px dashed var(--border); border-radius: 12px; padding: 28px; text-align: center;
  cursor: pointer; color: var(--text); background: var(--panel);
}
.uploadbox:hover { border-color: var(--accent); }
.modsrc { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.modsrc img { width: 110px; height: 72px; object-fit: cover; border-radius: 8px; }
.modsrc span { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.libpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 320px; overflow-y: auto; }
.libpickitem { position: relative; cursor: pointer; border: 2px solid transparent; border-radius: 8px; overflow: hidden; font-size: 11px; color: var(--muted); }
.libpickitem:hover { border-color: var(--accent); }
.libpickitem .libpickchk { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center; font-size: 11px; }
.libpickitem.on { border-color: var(--accent); }
.libpickitem.on .libpickchk { display: flex; }
.libpickitem img { width: 100%; height: 64px; object-fit: cover; display: block; }
.libpickitem span { display: block; padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* assistant controls + FAQ polish */
.aictrls { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; justify-content: center; }
.aictrls select { width: auto; padding: 5px 8px; font-size: 12px; }
.faqdlg { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.fqi { display: inline-block; width: 22px; }
.faqitem summary { display: flex; align-items: center; gap: 4px; }
.faqitem summary::marker, .faqitem summary::-webkit-details-marker { display: none; }
.faqitem[open] { border-color: var(--accent); }

/* cost estimate */
.costest { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }

/* boxed steps + readability in the generate panel */
.stepbox { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 14px; margin-bottom: 14px; }
.stepbox .step:first-child { margin-top: 0; }
.stepbox input, .stepbox select, .stepbox textarea { background: var(--panel); }
.bigmodel select { padding: 12px; font-size: 13.5px; font-weight: 600; border-width: 2px; }
.bigmodel .lbl { color: var(--text); font-weight: 700; }
.refbtns2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.refbig { background: var(--panel); border: 1px dashed var(--border); color: var(--text); padding: 10px 8px; border-radius: 10px; text-align: center; font-size: 12px; line-height: 1.4; }
.refbig small { display: block; color: var(--muted); font-size: 10.5px; }
.refbig:hover { border-color: var(--accent); }

/* purchase approval flow */
.bell { position: relative; padding: 8px 10px; }
.bellbadge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.pstepper { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.pstage { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; height: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.pstage::before { content: ''; }
.pstage small { font-size: 9px; font-weight: 500; text-align: center; }
.pstage.done { color: var(--ok); }
.pstage.cur { color: var(--accent); }
.pstage.rejected { color: var(--danger); width: auto; flex-direction: row; }
.pline { flex: 1; min-width: 14px; height: 2px; background: var(--border); margin-top: -12px; }
.purchrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.purchinfo { flex: 1; min-width: 260px; }
.notif { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }

/* admin tabs */
.atabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.atabs button { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 7px 14px; font-size: 13px; }
.atabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* projects: getting started + collage */
.gsrow { display: flex; gap: 18px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.gstep { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 120px; border-radius: 8px; overflow: hidden; cursor: pointer; background: #060608; margin-bottom: 4px; }
.collage.c1 { grid-template-columns: 1fr; }
.collage img, .collage video { width: 100%; height: 100%; object-fit: cover; }
.collage.c1 img, .collage.c1 video, .collage.c2 img, .collage.c2 video { height: 120px; }
.collage.c2 { grid-template-rows: 1fr; }
.collage.c3 img:first-child, .collage.c3 video:first-child { grid-row: span 2; height: 120px; }
.collage.empty-collage { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; padding: 10px; text-align: center; }

/* feed: leaderboard + grid view */
.lbstrip { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; margin-bottom: 16px; max-width: 640px; overflow-x: auto; }
.lbtitle { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); white-space: nowrap; }
.lbitem { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.lbitem img, .lbitem video { width: 44px; height: 30px; object-fit: cover; border-radius: 5px; }
.lbrank { font-size: 16px; }
.feedwrap.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 980px; }
.feedwrap.grid .fmedia img, .feedwrap.grid .fmedia video { max-height: 230px; }
.feedwrap.grid .fcomments, .feedwrap.grid .fcform { display: none; }
@media (max-width: 900px) { .feedwrap.grid { grid-template-columns: 1fr; } }

/* watermark overlay */
.wmtag {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font-weight: 800; font-size: 13px; letter-spacing: .04em;
  color: rgba(255,255,255,.92); background: rgba(0,0,0,.45);
  padding: 2px 8px; border-radius: 4px; border-left: 3px solid var(--accent);
  pointer-events: none;
}
.wmtag.big { font-size: 18px; bottom: 14px; right: 14px; padding: 4px 12px; }

/* library: connections + brand hub */
.libsec { margin-bottom: 20px; }
.libsec h3 { margin: 0 0 10px; font-size: 14px; }
.conngrid { display: flex; gap: 12px; flex-wrap: wrap; }
.conncard { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; cursor: pointer; min-width: 200px; }
.conncard:hover { border-color: var(--accent); }
.conncard b { display: block; margin-bottom: 2px; }
.conncard.newcard2 { border-style: dashed; color: var(--muted); text-align: center; cursor: pointer; }
.conncard.newcard2:hover { color: var(--accent); border-color: var(--accent); }
.brandcard { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; width: 220px; display: flex; flex-direction: column; gap: 6px; }
.brandthumbs { display: flex; gap: 4px; }
.brandthumbs img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }

/* admin tables */
.utable { width: 100%; border-collapse: collapse; font-size: 13px; }
.utable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.utable td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.capinput { width: 76px; padding: 4px 8px; font-size: 13px; }
.urowbtns { white-space: nowrap; }
.urowbtns .ghost.sm { margin-left: 4px; }
.eventlog { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.evrow { font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--border); }

.genfab { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,.5); padding: 12px 20px; border-radius: 99px; }

@media (max-width: 1100px) {
  .layout, .layout.nopanel { grid-template-columns: 210px 1fr; }
  .genpanel { position: fixed; right: 0; top: 56px; bottom: 0; width: 330px; z-index: 10; transform: translateX(100%); transition: transform .2s; box-shadow: -8px 0 24px rgba(0,0,0,.4); }
  .genpanel.open { transform: none; }
  .layout:not(.nopanel) .genfab { display: block; right: 86px; }
}

/* Ask Elevate */
.aewrap { max-width: 1480px; margin: 0 auto; width: 100%; }
.aehead { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.aetabs { display: flex; gap: 6px; }
.aetabs button { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 8px 16px; border-radius: 99px; font-size: 13px; }
.aetabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.kbbar { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; flex-wrap: wrap; }
.kbrow { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-top: 8px; }
.kbrow.src { border-color: #3a2a30; }
.kbrow.src:hover { border-color: var(--accent); }
.kbcount { font-weight: 800; color: var(--accent); font-size: 15px; }

/* genie expandable cue + drag reorder */
.chev.red { color: var(--accent); font-weight: 800; font-size: 15px; }
.emod.dragover { outline: 2px dashed var(--accent); outline-offset: -2px; }
.emod[draggable="true"] { cursor: grab; }

/* assistant setup panel */
.aisetup { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.aisetuphead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.aisetupgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aictl { display: flex; flex-direction: column; gap: 4px; }
.aictl > span { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.aictl select { background: var(--panel); font-size: 12.5px; padding: 7px 9px; }
.airefbtns { display: flex; gap: 6px; }
.airefbtns .ghost.sm { flex: 1; }
.aiest { margin-top: 10px; font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.aiest b { color: var(--accent); }
.aimsg { font-size: 14px; }

/* ask elevate: full-screen chat + knowledge rail */
.aechat2 { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; height: calc(100vh - 240px); min-height: 430px; }
@media (max-width: 1100px) { .aechat2 { grid-template-columns: 1fr; height: auto; } }
.aechat2 .aicard { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.aechat2 .aimsgs { flex: 1; max-height: none; min-height: 0; }
.aekbrail { display: flex; flex-direction: column; gap: 10px; overflow: hidden; height: 100%; min-height: 0; }
.aekbrail .howcard { padding: 12px 14px; }
.aekbrail .kbcard { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.aekbrail .kbcard .kbraillist { flex: 1; max-height: none; min-height: 80px; }
.aekbrail .kbrailfoot { flex: none; margin: 10px 0 0; }
@media (max-width: 1100px) { .aekbrail { height: auto; overflow: visible; } .aekbrail .kbcard .kbraillist { max-height: 340px; } }
.kbminirow { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.kbminirow b { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbminirow .kbcount { font-size: 12px; }

/* translation hub */
.trresult { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-top: 10px; }
.trresult h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.trresult p { margin: 0; white-space: pre-wrap; }
.trhist { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }

/* dynamic knowledge base cards + focus */
.kbcat { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; cursor: pointer; border: 1px solid var(--border); margin-bottom: 6px; background: var(--panel-2); transition: transform .12s, border-color .12s; }
.kbcat:hover { transform: translateX(3px); border-color: var(--kc); }
.kbcat.on { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 14%, var(--panel-2)); }
.kbcat b { flex: 1; font-size: 12.5px; font-weight: 600; }
.kbcat .kcdot { width: 10px; height: 10px; border-radius: 50%; background: var(--kc); flex: none; }
.kbcat .kbcount { color: var(--kc); }
.kbfocus { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--accent); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.kbfocus button { background: none; color: var(--muted); padding: 0 4px; margin-left: auto; }

/* charts */
.chart { display: flex; flex-direction: column; gap: 7px; }
.chartrow { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.clabel { width: 150px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--muted); }
.chartbar { height: 18px; border-radius: 5px; min-width: 4px; transition: width .4s ease; }

/* executive stats */
.exgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.exgrid.two { grid-template-columns: 1fr 1fr; }
.exstat { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--xc, var(--accent)); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; }
.exstat b { font-size: 24px; color: var(--xc, var(--accent)); line-height: 1.1; }
.exstat span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.exstat small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.exstat.big b { font-size: 28px; }

/* compact profile */
.profilewrap .admincard { padding: 14px 18px; margin-bottom: 0; }
.pidcard { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px !important; }
.pcredit { min-width: 220px; }
.pbar { height: 7px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.pbarfill { height: 100%; background: linear-gradient(90deg, var(--accent), #f5a623); border-radius: 99px; }
.profgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .profgrid { grid-template-columns: 1fr; } }
.prow { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.prow b { color: var(--accent); min-width: 36px; }
.pill { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.pill.released { color: var(--ok); border-color: var(--ok); }
.pill.rejected { color: var(--danger); border-color: var(--danger); }
.pill.requested, .pill.cost-approved, .pill.team-approved { color: var(--accent); border-color: var(--accent); }
.accessgrid { display: flex; flex-wrap: wrap; gap: 7px; }
.accesschip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); padding: 5px 11px; border-radius: 99px; }
button.accesschip { cursor: pointer; color: var(--muted); }
button.accesschip:hover { border-color: var(--accent); color: var(--text); }
.accesschip.ok { border-color: var(--ok); color: var(--ok); }

/* knowledge base admin (super admin) */
.kbadmin { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.kbadmin summary { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; list-style: none; }
.kbadmin summary::-webkit-details-marker { display: none; }
.kbadmin[open] { border-color: var(--accent); }
.kbadmin .kcdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kbadminbtns { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.kbadmin .kbminirow { padding: 6px 0; }

.iconbtn { background: var(--panel-2); border: 1px solid var(--border); color: var(--text); width: 38px; min-width: 38px; height: 38px; border-radius: 9px; font-size: 15px; padding: 0; }
.iconbtn:hover { border-color: var(--accent); }

.accesschip.pending { border-color: #f5a623; color: #f5a623; }

/* curator strip + training rows */
.curatebar { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 0 0 12px; }
.curatebar b { display: block; margin-bottom: 2px; }
.curatechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.curatechip { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px; padding: 3px 6px 3px 12px; font-size: 12.5px; }
.trrow { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 6px; margin-bottom: 6px; }
.trrow .ghost.sm { padding: 4px 8px; }

/* Compute IQ (WolframAlpha-style) */
.computewrap { max-width: 1100px; }
.cphead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cpbar { display: flex; gap: 8px; margin-bottom: 14px; }
.cpbar input { padding: 13px 14px; font-size: 15px; }
.cpbar .primary { padding: 13px 20px; white-space: nowrap; }
.cpcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.cpsection { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cpsection:last-child { border-bottom: none; }
.cpsection.result { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.cplabel { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.cpval { font-size: 15px; }
.cpval.big { font-size: 22px; font-weight: 700; color: var(--accent); }
.cpsteps { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.cpsteps summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.cpstep { font-size: 13px; padding: 5px 0 5px 14px; border-left: 2px solid var(--border); margin: 6px 0; }
.cpfoot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.cptopics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .cptopics { grid-template-columns: 1fr; } }
.cpgroup h3 { margin: 0 0 10px; font-size: 15px; }
.cpgrid { display: flex; flex-direction: column; gap: 8px; }
.cptopic { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.cptopic b { display: block; font-size: 13px; margin-bottom: 6px; }
.cpeg { display: inline-block; font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 3px 8px; margin: 0 5px 5px 0; cursor: pointer; }
.cpeg:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Elevate landing page (platform home) ===== */
.lp { width: 100%; }
/* Home is full-bleed: drop the main padding so the animated background reaches
   every edge (no black gutters). Inner sections keep their own centered max-width. */
.main:has(> .lp) { padding: 0; }
.lphero { text-align: center; padding: 60px 20px 50px; position: relative; }
.lphero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(237,59,71,.12), transparent 70%); pointer-events: none; }
.lppill { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .18em; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 99px; padding: 5px 14px; margin-bottom: 26px; }
.lpdot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lptitle { font-size: 96px; font-weight: 800; margin: 0; line-height: 1; letter-spacing: -.02em; }
.lptitle span { color: var(--accent); }
.lpsub { font-size: 22px; font-weight: 600; margin-top: 18px; }
.lplead { max-width: 540px; margin: 14px auto 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lpannounce { max-width: 540px; margin: 16px auto 0; background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.lpcta { margin-top: 26px; padding: 13px 28px; border-radius: 99px; font-size: 15px; }
.lpstats { display: flex; gap: 48px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.lpstats b { display: block; font-size: 30px; font-weight: 800; color: var(--accent); }
.lpstats span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.lpexec { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; padding: 60px 20px; }
@media (max-width: 900px) { .lpexec { grid-template-columns: 1fr; gap: 24px; } }
.lpeyebrow { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.lpeyebrow.center { text-align: center; }
.lpexecL h2 { font-size: 30px; margin: 0; line-height: 1.2; }
.lpexecrule { width: 60px; height: 3px; background: var(--accent); margin-top: 18px; border-radius: 2px; }
.lpexecR p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 20px; }
.lpquote { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.lpquote p { color: var(--text); font-style: italic; margin: 0 0 10px; }
.lpquote span { color: var(--accent); font-size: 13px; font-weight: 600; }

.lpmods { padding: 40px 20px; text-align: center; }
.lph2c { font-size: 34px; margin: 6px 0 0; }
.lph2c span { color: var(--accent); }
.lpmodlead { max-width: 620px; margin: 14px auto 30px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lpmodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
@media (max-width: 900px) { .lpmodgrid { grid-template-columns: 1fr; } }
.lpcard { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.lpcard:hover { transform: translateY(-3px); border-color: var(--accent); }
.lpcardart { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: .9; }
.lpcardbody { padding: 18px 20px 22px; }
.lpcardtop { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lpcaticon { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.lpcatlabel { font-size: 10px; letter-spacing: .12em; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 99px; margin-left: auto; }
.lpcard h3 { margin: 0 0 8px; font-size: 17px; }
.lpdate { color: var(--accent); font-weight: 600; font-size: 14px; }
.lpcard p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.lpreq { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 13px; font-weight: 600; }
.lpreq.open { color: var(--ok); }

.lpcaps { padding: 50px 20px 70px; text-align: center; }
.lpcapwrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; margin-top: 30px; text-align: left; }
@media (max-width: 900px) { .lpcapwrap { grid-template-columns: 1fr; } }
.lpcaplist { display: flex; flex-direction: column; gap: 8px; }
.lpcapitem { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; }
.lpcapitem.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.lpcapitem b { display: block; font-size: 14px; }
.lpcapitem small { color: var(--muted); font-size: 12px; }
.lpcapico { width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.lpcapitem.on .lpcapico { background: var(--accent); }
.lpcapdetail { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; position: relative; }
.lpcapico.big { width: 48px; height: 48px; font-size: 22px; margin-bottom: 16px; }
.lpcapnum { position: absolute; top: 22px; right: 26px; font-size: 64px; font-weight: 800; color: var(--panel-2); line-height: .8; text-align: right; }
.lpcapnum span { display: block; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.lpcapdetail h3 { margin: 0 0 8px; font-size: 22px; }
.lpcaplead { color: var(--muted); margin: 0 0 18px; }
.lpcappoints div { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 14px; color: var(--accent); }
.lpcappoints div::first-letter { color: var(--accent); }
.lpcapnote { color: var(--muted); font-size: 13px; line-height: 1.6; border-top: 1px solid var(--border); padding-top: 16px; margin: 18px 0 14px; }
.lpcaptags { display: flex; gap: 8px; flex-wrap: wrap; }
.lpcaptags span { font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px; padding: 4px 12px; color: var(--muted); }

/* search bar redesign */
.searchwrap { position: relative; display: flex; align-items: center; flex: 0 1 360px; }
.searchwrap .searchicon { position: absolute; left: 12px; color: var(--muted); font-size: 15px; pointer-events: none; }
.searchwrap input { padding: 9px 12px 9px 34px; border-radius: 99px; background: var(--panel-2); }
.searchwrap input:focus { background: var(--panel); }

/* FAQ section tabs */
.faqtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.faqtab { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 6px 13px; border-radius: 99px; font-size: 12.5px; }
.faqtab.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Ask Elevate: accuracy, sources, disclaimer */
.acc { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.acclabel { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.accbar { flex: 1; height: 6px; background: var(--panel); border-radius: 99px; overflow: hidden; max-width: 160px; }
.accfill { height: 100%; border-radius: 99px; }
.acc b { font-size: 12px; }
.srcbox { margin: 8px 0 0; border-top: 1px solid var(--border); padding-top: 8px; }
.srctitle { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
.srcdoc { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 3px 0; }
.srcdoc b { font-weight: 600; }
.srctag { margin-left: auto; font-size: 10px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px; }
.aedisclaimer { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 8px; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; }

/* FAQ editor (admin) */
.faqsec { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.faqsec summary { cursor: pointer; }
.faqedrow { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin: 8px 0; align-items: start; }

/* Compute IQ — topic browser */
.cpcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cplink { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0; }
.cptopictitle { font-size: 26px; margin: 0 0 4px; }
.cpdomain { margin-top: 8px; margin-bottom: 22px; }
.cpdomain h3 { font-size: 18px; margin: 0 0 2px; }
.cptopgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .cptopgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cptopgrid { grid-template-columns: repeat(2, 1fr); } }
.cptopcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; transition: transform .12s, border-color .12s; }
.cptopcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.cptopicon { font-size: 22px; }
.cptopname { font-weight: 700; font-size: 14px; color: var(--text); }
.cptopsubs { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.cpsubgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 800px) { .cpsubgrid { grid-template-columns: 1fr; } }
.cpsubcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.cpsubcard h4 { margin: 0 0 4px; font-size: 15px; }
.cpsubegs { display: flex; flex-wrap: wrap; gap: 6px; }

.aiactions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Ask Elevate — knowledge-base hero layout */
.aewide { max-width: 980px; margin: 0 auto; }
.aehero { text-align: center; padding: 26px 10px 22px; }
.aehero h1 { font-size: 38px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.aehero h1 span { color: var(--accent); }
.aehero p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.kbpanel { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; margin-bottom: 14px; }
.kbpanelhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kbpanelicon { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.kbcounts { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.kbcounts b { color: var(--accent); font-size: 15px; }
.kbchips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.kbchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.kbchip:hover { border-color: var(--kc); }
.kbchip.on { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 16%, var(--panel-2)); }
.kbchipico { color: var(--kc); font-size: 13px; }
.kbchipn { color: var(--kc); font-weight: 700; }
.kbcontact { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.aewide .aimsgs { min-height: 60px; }
.aewide .aimsgs.tall { min-height: 320px; max-height: 52vh; }
.aewide .aiform { margin-top: 10px; }
.aemodelsel { width: auto; max-width: 150px; font-size: 12px; padding: 8px; }

/* Alt Imager / 2D→3D original-vs-result toggle */
.cmptoggle { display: flex; gap: 6px; padding: 10px 12px 0; justify-content: center; }
.cmpbtn { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 5px 16px; border-radius: 99px; font-size: 12.5px; }
.cmpbtn.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Compute subtopic input forms */
.cpsubform { display: flex; gap: 6px; margin-bottom: 8px; }
.cpsubin { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.cpsubform .primary.sm { padding: 6px 14px; font-weight: 700; }
.cpegslabel { font-size: 10.5px; color: var(--muted); display: block; width: 100%; margin-bottom: 2px; }

/* Ask Elevate rail list scroll */
.kbraillist { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.aemodelrow { margin-top: 8px; }
.aimodellabel { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.aimodellabel select { width: auto; padding: 6px 10px; font-size: 12px; }

/* Talent Compass */
.talentai { margin-bottom: 16px; }
.talentai .aimsgs { min-height: 120px; max-height: 320px; }
.mdli { display: block; padding: 1px 0; }

/* Auto-growing chat textareas (Claude-style) */
textarea.autogrow { resize: none; overflow-y: auto; line-height: 1.45; }
.aiform textarea.chatbox {
  flex: 1; min-height: 40px; max-height: 200px; padding: 10px 12px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--border); font: inherit; resize: none;
}
.aiform textarea.chatbox:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.aiform { align-items: flex-end; }
.genpanel textarea.autogrow, .modleft textarea.autogrow { min-height: 64px; }

/* Talent Compass */
.tcquickrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .tcquickrow { grid-template-columns: 1fr 1fr; } }
.tcquick { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; }
.tcquick:hover { border-color: var(--accent); }
.tcquick:first-child { background: var(--accent); border-color: var(--accent); }
.tcquick:first-child b, .tcquick:first-child small { color: #fff; }
.tcqicon { width: 36px; height: 36px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.tcquick:first-child .tcqicon { background: rgba(255,255,255,.2); color: #fff; }
.tcquick b { display: block; font-size: 13.5px; } .tcquick small { color: var(--muted); font-size: 11.5px; }
.tcmethod, .tcstatus { font-size: 11px; border: 1px solid; border-radius: 99px; padding: 2px 9px; }
.tcscore { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.tcscorebar { width: 54px; height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.tcscorebar span { display: block; height: 100%; background: var(--ok); }
.tcreqtable td { vertical-align: middle; }
.poolgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .poolgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .poolgrid { grid-template-columns: 1fr 1fr; } }
.poolcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.poolhead { display: flex; align-items: center; margin-bottom: 8px; }
.poolav { width: 34px; height: 34px; border-radius: 8px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.tctype { margin-left: auto; font-size: 10px; border-radius: 99px; padding: 2px 8px; border: 1px solid var(--border); color: var(--muted); }
.tctype.internal { color: #4a90d9; border-color: #4a90d9; }
.tctype.alumni { color: #9b59b6; border-color: #9b59b6; }
.tctype.external { color: var(--muted); }
.poolfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: #f5a623; }
.comprow { display: grid; grid-template-columns: 1fr 90px 90px auto; gap: 8px; margin-bottom: 8px; }

/* ---------------- Microsoft 365 connector (Ask Elevate rail + tab) ---------------- */
.m365card { flex: none; background: linear-gradient(150deg, rgba(74,144,217,.16), var(--panel)); border: 1px solid #2f5d8a; border-radius: 12px; padding: 12px 14px; }
.m365card.on { border-color: #4a90d9; box-shadow: 0 0 0 1px rgba(74,144,217,.25), 0 6px 22px rgba(74,144,217,.12); }
.m365head { display: flex; align-items: center; gap: 10px; }
.m365ico { width: 30px; height: 30px; border-radius: 8px; background: #4a90d9; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.m365head b { font-size: 13.5px; color: var(--text); }
.m365sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.m365srcs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.m365src { display: flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 11.5px; text-align: left; }
.m365src .m365srcic { font-size: 13px; }
.m365src:hover { border-color: #4a90d9; }
.m365src.on { border-color: #4a90d9; background: rgba(74,144,217,.18); color: var(--text); font-weight: 600; }
.m365src .m365chk { margin-left: auto; color: #4a90d9; }
.m365note { font-size: 11px; color: var(--muted); margin-top: 9px; line-height: 1.45; }
.m365hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(140deg, rgba(74,144,217,.18), var(--panel)); border: 1px solid #2f5d8a; border-radius: 14px; padding: 18px 20px; }
.m365hero.on { border-color: #4a90d9; }
.m365heroico { width: 46px; height: 46px; border-radius: 11px; background: #4a90d9; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.m365tile.on { border-color: #4a90d9; box-shadow: inset 0 0 0 1px rgba(74,144,217,.4); }
.m365switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.m365switch input { opacity: 0; width: 0; height: 0; }
.m365switch span { position: absolute; inset: 0; background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px; cursor: pointer; transition: .15s; }
.m365switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: var(--muted); border-radius: 50%; transition: .15s; }
.m365switch input:checked + span { background: #4a90d9; border-color: #4a90d9; }
.m365switch input:checked + span::before { transform: translateX(16px); background: #fff; }
.m365switch input:disabled + span { opacity: .4; cursor: not-allowed; }

/* ---------------- Talent Compass — dark-mode dashboard polish ---------------- */
.talentwrap .filterbar h2 { display: flex; align-items: center; gap: 8px; }
.atabs button { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); background: var(--panel-2); transition: background .12s, border-color .12s; }
.atabs button:hover { border-color: var(--accent); }
.atabs button.on { box-shadow: 0 2px 10px rgba(237,59,71,.25); }
.talentwrap .tcqicon { font-size: 17px; }
.talentwrap .tcquick { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border-color: var(--border); }
.talentwrap .tcquick:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.talentwrap .tcquick b { color: var(--text); }
.talentwrap .exstat { background: linear-gradient(150deg, color-mix(in srgb, var(--xc) 14%, var(--panel)), var(--panel)); }
.talentwrap .exstat b { text-shadow: 0 1px 8px color-mix(in srgb, var(--xc) 40%, transparent); }
.talentwrap .talentai { border-color: #3a2226; box-shadow: 0 8px 30px rgba(237,59,71,.07); }

/* ---------------- CV formatting — WSP brand ---------------- */
.cvformwrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .cvformwrap { grid-template-columns: 1fr; } }
.cvframe { background: #2a2b30; border: 1px solid var(--border); border-radius: 12px; padding: 18px; max-height: calc(100vh - 220px); overflow: auto; }
/* on-brand document (light) rendered inside the dark app */
.cvframe .cvdoc { max-width: 820px; margin: 0 auto; background: #fff; color: #1c1d21; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 26px rgba(0,0,0,.35); }
.cvframe .cvbanner { background: #ED3B47; color: #fff; padding: 26px 32px; }
.cvframe .cvbrand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cvframe .cvlogo { font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: lowercase; }
.cvframe .cvtmpl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.cvframe .cvbanner h1 { margin: 0; font-size: 27px; font-weight: 700; }
.cvframe .cvrole { font-size: 14px; margin-top: 4px; opacity: .95; }
.cvframe .cvcontact { font-size: 12px; margin-top: 9px; opacity: .92; }
.cvframe .cvgrid { display: grid; grid-template-columns: 230px 1fr; }
.cvframe .cvside { background: #f7f8fa; padding: 22px 20px; border-right: 1px solid #e6e8ec; }
.cvframe .cvmain { padding: 22px 28px; }
.cvframe .cvsec { margin-bottom: 18px; }
.cvframe .cvsec h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: #ED3B47; border-bottom: 2px solid #ED3B47; padding-bottom: 4px; margin: 0 0 9px; }
.cvframe .cvchips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cvframe .cvchips li { background: #fff; border: 1px solid #dde0e6; border-radius: 99px; padding: 3px 9px; font-size: 11px; }
.cvframe .cvlist { margin: 0; padding-left: 16px; font-size: 12px; } .cvframe .cvlist li { margin-bottom: 4px; }
.cvframe .cvedu { margin-bottom: 9px; font-size: 12px; } .cvframe .cvedu b { display: block; } .cvframe .cvedu span { color: #666; }
.cvframe .cvmain p { font-size: 13px; line-height: 1.55; margin: 0 0 8px; }
.cvframe .cvexp { margin-bottom: 15px; }
.cvframe .cvexphead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cvframe .cvexphead b { font-size: 13.5px; } .cvframe .cvexphead span { font-size: 11.5px; color: #666; white-space: nowrap; }
.cvframe .cvco { font-size: 12px; color: #ED3B47; font-weight: 600; margin: 1px 0 4px; }
.cvframe .cvexp ul { margin: 4px 0 0; padding-left: 18px; } .cvframe .cvexp li { font-size: 12px; line-height: 1.5; margin-bottom: 3px; }
.cvframe .cvfoot { padding: 11px 28px; background: #f7f8fa; border-top: 1px solid #e6e8ec; font-size: 10px; color: #888; text-align: center; }

/* ---------------- Persona-based access: modules, home, onboarding, admin ---------------- */
.enavsec { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px 4px; }

/* module cards */
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.modcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, transform .12s; }
.modcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.modcard.st-ok { border-left: 3px solid var(--ok); }
.modcard.st-rec { border-left: 3px solid var(--accent); }
.modcard.st-req { border-left: 3px solid #f5a623; }
.modcard.st-restr { border-left: 3px solid #9b59b6; }
.modcard.st-soon { border-left: 3px solid var(--muted); opacity: .85; }
.modcard.st-admin { border-left: 3px solid #4a90d9; }
.modcardtop { display: flex; align-items: center; justify-content: space-between; }
.modicon { font-size: 22px; }
.modicon.sm { font-size: 17px; }
.modstate { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid; border-radius: 99px; padding: 2px 8px; }
.modstate.ok { color: var(--ok); border-color: var(--ok); }
.modstate.rec { color: var(--accent); border-color: var(--accent); }
.modstate.req { color: #f5a623; border-color: #f5a623; }
.modstate.restr { color: #9b59b6; border-color: #9b59b6; }
.modstate.soon { color: var(--muted); border-color: var(--border); }
.modstate.admin { color: #4a90d9; border-color: #4a90d9; }
.modcard h4 { margin: 4px 0 0; font-size: 15px; }
.modcat { font-size: 11px; color: var(--muted); }
.modesc { font-size: 12.5px; color: var(--muted); margin: 4px 0; line-height: 1.45; flex: 1; }
.modreason { font-size: 11.5px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 6px; padding: 4px 8px; }
.modfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.modmeta { font-size: 10.5px; color: var(--muted); }
.modgroup { font-size: 14px; margin: 18px 0 8px; color: var(--text); }

/* personalised home */
.pworkspace { max-width: 1180px; margin: 0 auto 28px; }
.pwhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pwhead h1 { margin: 0; font-size: 26px; }
.pwactions { display: flex; gap: 8px; }
.pwstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 800px) { .pwstats { grid-template-columns: 1fr 1fr; } }
.pwstat { background: linear-gradient(150deg, color-mix(in srgb, var(--xc) 14%, var(--panel)), var(--panel)); border: 1px solid var(--border); border-left: 4px solid var(--xc); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.pwstat b { font-size: 26px; color: var(--xc); line-height: 1.1; }
.pwstat span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 3px; }
.homesec { margin-bottom: 24px; }
.homesechead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.homesechead h2 { margin: 0; font-size: 17px; }
.pwlinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 800px) { .pwlinks { grid-template-columns: 1fr; } }
.pwlink { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.pwlink:hover { border-color: var(--accent); }
.pwlink span { font-size: 20px; } .pwlink b { font-size: 14px; } .pwlink small { color: var(--muted); font-size: 11.5px; }
.reqbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }

/* onboarding wizard */
.onbwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, rgba(237,59,71,.10), transparent), var(--bg); }
.onbcard { width: min(820px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.onbbrand { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 18px; }
.onbbrand .bm { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.onbsteps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.onbdot { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex: 1; min-width: 90px; }
.onbdot span { width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.onbdot.on { color: var(--text); font-weight: 600; } .onbdot.on span { background: var(--accent); border-color: var(--accent); color: #fff; }
.onbdot.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.onbbody { min-height: 280px; } .onbbody h2 { margin: 0 0 6px; font-size: 20px; }
.onbgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 700px) { .onbgrid { grid-template-columns: 1fr; } }
.onbpick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; }
.onbpick:hover { border-color: var(--accent); }
.onbpick.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); }
.onbpickic { font-size: 22px; } .onbpick b { font-size: 13.5px; } .onbpick small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.onbchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.onbchips .chip { cursor: pointer; padding: 8px 12px; font-size: 12.5px; }
.onbchips .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.onbfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.onbmods .modcard { padding: 12px; }
.onbdone { text-align: center; padding: 30px 0; }
.onbcheck { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* admin user mgmt */
.persona-chip { font-size: 14px; margin-right: 2px; }
.rolebadge { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; border-radius: 99px; padding: 1px 7px; border: 1px solid; }
.rolebadge.sa { color: #ed3b47; border-color: #ed3b47; } .rolebadge.ea { color: #4a90d9; border-color: #4a90d9; }
.rolebadge.pu { color: #f5a623; border-color: #f5a623; } .rolebadge.kb { color: #9b59b6; border-color: #9b59b6; }
.audetail { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 14px; }
.audetail > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.audetail span { color: var(--muted); }
.aumodrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.togline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.togline input { width: 16px; height: 16px; }

/* ---------------- My Modules — compact, expandable workspace ---------------- */
.mmwrap { max-width: 1180px; margin: 0 auto; }
.mmtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mmtop h1 { margin: 0; font-size: 23px; }
.mmstatstrip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mmstatstrip b { font-size: 17px; }
.mmbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.mmseg { flex-wrap: wrap; }
.mmseg button { display: inline-flex; align-items: center; gap: 6px; }
.segn { font-size: 10px; background: rgba(255,255,255,.12); border-radius: 99px; padding: 0 6px; min-width: 16px; text-align: center; }
.mmseg button.on .segn { background: rgba(255,255,255,.28); }
.mmbar input { max-width: 240px; margin-left: auto; }
.mmgrouphead { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; }
.mmgdot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc); }
.mmgn { font-size: 10px; color: var(--cc); border: 1px solid var(--cc); border-radius: 99px; padding: 0 6px; }
.mmgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
/* Compact, punchy module tiles — a category-coloured top accent makes them pop. */
.mmcard { position: relative; background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 9%, var(--panel)), var(--panel) 70%); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .12s, transform .12s, box-shadow .12s; }
.mmcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cc); opacity: .85; }
.mmcard:hover { border-color: var(--cc); transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--cc) 18%, transparent); }
.mmcard.open { border-color: var(--cc); }
/* Uniform card height regardless of name/tagline length: fixed-size header, the
   status shown as a compact dot (full label on hover), text clamped to 1–2 lines. */
.mmhead { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 62px; text-align: left; background: transparent; color: var(--text); padding: 11px 12px; cursor: pointer; }
.mmicon { width: 38px; height: 38px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--cc); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--cc) 35%, transparent); }
.mminfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mminfo b { font-size: 13px; font-weight: 700; line-height: 1.2; word-break: normal; overflow-wrap: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mminfo small { font-size: 10.5px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Status as a compact dot so a long label can never squeeze or wrap the name. */
.mmstate { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; flex: none; align-self: center; font-size: 0; color: transparent; background: var(--muted); }
.mmstate.ok { background: var(--ok); }
.mmstate.rec { background: var(--accent); }
.mmstate.req { background: #f5a623; }
.mmstate.restr { background: #9b59b6; }
.mmstate.soon { background: var(--muted); }
.mmstate.admin { background: #4a90d9; }
.mmstate-OLD { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid; border-radius: 99px; padding: 1px 7px; flex: none; white-space: nowrap; align-self: flex-start; margin-top: 1px; }
.mmstate.ok { color: var(--ok); border-color: var(--ok); }
.mmstate.rec { color: var(--accent); border-color: var(--accent); }
.mmstate.req { color: #f5a623; border-color: #f5a623; }
.mmstate.restr { color: #9b59b6; border-color: #9b59b6; }
.mmstate.soon { color: var(--muted); border-color: var(--border); }
.mmstate.admin { color: #4a90d9; border-color: #4a90d9; }
.mmchev { color: var(--muted); font-size: 11px; transition: transform .15s; flex: none; }
.mmcard.open .mmchev { transform: rotate(90deg); }
.mmbody { max-height: 0; overflow: hidden; transition: max-height .2s ease; padding: 0 11px; }
.mmcard.open .mmbody { max-height: 260px; padding: 0 11px 11px 11px; }
.mmbody p { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0 0 8px; }
.mmbody .modreason { font-size: 11px; margin-bottom: 8px; }
.mmfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mmfoot .modmeta { font-size: 10px; color: var(--muted); }
.mmlinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 800px) { .mmlinks { grid-template-columns: 1fr; } }

/* ---------------- Admin "view as" impersonation ---------------- */
.viewbanner { background: linear-gradient(90deg, rgba(74,144,217,.22), rgba(74,144,217,.08)); border-bottom: 1px solid #4a90d9; color: var(--text); font-size: 12.5px; padding: 7px 16px; display: flex; align-items: center; gap: 10px; }
.viewbanner b { color: #cfe2f7; }
.viewbanner button { margin-left: auto; }
.viewasbox { display: flex; align-items: center; gap: 6px; padding: 8px 12px; margin: 0 8px 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; }
.viewasbox.on { border-color: #4a90d9; background: rgba(74,144,217,.12); }
.viewaslbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.viewasbox select { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 5px 6px; font-size: 12px; }
body.navcollapsed .viewasbox { display: none; }

/* ---------------- Responsive: iPad + mobile ---------------- */
.navtoggle { display: none; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 8px; font-size: 18px; flex: none; align-items: center; justify-content: center; padding: 0; }
.navscrim { display: none; }

/* iPad / tablet — tighter shell, keep sidebar */
@media (max-width: 1100px) {
  .main { padding: 16px; }
  .searchwrap { flex: 0 1 220px; }
}

/* Phone & small tablet — off-canvas drawer + compact topbar */
@media (max-width: 900px) {
  .navtoggle { display: inline-flex; }
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar .brand small { display: none; }
  .searchwrap { display: none; }
  .prov { display: none; }
  .userbox { gap: 6px; margin-left: auto; }
  .userbox .creditchip, .userbox [data-action="start-tour"], .userbox [data-action="faq-open"], .userbox [data-action="feedback-open"], .userbox > span { display: none; }

  .layout, .layout.nopanel, body.navcollapsed .layout, body.navcollapsed .layout.nopanel { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 56px; bottom: 0; left: 0; width: 270px; max-width: 84vw; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.5); }
  body.navmobileopen .sidebar { transform: none; }
  body.navmobileopen .navscrim { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.55); z-index: 35; }
  /* collapse mode is desktop-only; force expanded on mobile */
  body.navcollapsed .sidebar { width: 270px; padding: 14px 10px; }
  body.navcollapsed .etxt, body.navcollapsed .elogotxt, body.navcollapsed .chev, body.navcollapsed .enavsec { display: revert; }
  body.navcollapsed .emod, body.navcollapsed .echild { justify-content: flex-start; padding: 9px 11px; }
  .nav-collapse { display: none; }

  .main { padding: 14px 12px; overflow-x: auto; }
  .adminwrap, .mmwrap, .aewrap { max-width: 100%; }
  .mmtop h1 { font-size: 20px; }
  .pwstats { grid-template-columns: 1fr 1fr; }
  .atabs { gap: 5px; }
  .atabs button { padding: 6px 10px; font-size: 12px; }
  /* wide tables: let them scroll horizontally inside their card */
  .utable { display: block; overflow-x: auto; white-space: nowrap; }
  .modal { grid-template-columns: 1fr; max-height: 94vh; }
  .dialog { width: min(420px, 92vw); }
  .onbcard { padding: 22px 18px; }
  .cvframe .cvgrid { grid-template-columns: 1fr; }
  .viewbanner { font-size: 11.5px; padding: 6px 12px; }
}

/* Very small phones */
@media (max-width: 480px) {
  .topbar .brand b { font-size: 14px; }
  .mmstatstrip { gap: 10px; font-size: 11px; }
  .pwstats { grid-template-columns: 1fr 1fr; }
  .mmlinks, .pwlinks { grid-template-columns: 1fr; }
}

/* ---------------- Analytics charts ---------------- */
.svgchart { width: 100%; }
.svgchart svg { display: block; }
.chartlegend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.chartlegend span { display: inline-flex; align-items: center; gap: 5px; }
.chartlegend i, .donutlegend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.donutwrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donutlegend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.donutlegend span { display: inline-flex; align-items: center; gap: 7px; }
.donutlegend b { color: var(--text); }
.anagrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .anagrid2 { grid-template-columns: 1fr; } .donutwrap { justify-content: center; } }

/* ---------------- Redesigned top bar + chrome ---------------- */
.brandtxt { display: flex; flex-direction: column; line-height: 1.1; }
.brandtxt b { font-size: 15px; }
.brandsub { color: var(--muted); font-size: 10.5px; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.regionbtn { background: none; border: none; color: var(--accent); font-size: 10.5px; padding: 0; cursor: pointer; font-weight: 600; }
.regionbtn:hover { text-decoration: underline; }
.iconbtn2 { padding: 7px 9px; font-size: 13px; }
.avatarbtn { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; border: none; flex: none; cursor: pointer; }
.avatarbtn:hover { filter: brightness(1.1); }
.creditchip { cursor: pointer; }
.creditchip:hover { border-color: var(--accent); }

/* floating menu (region / language / account) */
.floatmenu { position: fixed; z-index: 80; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); padding: 6px; min-width: 200px; max-height: 70vh; overflow-y: auto; }
.fmtitle { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 10px 4px; }
.fmitem { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; color: var(--text); border: none; padding: 8px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.fmitem:hover { background: var(--panel-2); }
.fmitem.on { color: var(--accent); }
.fmitem.danger { color: var(--danger); }
.fmico { width: 20px; text-align: center; }
.fmcheck { margin-left: auto; color: var(--accent); }
.fmsep { height: 1px; background: var(--border); margin: 4px 0; }

/* credit balance + pricing popup */
.creditbal { display: flex; gap: 20px; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.creditbal > div { display: flex; flex-direction: column; }
.creditbal b { font-size: 19px; }
.pricetable { display: flex; flex-direction: column; gap: 6px; }
.pricerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; font-size: 13px; }
.pricerow b:last-child { color: var(--accent); }
.creditpacks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.creditpack { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.creditpack:hover { border-color: var(--accent); }
.creditpack.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); }
.creditpack b { font-size: 18px; } .creditpack span { font-size: 10px; color: var(--muted); text-transform: uppercase; } .creditpack em { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 600; }
.bigcost { font-size: 14px; margin: 4px 0 12px; } .bigcost b { font-size: 22px; color: var(--accent); }

/* connectors */
.connrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.connstatus { font-size: 11px; border-radius: 99px; padding: 2px 10px; border: 1px solid; white-space: nowrap; }
.connstatus.on { color: var(--ok); border-color: var(--ok); }
.connstatus.off { color: var(--muted); border-color: var(--border); }
.connstatus.bad { color: var(--danger); border-color: var(--danger); }
.connstatus.wait { color: #f5a623; border-color: #f5a623; }

/* RTL niceties for Arabic */
html[dir="rtl"] .mmgrouphead, html[dir="rtl"] .mmhead, html[dir="rtl"] .connrow { direction: rtl; }
html[dir="rtl"] .sidebar { border-right: none; border-left: 1px solid var(--border); }

/* ---------------- Top-bar alignment polish + new module pages ---------------- */
.brandtxt { gap: 4px; }                 /* more space between Elevate and the sub-line */
.brandtxt b { line-height: 1; }
.brandsub { margin-top: 1px; }
.searchwrap { margin-left: 10px; margin-right: auto; }  /* left-aligned next to the brand */
.topbar .userbox { flex: none; }
@media (max-width: 900px) { .searchwrap { margin: 0; } }

/* Microsoft Copilot + AIQ pages */
.cphero { display: flex; align-items: center; gap: 16px; background: linear-gradient(140deg, rgba(0,120,212,.16), var(--panel)); border: 1px solid #235a86; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.cpheroico { width: 46px; height: 46px; border-radius: 11px; background: #0078d4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.cplist { margin: 0; padding-left: 18px; } .cplist li { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 5px; }
.cpfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------------- Home page rebuild (matches WSP Elevate site) ---------------- */
.lp section { padding: 0 24px; }
.lpmods, .lpcaps, .lpvideo, .lpnews, .lpteam, .lpnext { max-width: 1180px; margin: 0 auto; padding-top: 90px; }
.lph2c { text-align: center; font-size: 40px; margin: 6px 0 14px; font-weight: 800; }
.lph2c span { color: var(--accent); }
.lpmodlead { text-align: center; max-width: 760px; margin: 0 auto 36px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lpmodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .lpmodgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .lpmodgrid { grid-template-columns: 1fr; } }
.lpcard { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; }
.lpcard:hover { transform: translateY(-3px); border-color: var(--accent); }
.lpcardart { position: relative; height: 150px; background-size: cover; background-position: center; }
.lpcardart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(10,10,14,.75)); }
.lpcardicon { position: absolute; left: 14px; bottom: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 10px; background: rgba(237,59,71,.92); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.lpcardstatus { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border-radius: 99px; padding: 3px 9px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.18); }
.lpcardstatus.live { color: #4fce8a; border-color: #4fce8a; }
.lpcardstatus.soon { color: #cbd1dc; }
.lpcardbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lpcatlabel { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.lpcardbody h3 { margin: 2px 0; font-size: 17px; }
.lpcardbody p { color: var(--muted); font-size: 12.5px; line-height: 1.5; flex: 1; margin: 0; }
.lpreq { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.lpreq.open { color: var(--accent); }

/* video */
.lpvideowrap { max-width: 880px; margin: 0 auto; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lpvideowrap iframe { width: 100%; height: 100%; display: block; }

/* news */
.lpnewsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .lpnewsgrid { grid-template-columns: 1fr; } }
.lpnewscard { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.lpnewscard:hover { border-color: var(--accent); }
.lpnewsart { height: 130px; background-size: cover; background-position: center; position: relative; }
.lpnewstag { position: absolute; left: 12px; top: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: rgba(237,59,71,.9); padding: 3px 9px; border-radius: 99px; }
.lpnewsbody { padding: 16px 18px; } .lpnewsbody h3 { margin: 0 0 6px; font-size: 16px; } .lpnewsbody p { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0 0 10px; }
.lpnewsdate { font-size: 11px; color: var(--accent); }

/* team */
.lpteamgroup { margin-bottom: 22px; } .lpteamgroup .lpeyebrow { margin-bottom: 12px; }
.lpteamrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 800px) { .lpteamrow { grid-template-columns: 1fr 1fr; } }
.lpteamcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 12px; }
.lpteamcard.lead { border-color: #3a2226; }
.lpteamav { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.lpteamcard b { font-size: 13px; } .lpteamcard small { color: var(--muted); font-size: 11px; }

/* CTA */
.lpctagrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto; }
@media (max-width: 700px) { .lpctagrid { grid-template-columns: 1fr; } }
.lpctacard { background: linear-gradient(160deg, rgba(237,59,71,.10), var(--panel)); border: 1px solid #3a2226; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lpctaico { width: 44px; height: 44px; border-radius: 11px; background: rgba(237,59,71,.16); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.lpctacard h3 { margin: 6px 0 0; font-size: 19px; } .lpctacard p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; flex: 1; }
.lpctacard button { margin-top: 10px; }

/* footer */
.lpfooter { max-width: 1180px; margin: 100px auto 0; padding: 36px 24px; border-top: 1px solid var(--border); }
.lpfbrand b { font-size: 22px; font-weight: 800; } .lpfbrand b span { color: var(--accent); }
.lpfbrand p { color: var(--muted); font-size: 12.5px; max-width: 620px; margin: 8px 0 28px; line-height: 1.6; }
.lpfcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; }
@media (max-width: 900px) { .lpfcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lpfcols { grid-template-columns: 1fr; } }
.lpfcol h4 { font-size: 12px; margin: 0 0 12px; color: var(--text); }
.lpfcol a { display: block; color: var(--muted); font-size: 12.5px; text-decoration: none; padding: 4px 0; }
.lpfcol a:hover { color: var(--accent); }
.lpfbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; }

.aememorybtn.on { color: var(--accent); border-color: var(--accent); }
.aemodelrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.lpteamav { background-size: cover; background-position: center; overflow: hidden; }
.lpteamav em { display: none; }
.lpcardgen { background-size: cover; }

/* ---------------- Home rebuild v2: circuit art + spacing ---------------- */
.lphero { padding: 90px 20px 70px; min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lpexec { max-width: 1080px; margin: 0 auto; padding: 100px 24px 0; }
.lpcardart { position: relative; height: 150px; overflow: hidden; }
.lpcircuit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lpcardart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,15,.85)); z-index: 1; }
.lpcardicon, .lpcardstatus { z-index: 2; }
/* consistent, generous section rhythm to match the reference */
.lpmods, .lpcaps, .lpvideo, .lpnews, .lpteam, .lpnext { padding-top: 110px; }
.lpfooter { margin-top: 110px; }
.lph2c { margin-bottom: 16px; }
.lpmodlead { margin-bottom: 44px; }
@media (max-width: 760px) { .lphero { min-height: 60vh; padding: 60px 16px 40px; } .lptitle { font-size: 64px; } .lph2c { font-size: 30px; } .lpmods, .lpcaps, .lpvideo, .lpnews, .lpteam, .lpnext { padding-top: 70px; } }

/* ---------------- Copilot agents (CMS + filters) ---------------- */
.cpfilters { flex-wrap: wrap; }
.cpagentgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cpagent { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--ac); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, border-color .12s; }
.cpagent:hover { transform: translateY(-2px); }
.cpagenttop { display: flex; align-items: center; gap: 8px; }
.cpagentico { width: 36px; height: 36px; border-radius: 9px; background: color-mix(in srgb, var(--ac) 18%, transparent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cpagenttag { margin-left: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid; border-radius: 99px; padding: 2px 9px; }
.cpdel { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.cpdel:hover { color: var(--danger); }
.cpagent h4 { margin: 4px 0 0; font-size: 15px; }
.cpagentby { font-size: 11.5px; color: var(--accent); }
.cpagent p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 2px 0 4px; flex: 1; }
.cpagentfoot { display: flex; gap: 8px; align-items: center; }
.mmstate.denied, .denied { color: var(--danger) !important; border-color: var(--danger) !important; }

/* center the Ask Elevate hero over the chat column (rail is ~304px on the right) */


/* library reference picker grid */
.libpickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }
button.libpickitem { background: var(--panel-2); padding: 0; text-align: left; }

/* ---------------- Ask Elevate v2: chat layout, typing, ratings ---------------- */
.aetoolbar { display: flex; gap: 8px; padding: 0 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.aimsg2 { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.aimsg2.user { justify-content: flex-end; }
.aimsg2 .aiav { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 18%, transparent); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.aimsg2 .bub { max-width: 80%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; line-height: 1.55; }
.aimsg2.user .bub { background: var(--accent); color: #fff; border-color: var(--accent); border-bottom-right-radius: 4px; }
.aimsg2.ai .bub { border-bottom-left-radius: 4px; }
.mdbody b { color: var(--text); } .mdbody .mdli { display: block; margin: 2px 0; }
.airate { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--border); }
.airbtn { background: none; border: 1px solid var(--border); border-radius: 7px; padding: 2px 7px; cursor: pointer; color: var(--muted); font-size: 12px; }
.airbtn:hover { border-color: var(--accent); color: var(--text); }
.airbtn.on { border-color: var(--accent); color: var(--accent); }
.typing { display: flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typedot 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typedot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.aemic.rec { color: var(--accent); border-color: var(--accent); animation: micpulse 1s infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(237,59,71,.4); } 50% { box-shadow: 0 0 0 5px rgba(237,59,71,0); } }
.visbadge { font-size: 10px; border: 1px solid; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }

/* ---------------- Mobile/iPad: Ask Elevate + assistant ---------------- */
@media (max-width: 900px) {
  .aetabs { overflow-x: auto; flex-wrap: nowrap; gap: 4px; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .aetabs button { white-space: nowrap; padding: 7px 12px; font-size: 12.5px; flex: none; }
  .aehead { padding: 12px 14px; }
  .aiform textarea.chatbox, .aiform .autogrow, .genpanel textarea.autogrow, .assist2 textarea.autogrow { min-height: 56px; font-size: 15px; }
  .aimsg2 .bub { max-width: 88%; }
  /* KB rail: compact, collapsible scroll so it doesn't overwhelm the small screen */
  .aekbrail { max-height: none; }
  .aekbrail .kbcard .kbraillist { max-height: 220px; }
  .m365srcs { grid-template-columns: 1fr 1fr; }
  .aewrap { max-width: 100%; }
}
@media (max-width: 600px) {
  .aiform textarea.chatbox { min-height: 64px; }
}

/* ---------------- Ask Elevate v3: toolbar KB select, expand, tooltips ---------------- */
.aewrap.wide { max-width: none; }
.aetoolbar { flex-wrap: wrap; align-items: center; }
.aekbsel { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: 4px; }
.aekbsellbl { font-size: 11px; color: var(--muted); }
.aekbchip { font-size: 11px; border: 1px solid var(--border); color: var(--text); background: var(--panel-2); border-radius: 99px; padding: 2px 9px; cursor: pointer; }
.aekbchip:hover { filter: brightness(1.15); }
.aekbdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.aekbchip.all { color: var(--muted); cursor: default; }
.aetoolbar .iconbtn2 { margin-left: auto; }
.aetoolbar .iconbtn2 + .iconbtn2 { margin-left: 0; }
.aeinfo { color: var(--muted); cursor: help; }
.kbcat .kbtick { color: var(--kc); margin-left: 2px; font-size: 11px; }
.kbcat.on { font-weight: 600; }

/* collapse the knowledge-base column → full-width chat */
.aechat2.norail { grid-template-columns: 1fr; }
.railcollapse { float: right; background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: 12px; padding: 0; }
.railcollapse:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Ask Elevate conversation audit + WSP LLM signals ---------------- */
.aeuserlist { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.aeuserrow { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--text); font-size: 12.5px; }
.aeuserrow:hover { border-color: var(--accent); }
.aeuserrow.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); }
.aelog { border: 1px solid var(--border); border-radius: 9px; margin-bottom: 7px; overflow: hidden; }
.aelog.up { border-left: 3px solid var(--ok); } .aelog.down { border-left: 3px solid var(--danger); }
.aeloghead { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; color: var(--text); padding: 9px 11px; cursor: pointer; text-align: left; }
.aelograte { font-size: 14px; width: 18px; text-align: center; }
.aelogchev { color: var(--muted); transition: transform .15s; }
.aelog.open .aelogchev { transform: rotate(90deg); }
.aelogbody { max-height: 0; overflow: hidden; transition: max-height .2s; padding: 0 12px; }
.aelog.open .aelogbody { max-height: 600px; padding: 0 12px 12px; overflow-y: auto; }
.aelogq { font-size: 13px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.aeloga { font-size: 13px; line-height: 1.55; color: var(--muted); }
.wsplbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }

/* ---------------- Ask Elevate: input options on one line + fill viewport ---------------- */
.aiform2 { flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.aiformopts { display: flex; align-items: center; gap: 6px; flex: none; }
.aiformopts .aemodelsel { max-width: 150px; font-size: 12px; padding: 7px 8px; }
.aiform2 textarea.chatbox { flex: 1; min-width: 180px; }
.aememorybtn.iconbtn.on { color: var(--accent); border-color: var(--accent); }

/* fill the viewport so the input sits at the bottom — no page scroll for the composer */
.aewrap.chatfit { display: flex; flex-direction: column; height: calc(100vh - 56px - 36px); }
.aewrap.chatfit .aehead { flex: none; }
.aewrap.chatfit #aeBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.aewrap.chatfit .aehero { flex: none; padding: 12px 10px 10px; }
.aewrap.chatfit .aehero h1 { font-size: 26px; }
.aewrap.chatfit .aehero p { font-size: 12.5px; margin-top: 4px; }
.aewrap.chatfit .aechat2 { flex: 1; min-height: 0; height: auto; }
.aewrap.chatfit .aicard { height: 100%; min-height: 0; }
@media (max-width: 900px) {
  .aewrap.chatfit { height: auto; }
  .aewrap.chatfit .aechat2 { height: auto; }
  .aiformopts .aemodelsel { max-width: 120px; }
}

/* ---------------- Home page CMS editor ---------------- */
.cmssec { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--panel); }
.cmssec > summary { padding: 12px 14px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 10px; list-style: none; }
.cmssec > summary::-webkit-details-marker { display: none; }
.cmssec > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.cmssec[open] > summary::before { transform: rotate(90deg); }
.cmssec > summary .hint { margin-left: auto; }
.cmssecbody { padding: 4px 14px 16px; border-top: 1px solid var(--border); }
.hcrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hcimg { width: 56px; height: 44px; border-radius: 8px; background: var(--panel-2) center/cover no-repeat; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.hcimg.round { width: 44px; border-radius: 50%; }
.hcrow input { margin-bottom: 6px; }
.hccol { display: flex; flex-direction: column; gap: 4px; flex: none; }

/* ---------------- Ask Elevate composer (Claude-style: big input, controls below) ---------------- */
.aecomposer { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-2); padding: 12px 12px 10px; transition: border-color .15s, box-shadow .15s; }
.aecomposer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.aecomposer textarea.autogrow { width: 100%; border: none; background: transparent; resize: none; outline: none; font-size: 15px; line-height: 1.5; min-height: 52px; max-height: 240px; padding: 4px 4px 0; color: var(--text); font-family: inherit; }
.aecomposer textarea.autogrow:focus { outline: none; border: none; }
.aecbar { display: flex; align-items: center; gap: 8px; }
.aecleft { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
.aecright { display: flex; align-items: center; gap: 6px; flex: none; }
.aecbar .aemodelsel { max-width: 170px; font-size: 12px; padding: 6px 8px; border-radius: 8px; }
.aecbar .iconbtn { width: 32px; height: 32px; }
.aecsend { border-radius: 10px; padding: 8px 16px; }
.aememorybtn.iconbtn.on { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) { .aecbar .aemodelsel { max-width: 130px; } .aecsend { padding: 8px 12px; } }

/* ---------------- Code Nest — AI app builder ---------------- */
.cnhero { display: flex; align-items: center; gap: 14px; background: linear-gradient(140deg, rgba(0,184,148,.16), var(--panel)); border: 1px solid #1f5a4d; border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.cnheroico { width: 46px; height: 46px; border-radius: 12px; background: #00b894; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.cnempty { text-align: center; padding: 50px 20px; border: 1px dashed var(--border); border-radius: 14px; }
.cnempty b { font-size: 18px; display: block; margin: 8px 0 4px; }
.cncard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, border-color .12s; }
.cncard:hover { transform: translateY(-2px); border-color: #00b894; }
.cncardtop { display: flex; align-items: center; justify-content: space-between; }
.cnicon { width: 34px; height: 34px; border-radius: 9px; background: rgba(0,184,148,.16); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cncard h4 { margin: 4px 0 0; font-size: 15px; }
/* editor */
.cnwrap { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 56px - 36px); }
.cnbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.cnname { font-size: 16px; font-weight: 600; background: transparent; border: 1px solid transparent; color: var(--text); padding: 6px 8px; border-radius: 8px; max-width: 280px; }
.cnname:hover, .cnname:focus { border-color: var(--border); background: var(--panel-2); }
.cnbar .aemodelsel { max-width: 170px; }
.cnenvtabs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cnenvtabs button { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 7px 14px; border-radius: 8px; font-size: 13px; }
.cnenvtabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.cnsplit { display: grid; grid-template-columns: 380px 1fr; gap: 14px; flex: 1; min-height: 0; }
@media (max-width: 1000px) { .cnsplit { grid-template-columns: 1fr; height: auto; } .cnwrap { height: auto; } }
.cnbuild { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.cnconvo { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.cnconvo-empty { margin: auto; text-align: center; max-width: 260px; color: var(--muted); }
.cnconvo-ic { font-size: 32px; display: block; margin-bottom: 8px; }
.cnconvo-empty b { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.cnmsg { display: flex; gap: 8px; }
.cnmsg.user { justify-content: flex-end; }
.cnmsg .cnbub { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.cnmsg.user .cnbub { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.cnmsg.ai .cnbub { background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cnmsg.ai .cnbub.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.cnmsg.ai .cnbub.warn { border-color: color-mix(in srgb, #f5a623 50%, var(--border)); }
.cnav { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.cnbuild .cnpromptbox { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.cnpromptbox { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.cnpromptbox textarea { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; color: var(--text); padding: 9px; resize: none; font-family: inherit; font-size: 13.5px; }
.cnrefchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cnpane { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #0a0a0f; }
.cnpanetabs { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--panel); }
.cnpanetabs button { background: transparent; border: 1px solid transparent; color: var(--muted); padding: 5px 12px; border-radius: 7px; font-size: 12.5px; }
.cnpanetabs button.on { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.cnpreview { flex: 1; width: 100%; border: none; background: #fff; }
.cncode { flex: 1; width: 100%; border: none; background: #0a0a0f; color: #d8d8e0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; padding: 12px; resize: none; outline: none; line-height: 1.5; }
.cnhelp ol { padding-left: 18px; } .cnhelp li { margin-bottom: 7px; font-size: 13px; line-height: 1.5; }

/* ---------------- Home redesign v3: real imagery, space, dynamic ---------------- */
/* scroll-reveal */
.lp .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.lp .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lp .reveal { opacity: 1 !important; transform: none !important; } }

/* more breathing room between sections */
.lpmods, .lpcaps, .lpvideo, .lpnews, .lpteam, .lpnext { padding-top: 150px; }
.lphero { min-height: 84vh; }
.lpexec { padding-top: 130px; gap: 64px; }
.lph2c { font-size: 44px; letter-spacing: -.02em; }
.lpmodlead { margin-bottom: 56px; }
.lpmodgrid { gap: 26px; }
.lpnewsgrid, .lpteamrow { gap: 24px; }

/* real-image module card art (zoom on hover, animated hero glow) */
.lpcardimg { background-size: cover; background-position: center; transition: transform .4s ease; }
.lpcard:hover .lpcardimg { transform: scale(1.06); }
.lpcard { transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s; }
.lpcard:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.lphero::before { animation: heroglow 9s ease-in-out infinite; }
@keyframes heroglow { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.lpcta { transition: transform .15s, box-shadow .15s; }
.lpcta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(237,59,71,.35); }

/* team: photos + role tag pill, group colours */
.lpteamcard { padding: 18px 14px; transition: transform .2s, border-color .2s; }
.lpteamcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.lpteamav { width: 54px; height: 54px; }
.lpteamcard b { font-size: 13.5px; margin-top: 2px; }
.lpteamcard small { min-height: 30px; }
.lpteamtag { margin-top: 8px; font-size: 10px; border-radius: 99px; padding: 2px 10px; border: 1px solid; }
.lpteamtag.lead { color: #f5c451; border-color: #f5c451; background: rgba(245,196,81,.1); }
.lpteamtag.own { color: #ed3b47; border-color: #ed3b47; background: rgba(237,59,71,.1); }
.lpteamtag.eng { color: #4a90d9; border-color: #4a90d9; background: rgba(74,144,217,.1); }
.lpteamgroup .lpeyebrow { text-align: left; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 16px; }
@media (max-width: 760px) { .lpmods, .lpcaps, .lpvideo, .lpnews, .lpteam, .lpnext { padding-top: 90px; } .lpexec { padding-top: 90px; gap: 32px; } .lph2c { font-size: 30px; } }

/* ---------- Sidebar reorder ---------- */
.navreorderbtn { font-size: 10px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 99px; background: transparent; color: var(--muted); margin-left: 6px; cursor: pointer; transition: all .15s; }
.navreorderbtn:hover { color: var(--text); border-color: var(--accent); }
.navreorderbtn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.draghandle { margin-left: auto; color: var(--muted); cursor: grab; font-size: 13px; padding-left: 6px; }
.enav.reordering .emod { cursor: grab; border: 1px dashed var(--border); }
.enav.reordering .emod:hover { border-color: var(--accent); background: var(--panel-2); }
.enav.reordering .emod.dragging { opacity: .4; }
.enav.reordering .emod.dragover { border-color: var(--accent) !important; border-style: solid; }

/* ---------- Code Nest build indicator ---------- */
.cnbuilding { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; font-size: 12px; }
.cnbuilding::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); animation: cnpulse 1s infinite; }
@keyframes cnpulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* ---------- Prompt Library ---------- */
.plhero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel)); margin-bottom: 16px; }
.plheroico { font-size: 38px; line-height: 1; }
.plcats { flex-wrap: wrap; border: none; gap: 6px; margin: 4px 0 14px; }
.plcats button { border: 1px solid var(--border); border-radius: 99px; padding: 5px 12px; font-size: 12px; }
.plcats button.on { border-color: var(--accent); }
.plgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.plcard { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); transition: border-color .15s, transform .15s; }
.plcard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateY(-2px); }
.plcardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plcat { font-size: 10px; font-weight: 600; color: var(--muted); }
.plcard h4 { margin: 0; font-size: 13.5px; line-height: 1.25; }
.pldesc { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.plprompt { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; max-height: 150px; overflow: auto; }
.plprompt pre { margin: 0; padding: 11px 12px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.pltags { display: flex; flex-wrap: wrap; gap: 5px; }
.pltag { font-size: 10.5px; color: var(--muted); background: var(--panel-2); border-radius: 99px; padding: 2px 8px; }
.plfoot { display: flex; align-items: center; gap: 7px; margin-top: 2px; flex-wrap: wrap; }
/* Prominent upvote control — clearly a clickable vote pill, not a label. */
.plvote { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1; min-width: 38px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2, var(--bg)); color: var(--muted); cursor: pointer; transition: all .12s; }
.plvote:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.plvote b { font-size: 14px; font-weight: 700; }
.plvote::after { content: 'vote'; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.plvote.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--accent); }
.plvote.on::after { content: 'voted'; }
button.sm { font-size: 11px; padding: 4px 10px; }
/* Compact card: clickable, no inline prompt dump. */
.plcard[data-action] { cursor: pointer; }
.plcard .pldesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plvar { font-size: 10.5px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 99px; padding: 2px 8px; font-weight: 600; }
/* Detail / Use modal */
.pldetail { max-width: 640px; width: min(640px, 94vw); max-height: 88vh; overflow: auto; }
.pldethead { display: flex; align-items: center; gap: 10px; }
.iconbtn { background: transparent; border: 1px solid var(--border); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--muted); }
.iconbtn:hover { color: var(--text); border-color: var(--accent); }
.plfill { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.plfillgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.plfillgrid .f { margin: 0; }
.plpreview { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 0; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 320px; overflow: auto; }
.pltoken { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); border-radius: 4px; padding: 0 3px; font-style: normal; }
@media (max-width: 640px) { .plgrid { grid-template-columns: 1fr; } .plhero { flex-direction: column; text-align: center; } .plfillgrid { grid-template-columns: 1fr; } }

/* ---------- Home: more breathing room + team one line per group ---------- */
.lp .lpmods, .lp .lpcaps, .lp .lpvideo, .lp .lpnews, .lp .lpteam, .lp .lpnext { padding-top: 200px; }
.lp .lpexec { padding-top: 150px; }
.lp .lpteamgroup { margin-bottom: 40px; }
.lp .lpteamgroup:last-child { margin-bottom: 0; }
/* Tidy auto-flowing grid — small groups sit on one row, larger groups (module
   owners) wrap cleanly into multiple rows instead of cramming. */
.lp .lpteamrow { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; align-items: stretch; }
.lp .lpteamcard { padding: 14px 12px; }
.lp .lpteamav { width: 56px; height: 56px; }
.lp .lpteamcard small { min-height: 0; }
@media (max-width: 820px) {
  .lp .lpteamrow { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .lp .lpmods, .lp .lpcaps, .lp .lpvideo, .lp .lpnews, .lp .lpteam, .lp .lpnext { padding-top: 120px; }
  .lp .lpexec { padding-top: 100px; }
}
@media (max-width: 460px) { .lp .lpteamrow { grid-template-columns: 1fr 1fr; } }

/* ---------- Genie archetypes / templates ---------- */
.refbig.tpl { border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.refbig.tpl:hover { border-color: var(--accent); }
.tplsave { color: var(--muted); }
.tplcat:first-child .lbl { margin-top: 0 !important; }
.tplgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpltile { position: relative; display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; cursor: pointer; transition: border-color .15s, transform .12s; }
.tpltile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tplicon { font-size: 22px; line-height: 1; flex: none; }
.tpltxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tpltxt b { font-size: 13px; line-height: 1.25; }
.tpltxt small { font-size: 10.5px; color: var(--muted); }
.tpltxt em { font-size: 10.5px; color: var(--muted); font-style: normal; opacity: .85; margin-top: 2px; }
.tplbadge { position: absolute; top: 8px; right: 8px; font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 1px 6px; }
.tpldel { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); font-size: 12px; }
.tpldel:hover { background: var(--panel-2); color: var(--danger); }
@media (max-width: 560px) { .tplgrid { grid-template-columns: 1fr; } }

/* ---------- Translation Hub: files + side-by-side + glossary ---------- */
.txmode { width: fit-content; }
.txfileinfo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.txfileic { font-size: 24px; }
.txpreview { font-size: 12px; line-height: 1.5; color: var(--muted); white-space: pre-wrap; max-height: 220px; overflow: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-top: 6px; }
.txpair { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 14px; background: var(--panel); }
.txpairhead { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.txcols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.txcollbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.txcol textarea { width: 100%; min-height: 200px; resize: vertical; font-size: 13px; line-height: 1.55; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; background: var(--bg); color: var(--text); font-family: inherit; }
.txorig { background: var(--panel-2) !important; color: var(--muted) !important; }
.txout:focus { border-color: var(--accent); outline: none; }
.txrefine { display: flex; gap: 8px; margin-top: 10px; }
.txrefinein { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 12.5px; }
.txrefinein:focus { border-color: var(--accent); outline: none; }
.glrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.glrow input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 12.5px; }
@media (max-width: 760px) { .txcols { grid-template-columns: 1fr; } .glrow { flex-wrap: wrap; } }

/* ---------- Conversational Analytics (AIQ) rebuild ---------- */
.aiqwrap { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.aiqside { position: sticky; top: 12px; }
.aiqsidebtn { width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); margin-bottom: 8px; cursor: pointer; }
.aiqsidebtn:hover { border-color: var(--accent); }
.aiqsesh { display: flex; flex-direction: column; gap: 4px; }
.aiqseshitem { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.aiqseshitem:hover { background: var(--panel-2); }
.aiqseshitem.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.aiqseshitem b { font-size: 12.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiqseshitem small { font-size: 10px; color: var(--muted); }
.aiqseshdel { margin-left: auto; color: var(--muted); font-size: 11px; }
.wizard { max-width: 760px; }
.wizstep { margin-bottom: 18px; }
.wizq { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.wizopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.wizopt { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); cursor: pointer; text-align: left; transition: border-color .15s, transform .12s; }
.wizopt:hover { border-color: var(--accent); transform: translateY(-1px); }
.wizopt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wizopt .wico { font-size: 20px; }
.wizopt b { font-size: 13px; }
.wizopt small { font-size: 10.5px; color: var(--muted); display: block; }
.wizdrop { border: 1.5px dashed var(--border); border-radius: 14px; padding: 28px; text-align: center; cursor: pointer; transition: border-color .15s; }
.wizdrop:hover { border-color: var(--accent); }
.wizdrop.has { border-style: solid; }
.aiqmetrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.aiqmetric { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--panel); border-left: 3px solid var(--xc, var(--accent)); }
.aiqmetric b { font-size: 22px; display: block; line-height: 1.1; }
.aiqmetric span { font-size: 11px; color: var(--muted); }
.aiqmetric .trend { font-size: 11px; font-weight: 600; }
.aiqinsight { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.aiqinsight:last-child { border-bottom: none; }
.aiqaction { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; }
.aiqprio { font-size: 9px; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; border: 1px solid; flex: none; margin-top: 2px; }
.aiqprio.high { color: var(--danger); border-color: var(--danger); }
.aiqprio.medium { color: #f5a623; border-color: #f5a623; }
.aiqprio.low { color: var(--muted); border-color: var(--border); }
@media (max-width: 860px) { .aiqwrap { grid-template-columns: 1fr; } .aiqside { position: static; } }

/* ---------- Template picker (redesigned, roomier) ---------- */
.tplpicker { max-height: 64vh; overflow-y: auto; padding-right: 4px; margin-top: 6px; }
.tplcat { margin-bottom: 16px; }
.tplcathd { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 10px; }
.tplgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpltile2 { position: relative; display: flex; flex-direction: column; gap: 9px; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 14px; cursor: pointer; transition: border-color .15s, transform .12s, box-shadow .15s; }
.tpltile2:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.tpltop { display: flex; align-items: center; gap: 11px; }
.tpltile2 .tplicon { font-size: 26px; line-height: 1; flex: none; }
.tplhd { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.tplhd b { font-size: 14px; line-height: 1.2; }
.tplby { font-size: 10px; color: var(--muted); }
.tplbrief { font-size: 12px; line-height: 1.45; color: var(--text); opacity: .8; background: var(--bg); border-radius: 8px; padding: 8px 10px; border: 1px solid var(--border); }
.tplchips { display: flex; flex-wrap: wrap; gap: 5px; }
.tplchip { font-size: 10.5px; color: var(--text); background: var(--panel-2); border-radius: 7px; padding: 3px 8px; line-height: 1.3; }
.tplchip i { color: var(--muted); font-style: normal; margin-right: 3px; }
.tplchip.kind { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 600; }
.tplload { font-size: 11.5px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.tpltile2 .tpldel { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); }
.tpltile2 .tpldel:hover { background: var(--panel-2); color: var(--danger); }
.tpltile2 .tplbadge { position: absolute; top: 10px; right: 10px; font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 1px 6px; }
@media (max-width: 640px) { .tplgrid2 { grid-template-columns: 1fr; } }

/* ===================== Home redesign ===================== */
.lp { position: relative; }
.lp > section, .lp > .lpfooter { position: relative; z-index: 1; }
/* Animated AI background */
.lpbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lpbg #lpNet { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.lpbg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.lpbg .lpbg1 { width: 520px; height: 520px; top: -120px; left: -80px; background: radial-gradient(circle, rgba(237,59,71,.45), transparent 70%); animation: lpfloat1 18s ease-in-out infinite; }
.lpbg .lpbg2 { width: 460px; height: 460px; top: 30%; right: -120px; background: radial-gradient(circle, rgba(74,144,217,.30), transparent 70%); animation: lpfloat2 22s ease-in-out infinite; }
.lpbg .lpbg3 { width: 420px; height: 420px; bottom: 8%; left: 20%; background: radial-gradient(circle, rgba(155,89,182,.28), transparent 70%); animation: lpfloat3 26s ease-in-out infinite; }
@keyframes lpfloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.15); } }
@keyframes lpfloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,40px) scale(1.1); } }
@keyframes lpfloat3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-60px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .lpbg span, .lpbg #lpNet { animation: none; } }

/* Compact module grid */
.lpmodgrid.compact { grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 14px; }
.lpmodgrid.compact .lpcard { border-radius: 13px; }
.lpmodgrid.compact .lpcardart { height: 116px; }
.lpmodgrid.compact .lpcardbody { padding: 12px 13px 13px; }
.lpmodgrid.compact .lpcardbody h3 { font-size: 14.5px; margin: 3px 0; }
.lpmodgrid.compact .lpcardbody p { font-size: 11.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lpmodgrid.compact .lpcardicon { width: 34px; height: 34px; font-size: 17px; }
.lpmodgrid.compact .lpcatlabel { font-size: 9.5px; }
.lpmodgrid.compact .lpreq { font-size: 11.5px; }

/* Capabilities — redesigned 01/02/03 + in-place fade */
.lpcapitem { display: flex; align-items: center; gap: 11px; }
.lpcapnumsm { font-size: 13px; font-weight: 800; color: var(--muted); min-width: 24px; font-variant-numeric: tabular-nums; }
.lpcapitem.on .lpcapnumsm { color: var(--accent); }
.lpcaptxt { display: flex; flex-direction: column; min-width: 0; }
.lpcapnum { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.lpcapnum span { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.capfade { animation: capfadein .35s ease; }
@keyframes capfadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Video carousel */
.lpvidcarousel { position: relative; max-width: 900px; margin: 0 auto; }
.lpvidnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.2); font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.lpvidnav:hover { background: var(--accent); border-color: var(--accent); }
.lpvidnav.prev { left: -10px; } .lpvidnav.next { right: -10px; }
.lpviddots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.lpviddot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: background .15s, transform .15s; }
.lpviddot.on { background: var(--accent); transform: scale(1.25); }
.lpvidtitle { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 760px) { .lpvidnav.prev { left: 2px; } .lpvidnav.next { right: 2px; } }

/* News + person modals */
.newsmodal .newsmodalart, .newsmodalart { height: 200px; border-radius: 12px; background-size: cover; background-position: center; position: relative; }
.newsmodal .lpnewstag { position: absolute; top: 12px; left: 12px; }
.personmodal { text-align: center; }
.personav { display: block; width: 110px; height: 110px; border-radius: 50%; margin: 0 auto; background-size: cover; background-position: center; background-color: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.personav em { font-style: normal; font-size: 34px; font-weight: 700; color: var(--muted); }

/* ===================== Marketing & Media ===================== */
.mkthero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel)); margin-bottom: 16px; }
.mktheroico { font-size: 36px; }
.mktgrid { display: grid; grid-template-columns: 420px 1fr; gap: 16px; align-items: start; }
.mktleft { position: sticky; top: 12px; }
.mktformats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mktfmt { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); cursor: pointer; transition: border-color .15s, transform .12s; }
.mktfmt:hover { border-color: var(--accent); transform: translateY(-1px); }
.mktfmt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mktfmtico { font-size: 19px; }
.mktfmt b { font-size: 12.5px; }
.mktfmt small { font-size: 10px; color: var(--muted); }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.mktright .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mktright .card { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; cursor: pointer; background: var(--panel); transition: border-color .15s, transform .12s; }
.mktright .card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cardmedia { aspect-ratio: 1/1; background: var(--bg); }
.cardmedia img, .cardmedia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cardmeta { padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.cardmeta b { font-size: 12px; }
@media (max-width: 900px) { .mktgrid { grid-template-columns: 1fr; } .mktleft { position: static; } .mktformats { grid-template-columns: 1fr 1fr; } }

/* Ask Elevate generated media */
.aemedia { margin-top: 8px; }
.aemedia img, .aemedia video { max-width: 100%; border-radius: 10px; display: block; border: 1px solid var(--border); }
.chip.chipgen { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--accent); }

/* ===================== Home: brand font + footer polish ===================== */
/* WSP-style brand typography on the landing page (Archivo display + Inter body).
   Swap to the licensed WSP font by dropping its woff2 in and changing these names. */
.lp, .lp p, .lp a, .lp small, .lp span, .lp button, .lp h1, .lp h2, .lp h3, .lp h4 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.lp .lptitle, .lp .lph2c, .lp .lpeyebrow, .lp .lpcapnum, .lp .lpfbrand b, .lp .lpsub, .lp .aiqmetric b, .lp .exstat b { font-family: 'Archivo', 'Inter', sans-serif; letter-spacing: -.01em; }
.lp .lptitle { font-weight: 900; }
.lp .lph2c { font-weight: 800; }

/* Footer redesign — brand block beside tidy icon columns */
.lpfooter { margin-top: 120px; border-top: 1px solid var(--border); padding: 40px 24px 24px; max-width: 1180px; margin-left: auto; margin-right: auto; }
.lpftop { display: grid; grid-template-columns: 1.3fr 3fr; gap: 32px; align-items: start; }
.lpfbrand b { font-size: 26px; font-weight: 900; } .lpfbrand b span { color: var(--accent); }
.lpfbrand p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 12px; max-width: 320px; }
.lpfcontact { font-size: 13px; } .lpfcontact a { color: var(--accent); text-decoration: none; }
.lpfcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.lpfcol h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0 0 10px; color: var(--text); }
.lpfico { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lpflinks { display: flex; flex-direction: column; gap: 7px; }
.lpfcol a { color: var(--muted); font-size: 12.5px; text-decoration: none; transition: color .12s; }
.lpfcol a:hover { color: var(--accent); }
.lpfbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
@media (max-width: 860px) { .lpftop { grid-template-columns: 1fr; gap: 24px; } .lpfcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lpfcols { grid-template-columns: 1fr; } }

/* ===================== Footer — card grid (matches reference) ===================== */
.lp .lpfooter { max-width: 1180px; margin: 120px auto 0; padding: 40px 24px 22px; border-top: 1px solid var(--border); }
.lpfhead { margin-bottom: 26px; }
.lpfbrandline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.lpflogo { font-size: 22px; font-weight: 900; letter-spacing: -.01em; color: var(--text); }
.lpflogo span { color: var(--accent); }
.lpftag { color: var(--text); font-size: 13.5px; opacity: .92; }
.lpfsub { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.lpfgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lpfcard { border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--panel) 60%, transparent); padding: 18px 20px; transition: border-color .15s; }
.lpfcard:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.lpfcard h4 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.lpfico { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.lpflinks { display: flex; flex-direction: column; gap: 9px; }
.lpfcard a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .12s; width: fit-content; }
.lpfcard a:hover { color: var(--accent); }
.lpfbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }
.lpfbar a { color: var(--accent); text-decoration: none; }
@media (max-width: 900px) { .lp .lpfgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp .lpfgrid { grid-template-columns: 1fr; } }

/* ===================== Home modules — filterable, compact browser ===================== */
.lpmodfilters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 920px; margin: 0 auto 22px; }
.lpmodchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--panel); color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all .15s; }
.lpmodchip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lpmodchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lpmodn { font-size: 10.5px; background: rgba(255,255,255,.14); border-radius: 99px; padding: 0 6px; min-width: 16px; text-align: center; }
.lpmodchip:not(.on) .lpmodn { background: var(--panel-2); }
.lpmodgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; max-width: 1100px; margin: 0 auto; }
/* New design: category-colour left accent + lift, denser grid. */
.lpmc { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px 12px 16px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 8%, var(--panel)), var(--panel) 70%); cursor: pointer; overflow: hidden; transition: border-color .15s, transform .12s, box-shadow .12s; }
.lpmc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cc); }
.lpmc:hover { border-color: var(--cc); transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--cc) 16%, transparent); }
.lpmc-thumb { width: 52px; height: 52px; border-radius: 11px; flex: none; background-size: cover; background-position: center; background-color: var(--panel-2); }
.lpmc-ic { display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.lpmc-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lpmc-top { display: flex; align-items: center; gap: 7px; }
.lpmc-top b { font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpmc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.lpmc-dot.live { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.lpmc-dot.soon { background: var(--muted); }
.lpmc-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpmc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.lpmc-cat { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpmc-cta { font-size: 11.5px; font-weight: 600; color: var(--muted); flex: none; }
.lpmc.avail .lpmc-cta { color: var(--accent); }
.lpmc:hover .lpmc-cta { color: var(--accent); }
@media (max-width: 700px) { .lpmodgrid2 { grid-template-columns: 1fr; } }

/* Footer cards — a touch more contained per reference */
.lpfcard { border-color: var(--border); background: color-mix(in srgb, var(--panel) 75%, transparent); }

/* ===================== Hero splash — more impact + entrance animation ===================== */
.lp .lptitle { font-size: clamp(72px, 10vw, 132px); line-height: .95; text-shadow: 0 0 60px rgba(237,59,71,.18); }
.lp .lpsub { font-size: clamp(20px, 2.4vw, 28px); }
.lp .lplead { font-size: 15.5px; }
.lp .lphero { padding-top: 80px; }

/* staggered entrance on load */
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heroPop { from { opacity: 0; transform: translateY(26px) scale(.93); } to { opacity: 1; transform: none; } }
.lp .lphero > * { opacity: 0; animation: heroUp .8s cubic-bezier(.2,.75,.2,1) forwards; }
.lp .lphero .lppill { animation-delay: .05s; }
.lp .lphero .lptitle { animation: heroFade .9s ease forwards .15s, titleBreathe 6s ease-in-out 1.4s infinite; }
@keyframes heroFade { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
@keyframes titleBreathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.015); } }
.lp .lphero .lpsub { animation-delay: .36s; }
.lp .lphero .lplead { animation-delay: .48s; }
.lp .lphero .lpannounce { animation-delay: .56s; }
.lp .lphero .lpcta { animation-delay: .62s; }
.lp .lphero .lpstats { animation-delay: .74s; }

/* glowing, living wordmark + one-time sheen sweep */
.lp .lptitle span { color: var(--accent); animation: titleGlow 3.4s ease-in-out infinite 1.1s; }
@keyframes titleGlow { 0%,100% { text-shadow: 0 0 20px rgba(237,59,71,.45); } 50% { text-shadow: 0 0 40px rgba(237,59,71,.85), 0 0 80px rgba(237,59,71,.35); } }
.lp .lptitle { position: relative; }
.lp .lptitle::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; mix-blend-mode: screen; pointer-events: none; animation: titleSheen 5.5s ease-in-out 1.2s infinite; }
@keyframes titleSheen { 0% { background-position: 160% 0; } 28%,100% { background-position: -60% 0; } }

/* animated pill dot pulse + glow ring */
.lp .lppill { box-shadow: 0 0 0 0 rgba(237,59,71,.25); animation: heroUp .8s cubic-bezier(.2,.75,.2,1) forwards, pillRing 3s ease-in-out 1s infinite; }
@keyframes pillRing { 0%,100% { box-shadow: 0 0 0 0 rgba(237,59,71,0); } 50% { box-shadow: 0 0 26px 0 rgba(237,59,71,.18); } }
.lp .lpdot { animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* stronger, breathing background glow behind the hero */
.lp .lphero::before { background: radial-gradient(ellipse 62% 54% at 50% 42%, rgba(237,59,71,.20), transparent 70%); }

/* cta shine */
.lp .lphero .lpcta { position: relative; overflow: hidden; }
.lp .lphero .lpcta::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: ctaShine 4.5s ease-in-out 1.6s infinite; }
@keyframes ctaShine { 0% { left: -120%; } 22%,100% { left: 160%; } }

@media (prefers-reduced-motion: reduce) {
  .lp .lphero > *, .lp .lptitle, .lp .lppill { animation: none !important; opacity: 1 !important; }
  .lp .lptitle::after, .lp .lphero .lpcta::after { display: none; }
}

/* ===================== Compute IQ — redesigned ===================== */
.computewrap { max-width: 920px; }
.cphero2 { text-align: center; padding: 8px 0 18px; }
.cphero2ico { font-size: 40px; display: inline-block; }
.cphero2 h2 { font-size: 30px; margin: 8px 0 6px; font-weight: 800; }
.cphero2 h2 span { color: var(--accent); }
.cphero2 p { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 620px; margin: 0 auto; }
.cphero2 p b { color: var(--text); }
.cpbar2 { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--border); border-radius: 14px; padding: 8px 8px 8px 14px; margin-top: 6px; transition: border-color .15s, box-shadow .15s; }
.cpbar2:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.cpbarico { font-size: 18px; flex: none; }
.cpbar2 input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 0; }
.cpbar2 .primary { flex: none; padding: 10px 18px; border-radius: 10px; }
.cppalette { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.cpsym { font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); cursor: pointer; font-family: ui-monospace, Menlo, monospace; transition: all .12s; }
.cpsym:hover { border-color: var(--accent); color: var(--accent); }
.cpquickwrap { margin: 18px 0 6px; }
.cpquicklabel { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.cpquick { display: flex; flex-wrap: wrap; gap: 7px; }
.cpchip { font-size: 12.5px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--panel); color: var(--text); cursor: pointer; font-family: ui-monospace, Menlo, monospace; transition: all .12s; }
.cpchip:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cptools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 20px 0; }
.cptoolcard { border: 1px solid var(--border); border-radius: 13px; padding: 14px 16px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.cptoolcard h4 { margin: 0 0 10px; font-size: 13.5px; }
.cptoolegs { display: flex; flex-direction: column; gap: 6px; }
.cptoolegs .cpeg, .cpsubegs .cpeg { text-align: left; width: 100%; }
.cpeg { font-size: 12px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); cursor: pointer; font-family: ui-monospace, Menlo, monospace; transition: all .12s; }
.cpeg:hover { border-color: var(--accent); color: var(--accent); }
.cpbrowse { margin-top: 8px; border: 1px solid var(--border); border-radius: 13px; padding: 4px 16px; background: color-mix(in srgb, var(--panel) 50%, transparent); }
.cpbrowse > summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; list-style: none; }
.cpbrowse > summary::-webkit-details-marker { display: none; }
.cpbrowse[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.cpsubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.cpsubcard { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--panel); }
.cpsubcard h4 { margin: 0 0 4px; font-size: 14px; }
.cpsubegs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
@media (max-width: 640px) { .cpbar2 input { font-size: 15px; } .cptools { grid-template-columns: 1fr; } }

/* ===================== Super Admin → Developer hub ===================== */
.devreadygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.devready { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: 11px; padding: 12px 14px; background: var(--panel); }
.devready.ok { border-left-color: var(--ok); }
.devready.todo { border-left-color: #f5a623; }
.devreadyico { font-size: 16px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; }
.devready.ok .devreadyico { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.devready.todo .devreadyico { color: #f5a623; background: color-mix(in srgb, #f5a623 16%, transparent); }
.devready b { font-size: 13px; } .devready small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 1px; }
.devenvtags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.devenvtag { font-size: 9px; font-family: ui-monospace, Menlo, monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); }
.devenvtag.set { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.devarch { display: flex; flex-direction: column; gap: 6px; }
.devarchrow { display: grid; grid-template-columns: 30px 1.1fr 2fr; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.devarchic { font-size: 18px; }
.devarchtx b { font-size: 13px; } .devarchtx small { display: block; color: var(--muted); font-size: 10.5px; font-family: ui-monospace, Menlo, monospace; }
.devarcharrow { font-size: 12px; color: var(--accent); }
.devsec { border: 1px solid var(--border); border-radius: 11px; margin-bottom: 10px; overflow: hidden; background: color-mix(in srgb, var(--panel) 55%, transparent); }
.devsec > summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.devsec > summary::-webkit-details-marker { display: none; }
.devsec > summary small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; margin-top: 1px; }
.devnum { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.devsec[open] > summary { border-bottom: 1px solid var(--border); }
.devsecbody { padding: 12px 16px 16px; }
.devlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.devlist li { font-size: 13px; line-height: 1.55; }
.devlist code, .devsecbody code, .utable code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.devlabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 6px; }
.devcode { position: relative; }
.devcode pre { background: #0a0a0f; color: #d8d8e0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px; overflow-x: auto; white-space: pre; margin: 0; }
.devcopy { position: absolute; top: 8px; right: 8px; font-size: 11px; background: var(--panel-2); border: 1px solid var(--border); }
.devenvtable td:first-child { white-space: nowrap; }
@media (max-width: 700px) { .devarchrow { grid-template-columns: 26px 1fr; } .devarcharrow { grid-column: 1 / -1; padding-left: 38px; } }

/* ===================== Site Diary ===================== */
.sdwrap { max-width: 920px; }
.sdtopbar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 18px; }
.sdbrand { display: flex; align-items: center; gap: 9px; font-weight: 800; } .sdlogo { font-size: 20px; }
.sdnav { display: flex; gap: 6px; margin-left: auto; }
.sdnav button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sdnav button:hover { color: var(--text); }
.sdnav button.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.sdtitle { font-size: 26px; font-weight: 800; margin: 0 0 2px; }
.sdcard { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.sdlbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.sdwrap .f { margin-bottom: 14px; }
.sdwrap select, .sdwrap input[type=date], .sdwrap input[type=text], .sdwrap input:not([type]), .sdwrap textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; color: var(--text); padding: 11px 12px; font-size: 14px; font-family: inherit; }
.sdwrap select:focus, .sdwrap input:focus, .sdwrap textarea:focus { border-color: var(--accent); outline: none; }
.sdkw { display: flex; flex-wrap: wrap; gap: 7px; }
.sdkwchip { font-size: 12px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--panel-2); color: var(--muted); cursor: pointer; transition: all .12s; }
.sdkwchip:hover { color: var(--text); border-color: var(--accent); }
.sdkwchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sdfollow { display: flex; align-items: center; gap: 12px; justify-content: space-between; border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; margin: 16px 0; }
.sdrecbtn { width: 100%; padding: 15px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sdrecstage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 20px; }
.sdmic { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px; border: none; cursor: pointer; box-shadow: 0 8px 30px rgba(237,59,71,.35); transition: transform .15s; }
.sdmic:hover { transform: scale(1.05); }
.sdmic.on { animation: sdpulse 1.3s ease-in-out infinite; }
@keyframes sdpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(237,59,71,.5); } 50% { box-shadow: 0 0 0 16px rgba(237,59,71,0); } }
.sdrecstatus { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.sddot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: sdpulse 1s infinite; }
.sdentryhead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sdentryactions { display: flex; gap: 8px; flex: none; }
.sdstatus { font-size: 11px; font-weight: 600; border-radius: 99px; padding: 2px 9px; border: 1px solid; vertical-align: middle; margin-left: 6px; }
.sdstatus.approved { color: var(--ok); border-color: var(--ok); }
.sdstatus.pending { color: #f5a623; border-color: #f5a623; }
.sdstatus.follow { color: var(--accent); border-color: var(--accent); }
.sdmeta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sdkv { display: flex; flex-direction: column; gap: 3px; }
.sdkv span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sdkv b { font-size: 13.5px; font-weight: 600; }
.sdclass { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.sdclass.warn { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.sdclass.info { color: #4a90d9; border-color: #4a90d9; }
.sdsec { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.sdblock { margin-bottom: 12px; } .sdblock:last-child { margin-bottom: 0; }
.sdblbl { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.sdblock p { margin: 0; line-height: 1.6; font-size: 14px; }
.sdtranscript { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; margin: 0; }
.sdloglist { display: flex; flex-direction: column; gap: 10px; }
.sdlogcard { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .12s; }
.sdlogcard:hover { border-color: var(--accent); }
.sdlogmain { flex: 1; min-width: 0; }
.sdlogtop b { font-size: 14.5px; }
.sdlogkw { font-size: 11px; color: var(--muted); margin-left: 8px; }
.sdlogright { display: flex; align-items: center; gap: 8px; flex: none; }
.sdchev { color: var(--muted); font-size: 18px; }
.sdstack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--panel-2); margin-bottom: 10px; }
.sdstack span { display: block; height: 100%; }
.sdlegend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.sdlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
@media (max-width: 700px) { .sdmeta { grid-template-columns: 1fr 1fr; } .sdentryhead { flex-wrap: wrap; } .sdnav button { padding: 6px 9px; font-size: 12px; } }

/* ===================== Connectors — credential editor ===================== */
.conncfggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.conncfg { border: 1px solid var(--border); border-radius: 13px; padding: 16px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.conncfghead { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.conncfgico { font-size: 22px; }
.conncfghead b { font-size: 14px; }
.conncfgfields { display: flex; flex-direction: column; gap: 10px; }
.conncfgfields .f { margin: 0; }
.conncfgfields .lbl { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.conncfgfields input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 11px; font-size: 13px; font-family: ui-monospace, Menlo, monospace; }
.conncfgfields input:focus { border-color: var(--accent); outline: none; }
.conncfgactions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.conncfgresult { font-size: 12px; }
.conncfgresult.ok { color: var(--ok); }
.conncfgresult.err { color: var(--danger); }
@media (max-width: 760px) { .conncfggrid { grid-template-columns: 1fr; } }

/* ===================== WSP LLM — built-out curation ===================== */
.wspver { font-size: 12px; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 9px; vertical-align: middle; margin-left: 6px; font-weight: 700; }
.wsprow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.wsprow input, .wsprow select { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; font-size: 12.5px; }
.wsprow .wp-name, .wsprow .wg-term { flex: 0 0 30%; }
.wsprow .wp-domain, .wsprow .wg-def { flex: 1; }
.wsprow .wp-status { flex: 0 0 110px; }
.wspground { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.wspgchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; border: 1px solid var(--border); border-radius: 99px; padding: 5px 12px; cursor: pointer; white-space: nowrap; max-width: 100%; }
.wspgchip span, .wspgchip { line-height: 1.2; }
.wspgchip input { flex: none; margin: 0; accent-color: var(--accent); }
.wspgchip:hover { border-color: var(--accent); }
.wspgchip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }
.wsplbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.wsptestcard { background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; margin-top: 10px; }
.wsptestcard .mdbody { font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .wsprow { flex-wrap: wrap; } .wsprow .wp-name, .wsprow .wg-term, .wsprow .wp-status { flex: 1 1 100%; } }

/* ===================== Video carousel (multi) + FAQ videos ===================== */
.lpvidmain { position: relative; max-width: 900px; margin: 0 auto; }
.lpvidrail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; max-width: 980px; margin: 14px auto 0; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.lpvidthumb { position: relative; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; cursor: pointer; background: var(--panel-2); padding: 0; aspect-ratio: 16/9; scroll-snap-align: start; transition: border-color .15s, transform .12s; }
.lpvidthumb:hover { transform: translateY(-2px); border-color: var(--accent); }
.lpvidthumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.lpvidthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpvidthumbvid { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 26px; }
.lpvidplay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.lpvidthumb.on .lpvidplay { background: var(--accent); }
.lpvidthumbt { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 14px 8px 6px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faqvideo { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin: 0 0 14px; border: 1px solid var(--border); background: #000; }
.faqvideo iframe, .faqvideo video { width: 100%; height: 100%; border: none; display: block; }
.faqvidedit { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.faqvidedit .faq-vid { flex: 1; min-width: 180px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; font-size: 12.5px; }

/* ===================== Super Admin — grouped tabs ===================== */
.atabgroups { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.atabgroup { display: flex; flex-direction: column; gap: 6px; }
.atabglabel { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding-left: 2px; }
.atabgroup .atabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--panel) 50%, transparent); }

/* ---------------- Commercial Bid Model ---------------- */
.bmwrap .filterbar { align-items: center; }
.bmgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bmcard { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--panel); cursor: pointer; transition: border-color .15s, transform .15s; }
.bmcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.bmcardtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bmstatus { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: 1px solid; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.bmcardmeta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); }
.bmcardmeta span { background: color-mix(in srgb, var(--panel) 60%, var(--bg)); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; }
.bmcardfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.bmhead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.bmtabs { margin-bottom: 16px; }
.bmsumgrid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.bmfcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.bmkpis { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 8px; }
.bmkpi { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--panel); }
.bmkpi span { font-size: 11px; color: var(--muted); display: block; }
.bmkpi b { font-size: 18px; display: block; margin-top: 2px; }
.bmkpi small { font-size: 10px; color: var(--muted); display: block; margin-top: 3px; }
.bmkpi.big { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.bmkpi.big b { font-size: 24px; }
.bmsplitbar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin: 6px 0 2px; background: var(--border); }
.bmsplitbar span { display: block; height: 100%; }
.bmsummain { display: flex; flex-direction: column; gap: 16px; }
.bmwf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.bmwf:last-child { border-bottom: 0; }
.bmwf.tot { font-weight: 700; border-bottom: 1px solid var(--border); }
.bmwf.tot.big { font-size: 16px; border-bottom: 0; padding-top: 12px; }
.bmwf.tot.big b { color: var(--accent); }
.bmnum { width: 92px; text-align: right; padding: 4px 7px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text); font-size: 13px; }
.bmdischead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bmtable { width: 100%; font-size: 13px; }
.bmtable th { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; }
.bmtable td input { width: 100%; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.bmtable td input.bmnum { width: 80px; }
.bmtable .bmtot td { font-weight: 700; border-top: 1px solid var(--border); }
.bmloc { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 5px; }
.bmloc.me { background: color-mix(in srgb, #4a90d9 22%, transparent); color: #4a90d9; }
.bmloc.in { background: color-mix(in srgb, #e67e22 22%, transparent); color: #e67e22; }
.seg.sm button { padding: 3px 10px; font-size: 11px; }
.bmwrap .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .bmsumgrid { grid-template-columns: 1fr; } .bmkpis { position: static; flex-direction: row; flex-wrap: wrap; } .bmkpi { flex: 1 1 140px; } .bmwrap .row2 { grid-template-columns: 1fr; } }

/* ---------------- Learning Hub ---------------- */
.lrnwrap { max-width: 1180px; margin: 0 auto; padding: 4px 4px 40px; }
.lrnhero { border-radius: 20px; padding: 30px 28px; margin-bottom: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, var(--panel)), color-mix(in srgb, var(--accent) 12%, var(--panel)) 65%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border)); }
.lrnherobadge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.lrnhero h1 { font-size: 30px; margin: 0 0 8px; }
.lrnhero p { margin: 0 0 18px; max-width: 720px; opacity: .92; }
.lrnherostats { display: flex; flex-wrap: wrap; gap: 24px; }
.lrnherostats > div { display: flex; flex-direction: column; }
.lrnherostats b { font-size: 22px; }
.lrnherostats span { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.lrntabs { margin-bottom: 18px; flex-wrap: wrap; }
.lrngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lrncard { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: var(--panel); display: flex; flex-direction: column; }
.lrncard h3 { margin: 4px 0 6px; font-size: 16px; }
.lrncardhead { display: flex; align-items: center; justify-content: space-between; }
.lrnicon { font-size: 26px; }
.lrnbm { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); padding: 0 2px; }
.lrnbm.on { color: #f5c518; }
.lrnmeta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--muted); margin: 4px 0 8px; align-items: center; }
.lrnmeta .lvl { font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); text-transform: uppercase; font-size: 10px; }
.lrnmeta .lvl.beginner { color: #4fce8a; border-color: #4fce8a; }
.lrnmeta .lvl.intermediate { color: #f5a623; border-color: #f5a623; }
.lrnmeta .lvl.advanced { color: #e2574c; border-color: #e2574c; }
.lrntag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border-radius: 6px; padding: 2px 8px; }
.lrnprovider { font-size: 12px; font-weight: 700; color: var(--accent); }
.lrnprog { margin: 6px 0 10px; }
.lrnprogbar { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.lrnprogbar span { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); }
.lrnprog small { font-size: 10px; color: var(--muted); }
.lrnlessons { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.lrnlesson { display: flex; align-items: center; gap: 8px; text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 12px; color: var(--text); }
.lrnlesson span { flex: 1; }
.lrnlesson em { font-style: normal; font-size: 10px; color: var(--muted); }
.lrnlesson.done { color: var(--muted); }
.lrnlesson.done span { text-decoration: line-through; }
.lrnsection { margin-bottom: 26px; }
.lrnsection h2 { font-size: 16px; margin: 0 0 12px; }
.lrnplatforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lrnplat { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--panel); text-align: center; }
.lrnploglo { font-size: 36px; display: block; margin-bottom: 8px; }
.lrnplat h3 { margin: 0 0 6px; }
.lrnplat .btn { margin-top: 10px; display: inline-block; }
.lrnevents { display: flex; flex-direction: column; gap: 12px; }
.lrnevent { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; padding: 14px 16px; background: var(--panel); }
.lrnevent.webinar { border-left-color: #9b59b6; }
.lrnevdate { text-align: center; min-width: 48px; }
.lrnevdate b { font-size: 24px; display: block; line-height: 1; }
.lrnevdate span { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.lrnevbody { flex: 1; }
.lrnevbody h3 { margin: 2px 0 4px; }
.lrnevtype { font-size: 11px; font-weight: 700; color: var(--accent); }
.lrnevent.webinar .lrnevtype { color: #9b59b6; }
.lrnevact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lrnupdates { display: flex; flex-direction: column; gap: 12px; }
.lrnupdate { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--panel); }
.lrnupmeta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.lrnupdate h3 { margin: 2px 0 4px; font-size: 16px; }
a.btn { text-decoration: none; }
@media (max-width: 680px) { .lrnhero h1 { font-size: 24px; } .lrnherostats { gap: 16px; } .lrnevent { flex-direction: column; } .lrnevact { flex-direction: row; align-self: stretch; just-content: space-between; } }

/* ---------------- Learning Hub admin CMS ---------------- */
.lccms .lcrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--bg); }
.lccms .lcrowfields { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.lccms .lcrow .f { margin: 0; }
.lccms .lcrow .lbl { font-size: 10px; }
@media (max-width: 680px) { .lccms .lcrowfields { grid-template-columns: 1fr; } }

/* ---------------- Clean monochrome line icons (no chips) ----------------
   Each nav item shows a uniform Lucide-style stroke icon in currentColor — no
   background tile. Subtle at rest, brighter on hover, white on the active red row. */
.enav .mico {
  width: 22px; height: 22px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; filter: none;
}
.enav .navsvg {
  width: 18px; height: 18px;
  /* On-brand WSP red; white on the active red row for contrast. */
  color: var(--accent);
  opacity: 1;
  transition: color .15s ease;
}
.emod.onx .navsvg, .echild.on .navsvg { color: #fff; }

/* ---------------- Optional fully icon-less menu (toggle via gvNavIcons='0') ---------------- */
/* Hide the emoji nav icons entirely — markup stays in the DOM so they can be
   re-enabled. Icons remain visible when collapsed. */
body.navicons-off:not(.navcollapsed) .enav .mico { display: none; }
body.navicons-off:not(.navcollapsed) .emod,
body.navicons-off:not(.navcollapsed) .echild { gap: 0; }
body.navicons-off:not(.navcollapsed) .echild { padding-left: 16px; }
body.navicons-off:not(.navcollapsed) .enav .emod .etxt,
body.navicons-off:not(.navcollapsed) .enav .echild .etxt { padding-left: 2px; }
/* Subtle left accent on hover/active so rows still read as interactive without icons */
body.navicons-off:not(.navcollapsed) .emod, 
body.navicons-off:not(.navcollapsed) .echild { border-left: 2px solid transparent; border-radius: 0 10px 10px 0; }
body.navicons-off:not(.navcollapsed) .emod.onx,
body.navicons-off:not(.navcollapsed) .echild.on { border-left-color: var(--accent); }

/* ---------------- Mask editor + AEC export + 3D ---------------- */
.maskdlg { max-width: 760px; width: 92vw; }
.maskstage { position: relative; display: inline-block; max-width: 100%; border-radius: 10px; overflow: hidden; line-height: 0; border: 1px solid var(--border); }
.maskstage canvas { display: block; max-width: 100%; }
.maskstage #mkDraw { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.txdocrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px; border: 1px dashed var(--border); border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
model-viewer { --poster-color: transparent; }

/* ---------------- Super Admin: vertical list navigation ---------------- */
.adminlayout { display: grid; grid-template-columns: 232px 1fr; gap: 18px; align-items: start; margin-top: 12px; }
.adminnav { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 8px; }
.adminnavgroup { display: flex; flex-direction: column; gap: 3px; }
.adminnavlabel { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 0 8px 3px; }
.adminnavitem { text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 11px; font-size: 13px; color: var(--text); cursor: pointer; border-left: 2px solid transparent; transition: background .12s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adminnavitem:hover { background: var(--panel-2); }
.adminnavitem.on { background: color-mix(in srgb, var(--accent) 14%, transparent); border-left-color: var(--accent); font-weight: 700; }
.adminmain { min-width: 0; }
@media (max-width: 860px) {
  .adminlayout { grid-template-columns: 1fr; }
  .adminnav { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .adminnavgroup { flex: 1 1 46%; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
  .adminnavgroup .adminnavitem { padding: 6px 8px; font-size: 12px; }
}

/* ---------------- Info tooltip dots (admin help) ---------------- */
.infodot { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); font-size: 10px; line-height: 1; cursor: help; vertical-align: middle; font-weight: 700; }
.infodot:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Code Nest build progress ---------------- */
.cnprog { padding: 8px 10px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cnprog[hidden] { display: none; }
.cnprogbar { height: 4px; border-radius: 3px; background: var(--border); overflow: hidden; position: relative; }
.cnprogbar span { position: absolute; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: cnprogslide 1.1s linear infinite; }
@keyframes cnprogslide { to { left: 110%; } }
.cnprogtxt { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ---------------- Ask Elevate: model description + KB dropdown ---------------- */
.aemodeldesc { font-size: 11px; color: var(--muted); margin: 0 0 6px; padding: 0 2px; min-height: 14px; }
.kbraildd { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.kbraildsum { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg); border: 0; padding: 9px 11px; cursor: pointer; color: var(--text); font-size: 12.5px; text-align: left; }
.kbraildsum:hover { background: var(--panel-2); }
.kbddmeta { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.kbraildd .kbraillist { padding: 6px; border-top: 1px solid var(--border); max-height: 320px; overflow: auto; }
.kbclear { width: 100%; background: none; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); padding: 6px; font-size: 11px; cursor: pointer; margin-bottom: 6px; }
.kbclear:hover { color: var(--danger); border-color: var(--danger); }

/* ---------------- Code Nest: animated "compiling" terminal ---------------- */
.cnbuildscreen { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 380px; background: radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent) 14%, #0a0c12), #07080c); border-radius: 0 0 12px 12px; overflow: hidden; }
.cnbuildterm { flex: 1; margin: 14px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border)); border-radius: 12px; background: rgba(0,0,0,.5); position: relative; overflow: hidden; box-shadow: 0 0 50px color-mix(in srgb, var(--accent) 22%, transparent) inset, 0 8px 30px rgba(0,0,0,.4); }
.cnbuildbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.cnbd { width: 11px; height: 11px; border-radius: 50%; background: #444; }
.cnbd:nth-child(1) { background: #ff5f56; } .cnbd:nth-child(2) { background: #ffbd2e; } .cnbd:nth-child(3) { background: #27c93f; }
.cnbuildlabel { margin-left: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 75%, #fff); animation: cnpulse 1.6s ease-in-out infinite; }
@keyframes cnpulse { 50% { opacity: .45; } }
.cnbuildcode { margin: 0; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.55; color: #7dffa6; white-space: pre-wrap; word-break: break-all; height: calc(100% - 40px); overflow: hidden; text-shadow: 0 0 7px rgba(125,255,166,.45); }
.cnbuildcode::after { content: '▋'; color: var(--accent); animation: cnblink 1s steps(1) infinite; }
@keyframes cnblink { 50% { opacity: 0; } }
.cnscan { position: absolute; left: 0; right: 0; height: 90px; top: -90px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 20%, transparent), transparent); animation: cnscanmove 2.4s linear infinite; pointer-events: none; }
@keyframes cnscanmove { to { top: 110%; } }
.cnbuildfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 14px; }
.cnbuildstat { font-size: 12px; color: var(--muted); }
.cnstopbtn { background: var(--danger); color: #fff; border: 0; border-radius: 9px; padding: 9px 20px; font-weight: 700; cursor: pointer; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.35); animation: cnstoppulse 2s ease-in-out infinite; }
.cnstopbtn:hover { filter: brightness(1.12); }
@keyframes cnstoppulse { 50% { box-shadow: 0 4px 22px color-mix(in srgb, var(--danger) 50%, transparent); } }

/* ---------------- Ask Elevate model button (custom upward picker) ---------------- */
.aemodelbtn { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 12px; padding: 7px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aemodelbtn:hover { border-color: var(--accent); }
.aemodelbtn .chev { color: var(--muted); font-size: 10px; margin-left: auto; }
.floatmenu { max-height: 72vh; overflow-y: auto; }

/* ---------------- Ask Elevate answer redesign ---------------- */
.aimsg2 .bub { position: relative; }
.accchip { position: absolute; top: 8px; right: 10px; font-size: 10px; font-weight: 700; color: var(--ac); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); background: color-mix(in srgb, var(--ac) 12%, transparent); border-radius: 999px; padding: 1px 8px; letter-spacing: .02em; line-height: 1.6; }
.aimsg2.ai .mdbody { padding-right: 54px; }
.srcchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 2px; }
.srcchip { display: inline-flex; align-items: center; gap: 5px; max-width: 240px; background: color-mix(in srgb, var(--panel) 65%, var(--bg)); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 11px; color: var(--muted); cursor: pointer; text-decoration: none; }
.srcchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srcchip:hover { border-color: var(--accent); color: var(--text); }
.airsrc { font-size: 11px; color: var(--muted); margin-left: auto; }

/* ---------------- Generation progress bar (image / video / 2D→3D / Alt Imager) ---------------- */
.genprog { position: relative; height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.genprog .fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); transition: width .4s ease; }
.genprog .sweep { position: absolute; inset: 0; left: -45%; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: genprogsweep 1.15s linear infinite; }
.genprog.indet { background: color-mix(in srgb, var(--accent) 18%, var(--border)); }
@keyframes genprogsweep { to { left: 110%; } }

/* ---------------- Departments & pooled credits ---------------- */
.poolbox { border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.deptcard .togline { border: 0; padding: 6px 0; }
.deptmembers { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.deptmembers .wspgchip { justify-content: flex-start; }

/* ---------------- Richer markdown rendering (Ask Elevate answers) ---------------- */
.mdbody p { margin: 0 0 8px; line-height: 1.5; }
.mdbody p:last-child { margin-bottom: 0; }
.mdbody .mdh { font-weight: 700; margin: 10px 0 5px; line-height: 1.3; }
.mdbody .mdh1 { font-size: 16px; } .mdbody .mdh2 { font-size: 15px; } .mdbody .mdh3 { font-size: 13.5px; color: var(--accent); } .mdbody .mdh4 { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.mdbody .mdul, .mdbody .mdol { margin: 4px 0 8px; padding-left: 20px; }
.mdbody .mdul li, .mdbody .mdol li { margin: 2px 0; line-height: 1.45; }
.mdbody code { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.mdbody .mdsrcline { font-size: 11.5px; color: var(--muted); margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border); }

/* ---- AI Governance ---- */
.govgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.govcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .1s; }
.govcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.govcardtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.govcardtop b { font-size: 14px; }
.govbadge { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid; border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.govbadge.sm { font-size: 9px; padding: 1px 6px; }
.govmini { display: flex; gap: 5px; align-items: center; }
.govdot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.govgates { display: flex; flex-direction: column; gap: 0; }
.govgate { position: relative; padding: 10px 0 14px 4px; border-left: 2px solid var(--border); margin-left: 13px; padding-left: 18px; }
.govgate:last-child { border-left-color: transparent; }
.govgatehead { display: flex; align-items: center; gap: 8px; }
.govgatehead b { font-size: 13px; }
.govgateno { position: absolute; left: -13px; top: 9px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }
.govgate.approved > .govgatehead b { color: var(--text); }
.govgate.pending { opacity: .65; }

/* ---- Security & Compliance posture ---- */
.seclist { display: flex; flex-direction: column; gap: 8px; }
.secrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); border-left-width: 3px; }
.secrow.pass { border-left-color: #4fce8a; }
.secrow.warn { border-left-color: #f5a623; }
.secrow.fail { border-left-color: #e2574c; }
.secrow.info { border-left-color: #4a90d9; }
.secrow .secico { font-size: 15px; line-height: 1.4; flex: none; }
.secrow b { font-size: 13px; }

/* ---- AI Academy: detail pages, lessons, certificate ---- */
.lrndetailbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lrndethero { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel)); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.lrndeticon { font-size: 44px; line-height: 1; flex: none; }
.lrncertbanner { margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, #4fce8a 14%, var(--panel)); border: 1px solid color-mix(in srgb, #4fce8a 40%, var(--border)); }
.lrncertbanner .link, .lrncardcta .lpreq { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; }
.lrnlessonlist { display: flex; flex-direction: column; gap: 6px; }
.lrnlessonrow { display: flex; align-items: stretch; gap: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lrnlessonrow.done { border-color: color-mix(in srgb, #4fce8a 40%, var(--border)); }
.lrnlesstoggle { flex: none; width: 40px; border: none; border-right: 1px solid var(--border); background: var(--bg); color: var(--muted); cursor: pointer; font-size: 14px; }
.lrnlesstoggle.on { background: color-mix(in srgb, #4fce8a 18%, transparent); color: #4fce8a; }
.lrnlessopen { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--panel); border: none; padding: 10px 12px; cursor: pointer; text-align: left; color: var(--text); }
.lrnlessopen:hover { background: var(--panel-2); }
.lrnlessopen small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.lrnlessico { font-size: 18px; flex: none; }
.lrnlesschev { color: var(--muted); font-size: 18px; }
.lrnobjs { margin: 6px 0 0; padding-left: 18px; }
.lrnobjs li { margin: 5px 0; line-height: 1.45; }
.lrncardcta { margin-top: auto; padding-top: 6px; }
.lrncard.pathway[data-action], .lrncard.course[data-action] { cursor: pointer; }
.lrncard.complete { border-color: color-mix(in srgb, #4fce8a 45%, var(--border)); }
.lrndonechip { font-size: 10.5px; color: #4fce8a; border: 1px solid color-mix(in srgb,#4fce8a 50%,var(--border)); border-radius: 99px; padding: 1px 7px; }
.lrnlessonview { max-width: 760px; margin: 0 auto; }
.lrnvideo { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 14px; }
.lrnvideo iframe, .lrnvideo video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lrnlessonbody { line-height: 1.65; font-size: 14.5px; color: var(--text); }
.lrnlessonnav { display: flex; gap: 8px; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
/* Certificate */
.lrncert { max-width: 560px; width: min(560px,94vw); }
.lrncertinner { border: 2px solid color-mix(in srgb, var(--accent) 50%, var(--border)); border-radius: 14px; padding: 28px; text-align: center; background: linear-gradient(160deg, color-mix(in srgb,var(--accent) 8%, var(--panel)), var(--panel)); }
.lrncertseal { font-size: 46px; }
.lrncerteyebrow { letter-spacing: .22em; font-size: 11px; color: var(--accent); font-weight: 700; margin-top: 6px; }
.lrncertpre { color: var(--muted); margin: 12px 0 4px; font-size: 13px; }
.lrncertname { font-size: 26px; font-weight: 700; }
.lrncerttitle { font-size: 18px; font-weight: 600; margin-top: 4px; }
.lrncertmeta { display: flex; justify-content: center; gap: 16px; color: var(--muted); font-size: 12px; margin-top: 14px; }
.lrncertfoot { margin-top: 16px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.lrncoursemodal { max-width: 540px; width: min(540px,94vw); }
@media (max-width: 640px) { .lrndethero { flex-direction: column; } .bmfcgrid { grid-template-columns: 1fr; } }

/* ---- Compute IQ: guided wizard ---- */
.cpmodeseg { width: fit-content; margin: 0 auto 16px; }
.cpwizard { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.cpwizhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cpwizsteps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.cpwizstep { color: var(--muted); padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; }
.cpwizstep.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.cpwizstep.done { color: #4fce8a; }
.cpwizarrow { color: var(--muted); }
.cpwizcrumbsel { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cpwizgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cpwizgrid.big { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cpwizcard { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, transform .1s; color: var(--text); }
.cpwizcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.cpwizcard b { font-size: 14px; }
.cpwizcard small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.cpwizico { font-size: 24px; }
.cpwizbuild { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.cpwizfields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.cpwizfields .f { margin: 0; }
.cpwizpreview { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; background: var(--panel); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 12px; color: var(--accent); word-break: break-word; }
@media (max-width: 640px) { .cpwizgrid { grid-template-columns: 1fr; } }

/* Neutral placeholder for missing/undecodable render thumbnails */
.mediafallback { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 120px; aspect-ratio: 16/10; background: var(--panel-2, var(--panel)); border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); }
.mediafallback span { font-size: 26px; opacity: .55; }

/* ---- WSP LLM: daily learning digest ---- */
.wsplearnday { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--panel); }
.wsplearnday.live { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.wsplearnhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wsplearnchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wsplearnchip { font-size: 11.5px; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; color: var(--muted); }
.wsplearnchip b { color: var(--text); }
.wsplearnnarr { margin: 10px 0 4px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.5; }
.wsplearnlist { margin: 8px 0 0; padding-left: 18px; }
.wsplearnlist li { margin: 3px 0; line-height: 1.45; font-size: 13px; }

/* ---- Unified approvals queue ---- */
.qtype { font-size: 11px; color: var(--muted); white-space: nowrap; }
.qkind { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; border-radius: 99px; padding: 1px 8px; border: 1px solid; }
.qkind.open { color: #4a90d9; border-color: color-mix(in srgb,#4a90d9 45%,var(--border)); }
.qkind.closed { color: #4fce8a; border-color: color-mix(in srgb,#4fce8a 45%,var(--border)); }
.qkind.rejected { color: var(--danger); border-color: color-mix(in srgb,var(--danger) 45%,var(--border)); }
.qactions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Code Nest: card previews, marketplace, launch ---- */
.cngrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cncard { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.cncardprev { position: relative; height: 150px; background: #0d0d12; border-bottom: 1px solid var(--border); overflow: hidden; }
.cnprevframe { position: absolute; top: 0; left: 0; width: 200%; height: 300px; border: 0; transform: scale(.5); transform-origin: top left; pointer-events: none; background: #fff; }
.cncardprevph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 34px; opacity: .4; }
.cncardbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.cncardbody .cncardtop { display: flex; align-items: center; justify-content: space-between; }
.cncard.market:hover { border-color: var(--accent); }
/* Launch (run a published app) */
.cnlaunch { display: flex; flex-direction: column; height: calc(100vh - 90px); }
.cnlaunchbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px 12px 0 0; background: var(--panel); }
.cnlaunchframe { flex: 1; width: 100%; border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; background: #fff; }

/* ================= Consistent module headers & headings =================
   Every module page-header used its own colour/size/structure (Code Nest green,
   Compute IQ blue, others red; titles 21–30px). Normalise them to ONE treatment:
   WSP-red tinted banner, one title scale, one accent icon tile. */
.cphero, .cphero2, .plhero, .mkthero, .cnhero, .lrnhero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--panel)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 14px;
  margin-bottom: 16px;
}
.cphero, .plhero, .mkthero, .cnhero { padding: 16px 20px; }
.lrnhero { padding: 22px 24px; }
.cphero2 { padding: 18px 22px; text-align: left; }
.cphero2 p { margin: 6px 0 0; max-width: none; }
/* One title scale across all module headers */
.cphero h2, .cphero2 h2, .plhero h2, .mkthero h2, .cnhero h2, .filterbar h2, .homesechead h2 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.cphero2 h2 { margin: 8px 0 0; }
.lrnhero h1 { font-size: 24px; font-weight: 700; }
/* One icon tile across all module headers */
.cpheroico, .cnheroico, .plheroico, .mktheroico, .cphero2ico {
  width: 46px; height: 46px; min-width: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1; flex: none; color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
/* One section-heading scale inside cards/panels */
.admincard h3, .cpgroup h3, .libsec h3, .genpanel h3 { font-size: 15px; font-weight: 700; }
/* One group-label style */
.modgroup { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }

/* ---- AIQ extra dashboard elements ---- */
.aiqkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.aiqkpi { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--xc, var(--accent)); border-radius: 9px; padding: 8px 10px; }
.aiqkpi b { display: block; font-size: 18px; color: var(--xc, var(--accent)); line-height: 1.1; }
.aiqkpi span { font-size: 10.5px; color: var(--muted); }
.aiqinsight.pos { color: var(--text); } .aiqinsight.pos span { color: var(--text); }
.aiqinsight.neg span { color: color-mix(in srgb, var(--danger) 80%, var(--text)); }

/* ---- Site Diary media gallery ---- */
.sdmedia { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.sdmediaitem { position: relative; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; aspect-ratio: 4/3; background: #0d0d12; }
.sdmediaitem img, .sdmediaitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sdmediadel { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 11px; }
.sdmediadel:hover { background: var(--danger); }

/* ETA chip on generation job cards */
.jobeta { font-size: 11px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }

/* ---- Reel Director (Compile orchestrator) ---- */
.reelsteps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.reelsteps span { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 4px 12px; }
.reelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.reelshot { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.reelshotprev { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #0d0d12; display: flex; align-items: center; justify-content: center; }
.reelshotprev video { width: 100%; height: 100%; object-fit: cover; }
.reelshotph { color: var(--muted); font-size: 13px; }
.reelshotbadge { position: absolute; top: 6px; right: 6px; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: #fff; border-radius: 99px; padding: 1px 8px; }
.reelshotprompt { font-size: 12px; resize: vertical; }
.reelshotbtns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---- Talent Compass — Internal Mobility ---- */
.tcmob-rolehead { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tcmob-match { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.tcmob-match + .tcmob-match { border-top: 1px dashed var(--border); }
.tcmob-score { flex: none; min-width: 42px; text-align: center; font-weight: 700; font-size: 12px; border-radius: 7px; padding: 4px 6px; }
.tcmob-score.hi { color: #4fce8a; background: color-mix(in srgb,#4fce8a 16%,transparent); }
.tcmob-score.mid { color: #f5a623; background: color-mix(in srgb,#f5a623 16%,transparent); }
.tcmob-score.lo { color: var(--muted); background: var(--panel-2,var(--bg)); }
.tcmob-ready { font-size: 10px; font-weight: 600; border-radius: 99px; padding: 1px 8px; border: 1px solid; }
.tcmob-ready.hi { color: #4fce8a; border-color: color-mix(in srgb,#4fce8a 45%,var(--border)); }
.tcmob-ready.mid { color: #f5a623; border-color: color-mix(in srgb,#f5a623 45%,var(--border)); }
.tcmob-ready.lo { color: var(--muted); border-color: var(--border); }

/* Talent Compass — drill-down affordances */
.poolcard { transition: border-color .12s, transform .12s; }
.poolcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.poolopen { margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .12s; }
.poolcard:hover .poolopen { opacity: 1; }
.projcard { transition: border-color .12s, transform .12s; }
.projcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.tcmob-rolehead:hover b { color: var(--accent); }

/* Talent Compass — JD source banner */
.jdsource { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 8px 0 4px; }
.jdsource.on { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); color: var(--text); }
.jdsource a { color: var(--accent); }

/* Decorative hero glow blobs sit off-screen — clip them so they never cause a
   horizontal scrollbar (most noticeable on phones). Layout/appearance unchanged. */
.lp { overflow-x: clip; }

/* ============================================================================
   Mobile + iPad optimisation (≤1024px). Homepage module redesign + overlap fixes.
   Desktop (>1024px) is intentionally left untouched.
   ========================================================================== */
@media (max-width: 1024px) {
  /* Public landing header — stop the CTA crowding the logo/icon on tablets */
  .pubtop { padding: 12px 18px !important; gap: 10px !important; }
  .pubcta { padding: 10px 16px !important; font-size: 14px !important; }

  /* Filter chips: one swipeable horizontal row instead of a tall wrapping stack */
  .lpmodfilters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -20px 20px; padding: 2px 20px 8px;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
  }
  .lpmodfilters::-webkit-scrollbar { display: none; }
  .lpmodchip { flex: none; scroll-snap-align: start; }

  /* Module grid: redesigned card. 2-up on tablet. */
  .lpmodgrid2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lpmc { align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 16px; }
  .lpmc-thumb { width: 48px; height: 48px; border-radius: 12px; }
  .lpmc-top b { font-size: 14.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .lpmc-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
  /* Footer: never overlap — category pill (wraps if needed) + a real CTA pill */
  .lpmc-foot { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .lpmc-cat {
    font-size: 9px; padding: 3px 8px; border-radius: 99px;
    background: color-mix(in srgb, var(--cc) 16%, transparent);
    color: color-mix(in srgb, var(--cc) 80%, #fff); white-space: nowrap; overflow: visible;
  }
  .lpmc-cta {
    margin-left: auto; font-size: 12px; padding: 6px 12px; border-radius: 99px;
    background: color-mix(in srgb, var(--accent) 14%, var(--panel-2));
    color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  }
  .lpmc.avail .lpmc-cta { background: var(--accent); color: #fff; border-color: var(--accent); }
}

@media (max-width: 640px) {
  /* Phone: declutter the header to a single action; full-width module cards */
  .pubuser { display: none !important; }
  .pubcta { padding: 9px 14px !important; font-size: 13.5px !important; }
  .lpmodgrid2 { grid-template-columns: 1fr; gap: 11px; }
  .lpmc { padding: 14px; }
  .lpmc-thumb { width: 52px; height: 52px; }
}

/* ============================================================================
   Light-mode polish — public landing chrome + card separation. (debug pass)
   ========================================================================== */
/* Public header was a dark translucent bar with a white sign-in icon — both
   wrong on a light page. Give it a light glass bar with dark-on-light controls. */
body.light .pubtop { background: rgba(255,255,255,.82) !important; border-bottom: 1px solid rgba(20,30,60,.09) !important; }
body.light .pubuser { color: var(--text) !important; border-color: rgba(20,30,60,.20) !important; }

/* Landing cards were near-white on a near-white bg with a faint border — they
   blended in. Lift them with a soft shadow + a slightly firmer border. */
body.light .lpmc,
body.light .lpteamcard,
body.light .lpnewscard,
body.light .lpctacard,
body.light .lpcard { box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 7px 18px rgba(20,30,60,.06); }
body.light .lpmc { border-color: #e3e7ef; }
body.light .lpmodchip { box-shadow: 0 1px 2px rgba(20,30,60,.04); }

/* Mobile category pill: in light mode the text was mixed toward white (low
   contrast on the pale tint) — darken it so it stays legible. */
@media (max-width: 1024px) {
  body.light .lpmc-cat { color: color-mix(in srgb, var(--cc) 68%, #2a2f3a); background: color-mix(in srgb, var(--cc) 13%, transparent); }
}

/* ============================================================================
   Rounder module cards — softer, less boxy across every module view.
   ========================================================================== */
.lpcard { border-radius: 20px; }
.lpmodgrid.compact .lpcard { border-radius: 18px; }
.lpcardart { border-radius: 20px 20px 0 0; }
.lpcardicon { border-radius: 13px; }
.lpmc { border-radius: 18px; }
.lpmc-thumb { border-radius: 14px; }
.lpmc-ic { border-radius: 14px; }

/* ============================================================================
   Credits — wider dialogs, cleaner layout, red-outline boxes.
   ========================================================================== */
.creditbal { gap: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--panel-2)); border: 1.5px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 14px; padding: 16px 18px; }
.creditbal b { font-size: 22px; }
.pricetable { gap: 8px; }
.pricerow { border-radius: 12px; padding: 12px 14px; }
.creditpacks { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.creditpack { border: 1.5px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 14px; padding: 14px 8px; transition: border-color .12s, background .12s, transform .1s, box-shadow .12s; }
.creditpack:hover { border-color: var(--accent); transform: translateY(-1px); }
.creditpack.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.creditpack b { font-size: 19px; }
.bigcost { display: flex; align-items: baseline; gap: 8px; justify-content: center; border: 1.5px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 14px; padding: 14px; margin: 8px 0 14px; background: color-mix(in srgb, var(--accent) 5%, var(--panel-2)); }
.bigcost b { font-size: 26px; color: var(--accent); }
/* custom-amount stepper row */
.amtrow { display: flex; align-items: center; gap: 8px; }
.amtrow input[type=number] { flex: 1; text-align: center; font-size: 18px; font-weight: 700; padding: 11px; border: 1.5px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 12px; background: var(--panel-2); color: var(--text); }
.amtstep { width: 44px; height: 44px; flex: none; border: 1.5px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 12px; background: var(--panel-2); color: var(--accent); font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; transition: border-color .12s, background .12s; }
.amtstep:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); }
