/* Interactive Technical Learning Platform – TPO identity.
   Brand: mustard #CCAA2E, orange #F04E23, grey #9D9FA2, diamond motif. Chrome: dark steel.
   One bold element (the animated plant panorama on the home page); everything else stays quiet. */
:root {
  --steel: #1C2A33; --steel2: #233540; --steel3: #2E4550; --steel-ink: #C9D3D9; --steel-dim: #8A9BA5;
  --paper: #F3F5F6; --card: #FFFFFF; --ink: #1B252B; --ink2: #55636C; --line: #DEE3E6; --track: #E7EBED; --hover: #F6F8F9;
  --mustard: #CCAA2E; --mustard-d: #9C8018; --mustard-t: #F6F0D8; --orange: #F04E23; --orange-t: #FDE7E0; --grey: #9D9FA2;
  --ok: #2E7D4F; --ok-t: #E3F2E8; --nyc: #9A5B00; --nyc-t: #FBEFD9; --bad: #B3261E; --bad-t: #FBE5E3; --live: #1E6F8C; --live-t: #E1F0F6;
  --pk-proc: #CCAA2E; --pk-mech: #F04E23; --pk-elec: #D99A00; --pk-inst: #3D8FA6; --pk-mine: #B0682F; --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: #3A3317; --orange-t: #3D2018; --ok: #5DBB83; --ok-t: #17301F; --nyc: #E3A548; --nyc-t: #3A2A12; --bad: #F08079; --bad-t: #3C1C1A; --live: #6EC1DD; --live-t: #15303B;
    --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: #1B1B14; }
.btn.pri:hover { background: #D8B73A; }
.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(204, 170, 46, .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: 44px; width: auto; }
.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: #1B1B14; } .pk-mech .mc-i { background: var(--pk-mech); } .pk-elec .mc-i { background: var(--pk-elec); color: #1B1B14; } .pk-inst .mc-i { background: var(--pk-inst); } .pk-mine .mc-i { background: var(--pk-mine); }
.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.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: -120px; top: -120px; width: 520px; height: 520px; transform: rotate(45deg); border: 56px solid rgba(204, 170, 46, .16); border-radius: 48px; }
.auth-dia::after { content: ""; position: absolute; inset: 70px; border: 40px solid rgba(240, 78, 35, .14); border-radius: 30px; }
.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: #1B1B14; }
.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 .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: #2E4550; }
.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 { border-left-color: var(--orange); } .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; }
