/* Athar Learning Platform – Athar identity.
   Brand: navy #0A2545, orange #FF6B35 (the logo's wave). Chrome: Athar navy. The accent tokens keep
   their old names (--mustard = main accent, --orange = second accent) so every page follows them.
   One bold element (the animated plant panorama on the home page); everything else stays quiet. */
:root {
  --steel: #0A2545; --steel2: #11304F; --steel3: #1B3D61; --steel-ink: #CAD5E2; --steel-dim: #8C9FB6;
  --paper: #F3F5F6; --card: #FFFFFF; --ink: #1B252B; --ink2: #55636C; --line: #DEE3E6; --track: #E7EBED; --hover: #F6F8F9;
  --mustard: #FF6B35; --mustard-d: #B8461C; --mustard-t: #FFEDE5; --orange: #E4572E; --orange-t: #FDE7E0; --on-accent: #0A2545; --grey: #9D9FA2;
  --ok: #2E7D4F; --ok-t: #E3F2E8; --nyc: #9A5B00; --nyc-t: #FBEFD9; --bad: #B3261E; --bad-t: #FBE5E3; --live: #1D4F8A; --live-t: #E3ECF7;
  --pk-proc: #CCAA2E; --pk-mech: #F04E23; --pk-elec: #D99A00; --pk-inst: #3D8FA6; --pk-mine: #B0682F; --pk-water: #008F91; --pk-h2: #5B4FCF; --pk-custom: #8A9096;
  --r: 10px; --r-s: 6px; --side: 248px;
  --sh: 0 1px 2px rgba(16, 28, 36, .05), 0 1px 1px rgba(16, 28, 36, .03);
  --font: "Segoe UI", "Open Sans", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F171C; --card: #162127; --ink: #E5EAED; --ink2: #9BA9B2; --line: #263540; --track: #23323B; --hover: #1B2830;
    --mustard-t: #3D2216; --orange-t: #3D2018; --ok: #5DBB83; --ok-t: #17301F; --nyc: #E3A548; --nyc-t: #3A2A12; --bad: #F08079; --bad-t: #3C1C1A; --live: #7FB2F0; --live-t: #142A45;
    --sh: none; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--live); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 .6em; }
