/* ------------------------------------------------------------------
   GIYA Global Employee Portal — portal.giyaglobal.com

   Minimalist: a light ground, one accent, hairline rules instead of
   boxes, and motion only where it tells you something arrived.
   Palette follows the logo — deep navy and blue.
   Type: Archivo (display) / Public Sans (UI) / IBM Plex Mono (data).
   ------------------------------------------------------------------ */

:root {
  --bg:        #FBFCFD;
  --surface:   #FFFFFF;
  --surface-2: #F5F7FA;
  --navy:      #0B2545;
  --navy-2:    #143763;
  --ink:       #111E33;
  --muted:     #5B6B81;
  --faint:     #8A98AB;
  --line:      #E6EBF1;
  --line-2:    #D4DCE6;
  --brand:     #1A5FB4;
  --brand-dk:  #134A8E;
  --brand-wash:#EEF4FC;
  --ok:        #10724B;
  --ok-wash:   #E6F3EC;
  --warn:      #96590A;
  --warn-wash: #FBF1DF;
  --bad:       #B33A3A;
  --bad-wash:  #FAEAEA;
  --r:         10px;
  --r-sm:      6px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ui:      "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1119; --surface: #101A27; --surface-2: #16212F;
    --navy: #07101C; --navy-2: #13263E;
    --ink: #E8EEF6; --muted: #9DACC0; --faint: #76869B;
    --line: #22303F; --line-2: #2C3C4E;
    --brand: #6AA4EA; --brand-dk: #8CBAF2; --brand-wash: #14263A;
    --ok: #5CC391; --ok-wash: #12301F;
    --warn: #DCA052; --warn-wash: #322512;
    --bad: #E88380; --bad-wash: #331A1A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1119; --surface: #101A27; --surface-2: #16212F;
  --navy: #07101C; --navy-2: #13263E;
  --ink: #E8EEF6; --muted: #9DACC0; --faint: #76869B;
  --line: #22303F; --line-2: #2C3C4E;
  --brand: #6AA4EA; --brand-dk: #8CBAF2; --brand-wash: #14263A;
  --ok: #5CC391; --ok-wash: #12301F;
  --warn: #DCA052; --warn-wash: #322512;
  --bad: #E88380; --bad-wash: #331A1A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display); margin: 0;
  letter-spacing: -.018em; text-wrap: balance; line-height: 1.2; font-weight: 600;
}
h1 { font-size: 25px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 12px; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

.eyebrow { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--faint); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ================= scroll motion =================
   Hidden only when JS has flagged support, so the page is complete at
   rest for anyone without it. Reduced motion skips the movement and
   keeps the fade at zero duration.                                   */

html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
html.js-anim [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--d, 0) * 55ms);
}
@media (prefers-reduced-motion: reduce) {
  html.js-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================= logo ================= */

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.logo img { height: 26px; width: auto; display: block; }
.logo.lg img { height: 38px; }
.logo .fallback {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -.02em; color: var(--navy);
}
.logo .unit {
  font-size: 11.5px; color: var(--muted); padding-left: 9px;
  border-left: 1px solid var(--line-2); line-height: 1.1;
}
:root[data-theme="dark"] .logo img,
html:not([data-theme="light"]) .logo img { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo img { filter: brightness(0) invert(1); opacity: .92; }
}
:root[data-theme="dark"] .logo img { filter: brightness(0) invert(1); opacity: .92; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .fallback { color: #E8EEF6; }
}
:root[data-theme="dark"] .logo .fallback { color: #E8EEF6; }

/* ================= app chrome ================= */

.appbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px; height: 58px;
}
.appbar .spacer { flex: 1; }
.appbar .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.appbar .who .nm { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.appbar .who .rl { font-size: 11px; color: var(--muted); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-wash); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 11.5px; flex: none;
}
.linkbtn {
  background: none; border: 0; color: var(--muted); font-family: var(--font-ui);
  font-size: 12.5px; cursor: pointer; padding: 6px 2px;
}
.linkbtn:hover { color: var(--brand); }

.subnav {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 35;
}
.subnav-in {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; overflow-x: auto;
}
.subnav a {
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 12px 12px; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

.page {
  max-width: 1180px; margin: 0 auto; width: 100%;
  padding: 30px 24px calc(64px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 26px; align-content: start; min-width: 0;
}
.pagetitle { display: grid; gap: 3px; }
.pagetitle .crumb { font-size: 12px; color: var(--faint); }

@media (max-width: 720px) {
  .appbar { padding: 0 16px; gap: 12px; height: 54px; }
  .appbar .who .rl { display: none; }
  .logo .unit { display: none; }
  .subnav { top: calc(54px + env(safe-area-inset-top, 0px)); }
  .subnav-in { padding: 0 16px; }
  .page { padding: 22px 16px 56px; gap: 22px; }
}

/* ================= surfaces ================= */

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); min-width: 0;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.panel-body { padding: 20px; }
.panel-body.tight { padding: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 14px; }

.stat .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.stat .v { font-family: var(--font-display); font-size: 29px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.05; }
.stat .d { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ================= worklets ================= */

.worklets { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.worklet {
  background: var(--surface); padding: 22px 20px; text-decoration: none; color: inherit;
  display: grid; gap: 7px; align-content: start; min-height: 128px;
  transition: background .2s var(--ease);
}
.worklet:hover { background: var(--surface-2); }
.worklet .wi { font-size: 17px; color: var(--brand); line-height: 1; }
.worklet .wt { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.worklet .wd { font-size: 12px; color: var(--muted); line-height: 1.45; }
.worklet .wcount {
  justify-self: start; margin-top: 3px; font-family: var(--font-mono); font-size: 11px;
  color: var(--brand); background: var(--brand-wash); padding: 2px 8px; border-radius: 999px;
}

/* ================= controls ================= */

.btn {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1.35;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dk); border-color: var(--brand-dk); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.ghost { border-color: transparent; background: none; color: var(--brand); padding-inline: 8px; }
.btn.lg { font-size: 14.5px; padding: 12px 26px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.busy { position: relative; color: transparent; }
.btn.busy::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; color: #fff;
  animation: spin .7s linear infinite;
}
.btn.busy:not(.primary):not(.ok)::after { color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 5px; margin-bottom: 15px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=number], select, textarea {
  font-family: var(--font-ui); font-size: 14px;
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); outline: none; }
.checkrow { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; }
.checkrow input { margin: 3px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { padding: 0; }
.fs-head { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; width: 100%; }

.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background: var(--surface-2); padding: 22px; text-align: center; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.dropzone:hover, .dropzone.hot { border-color: var(--brand); background: var(--brand-wash); }
.dropzone .dz-title { font-weight: 600; font-size: 13.5px; }
.dropzone .dz-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.filechip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; background: var(--surface-2); font-size: 13px;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
  border: 1px solid var(--line);
}
.badge.ok { background: var(--ok-wash); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-wash); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-wash); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--brand-wash); color: var(--brand); border-color: transparent; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; padding: 11px 20px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .6s var(--ease); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline .step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); z-index: 1; border: 1px solid var(--line-2); }
.timeline li.done .step { background: var(--ok); color: #fff; border-color: var(--ok); }
.timeline li.now .step { background: var(--brand); color: #fff; border-color: var(--brand); }
.timeline strong { display: block; font-size: 13.5px; }
.timeline span { font-size: 12.5px; color: var(--muted); }

.note { border-left: 2px solid var(--brand); background: var(--brand-wash); padding: 13px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13px; }
.note.warn { border-color: var(--warn); background: var(--warn-wash); }
.note.bad { border-color: var(--bad); background: var(--bad-wash); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

.scrim { position: fixed; inset: 0; background: rgba(11, 21, 36, .45); z-index: 60; display: grid; justify-items: end; }
.drawer {
  background: var(--surface); width: min(470px, 100%); height: 100%;
  overflow-y: auto; padding: 24px; display: grid; gap: 18px; align-content: start;
  animation: slidein .32s var(--ease);
}
@keyframes slidein { from { transform: translateX(28px); opacity: .5 } to { transform: none; opacity: 1 } }
.kv { display: grid; grid-template-columns: 116px 1fr; gap: 8px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sheen 1.3s linear infinite; border-radius: var(--r-sm); height: 14px; }
@keyframes sheen { to { background-position: -200% 0; } }

/* ================= sign in ================= */

.signin { min-height: 100%; display: grid; place-items: center; padding: 32px 20px; }
.signin-card { width: 100%; max-width: 380px; display: grid; gap: 22px; }
.signin-card .lede { font-size: 13px; color: var(--muted); }

/* ================= public pages ================= */

.public-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.public-wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding-inline: 24px; }
.public-head .public-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.public-body { padding-block: 40px 72px; }
@media (max-width: 720px) { .public-wrap { padding-inline: 16px; } }

/* ================= time ================= */

.punch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 18px; }
@media (max-width: 760px) { .punch { grid-template-columns: 1fr; } }
.punch-face { display: grid; gap: 16px; justify-items: start; }
.clock { font-family: var(--font-mono); font-size: 42px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.geo-readout { display: grid; gap: 9px; font-size: 12.5px; }
.geo-row { display: flex; justify-content: space-between; gap: 12px; }
.geo-row .lbl { color: var(--muted); }
.geo-row .val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--ok); transition: width .5s var(--ease); }
.meter.over > i { background: var(--bad); }

/* ================= courses ================= */

.coursegrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.coursecard { cursor: pointer; overflow: hidden; display: grid; transition: transform .22s var(--ease), border-color .22s var(--ease); }
.coursecard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.coursecard .thumb {
  aspect-ratio: 16 / 9; max-width: 100%;
  background: linear-gradient(140deg, var(--navy), var(--brand));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; text-align: center; padding: 18px;
}
.coursecard .body { padding: 16px; display: grid; gap: 9px; align-content: start; }
.player {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  background: #060D16; border-radius: var(--r); overflow: hidden;
  display: grid; place-items: center; color: #8FA6C2;
  user-select: none; -webkit-user-select: none;
}
.player .wm { position: absolute; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.22); pointer-events: none; transform: rotate(-18deg); }
.player .wm.a { top: 22%; left: 12%; }
.player .wm.b { bottom: 20%; right: 10%; }
.player .pl-core { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px; }
.player .pl-play { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.13); color: #fff; display: grid; place-items: center; font-size: 17px; transition: background .2s var(--ease); }
.player .pl-play:hover { background: rgba(255,255,255,.22); }
.lessonlist { list-style: none; margin: 0; padding: 0; }
.lessonlist li { display: grid; grid-template-columns: 20px 1fr auto; gap: 11px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.lessonlist li:last-child { border-bottom: 0; }
.lessonlist .tick { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 9px; color: transparent; }
.lessonlist li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ================= exam ================= */

.exam-shell { max-width: 880px; margin: 0 auto; width: 100%; }
.exam-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--navy); color: #fff; padding: 14px 20px; border-radius: var(--r);
}
.exam-bar .t { font-family: var(--font-mono); font-size: 19px; font-variant-numeric: tabular-nums; }
.exam-bar .t.low { color: #FFB6B0; }
.exam-bar .lbl { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #88ABD6; font-weight: 700; }

.stimulus { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-height: 330px; overflow-y: auto; }
.stimulus p { white-space: pre-wrap; margin: 0 0 13px; line-height: 1.68; }
.stimulus p:last-child { margin-bottom: 0; }

.choice {
  display: grid; grid-template-columns: 24px 1fr; gap: 13px; align-items: start;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 15px; cursor: pointer; background: var(--surface); font-size: 13.5px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.choice:hover { border-color: var(--brand); }
.choice.sel { border-color: var(--brand); background: var(--brand-wash); }
.choice .mk {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--muted);
  font-family: var(--font-mono); transition: background .18s var(--ease), color .18s var(--ease);
}
.choice.sel .mk { background: var(--brand); border-color: var(--brand); color: #fff; }

.audiobox { display: grid; gap: 15px; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--surface-2); }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.wave i { flex: 1; max-width: 5px; background: var(--line-2); border-radius: 2px; height: 20%; transition: height .14s linear; }
.wave.live i { background: var(--brand); }
.replaypips { display: flex; gap: 5px; }
.replaypips i { width: 18px; height: 4px; border-radius: 99px; background: var(--brand); }
.replaypips i.spent { background: var(--line-2); }

.lockbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; padding: 10px 15px; border-radius: var(--r-sm); background: var(--ok-wash); color: var(--ok); font-weight: 600; }
.lockbar.tripped { background: var(--bad-wash); color: var(--bad); }

.qnav { display: flex; gap: 5px; flex-wrap: wrap; }
.qnav button {
  width: 30px; height: 30px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font-family: var(--font-mono); font-size: 11.5px;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.qnav button.answered { background: var(--brand-wash); border-color: var(--brand-wash); color: var(--brand); }
.qnav button[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.violation-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(6, 12, 20, .95); color: #fff; display: grid; place-items: center; padding: 24px; text-align: center; }
.violation-overlay .box { max-width: 420px; display: grid; gap: 15px; justify-items: center; }
.violation-overlay h2 { color: #fff; font-size: 21px; }

/* ================= map picker ================= */

.mappick {
  height: 360px; width: 100%; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface-2);
  z-index: 0;                      /* keep Leaflet panes under the app bar */
}
.mappick:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.map-hint {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--muted); margin-top: 10px;
}
.map-fallback { display: grid; place-items: center; height: 100%; text-align: center; padding: 24px; }
.leaflet-container { font: inherit !important; border-radius: var(--r); }
.drift-ok   { color: var(--ok); font-weight: 600; }
.drift-warn { color: var(--warn); font-weight: 600; }