code, .mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink2); }
.fine { color: var(--ink2); font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.sp { flex: 1; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; }

/* ---------------- buttons & controls ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 14px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--hover); text-decoration: none; border-color: #C6CED3; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.pri { background: var(--mustard); border-color: var(--mustard); color: var(--on-accent, #0A2545); }
.btn.pri:hover { background: #FF8257; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.ghost-l { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.ghost-l:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 13px; gap: 6px; }
.btn.lg { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon-only { padding: 0; width: 40px; }
.danger-t { color: var(--bad) !important; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-s); border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(127, 140, 150, .16); }
.lnk { font-size: 13.5px; font-weight: 600; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: rot .7s linear infinite; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink2); padding: 48px; justify-content: center; }

.form { display: grid; gap: 14px; }
.form.grid2, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.span2 { grid-column: span 2; }
.fld { display: grid; gap: 5px; min-width: 0; }
.fld > span:first-child { font-size: 13.5px; font-weight: 600; }
.fld small { color: var(--ink2); font-size: 12.5px; }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #C9D1D6; border-radius: var(--r-s); background: var(--card); color: var(--ink); font: 15px/1.4 var(--font); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--mustard-d); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mustard-d); box-shadow: 0 0 0 3px rgba(255, 107, 53, .28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input, :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) textarea { border-color: #33454F; } }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.pw-t { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 34px; border: 0; background: none; color: var(--ink2); cursor: pointer; border-radius: 4px; }
.row-in { display: flex; gap: 8px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; }
.meter i { height: 4px; border-radius: 2px; background: var(--track); }
.meter small { min-width: 48px; text-align: right; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--nyc); }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--mustard); }
.meter[data-s="4"] i:nth-child(-n+4) { background: var(--ok); }
.form-err { margin: 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--bad-t); color: var(--bad); font-weight: 600; font-size: 14px; }
.note { padding: 10px 12px; border-radius: var(--r-s); background: var(--hover); border-left: 3px solid var(--grey); margin: 0 0 12px; font-size: 14px; }
.note.ok { border-color: var(--ok); background: var(--ok-t); }
.note.warn { border-color: var(--nyc); background: var(--nyc-t); }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn-t { color: var(--nyc); }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checks { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.checks legend { font-size: 13.5px; font-weight: 600; padding: 0 4px; }
.checks.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chk-grp { display: grid; gap: 4px; align-content: start; }
.chk-grp b { font-size: 13px; color: var(--ink2); }
.chk small { color: var(--ink2); }
.tgl { display: grid; grid-template-columns: 42px 1fr; gap: 2px 12px; align-items: center; cursor: pointer; padding: 6px 0; }
.tgl input { position: absolute; opacity: 0; }
.tgl span { grid-row: span 2; width: 42px; height: 24px; border-radius: 12px; background: #C3CBD0; position: relative; transition: background .15s; }
.tgl span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tgl input:checked + span { background: var(--mustard-d); }
.tgl input:checked + span::after { transform: translateX(18px); }
.tgl input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.tgl b { font-weight: 600; font-size: 14px; } .tgl small { color: var(--ink2); font-size: 12.5px; grid-column: 2; }
.seg { display: inline-flex; background: var(--track); border-radius: 8px; padding: 3px; gap: 2px; }
.seg.wrap { flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: none; padding: 7px 12px; border-radius: 6px; font: 600 13.5px var(--font); color: var(--ink2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.seg .on { background: var(--card); color: var(--ink); box-shadow: var(--sh); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar select { width: auto; min-width: 160px; }
.search { position: relative; display: flex; align-items: center; min-width: 220px; }
.search .ic { position: absolute; left: 10px; color: var(--ink2); }
.search input { padding-left: 36px; }

/* ---------------- badges, bars ---------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--track); color: var(--ink2); white-space: nowrap; }
.badge.pass { background: var(--ok-t); color: var(--ok); }
.badge.nyc { background: var(--nyc-t); color: var(--nyc); }
.badge.fail { background: var(--bad-t); color: var(--bad); }
.badge.live { background: var(--live-t); color: var(--live); }
.badge.muted { opacity: .8; }
.pbar { display: inline-block; height: 6px; width: 100%; min-width: 60px; background: var(--track); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.pbar i { display: block; height: 100%; background: var(--mustard); border-radius: 3px; transition: width .6s ease; }
.pcell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.pcell .num { font-size: 13px; min-width: 38px; }
.dot-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2FB36A; box-shadow: 0 0 0 3px rgba(47, 179, 106, .18); }
.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--live-t); color: var(--live); font-size: 12.5px; font-weight: 700; margin-right: 6px; }
body.live-on .live-pill .ic { animation: blink 1.6s ease-in-out infinite; }

/* ---------------- app shell ---------------- */
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--steel); color: var(--steel-ink); display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; padding: 18px 20px 14px; }
.brand img { height: 38px; width: auto; max-width: 100%; }
.side nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0; border-radius: 7px; color: var(--steel-ink); font-weight: 600; font-size: 14.5px; position: relative; }
.side li a:hover { background: var(--steel2); color: #fff; text-decoration: none; }
.side li a.on { background: var(--steel3); color: #fff; }
.side li a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--mustard); }
.side li a .ic { color: var(--steel-dim); } .side li a.on .ic, .side li a:hover .ic { color: var(--mustard); }
.nav-sec { padding: 16px 12px 4px; font-size: 12.5px; color: var(--steel-dim); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--steel-dim); margin-left: auto; }
body.live-on .live-dot { background: #3CCB7F; box-shadow: 0 0 0 3px rgba(60, 203, 127, .2); animation: blink 2s ease-in-out infinite; }
.side-foot { display: flex; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid var(--steel2); }
.me { flex: 1; display: flex; gap: 10px; align-items: center; color: inherit; min-width: 0; padding: 4px; border-radius: 7px; }
.me:hover { background: var(--steel2); text-decoration: none; }
.me > span:not(.av) { display: grid; min-width: 0; } .me b { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .me small { color: var(--steel-dim); font-size: 12.5px; }
.main-col { margin-left: var(--side); min-height: 100vh; }
.mtop { display: none; }
main { outline: none; }
.page { max-width: 1280px; margin: 0 auto; padding: 28px 32px 64px; }
.page.narrow { max-width: 900px; }
.side-back { display: none; }
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.nav-open .side { transform: none; }
  body.nav-open .side-back { display: block; position: fixed; inset: 0; background: rgba(10, 18, 24, .45); z-index: 39; }
  .main-col { margin-left: 0; }
  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 54px; padding: 0 12px; background: var(--steel); color: #fff; }
  .mtop-t { flex: 1; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page { padding: 20px 16px 72px; }
}

/* ---------------- avatars ---------------- */
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: var(--steel3); }
.av0 { background: #4A6372; } .av1 { background: #8A6F12; } .av2 { background: #A2401F; } .av3 { background: #3D6E7C; }
.who { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
a.who:hover { text-decoration: none; } a.who:hover b { text-decoration: underline; }
.who > span:not(.av) { display: grid; min-width: 0; } .who small { color: var(--ink2); font-size: 12.5px; }

/* ---------------- page furniture ---------------- */
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.phead p { margin: 4px 0 0; }
.phead-a { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.welcome p { margin: 4px 0 0; }
.h2 { font-size: 19px; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.h2 small { font-size: 13px; color: var(--ink2); font-weight: 500; }
.h3 { font-size: 15px; font-weight: 650; margin: 14px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh); min-width: 0; }
.card + .card { margin-top: 0; }
.page > .card, .page > section.card { margin-bottom: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid > .span2 { grid-column: span 2; }
.grid > .span3 { grid-column: 1 / -1; }
.grid.two-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acts.center { justify-content: center; }
.row-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink2); }
.empty b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.empty .btn { margin-top: 8px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid > .span3 { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  .grid, .grid.two-1, .two, .form.grid2, .grid2, .checks.cols3 { grid-template-columns: minmax(0, 1fr); }
  .grid > .span2, .span2 { grid-column: auto; }
  h1 { font-size: 24px; }
}

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.kpis3 .kpi { padding: 10px; border: 0; background: var(--hover); box-shadow: none; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; align-items: start; box-shadow: var(--sh); }
.kpi-i { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--mustard-t); color: var(--mustard-d); }
.kpi-v { grid-column: 1; grid-row: 1; font-size: 27px; font-weight: 700; line-height: 1.15; }
.kpi-l { grid-column: 1; grid-row: 2; font-size: 13.5px; color: var(--ink2); font-weight: 600; }
.kpi small { grid-column: 1 / -1; color: var(--ink2); font-size: 12.5px; margin-top: 2px; }
.kpi.good .kpi-v { color: var(--ok); } .kpi.good .kpi-i { background: var(--ok-t); color: var(--ok); }
.kpi.warn .kpi-v { color: var(--orange); } .kpi.warn .kpi-i { background: var(--orange-t); color: var(--orange); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kpi-i { color: var(--mustard); } }

/* lists */
.plist, .rlist { list-style: none; margin: 0; padding: 0; }
.plist li, .rlist li { border-top: 1px solid var(--line); }
.plist li:first-child, .rlist li:first-child { border-top: 0; }
.plist li > a, .plist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: inherit; }
.plist li > a { padding: 0; flex: 1; min-width: 0; }
.plist li > a:hover { text-decoration: none; } .plist li > a:hover b { text-decoration: underline; }
.plist span:not(.av) { display: grid; min-width: 0; flex: 1; } .plist small { color: var(--ink2); font-size: 12.5px; }
.rlist a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: inherit; }
.rlist a:hover { text-decoration: none; background: var(--hover); }
.rlist a span:not(.badge) { flex: 1; display: grid; min-width: 0; } .rlist small { color: var(--ink2); font-size: 12.5px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 10px; border-radius: 999px; background: var(--ok-t); color: var(--ok); font-size: 13px; font-weight: 600; }
.sys { list-style: none; margin: 0; padding: 0; }
.sys li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sys li:first-child { border: 0; } .sys li span:nth-child(2) { flex: 1; } .sys .ic { color: var(--ink2); }
.kv { margin: 0; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.kv dt { color: var(--ink2); font-size: 13.5px; } .kv dd { margin: 0; font-weight: 600; }
.kv.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-bottom: 16px; }
.kv.cols div { grid-template-columns: 1fr; gap: 0; }
@media (max-width: 600px) { .kv.cols { grid-template-columns: 1fr; } }
.ticks { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--ink2); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .num { text-align: right; }
.tbl small { color: var(--ink2); font-size: 12.5px; }
.tbl tr.flash { animation: flash 2.4s ease; }
@keyframes flash { 0%, 30% { background: var(--mustard-t); } 100% { background: transparent; } }
.tbl.perm td.c, .tbl.perm th { text-align: center; } .tbl.perm td:first-child, .tbl.perm th:first-child { text-align: left; }
.tbl.matrix th span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; max-height: 140px; display: inline-block; overflow: hidden; text-overflow: ellipsis; }
.tbl.matrix td.mx { text-align: center; font-size: 12.5px; font-weight: 700; min-width: 34px; }
.mx.pass, .lgd.pass { background: var(--ok-t); color: var(--ok); } .mx.nyc, .lgd.nyc { background: var(--nyc-t); color: var(--nyc); } .mx.seen, .lgd.seen { background: var(--track); }
.lgd { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 10px; }
@media (max-width: 720px) {
  .tbl:not(.matrix):not(.perm) thead { display: none; }
  .tbl:not(.matrix):not(.perm) tr { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .tbl:not(.matrix):not(.perm) td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .tbl:not(.matrix):not(.perm) td::before { content: attr(data-l); color: var(--ink2); font-size: 12.5px; text-align: left; }
  .tbl:not(.matrix):not(.perm) td[data-l=""]::before { content: none; }
  .tbl td .who { text-align: left; }
}
.sumrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 12px; font-size: 14px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; align-items: end; }
.filters .dt { display: grid; gap: 2px; } .filters .dt span { font-size: 12px; color: var(--ink2); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; font-size: 14px; }

/* ---------------- charts ---------------- */
.ring { display: block; }
.ring-t { font: 700 26px var(--font); fill: var(--ink); } .ring-t.sm { font-size: 22px; } .ring-u { font-size: 14px; fill: var(--ink2); }
.ring-v { transition: stroke-dasharray .8s ease; }
.hbars { display: grid; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) 48px; gap: 10px; align-items: center; font-size: 13.5px; }
.hb-l { display: grid; min-width: 0; } .hb-l small { color: var(--ink2); font-size: 12px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 10px; background: var(--track); border-radius: 5px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 5px; background: var(--grey); }
.hb-t i.good { background: var(--ok); } .hb-t i.mid { background: var(--mustard); } .hb-t i.low { background: var(--orange); }
.hb b { text-align: right; }
.cols { width: 100%; height: auto; display: block; }
.cols .col { fill: var(--mustard); } .cols .col:hover { fill: var(--mustard-d); }
.cols .ax { font: 11px var(--font); fill: var(--ink2); } .cols .base { stroke: var(--line); }
.cols .ln { fill: none; stroke: var(--live); stroke-width: 2; } .cols .dot { fill: var(--card); stroke: var(--live); stroke-width: 2; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut .pass { stroke: var(--ok); } .donut .nyc { stroke: var(--mustard); } .donut .fail { stroke: var(--orange); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.legend i.pass { background: var(--ok); } .legend i.nyc { background: var(--mustard); } .legend i.fail { background: var(--orange); }
.legend b { margin-left: 6px; }
.prog-box { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.prog-box .kv { flex: 1; min-width: 220px; }

/* ---------------- module & group cards ---------------- */
.mlist { display: grid; gap: 8px; margin-bottom: 8px; }
.mgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.mcard2 { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: inherit; position: relative; }
.mcard2:hover { text-decoration: none; border-color: var(--mustard); }
.mc-i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: var(--pk-custom); }
.pk-proc .mc-i { background: var(--pk-proc); color: var(--on-accent, #0A2545); } .pk-mech .mc-i { background: var(--pk-mech); } .pk-elec .mc-i { background: var(--pk-elec); color: var(--on-accent, #0A2545); } .pk-inst .mc-i { background: var(--pk-inst); } .pk-mine .mc-i { background: var(--pk-mine); } .pk-water .mc-i { background: var(--pk-water); } .pk-h2 .mc-i { background: var(--pk-h2); }
.mc-b { flex: 1; display: grid; gap: 2px; min-width: 0; }
.mc-b small { color: var(--ink2); font-size: 12.5px; }
.mc-p { display: flex; align-items: center; gap: 8px; } .mc-p .num { font-size: 12.5px; color: var(--ink2); min-width: 34px; }
.mcard2 .badge { position: absolute; top: 8px; right: 10px; }
.pk-sec { margin-bottom: 8px; }
.chains { margin-bottom: 14px; display: grid; gap: 8px; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; }
.chain a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.chain a.done { background: var(--ok-t); border-color: transparent; }
.chain i { color: var(--ink2); font-style: normal; } .chain-n { font-weight: 700; min-width: 100px; } .chain-end { font-weight: 700; color: var(--pk-mine); }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; box-shadow: var(--sh); height: 100%; }
.gcard:hover { text-decoration: none; border-color: var(--mustard); }
.gcover { position: relative; aspect-ratio: 8 / 3; background: var(--steel); display: block; }
.gcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcode { position: absolute; left: 10px; bottom: 10px; background: rgba(15, 25, 31, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.gcover .badge { position: absolute; right: 10px; top: 10px; }
.gbody { padding: 12px 14px 14px; display: grid; gap: 8px; }
.gbody > small { color: var(--ink2); font-size: 13px; margin-top: -6px; }
.gmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink2); }
.gmeta span { display: inline-flex; align-items: center; gap: 5px; }
.gprog { display: grid; gap: 4px; font-size: 13px; color: var(--ink2); }
.gwrap { display: flex; flex-direction: column; gap: 8px; }
.gacts { display: flex; gap: 6px; flex-wrap: wrap; }
.ghero { border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; box-shadow: var(--sh); }
.ghero img { display: block; width: 100%; aspect-ratio: 8 / 2; object-fit: cover; background: var(--steel); }
.ghero-t { padding: 16px 20px 18px; }
.ghero-t .gcode { position: static; display: inline-block; margin-bottom: 8px; }
.ghero-t p { margin: 6px 0 0; color: var(--ink2); font-size: 14px; }
.cover-prev img { width: 100%; border-radius: var(--r-s); display: block; }
.themes { display: flex; flex-wrap: wrap; gap: 6px; }
.stu-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.stu-head > div:nth-child(2) { flex: 1; min-width: 240px; } .stu-head p { margin: 4px 0 0; }
.stu-ring { display: grid; justify-items: center; gap: 4px; } .stu-ring small { font-size: 12.5px; color: var(--ink2); }

/* achievements, certificates */
.ach { display: flex; flex-wrap: wrap; gap: 8px; }
.ach-i { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line); color: var(--ink2); font-size: 13px; }
.ach-i b { font-weight: 600; }
.ach-i.on { border-style: solid; border-color: transparent; background: var(--mustard-t); color: var(--ink); } .ach-i.on .ic { color: var(--mustard-d); fill: var(--mustard); }
.ach.big { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ach.big .ach-i { display: grid; gap: 4px; padding: 14px; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cert-c { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); color: inherit; border-top: 4px solid var(--mustard); }
.cert-c:hover { text-decoration: none; border-color: var(--mustard); }
.cert-c .ic { color: var(--mustard-d); } .cert-c small { color: var(--ink2); }
.cert-c.revoked { opacity: .6; border-top-color: var(--grey); }
.prof-id { text-align: center; display: grid; justify-items: center; gap: 8px; }
.prof-photo .av { box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--mustard); }

/* reviews & questions */
.review { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.review li { padding: 10px 12px; border-left: 3px solid var(--line); background: var(--hover); border-radius: 0 6px 6px 0; }
.review li.ok { border-left-color: var(--ok); } .review li.no { border-left-color: var(--bad); }
.review b, .review span, .review em { display: block; } .review span { font-size: 13.5px; color: var(--ink2); } .review em { font-size: 13.5px; margin-top: 4px; }
.res-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.res-head .big { font-size: 18px; display: block; margin-bottom: 6px; }
.opts { display: grid; gap: 8px; margin: 12px 0 14px; }
.opt { text-align: left; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--ink); font: 15px var(--font); cursor: pointer; }
.opt:hover { border-color: var(--mustard); } .opt.pick { border-color: var(--mustard-d); background: var(--mustard-t); font-weight: 600; }
.qbank { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.qbank > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qbank > li > div:first-child { margin-bottom: 6px; }
.qbank > li { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.qbank > li.off { opacity: .55; }
.qbank ol { margin: 6px 0; padding-left: 20px; font-size: 14px; color: var(--ink2); }
.qbank ol li.right { color: var(--ok); font-weight: 650; }
.qbank small { color: var(--ink2); }
.opts-edit { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.opts-edit legend { font-size: 13.5px; font-weight: 600; }
#oe { display: grid; gap: 6px; }
.orow { display: grid; grid-template-columns: 22px 1fr 36px; gap: 8px; align-items: center; }
.lesson h2 { font-size: 21px; margin: 18px 0 8px; } .lesson h3 { margin: 14px 0 6px; } .lesson h2:first-child { margin-top: 0; }
.lesson p, .lesson li { font-size: 16px; line-height: 1.65; max-width: 72ch; }
.chatlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chatlog li { border-left: 3px solid var(--line); padding: 4px 10px; } .chatlog small { color: var(--ink2); display: block; } .chatlog p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink2); }
.mlist-chk { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px; }
.mlist-chk .chk { padding: 6px; border-radius: 6px; } .mlist-chk .chk:hover { background: var(--hover); }
.mlist-chk .chk span { display: grid; } .mlist-chk small { font-size: 12.5px; }
.secret { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--mustard-t); border-radius: var(--r-s); margin: 10px 0; }
.secret code { font-size: 20px; font-weight: 700; flex: 1; letter-spacing: .04em; }

/* ---------------- dialogs & toasts ---------------- */
.dlg-back { position: fixed; inset: 0; background: rgba(10, 18, 24, .5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.dlg { background: var(--card); border-radius: 12px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: pop .18s ease; }
.dlg.wide { width: min(820px, 100%); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 10px; }
.dlg-b { padding: 6px 20px 18px; overflow-y: auto; }
.dlg-f, .dlg-acts { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.dlg-f { padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.dlg-acts { margin-top: 6px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--steel); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); border-left: 4px solid var(--grey); animation: pop .2s ease; }
.toast.ok { border-left-color: #3CCB7F; } .toast.error { border-left-color: var(--orange); } .toast.warn { border-left-color: #E8A200; } .toast.out { opacity: 0; transition: opacity .3s; }

/* ---------------- player page ---------------- */
main.full { padding: 0; }
.player-wrap { display: flex; flex-direction: column; height: 100vh; }
.player-bar { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.pb-t { flex: 1; display: grid; min-width: 0; } .pb-t small { color: var(--ink2); font-size: 12px; } .pb-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-p { display: flex; align-items: center; gap: 8px; width: 190px; white-space: nowrap; font-size: 13px; color: var(--ink2); }
#player { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 960px) { .player-wrap { height: calc(100vh - 54px); height: calc(100dvh - 54px); } .pb-p { display: none; } }

/* ---------------- AI assistant ---------------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; border: 0;
  background: var(--steel); color: #fff; font: 700 14.5px var(--font); cursor: pointer; box-shadow: 0 8px 26px rgba(10, 20, 26, .35); }
.chat-fab .ic { color: var(--mustard); }
.chat-fab:hover { background: var(--steel3); }
.chat-fab.on span { display: none; } .chat-fab.on { padding: 12px; }
.chat-p { position: fixed; right: 20px; bottom: 84px; z-index: 60; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(10, 20, 26, .3); display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease; }
.chat-p header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--steel); color: #fff; }
.chat-p header div { flex: 1; display: grid; min-width: 0; } .chat-p header small { color: var(--steel-ink); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log { position: relative; flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; } .msg ul { margin: 4px 0 6px; padding-left: 18px; }
.msg.user { align-self: flex-end; background: var(--mustard-t); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--hover); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .src { display: block; margin-top: 6px; color: var(--ink2); font-size: 12px; }
.typing { display: flex; gap: 4px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.chat-hello p { color: var(--ink2); font-size: 14px; }
.chip { display: block; width: 100%; text-align: left; margin: 6px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 14px var(--font); cursor: pointer; }
.chip:hover { border-color: var(--mustard); }
.chat-f { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-f textarea { min-height: 40px; max-height: 120px; resize: none; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--ink2); }
@media (max-width: 600px) { .chat-p { right: 0; left: 0; bottom: 0; width: 100%; height: 82vh; border-radius: 14px 14px 0 0; } .chat-fab { right: 14px; bottom: 14px; } }

/* ---------------- sign-in pages ---------------- */
main.bare { min-height: 100vh; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--steel); position: relative; overflow: hidden; }
.auth-art { position: absolute; inset: 0; pointer-events: none; }
.auth-dia { position: absolute; right: -60px; top: 6%; width: 760px; max-width: 90vw; aspect-ratio: 760 / 240; opacity: .2; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 240'%3E%3Cpath d='M20 170 C130 70 250 60 370 140 S600 200 740 70' fill='none' stroke='%23FF6B35' stroke-width='26' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.auth-card { position: relative; width: min(440px, 100%); background: var(--card); border-radius: 14px; padding: 28px 28px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: grid; gap: 12px; }
.auth-card.wide { width: min(720px, 100%); }
.auth-brand img { height: 50px; width: auto; display: block; }
.auth-card h1 { font-size: 24px; } .auth-card > p { margin: -4px 0 4px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.auth .seg { width: 100%; } .auth .seg a { flex: 1; justify-content: center; }
#uOk { font-weight: 600; }

/* ---------------- landing ---------------- */
.lp-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.lp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.lp-top .lp-in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.lp-brand img { height: 46px; width: auto; display: block; }
.lp-top nav { display: flex; gap: 22px; align-items: center; }
.lp-top nav a:not(.btn) { color: #DDE5EA; font-weight: 600; font-size: 14.5px; }
.hero { position: relative; background: radial-gradient(120% 90% at 20% 0%, #2B4352 0%, var(--steel) 55%, #131E25 100%); color: #fff; overflow: hidden;
  min-height: min(100vh, 940px); display: flex; flex-direction: column; justify-content: space-between; }
.hero-txt { position: relative; z-index: 2; max-width: 1240px; width: 100%; margin: 0 auto; padding: 112px 32px 0; }
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; max-width: 15ch; }
.hero-tag { font-size: clamp(19px, 2vw, 24px); font-weight: 650; color: var(--mustard); margin: 18px 0 10px; letter-spacing: .01em; }
.hero-sub { font-size: 17.5px; line-height: 1.6; color: #D2DCE2; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-scope { font-size: 13.5px; color: #93A7B3; }
.hero-art { display: block; width: 100%; height: clamp(230px, 25vw, 380px); margin-top: 8px; }
.h-far { fill: none; stroke: #2B404C; stroke-width: 2; }
.h-ground { stroke: #3E5866; stroke-width: 2; } .h-ground.faint { stroke: #263843; stroke-dasharray: 2 8; }
.h-eq { fill: none; stroke: #A7BAC5; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.h-eq rect, .h-eq circle { fill: rgba(167, 186, 197, .05); }
.h-eq .thin, .thin { stroke-width: 1.2; opacity: .75; }
.h-eq-l { fill: none; stroke: #A7BAC5; stroke-width: 2.2; stroke-linecap: round; }
.h-pipe { fill: none; stroke: #3A5463; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.h-flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 13; animation: flow 1.5s linear infinite; }
.h-flow.oil { stroke: var(--mustard); } .h-flow.gas { stroke: #93D3EF; animation-duration: .9s; } .h-flow.prod { stroke: var(--orange); }
.h-flow.water { stroke: #5FB3C9; } .h-flow.elec { stroke: #F5D547; stroke-dasharray: 3 9; animation-duration: .5s; } .h-flow.ore { stroke: #C47F45; stroke-width: 5; stroke-dasharray: 6 10; animation-duration: 2.2s; }
.h-liquid { fill: rgba(204, 170, 46, .55); animation: slosh 3.2s ease-in-out infinite alternate; }
.h-liquid.prod { fill: rgba(240, 78, 35, .38); animation-duration: 4.4s; }
.h-flame { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
.h-wire { fill: none; stroke: #6F8794; stroke-width: 1.3; }
.h-beam { transform-box: view-box; transform-origin: 200px 300px; animation: rock 2.8s ease-in-out infinite alternate; }
.h-crank { transform-box: view-box; transform-origin: 242px 356px; animation: rot 2.8s linear infinite; }
.h-rot { transform-box: view-box; animation: rot 1.2s linear infinite; } .h-rot.slow { animation-duration: 5s; }
.h-screen { fill: #0D181E !important; }
.h-trend { fill: none; stroke: var(--mustard); stroke-width: 2.2; stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 4s ease-in-out infinite; }
.h-led { fill: #3CCB7F; animation: blink 1.4s steps(2) infinite; } .h-led.b { fill: var(--mustard); animation-duration: 2.2s; } .h-led.c { fill: var(--orange); animation-duration: .9s; }
.h-sig { fill: none; stroke: #5FB3C9; stroke-width: 1.3; stroke-dasharray: 2 6; animation: flow 2s linear infinite; opacity: .8; }
.h-ore { fill: rgba(176, 104, 47, .5) !important; }
.h-pulse { fill: none; stroke: var(--mustard); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.h-pulse.d2 { animation-delay: .9s; } .h-pulse.d3 { animation-delay: 1.8s; }
.h-dia { color: var(--mustard); opacity: .1; }
@keyframes flow { to { stroke-dashoffset: -42; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes rock { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes slosh { from { transform: translateX(0); } to { transform: translateX(28px); } }
@keyframes flicker { from { transform: scale(1, .82); } to { transform: scale(.92, 1.12); } }
@keyframes draw { 0% { stroke-dashoffset: 240; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -240; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.lp-sec { padding: 76px 0; background: var(--card); }
.lp-sec.alt { background: var(--paper); }
.lp-lead { max-width: 760px; margin-bottom: 34px; }
.lp-lead h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.lp-lead p { font-size: 17px; color: var(--ink2); line-height: 1.65; }
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps4 li { position: relative; padding-top: 58px; }
.steps4 li span { position: absolute; top: 6px; left: 6px; width: 38px; height: 38px; display: grid; place-items: center; font-weight: 800; color: #fff; z-index: 0; }
.steps4 li span::before { content: ""; position: absolute; inset: 0; transform: rotate(45deg); border-radius: 7px; background: var(--mustard); z-index: -1; }
.steps4 li:first-child span { color: var(--on-accent, #0A2545); }
.steps4 li:nth-child(2) span::before { background: var(--orange); } .steps4 li:nth-child(3) span::before { background: var(--grey); } .steps4 li:nth-child(4) span::before { background: var(--steel); }
.steps4 b { font-size: 18px; display: block; margin-bottom: 6px; }
.steps4 p { color: var(--ink2); }
.disc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.disc-c { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; border-top: 4px solid var(--pk-custom); display: grid; gap: 8px; align-content: start; }
.disc-c.pk-proc { border-top-color: var(--pk-proc); } .disc-c.pk-mech { border-top-color: var(--pk-mech); } .disc-c.pk-elec { border-top-color: var(--pk-elec); } .disc-c.pk-inst { border-top-color: var(--pk-inst); } .disc-c.pk-mine { border-top-color: var(--pk-mine); } .disc-c.pk-water { border-top-color: var(--pk-water); } .disc-c.pk-h2 { border-top-color: var(--pk-h2); }
.disc-c .ic { color: var(--ink2); } .disc-c b { font-size: 16px; } .disc-c p { font-size: 14px; color: var(--ink2); margin: 0; } .disc-c small { font-weight: 700; color: var(--ink); }
.roles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.roles3 h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; margin-bottom: 8px; } .roles3 h3 .ic { color: var(--mustard-d); }
.roles3 p { color: var(--ink2); }
.lp-foot { background: var(--steel); color: var(--steel-ink); padding: 24px 0; font-size: 14px; }
.lp-foot .lp-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-foot a { color: var(--steel-ink); }
@media (max-width: 1000px) { .steps4 { grid-template-columns: 1fr 1fr; } .disc { grid-template-columns: repeat(2, 1fr); } .roles3 { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) {
  .lp-in { padding: 0 16px; } .hero-txt { padding: 104px 16px 0; } .lp-top nav a:not(.btn) { display: none; }
  .steps4, .disc { grid-template-columns: 1fr; } .lp-sec { padding: 52px 0; } .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------------- certificate (print) ---------------- */
.cert-page { padding: 24px 16px; background: var(--paper); min-height: 100vh; }
.cert-tools { max-width: 1000px; margin: 0 auto 14px; display: flex; justify-content: space-between; }
.cert-doc { max-width: 1000px; aspect-ratio: 297 / 210; margin: 0 auto; background: #fff; color: #1B252B; position: relative; overflow: hidden; border: 1px solid #DDD;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6% 8%; gap: 4px; }
.cert-band { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(90deg, var(--mustard) 0 60%, var(--orange) 60% 85%, var(--grey) 85%); }
.cert-logo { height: 70px; width: auto; margin-bottom: 14px; }
.cert-k { font-size: 15px; font-weight: 700; color: var(--mustard-d); letter-spacing: .06em; }
.cert-doc h1 { font-size: clamp(26px, 4vw, 44px); margin: 6px 0; }
.cert-doc h2 { font-size: clamp(18px, 2.6vw, 28px); margin: 6px 0; color: #0A2545; }
.cert-doc p { color: #55636C; margin: 0; }
.cert-foot { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 24px; gap: 20px; }
.cert-foot div { display: grid; text-align: center; flex: 1; border-top: 1px solid #C9D1D6; padding-top: 8px; }
.cert-foot small { color: #55636C; font-size: 11.5px; word-break: break-all; }
.cert-void { position: absolute; top: 40%; transform: rotate(-18deg); font-size: 90px; font-weight: 800; color: rgba(179, 38, 30, .25); }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; } .no-print, #chatw, #toasts { display: none !important; }
  .cert-page { padding: 0; background: #fff; } .cert-doc { border: 0; max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .h-trend { stroke-dashoffset: 0; }
}

/* ---------------- Phase 2: hierarchy navigation, explore, resume ---------------- */
.btn[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13.5px; color: var(--ink2); margin-bottom: 10px; min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; color: var(--grey); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.stepnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pn { display: inline-flex; align-items: center; gap: 8px; } .pn small { color: var(--ink2); font-size: 12.5px; }
.pnav { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pnav .crumbs { flex: 1; margin: 0; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.pnav.page-nav { margin-bottom: 18px; flex-wrap: wrap; }
@media (max-width: 760px) { .pnav .crumbs { display: none; } .pnav .btn span, .pn .btn span { display: none; } .stepnav .pn .btn span { display: none; } }
.xcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.xcard { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: inherit; border-left: 4px solid var(--mustard); transition: border-color .15s, transform .15s; }
.xcard:hover { text-decoration: none; border-color: var(--mustard); transform: translateY(-1px); }
.xcard.dim { opacity: .72; border-left-color: var(--grey); }
.xcard.ind-engineering, .xcard.ind-industrial-equipment { border-left-color: var(--orange); } .xcard.ind-water-treatment, .xcard.ind-wastewater { border-left-color: var(--pk-water); } .xcard.ind-hydrogen { border-left-color: var(--pk-h2); } .xcard.ind-automation { border-left-color: var(--pk-inst); } .xcard.ind-water-power { border-left-color: var(--live); } .xcard.ind-mining { border-left-color: var(--pk-mine); }
.xc-i { color: var(--ink2); flex: none; margin-top: 2px; }
.xc-b { flex: 1; display: grid; gap: 6px; min-width: 0; } .xc-b b { font-size: 16.5px; } .xc-t { color: var(--ink2); font-size: 14px; } .xc-b small { color: var(--ink2); font-weight: 600; }
.xc-go { color: var(--grey); align-self: center; }
.journey-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; color: var(--ink2); font-weight: 600; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: j; }
.journey li { display: flex; gap: 12px; align-items: center; }
.journey li .mcard2 { flex: 1; }
.jn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--steel); color: #fff; font-weight: 700; font-size: 14px; }
.resume { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; border-left: 4px solid var(--mustard); flex-wrap: wrap; }
.resume > div { flex: 1; display: grid; gap: 2px; min-width: 220px; } .resume small { color: var(--ink2); font-weight: 600; } .resume b { font-size: 17px; } .resume .muted { font-size: 13.5px; }
.resume-i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mustard-t); color: var(--mustard-d); flex: none; }
.cat-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-h .sp { flex: 1; }
.cat-s { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); }
.cat-p { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 0 14px; margin-top: 10px; border-top: 1px dashed var(--line); }
.ordl { margin: 10px 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ordl li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-s); }
.ordl .sp { flex: 1; }
.auth .seg.wrap a { flex: 1 1 auto; }

/* landing additions */
.hero-eye { margin: 0 0 14px; color: #93A7B3; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 20ch; font-size: clamp(32px, 4.4vw, 62px); letter-spacing: .005em; }
.hero-areas { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; max-width: 900px; }
.hero-areas li { font-size: 12.5px; color: #C9D3D9; border: 1px solid rgba(201, 211, 217, .25); border-radius: 999px; padding: 3px 10px; }
.lp-link { background: none; border: 0; color: #DDE5EA; font: 600 14.5px var(--font); cursor: pointer; padding: 6px 2px; }
.lp-link:hover { color: #fff; text-decoration: underline; }
.ind4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind-c { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: inherit; border-top: 4px solid var(--mustard); transition: transform .15s, box-shadow .15s; }
.ind-c:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16, 28, 36, .12); }
.ind-c.ind-engineering { border-top-color: var(--orange); } .ind-c.ind-water-power { border-top-color: var(--live); } .ind-c.ind-mining { border-top-color: var(--pk-mine); }
.ind-i { color: var(--ink2); } .ind-c b { font-size: 17px; } .ind-c p { margin: 0; color: var(--ink2); font-size: 14px; }
.ind-c ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink2); } .ind-c small { font-weight: 700; margin-top: auto; }
.ind-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--live); font-size: 14px; }
.roles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.roles4 a { color: inherit; padding: 16px; border-radius: var(--r); border: 1px solid transparent; }
.roles4 a:hover { text-decoration: none; border-color: var(--line); background: var(--hover); }
.roles4 h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; margin-bottom: 8px; } .roles4 h3 .ic { color: var(--mustard-d); }
.roles4 p { color: var(--ink2); margin: 0; }
.lp-foot-l { display: inline-flex; gap: 18px; }
.h-liquid.water { fill: rgba(95, 179, 201, .45); animation-duration: 3.8s; }
.h-bridge { transform-box: view-box; transform-origin: 1868px 336px; animation: sweep 6s ease-in-out infinite alternate; }
.h-bub circle { fill: #93D3EF; opacity: .8; animation: rise 2.4s linear infinite; }
.h-bub circle:nth-child(2n) { animation-delay: .8s; } .h-bub circle:nth-child(3n) { animation-delay: 1.5s; }
@keyframes sweep { from { transform: scaleX(.6); } to { transform: scaleX(1); } }
@keyframes rise { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-48px); opacity: 0; } }
@media (max-width: 1100px) { .ind4, .roles4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ind4, .roles4 { grid-template-columns: 1fr; } .lp-top nav .lp-link { display: none; } .hero-areas { display: none; } }
.btn.signup { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.signup:hover { background: #D9441D; }
.form.grid2 { align-items: start; }

/* ---------------- animated technical covers ---------------- */
:root { --cv-bg: #EEF2F4; --cv-sky: #E6F0F6; --cv-ink: #4A5C66; --cv-pv: #1F3B5C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cv-bg: #1A262D; --cv-sky: #17242C; --cv-ink: #9DB0BA; } }
.cover { display: block; width: 100%; height: 100%; }
.cv-ground { stroke: var(--cv-ink); stroke-width: 1.5; opacity: .5; }
.cv-eq { fill: rgba(127, 150, 162, .12); stroke: var(--cv-ink); stroke-width: 1.8; stroke-linejoin: round; }
.cv-thin { fill: none; stroke: var(--cv-ink); stroke-width: 1.4; } .cv-thick { stroke: var(--cv-ink); stroke-width: 4; }
.cv-pipe { fill: none; stroke: var(--cv-ink); stroke-width: 5; opacity: .35; stroke-linecap: round; stroke-linejoin: round; }
.cv-flow { fill: none; stroke-width: 2.6; stroke-dasharray: 7 10; stroke-linecap: round; animation: flow 1.4s linear infinite; }
.cv-flow.elec { stroke: #D98E04; stroke-dasharray: 3 7; animation-duration: .6s; } .cv-flow.gas { stroke: #0075B3; } .cv-flow.oil { stroke: #8A5A2B; }
.cv-flow.water { stroke: #008F91; } .cv-flow.steam { stroke: #9D9FA2; } .cv-flow.ore { stroke: #B0682F; stroke-width: 4; animation-duration: 2.4s; }
.cv-pv { fill: var(--cv-pv); stroke: #6E8FB0; stroke-width: 1; } .cv-pvl { stroke: #7FA0C2; stroke-width: .7; }
.cv-suncore { fill: #F6C343; stroke: #E0A100; stroke-width: 2; } .cv-ray { stroke: #E0A100; stroke-width: 3; stroke-linecap: round; }
.cv-sun { transform-origin: 270px 30px; animation: rot 14s linear infinite; }
.cv-beam { stroke: #F6C343; stroke-width: 2; stroke-dasharray: 4 9; opacity: .8; animation: flow 1.2s linear infinite; } .cv-beam.d2 { animation-delay: -.4s; } .cv-beam.d3 { animation-delay: -.8s; }
.cv-pulse { animation: cvpulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cv-tower { fill: #DDE3E7; stroke: var(--cv-ink); stroke-width: 1; } .cv-blade { fill: #F4F6F7; stroke: var(--cv-ink); stroke-width: .9; } .cv-hub { fill: var(--cv-ink); }
.cv-spin { animation: rot 3s linear infinite; } .cv-spin.rev { animation-direction: reverse; }
.cv-wind { fill: none; stroke: #4F86C6; stroke-width: 1.6; stroke-dasharray: 18 14; opacity: .6; animation: flow 1.6s linear infinite; } .cv-wind.d2 { animation-delay: -.8s; }
.cv-liq { fill: rgba(204, 170, 46, .5); animation: slosh 3s ease-in-out infinite alternate; } .cv-liq.water { fill: rgba(0, 143, 145, .35); }
.cv-flame { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
.cv-steam { fill: #C9CED2; opacity: .7; animation: rise 2.6s ease-out infinite; } .cv-steam.d2 { animation-delay: -1.3s; }
.cv-bub { fill: #93D3EF; animation: rise 2s linear infinite; } .cv-bub.b { fill: #C9E8F5; }
.cv-txt { font: 700 16px var(--font); fill: var(--cv-ink); text-anchor: middle; }
.cv-wire { fill: none; stroke: var(--cv-ink); stroke-width: 1.2; opacity: .6; }
.cv-pile { fill: rgba(176, 104, 47, .35); stroke: var(--cv-ink); stroke-width: 1.4; } .cv-belt { stroke: var(--cv-ink); stroke-width: 6; opacity: .35; stroke-linecap: round; }
.cv-gear { fill: rgba(127, 150, 162, .2); stroke: var(--cv-ink); stroke-width: 1.6; } .cv-hole { fill: var(--cv-bg); stroke: var(--cv-ink); stroke-width: 1.4; }
.cv-needle { stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; transform-origin: 70px 64px; animation: cvneedle 3s ease-in-out infinite alternate; }
.cv-screen { fill: #0D181E; stroke: var(--cv-ink); } .cv-trend { fill: none; stroke: var(--mustard); stroke-width: 2.2; stroke-dasharray: 220; animation: draw 4s ease-in-out infinite; }
@keyframes cvpulse { 50% { transform: scale(1.12); } }
@keyframes cvneedle { from { transform: rotate(-20deg); } to { transform: rotate(18deg); } }

/* module cards with cover, level, duration, progress and Start / Continue */
.mcard3 { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mcard3:hover { text-decoration: none; border-color: var(--mustard); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 28, 36, .1); }
.mc3-cv { position: relative; height: 96px; border-bottom: 1px solid var(--line); }
.mc3-cv .mc-i { position: absolute; left: 12px; bottom: -16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink2); }
.mc3-code { position: absolute; right: 10px; top: 8px; font: 700 11.5px var(--font); letter-spacing: .04em; background: rgba(255, 255, 255, .85); color: #1B252B; padding: 2px 7px; border-radius: 999px; }
.mc3-b { padding: 22px 14px 14px; display: grid; gap: 7px; flex: 1; }
.mc3-b b { font-size: 15.5px; line-height: 1.3; }
.mc3-d { color: var(--ink2); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc3-chips { display: flex; flex-wrap: wrap; gap: 6px; } .mc3-chips span { font-size: 12px; font-weight: 600; color: var(--ink2); background: var(--track); padding: 2px 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.mc3-chips .sim { background: var(--live-t); color: var(--live); }
.mc3-f { display: flex; align-items: center; gap: 10px; margin-top: auto; } .mc3-f .mc-p { flex: 1; }
.mc3-go { font-weight: 700; font-size: 13.5px; color: var(--live); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.mgrid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.xcard.has-cv { flex-direction: column; padding: 0; overflow: hidden; gap: 0; border-left-width: 1px; }
.xcard.has-cv .xc-cv { height: 100px; border-bottom: 1px solid var(--line); }
.xcard.has-cv .xc-b { padding: 14px 16px 16px; } .xcard.has-cv .xc-i, .xcard.has-cv .xc-go { display: none; }
.ind-c.has-cv { padding: 0; overflow: hidden; } .ind-c.has-cv .ind-cv { height: 110px; border-bottom: 1px solid var(--line); }
.ind-c.has-cv > :not(.ind-cv) { margin-left: 20px; margin-right: 20px; } .ind-c.has-cv > :last-child { margin-bottom: 18px; }
.sim-link { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-left: 4px solid var(--live); }
.sim-link .cv-box { width: 160px; height: 60px; border-radius: 8px; overflow: hidden; flex: none; }
.sim-link div { flex: 1; min-width: 200px; } .sim-link small { color: var(--ink2); }
.journey li .mcard3 { flex: 1; }

/* Interactive industry pictures (Explore → industry) */
:root { --sc-sky: #E9F2F7; --sc-land: #EEEBE2; --sc-sea: #BFE0EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sc-sky: #15222A; --sc-land: #1C2328; --sc-sea: #123845; } }
:root[data-theme="dark"] { --sc-sky: #15222A; --sc-land: #1C2328; --sc-sea: #123845; }
.scene { margin: 4px 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.scn-h { display: grid; gap: 2px; padding: 14px 16px 10px; } .scn-h small { color: var(--ink2); }
.scn-wrap { width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scn-svg { display: block; width: 100%; height: auto; }
.sc-sky { fill: var(--sc-sky); } .sc-land { fill: var(--sc-land); } .sc-sea { fill: var(--sc-sea); }
.sc-wave { fill: none; stroke: #4F9DB5; stroke-width: 2; opacity: .6; animation: slosh 3s ease-in-out infinite alternate; } .sc-wave.d2 { animation-delay: -1.5s; }
.sc-lbl { font: 700 13px var(--font); fill: var(--cv-ink); text-anchor: middle; }
.sc-chem { font: 700 10px var(--font); fill: var(--cv-ink); text-anchor: middle; }
.sc-win { fill: #F6C343; opacity: .8; } .sc-leaf { fill: rgba(80, 150, 80, .55); stroke: var(--cv-ink); stroke-width: 1; }
.sc-led { fill: #3FB27F; animation: blink 1.6s ease-in-out infinite; }
.sc-sun { transform-origin: 120px 80px; animation: cvpulse 4s ease-in-out infinite; }
.hs { cursor: pointer; outline: none; }
.hs-dot { fill: var(--orange); stroke: #fff; stroke-width: 2.5; transition: fill .15s; }
.hs-ring { fill: none; stroke: var(--orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.hs-n { font: 800 13px var(--font); fill: #fff; text-anchor: middle; pointer-events: none; }
.hs:hover .hs-dot, .hs:focus-visible .hs-dot, .hs.on .hs-dot { fill: var(--mustard); }
.hs:focus-visible .hs-dot { stroke: var(--ink); stroke-width: 3.5; }
.scn-info:empty { display: none; }
.scn-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--mustard-t, rgba(255, 107, 53, .12)); animation: fade .2s; }
.scn-card > div { flex: 1; display: grid; gap: 6px; justify-items: start; } .scn-card p { margin: 0; }
.scn-card > .num, .scn-list .num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.scn-list { list-style: none; margin: 0; padding: 10px 12px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.scn-list button { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 4px 2px; color: inherit; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.scn-list button:hover, .scn-list button.on { color: var(--orange); }
.scn-list button.on .num { background: var(--mustard); color: var(--on-accent, #0A2545); }
.chat-lvl { display: flex; gap: 6px; padding: 8px 12px 0; flex-wrap: wrap; }
.chat-lvl .chip { width: auto; display: inline-block; margin: 0; padding: 4px 10px; font-size: 12.5px; }
.chat-lvl .chip.on { background: var(--mustard-t); border-color: var(--mustard); font-weight: 700; }

/* ---- Industry explorer v2: shaded scenes, viewer controls, modes ---- */
:root { --sc-sky1: #CFE6F3; --sc-sky2: #F3F8FB; --sc-g1: #E7E1D2; --sc-g2: #D6CDB8; --sc-sea1: #7CC4D6; --sc-sea2: #2F8EA6;
  --sc-m1: #F4F6F7; --sc-m2: #C9D2D8; --sc-m3: #A9B5BD; --sc-m4: #7E8D97; --sc-w1: #EEF1F3; --sc-w2: #D3D9DD; --sc-ink: #46565F; --sc-hill: #D9D1BE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sc-sky1: #0F1E27; --sc-sky2: #1B2C36; --sc-g1: #222A2F; --sc-g2: #1A2025; --sc-sea1: #155A6B; --sc-sea2: #0C3A47;
  --sc-m1: #8796A0; --sc-m2: #5E6E78; --sc-m3: #4B5961; --sc-m4: #36424A; --sc-w1: #3A464E; --sc-w2: #2C363D; --sc-ink: #A9BAC4; --sc-hill: #283238; } }
:root[data-theme="dark"] { --sc-sky1: #0F1E27; --sc-sky2: #1B2C36; --sc-g1: #222A2F; --sc-g2: #1A2025; --sc-sea1: #155A6B; --sc-sea2: #0C3A47;
  --sc-m1: #8796A0; --sc-m2: #5E6E78; --sc-m3: #4B5961; --sc-m4: #36424A; --sc-w1: #3A464E; --sc-w2: #2C363D; --sc-ink: #A9BAC4; --sc-hill: #283238; }
.scene { position: relative; }
.scn-h { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.scn-h > div:first-child { display: grid; gap: 2px; flex: 1 1 320px; }
.scn-tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.scn-tools .btn[aria-pressed="true"] { background: var(--mustard); border-color: var(--mustard); color: var(--on-accent, #0A2545); }
.scn-wrap { position: relative; overflow: hidden; touch-action: pan-y; background: var(--sc-sky2); }
.scene.zoomed .scn-wrap { touch-action: none; cursor: grab; }
.scene.zoomed .scn-wrap:active { cursor: grabbing; }
.scn-back { position: absolute; left: 12px; top: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.scn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px; font-size: 13px; color: var(--ink2); border-bottom: 1px solid var(--line); }
.scn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.scn-legend i.lg { width: 22px; height: 0; border-top: 3px dashed var(--ink2); }
.lg.oil { border-color: #8A5A2B !important; } .lg.gas { border-color: #0075B3 !important; } .lg.water { border-color: #008F91 !important; } .lg.lean { border-color: #42802B !important; }
.lg.steam { border-color: #9D9FA2 !important; } .lg.elec { border-color: #D98E04 !important; } .lg.h2 { border-color: #5B4FCF !important; } .lg.o2 { border-color: #D6336C !important; }
.lg.cool { border-color: #4FB3C9 !important; } .lg.air { border-color: #4F86C6 !important; } .lg.sludge { border-color: #6E7F80 !important; } .lg.chem { border-color: #7A5C9E !important; }
.lg.sig { border-color: #6A4C93 !important; } .lg.ore { border-color: #B0682F !important; } .lg.slurry { border-color: #6E7F80 !important; } .lg.tail { border-color: #BFAE8C !important; } .lg.hot { border-color: #F04E23 !important; }
.cv-flow.h2 { stroke: #5B4FCF; } .cv-flow.o2 { stroke: #D6336C; } .cv-flow.cool { stroke: #4FB3C9; } .cv-flow.air { stroke: #4F86C6; } .cv-flow.sludge { stroke: #6E7F80; }
.cv-flow.chem { stroke: #7A5C9E; stroke-dasharray: 3 6; } .cv-flow.sig { stroke: #6A4C93; stroke-dasharray: 2 6; stroke-width: 2; animation-duration: .8s; } .cv-flow.lean { stroke: #42802B; }
.cv-flow.slurry { stroke: #6E7F80; } .cv-flow.tail { stroke: #BFAE8C; } .cv-flow.hot { stroke: #F04E23; }
.sc-hill { fill: var(--sc-hill); opacity: .8; }
.sc-eq { stroke: var(--sc-ink); stroke-width: 1.2; stroke-linejoin: round; }
.sc-seam { stroke: var(--sc-ink); stroke-width: .8; opacity: .35; fill: none; }
.sc-shine { stroke: #fff; stroke-width: 2; opacity: .35; stroke-linecap: round; } .sc-shine-f { fill: #fff; opacity: .35; }
.sc-leg { stroke: var(--sc-ink); stroke-width: 2.4; } .sc-top { fill: var(--sc-m1); stroke: var(--sc-ink); stroke-width: 1.1; }
.sc-front { stroke: var(--sc-ink); stroke-width: 1.1; fill: url(#sgWall); } .sc-side { fill: var(--sc-w2); stroke: var(--sc-ink); stroke-width: 1.1; filter: brightness(.85); }
.sc-roof { fill: var(--sc-m1); stroke: var(--sc-ink); stroke-width: 1.1; }
.sc-door { fill: var(--sc-m4); } .sc-win2 { fill: #8EC7E0; stroke: var(--sc-ink); stroke-width: .6; } .sc-glass { fill: rgba(140, 199, 224, .22); stroke: var(--sc-ink); stroke-width: .8; }
.sc-pipe { fill: none; stroke: var(--sc-m4); stroke-linecap: round; stroke-linejoin: round; opacity: .55; } .sc-pipe-hl { fill: none; stroke: #fff; opacity: .25; stroke-linecap: round; stroke-linejoin: round; }
.sc-skid { fill: var(--sc-m4); } .sc-rib { stroke: var(--sc-ink); stroke-width: .7; opacity: .4; } .sc-motor { }
.sc-blade { stroke: var(--sc-ink); stroke-width: 2; stroke-linecap: round; } .sc-fanring { fill: var(--sc-m3); } .sc-fanb .sc-blade { stroke-width: 2.6; }
.sc-lattice { fill: none; stroke: var(--sc-ink); stroke-width: 1.6; stroke-linejoin: round; } .sc-bush { stroke: #B9C6CD; stroke-width: 3; stroke-linecap: round; }
.sc-xf { } .sc-panel { fill: var(--sc-m3); stroke: var(--sc-ink); stroke-width: .8; } .sc-panel.sis { fill: #C4553C; }
.sc-scr { fill: #0D181E; } .sc-led { fill: #3FB27F; animation: blink 1.6s ease-in-out infinite; } .sc-led.r { fill: #F04E23; animation-duration: .9s; }
.sc-monitor { fill: #0D181E; stroke: var(--sc-ink); } .sc-desk { fill: var(--sc-m3); stroke: var(--sc-ink); stroke-width: .8; }
.sc-pv { stroke: #8FB0D0; stroke-width: .8; } .sc-pvl { stroke: #7FA0C2; stroke-width: .6; opacity: .8; }
.sc-cont { stroke: var(--sc-ink); stroke-width: .8; } .sc-cab { fill: #F0B429; stroke: var(--sc-ink); stroke-width: .8; } .sc-wheel { fill: #2B3337; }
.sc-surf { opacity: .9; } .sc-surf.water { fill: #6CC3D1; } .sc-surf.mixed { fill: #8D8A63; } .sc-surf.sludge { fill: #7A6A55; } .sc-surf.froth { fill: #C9C2A6; } .sc-surf.slurry { fill: #8C8C80; }
.sc-bridge { stroke: var(--sc-ink); stroke-width: 3; stroke-linecap: round; }
.sc-liqv { opacity: .75; } .sc-liqv.water { fill: #6CC3D1; } .sc-liqv.oil { fill: rgba(138, 90, 43, .55); } .sc-liqv.chem { fill: rgba(122, 92, 158, .45); }
.cv-liq.oil { fill: rgba(138, 90, 43, .55); }
.sc-house { fill: #F2E6D3; stroke: var(--sc-ink); stroke-width: .9; } .sc-trunk { stroke: #7A5A3A; stroke-width: 2; }
.sc-road { stroke: var(--sc-m3); stroke-width: 10; opacity: .5; }
.sc-beam { stroke: var(--sc-ink); stroke-width: 4; stroke-linecap: round; fill: none; } .sc-rod { stroke: var(--sc-ink); stroke-width: 2.2; fill: var(--sc-m2); }
.sc-rock { animation: rock 2.4s ease-in-out infinite alternate; }
.sc-move { animation: scmove 10s linear infinite; } .sc-osc { animation: scosc 3s ease-in-out infinite; }
@keyframes scmove { 0% { transform: translate(0, 0); opacity: 0; } 8%, 88% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes scosc { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(var(--dx), var(--dy)); } }
.sc-valve { fill: var(--sc-m2); stroke: var(--sc-ink); stroke-width: 1; } .sc-valveblk { fill: var(--sc-m3); stroke: var(--sc-ink); }
.sc-cut { fill: rgba(127, 150, 162, .1); stroke: var(--sc-ink); stroke-dasharray: 4 3; }
.sc-gear { fill: var(--sc-m2); stroke: var(--sc-ink); stroke-width: 1.2; } .sc-hole { fill: var(--sc-sky2); stroke: var(--sc-ink); }
.sc-belt { stroke: #2B3337; stroke-width: 3; }
.sc-crane { stroke: #F0B429; stroke-width: 6; }
.sc-chem { font: 700 11px var(--font); fill: var(--sc-ink); text-anchor: middle; }
.sc-lbl { font: 700 13px var(--font); fill: var(--sc-ink); paint-order: stroke; stroke: var(--sc-sky2); stroke-width: 3px; stroke-linejoin: round; }
.sc-tag rect { fill: var(--card); stroke: var(--mustard); } .sc-tag text { font: 700 12px var(--font); fill: var(--ink); }
.sc-stack { fill: #DCE6EC; stroke: var(--sc-ink); stroke-width: 1; } .cv-bub.h2b { fill: #8E84E8; } .cv-bub.o2b { fill: #EE8AA9; }
.sc-esd { fill: #D93A2B; animation: blink 2s ease-in-out infinite; }
.sc-inst { fill: var(--card); stroke: #6A4C93; stroke-width: 1.6; } .sc-inst-t { font: 800 9px var(--font); fill: #6A4C93; text-anchor: middle; }
.sc-switch { fill: #2B3337; } .sc-uv { stroke: #8B5CF6; stroke-width: 3; animation: blink 1.4s ease-in-out infinite; }
.sc-spray { fill: none; stroke: #4FB3C9; stroke-width: 1.4; stroke-dasharray: 2 3; animation: flow 1s linear infinite; }
.sc-bench { fill: #C9B79A; stroke: var(--sc-ink); stroke-width: .8; } .sc-pile.conc { fill: rgba(79, 107, 90, .6); }
.sc-mill { fill: none; stroke: var(--sc-ink); stroke-width: 4; } .sc-shaft { stroke: var(--sc-ink); stroke-width: 3; stroke-dasharray: 6 4; }
.sc-dam { fill: none; stroke: #8C6A4F; stroke-width: 6; } .sc-tailpond { fill: #BFAE8C; opacity: .6; }
.hs-layer .hs-dot { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.scene.touring .hs:not(.on) { opacity: .55; }
.scn-cb { flex: 1; display: grid; gap: 8px; } .scn-cb p { margin: 0; }
.scn-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.scn-ask { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink2); }
.scn-ask > span { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; }
.chip-sm { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 10px; font: 13px var(--font); cursor: pointer; }
.chip-sm:hover, .chip-sm:focus-visible { border-color: var(--mustard); }
.scene:fullscreen, .scene.is-full { background: var(--card); overflow: auto; display: flex; flex-direction: column; }
.scene:fullscreen .scn-wrap, .scene.is-full .scn-wrap { flex: 1; display: flex; align-items: center; }
.scene:fullscreen .scn-svg { max-height: calc(100vh - 160px); }
.scene:fullscreen .scn-list, .scene.is-full .scn-list { display: none; }
.scene:fullscreen .scn-info, .scene.is-full .scn-info { position: absolute; left: 16px; right: 16px; bottom: 16px; max-width: 760px; box-shadow: 0 8px 30px rgba(0,0,0,.3); border-radius: var(--r); overflow: hidden; }
.scene.scn-max { position: fixed; inset: 0; z-index: 60; margin: 0; border-radius: 0; overflow: auto; }
.xhero { margin-bottom: 26px; }
.xhero-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.xh-tab { display: inline-flex; gap: 6px; align-items: center; flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 600 13.5px var(--font); cursor: pointer; }
.xh-tab[aria-selected="true"] { background: var(--mustard); border-color: var(--mustard); color: var(--on-accent, #0A2545); }
.xhero-f { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: -10px 0 0; padding: 0 2px; }
.xhero-f p { margin: 2px 0 0; }
.sec-h { font-size: 18px; margin: 22px 0 12px; }
.mode-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; }
.mode-tabs button { display: inline-flex; gap: 6px; align-items: center; flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: 650 14.5px var(--font); color: var(--ink2); cursor: pointer; }
.mode-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--mustard); }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ov-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; }
.ov-stats b { font-size: 24px; } .ov-stats small { color: var(--ink2); }
.ov-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; counter-reset: none; }
.ov-flow button { width: 100%; display: flex; gap: 10px; text-align: left; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; color: inherit; font: inherit; cursor: pointer; }
.ov-flow button:hover, .ov-flow button:focus-visible { border-color: var(--mustard); }
.ov-flow .num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 13px; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.ov-flow span > b { display: block; } .ov-flow small { color: var(--ink2); font-size: 13px; }
.ov-cta { margin-top: 16px; }
.gap-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--nyc-t); margin-bottom: 14px; } .gap-box p { margin: 2px 0 0; }
@media (max-width: 640px) { .scn-h small { display: none; } .scn-ask button { font-size: 12.5px; } .mode-tabs button { padding: 10px 10px; } }
.sc-pile { fill: #B69B78; stroke: var(--sc-ink); stroke-width: 1; }
.sc-cloud ellipse { fill: #fff; opacity: .75; } .sc-cloud { animation: scdrift 60s linear infinite alternate; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sc-cloud ellipse { fill: #2B3B45; } }
:root[data-theme="dark"] .sc-cloud ellipse { fill: #2B3B45; }
@keyframes scdrift { to { transform: translateX(160px); } }
.ov-cta .btn, .xhero-f .btn, .scn-acts .btn { max-width: 100%; white-space: normal; text-align: left; height: auto; min-height: 36px; }
.mode-tabs, .xhero-tabs { max-width: 100%; }
.gaps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.gaps li { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.gap-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .gap-r { font-size: 13.5px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
