/* DTTASA HR Assistant — Phase 2 (Interview Training Guide) */
:root {
  --disp: 'Cinzel', serif;
  --mono: 'IBM Plex Mono', monospace;
  --body: 'DM Sans', sans-serif;
  --gold: #f0c832; --gold2: #f7d94e;
  --gdim: rgba(212,175,55,.12); --gglow: rgba(212,175,55,.3);
  --green: #4cd657; --red: #ff4848; --amber: #f59e0b;
  --text: #f2f7ee; --t2: rgba(242,247,238,.88); --t3: rgba(242,247,238,.62);
  --panel: rgba(255,255,255,.10); --panel2: rgba(255,255,255,.23);
  --border: rgba(255,255,255,.21);
  --void: #0c1109; --deep: #111a0e; --base: #172213; --lift: #1e2e1b;
  --hdh: 70px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--void);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── AUTH REDIRECT ─────────────────────────────────────────────────── */
.auth-redirect {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--void); z-index: 99999;
}
.auth-redirect-inner { text-align: center; color: var(--t2); }
.auth-redirect-inner i { font-size: 36px; color: var(--gold); margin-bottom: 14px; display: block; }
.auth-redirect-inner p { font-size: 14px; letter-spacing: .5px; }

/* ── SHELL + HEADER ────────────────────────────────────────────────── */
.shell { min-height: 100vh; }
#hdr {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdh);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(12,17,9,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: hdrDrop .6s cubic-bezier(.16,1,.3,1);
}
@keyframes hdrDrop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 14px; }
.hdr-back-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  background: var(--panel);
  color: var(--t2);
  font-size: 13px; font-weight: 600;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.hdr-back-btn:hover { border-color: var(--gold); color: var(--gold); }
.brand-logo-wrap { display: flex; align-items: center; }
.brand-logo { font-family: var(--disp); font-weight: 700; color: var(--gold); font-size: 18px; letter-spacing: 3px; }
.page-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  background: var(--gdim);
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 20px;
  font-size: 13px; font-weight: 800;
  color: var(--gold);
  letter-spacing: .5px;
}
.hdr-user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
}
.hdr-user-chip span { font-size: 13px; color: var(--t2); font-weight: 600; }
.hdr-user-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gdim); border: 1px solid var(--gglow);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--mono); font-weight: 700; font-size: 12px;
  overflow: hidden;
}
.hdr-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.hdr-icon-btn:hover { background: rgba(255,72,72,.12); border-color: var(--red); color: var(--red); }

/* ── SUB-NAV ───────────────────────────────────────────────────────── */
.sec-nav {
  position: sticky; top: var(--hdh); z-index: 40;
  display: flex; gap: 0;
  padding: 0 20px;
  background: rgba(12,17,9,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.sec-nav::-webkit-scrollbar { display: none; }
.snav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 16px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .3px;
  color: var(--t3);
  text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.snav-item:hover { color: var(--t2); }
.snav-item.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── MAIN ──────────────────────────────────────────────────────────── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.cv { display: none; animation: cvIn .55s cubic-bezier(.16,1,.3,1); }
.cv.active { display: block; }
@keyframes cvIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.sec-head { margin-bottom: 20px; }
.sec-title { font-family: var(--disp); font-size: 24px; color: var(--gold); margin: 0 0 6px; letter-spacing: .5px; }
.sec-sub { font-size: 14px; color: var(--t3); line-height: 1.55; margin: 0; max-width: 720px; }

/* ── GLASS PANEL ───────────────────────────────────────────────────── */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ig-placeholder {
  color: var(--t3); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}

/* ── INTERVIEW CARD ────────────────────────────────────────────────── */
.interview-card { padding: 28px; }
.ig-row { margin-bottom: 22px; }
.gi-label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: var(--t2); text-transform: uppercase;
  margin-bottom: 8px;
}
.gi {
  width: 100%;
  background: var(--lift);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--body); font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: border-color .25s;
}
.gi:focus { outline: none; border-color: var(--gold); }
select.gi { cursor: pointer; appearance: none; padding-right: 36px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 6l4 4 4-4" stroke="%23f0c832" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat; background-position: right 12px center;
}
.ig-hint { margin-top: 8px; font-size: 12px; color: var(--t3); }
.ig-hint code {
  background: var(--gdim); border: 1px solid rgba(212,175,55,.2);
  padding: 1px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--gold);
}

/* ── QUESTION CARDS ────────────────────────────────────────────────── */
.ig-questions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.ig-q {
  background: var(--lift);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  animation: cvIn .45s cubic-bezier(.16,1,.3,1) both;
}
.ig-q-num {
  display: inline-block;
  width: 26px; height: 26px;
  line-height: 26px; text-align: center;
  background: var(--gold); color: var(--deep);
  font-weight: 800; border-radius: 50%;
  font-size: 13px; margin-right: 10px; vertical-align: top;
}
.ig-q-text {
  display: inline-block;
  width: calc(100% - 42px);
  font-size: 15px; font-weight: 600; line-height: 1.5;
  color: var(--text);
  margin-bottom: 6px;
  vertical-align: top;
}
.ig-q-listen-toggle {
  font-size: 13px; color: var(--t3);
  background: none; border: none; padding: 4px 0;
  cursor: pointer; font-family: var(--body);
  margin-left: 36px;
  display: inline-flex; align-items: center; gap: 5px;
}
.ig-q-listen-toggle:hover { color: var(--gold); }
.ig-q-listen-body {
  margin-left: 36px; margin-top: 6px;
  font-size: 13px; line-height: 1.55;
  color: var(--t2); font-style: italic;
  padding: 10px 12px;
  background: rgba(212,175,55,.06);
  border-left: 2px solid var(--gold);
  border-radius: 0 6px 6px 0;
  display: none;
}
.ig-q-listen-body.open { display: block; }
.ig-q-score-row {
  display: flex; align-items: center; gap: 8px;
  margin-left: 36px; margin-top: 14px;
}
.ig-q-score-lbl {
  font-size: 12px; color: var(--t3); letter-spacing: .5px;
  text-transform: uppercase; font-weight: 700;
  margin-right: 4px;
}
.ig-q-score-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--t2);
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.ig-q-score-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.ig-q-score-btn.selected {
  background: var(--gdim); border-color: var(--gold); color: var(--gold);
  box-shadow: 0 4px 14px rgba(212,175,55,.18);
}
.ig-q-score-help {
  font-size: 11px; color: var(--t3); margin-left: 8px;
  font-style: italic;
}

/* ── SUBMIT ROW ────────────────────────────────────────────────────── */
.ig-submit-row {
  display: flex; align-items: center; gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ig-submit-hint { font-size: 12px; color: var(--t3); }

/* ── BUTTON CORE (page-local subset) ───────────────────────────────── */
.btn {
  border: none; padding: 11px 22px;
  border-radius: 30px;
  font-weight: 800; font-size: 13px; letter-spacing: 1px;
  cursor: pointer; text-transform: uppercase;
  transition: all .25s cubic-bezier(.16,1,.3,1);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--body);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover:not(:disabled) { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(212,175,55,.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--t2); padding: 9px 16px; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 15px; font-size: 12px; }

/* ── SPINNER ───────────────────────────────────────────────────────── */
.ig-spinner {
  padding: 40px 20px;
  text-align: center;
  animation: cvIn .35s cubic-bezier(.16,1,.3,1);
}
.ig-spinner-ring {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(212,175,55,.15);
  border-top-color: var(--gold);
  margin: 0 auto 16px;
  animation: ringSpin 1s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.ig-spinner-lbl {
  font-size: 13px; color: var(--t2);
  letter-spacing: .5px;
}

/* ── OUTPUT CARD ───────────────────────────────────────────────────── */
.ig-output {
  margin-top: 22px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,.08), rgba(255,255,255,.04));
  border: 1px solid var(--gglow);
  animation: cvIn .55s cubic-bezier(.16,1,.3,1);
}
.ig-output-band-wrap {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px; flex-wrap: wrap;
}
.ig-output-band {
  display: inline-block;
  background: var(--gold); color: var(--deep);
  padding: 7px 18px; border-radius: 20px;
  font-weight: 800; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase;
}
.ig-output-band.b-strong-hire { background: #4cd657; color: #062b07; }
.ig-output-band.b-hire { background: var(--gold); color: var(--deep); }
.ig-output-band.b-lean-yes { background: #c1d640; color: #1f2607; }
.ig-output-band.b-lean-no { background: #f59e0b; color: #2d1d04; }
.ig-output-band.b-no-hire { background: var(--red); color: #fff; }
.ig-output-band.b-insufficient { background: var(--panel2); color: var(--t2); }
.ig-output-avg {
  font-family: var(--mono); font-size: 13px;
  color: var(--t3); letter-spacing: .5px;
}
.ig-output-overall {
  font-size: 15px; line-height: 1.7;
  color: var(--text);
  padding: 14px 16px;
  background: var(--panel);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}
.ig-output-section-head {
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 0 10px;
}
.ig-output-perq, .ig-output-probe {
  display: flex; flex-direction: column; gap: 12px;
}
.ig-output-perq-item, .ig-output-probe-item {
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px; line-height: 1.6;
  color: var(--t2);
}
.ig-output-perq-q {
  font-size: 12px; color: var(--gold);
  font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ig-output-perq-score {
  display: inline-block;
  background: var(--gdim); color: var(--gold);
  border: 1px solid var(--gglow);
  padding: 1px 7px; border-radius: 5px;
  font-family: var(--mono); font-size: 11px;
  margin-left: 6px;
}
.ig-output-disclaimer {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 22px;
  padding: 13px 16px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.28);
  border-radius: 10px;
  color: var(--t2); font-size: 12.5px; line-height: 1.6;
}
.ig-output-disclaimer i { color: var(--amber); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.ig-output-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}

/* ── TOAST ─────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--lift); border: 1px solid var(--gold); color: var(--gold);
  padding: 12px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  z-index: 9999; pointer-events: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  text-transform: uppercase;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.error { border-color: var(--red); color: var(--red); }

/* ══════════════════════════════════════════════════════════════════
   PHASE 3 — Timezone Calculator
   ══════════════════════════════════════════════════════════════════ */
.tz-clock-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}
.tz-clock-card {
  position: relative;
  background: linear-gradient(155deg, rgba(212,175,55,.10), rgba(255,255,255,.04) 60%, rgba(0,0,0,.10));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: cvIn .55s cubic-bezier(.16,1,.3,1);
}
.tz-clock-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212,175,55,.4), transparent 50%);
  z-index: -1;
  opacity: .35;
}
.tz-clock-card.tz-them::before {
  background: linear-gradient(135deg, rgba(76,214,87,.35), transparent 50%);
}
.tz-card-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 10px;
}
.tz-clock-card.tz-them .tz-card-label { color: var(--green); }
.tz-search { position: relative; margin-bottom: 18px; }
.tz-input {
  width: 100%;
  background: var(--lift);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--body); font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: border-color .25s;
}
.tz-input:focus { outline: none; border-color: var(--gold); }
.tz-clock-card.tz-them .tz-input:focus { border-color: var(--green); }
.tz-suggest-pop {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #0d150c;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  z-index: 60;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.tz-suggest-pop.open { display: block; animation: cvIn .2s cubic-bezier(.16,1,.3,1); }
.tz-suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--t2);
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.tz-suggest-item:hover { background: var(--panel); color: var(--gold); }
.tz-suggest-item:last-child { border-bottom: none; }
.tz-suggest-tz {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: .3px;
}
.tz-clock-readout { text-align: center; }
.tz-clock {
  font-family: var(--mono);
  font-size: clamp(34px, 6vw, 50px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1.05;
  text-shadow: 0 0 22px rgba(212,175,55,.32);
}
.tz-clock-card.tz-them .tz-clock {
  color: var(--green);
  text-shadow: 0 0 22px rgba(76,214,87,.32);
}
.tz-date {
  font-size: 13px;
  color: var(--t2);
  margin-top: 6px;
  letter-spacing: .5px;
}
.tz-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
  margin-top: 4px;
  letter-spacing: .3px;
}
.tz-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--gold);
  opacity: .55;
  width: 50px;
}
.tz-arrow i { animation: tzArrow 2.5s ease-in-out infinite; }
@keyframes tzArrow {
  0%, 100% { transform: translateX(0); opacity: .55; }
  50% { transform: translateX(3px); opacity: .9; }
}

/* CONVERTER */
.tz-converter { margin-bottom: 22px; }
.tz-converter-head {
  margin-bottom: 16px;
}
.tz-converter-head h3 {
  font-family: var(--disp);
  font-size: 17px;
  color: var(--gold);
  margin: 0 0 4px;
  letter-spacing: .3px;
}
.tz-conv-sub {
  font-size: 12px; color: var(--t3); line-height: 1.5;
}
.tz-conv-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}
.tz-conv-cell { display: flex; flex-direction: column; }
.tz-conv-output {
  background: var(--lift);
  border: 1px solid var(--gglow);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 18px; font-weight: 700;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.3;
  min-height: 46px;
  display: flex; align-items: center; justify-content: center;
}
.tz-conv-arrow {
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 12px;
  color: var(--gold);
  font-size: 18px;
}
.tz-offset-pill {
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--gdim);
  border: 1px solid var(--gglow);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .5px;
}

/* OVERLAP CARD */
.tz-overlap-card { animation: cvIn .55s cubic-bezier(.16,1,.3,1); }
.tz-overlap-head { margin-bottom: 14px; }
.tz-overlap-head h3 {
  font-family: var(--disp);
  font-size: 17px;
  color: var(--gold);
  margin: 0 0 4px;
  letter-spacing: .3px;
}
.tz-overlap-sub {
  font-size: 12px; color: var(--t3); line-height: 1.5;
}
.tz-overlap-ribbon {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  margin: 18px 0 12px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.tz-rib-cell {
  height: 36px;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--t3);
  padding-bottom: 3px;
  transition: transform .15s;
}
.tz-rib-cell:hover { transform: scaleY(1.08); }
.tz-rib-cell.tz-rib-outside  { background: rgba(255,255,255,.05); color: var(--t3); }
.tz-rib-cell.tz-rib-you-only { background: rgba(245,158,11,.35); color: rgba(255,255,255,.95); }
.tz-rib-cell.tz-rib-them-only{ background: rgba(76,214,87,.18); color: rgba(255,255,255,.85); }
.tz-rib-cell.tz-rib-overlap  {
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: var(--deep);
  font-weight: 800;
}
.tz-overlap-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 11px; color: var(--t3);
  margin-bottom: 14px;
}
.tz-legend-key {
  display: inline-flex; align-items: center; gap: 5px;
}
.tz-legend-swatch {
  width: 14px; height: 14px; border-radius: 3px;
  flex-shrink: 0;
}
.tz-overlap-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tz-slot-card {
  background: var(--lift);
  border: 1px solid var(--gglow);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s;
}
.tz-slot-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.tz-slot-tag {
  font-size: 10px; font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 6px;
}
.tz-slot-times {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 14px; font-weight: 700;
  color: var(--text);
  gap: 8px;
}
.tz-slot-arrow { color: var(--gold); }
.tz-slot-sub {
  font-size: 11px;
  color: var(--t3);
  margin-top: 5px;
  display: flex; justify-content: space-between;
}

/* ══════════════════════════════════════════════════════════════════
   PHASE 4 — Leave Calculator
   ══════════════════════════════════════════════════════════════════ */
.lc-mode-toggle {
  display: inline-flex;
  background: var(--lift);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}
.lc-mode-btn {
  background: transparent;
  border: none;
  color: var(--t3);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.lc-mode-btn:hover { color: var(--t2); }
.lc-mode-btn.active {
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 6px 16px rgba(212,175,55,.25);
}
.lc-config-card { margin-bottom: 18px; padding: 24px; animation: cvIn .5s cubic-bezier(.16,1,.3,1); }
.lc-staff-picker-wrap { margin-bottom: 18px; position: relative; }
.lc-suggest-pop {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #0d150c;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  z-index: 60;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.lc-suggest-pop.open { display: block; animation: cvIn .2s cubic-bezier(.16,1,.3,1); }
.lc-suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--t2);
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.lc-suggest-item:hover { background: var(--panel); color: var(--gold); }
.lc-suggest-item:last-child { border-bottom: none; }
.lc-suggest-sub { font-family: var(--mono); font-size: 11px; color: var(--t3); }
.lc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.lc-field { display: flex; flex-direction: column; }
.lc-policy-banner {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(212,175,55,.06);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 10px;
  font-size: 12px; color: var(--t2); line-height: 1.5;
}
.lc-policy-banner i { color: var(--gold); font-size: 15px; flex-shrink: 0; }
.lc-policy-banner b { color: var(--gold); font-weight: 700; }
.lc-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.lc-out-card {
  position: relative;
  background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s;
  animation: cvIn .5s cubic-bezier(.16,1,.3,1);
}
.lc-out-card:hover { transform: translateY(-2px); border-color: var(--gglow); }
.lc-out-card.lc-out-result {
  background: linear-gradient(155deg, rgba(212,175,55,.18), rgba(255,255,255,.04));
  border-color: var(--gglow);
}
.lc-out-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--t3); text-transform: uppercase;
  margin-bottom: 8px;
}
.lc-out-card.lc-out-result .lc-out-label { color: var(--gold); }
.lc-out-val {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  letter-spacing: .3px;
  line-height: 1.05;
}
.lc-out-card.lc-out-result .lc-out-val { color: var(--gold); font-size: 30px; }
.lc-out-sub {
  font-size: 11px;
  color: var(--t3);
  margin-top: 6px;
  line-height: 1.4;
}
.lc-explainer { padding: 22px; margin-bottom: 18px; }
.lc-explainer-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--disp);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: .3px;
}
.lc-explainer-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--t2);
}
.lc-explainer-body .lc-step {
  display: flex; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.lc-explainer-body .lc-step:last-child { border-bottom: none; }
.lc-explainer-body .lc-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gdim);
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 700; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lc-explainer-body .lc-step-num.final {
  background: var(--gold);
  color: var(--deep);
}
.lc-explainer-body code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gold);
  background: var(--gdim);
  padding: 0 6px;
  border-radius: 3px;
}
.lc-diff-card {
  padding: 22px;
  animation: cvIn .5s cubic-bezier(.16,1,.3,1);
  background: linear-gradient(155deg, rgba(76,214,87,.08), rgba(255,255,255,.04));
}
.lc-diff-card.diverge { background: linear-gradient(155deg, rgba(245,158,11,.12), rgba(255,255,255,.04)); }
.lc-diff-card.major-diverge { background: linear-gradient(155deg, rgba(255,72,72,.10), rgba(255,255,255,.04)); }
.lc-diff-head {
  font-family: var(--disp);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: .3px;
}
.lc-diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.lc-diff-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: var(--t3); text-transform: uppercase;
  margin-bottom: 5px;
}
.lc-diff-val {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}
.lc-diff-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--body);
  font-size: 12px; font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.lc-diff-pill.pill-match  { background: rgba(76,214,87,.18); color: var(--green); border: 1px solid rgba(76,214,87,.4); }
.lc-diff-pill.pill-minor  { background: rgba(245,158,11,.18); color: var(--amber); border: 1px solid rgba(245,158,11,.4); }
.lc-diff-pill.pill-major  { background: rgba(255,72,72,.18); color: var(--red); border: 1px solid rgba(255,72,72,.4); }

/* ══════════════════════════════════════════════════════════════════
   PHASE 5 — Calculator
   ══════════════════════════════════════════════════════════════════ */
.calc-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 26px;
  background: linear-gradient(160deg, rgba(212,175,55,.08), rgba(255,255,255,.04) 60%, rgba(0,0,0,.18));
  border: 1px solid var(--gglow);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: cvIn .55s cubic-bezier(.16,1,.3,1);
}
.calc-display-wrap {
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px 14px;
  margin-bottom: 18px;
  min-height: 96px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.calc-display-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(212,175,55,.06), transparent 60%);
  pointer-events: none;
}
.calc-expression {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t3);
  letter-spacing: .5px;
  text-align: right;
  min-height: 18px;
  word-break: break-all;
}
.calc-display {
  font-family: var(--mono);
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-align: right;
  margin-top: 6px;
  line-height: 1.1;
  word-break: break-all;
  text-shadow: 0 0 18px rgba(212,175,55,.25);
}
.calc-display.error { color: var(--red); text-shadow: 0 0 18px rgba(255,72,72,.3); }
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.calc-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 700;
  min-height: 64px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .18s cubic-bezier(.16,1,.3,1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.calc-btn:hover { border-color: var(--gold); color: var(--gold); }
.calc-btn:active { transform: scale(.96); }
.calc-btn.calc-fn {
  background: rgba(255,255,255,.06);
  color: var(--t2);
  font-size: 18px;
}
.calc-btn.calc-fn:hover { color: var(--text); }
.calc-btn.calc-op {
  background: linear-gradient(140deg, var(--gold), var(--gold2));
  color: var(--deep);
  border-color: transparent;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(212,175,55,.28);
}
.calc-btn.calc-op:hover { color: var(--deep); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(212,175,55,.4); }
.calc-btn.calc-op.armed {
  background: linear-gradient(140deg, var(--gold2), #fff3a5);
  box-shadow: 0 0 0 3px rgba(212,175,55,.4), 0 10px 26px rgba(212,175,55,.45);
}
.calc-btn.calc-eq {
  background: linear-gradient(140deg, var(--green), #6ee07a);
  color: #062b07;
  border-color: transparent;
  font-weight: 800;
  font-size: 28px;
  box-shadow: 0 8px 22px rgba(76,214,87,.25);
}
.calc-btn.calc-eq:hover { color: #062b07; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(76,214,87,.4); }
.calc-btn.calc-zero { grid-column: span 2; }
.calc-helptext {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--t3);
  letter-spacing: .3px;
}
.calc-helptext kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--gdim);
  border: 1px solid rgba(212,175,55,.2);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════════
   PHASE 6 — World Clock + Weather
   ══════════════════════════════════════════════════════════════════ */
.wc-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.wc-search-wrap {
  position: relative;
  flex: 1; min-width: 220px;
}
.wc-search-input {
  width: 100%;
  background: var(--lift);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--body); font-size: 14px;
  padding: 11px 14px 11px 36px;
  border-radius: 10px;
  transition: border-color .25s;
}
.wc-search-input:focus { outline: none; border-color: var(--gold); }
.wc-search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  pointer-events: none;
}
.wc-search-pop {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #0d150c;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  z-index: 60;
  max-height: 280px; overflow-y: auto;
  display: none;
}
.wc-search-pop.open { display: block; animation: cvIn .2s cubic-bezier(.16,1,.3,1); }
.wc-search-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--t2);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.wc-search-item:hover { background: var(--panel); color: var(--gold); }
.wc-search-flag {
  font-size: 18px;
  flex-shrink: 0;
}
.wc-refresh-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--t2);
  font-family: var(--body); font-size: 12px;
  font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.wc-refresh-btn:hover { border-color: var(--gold); color: var(--gold); }
.wc-refresh-btn:active { transform: scale(.96); }
.wc-refresh-btn.spinning i { animation: ringSpin 1s linear infinite; }

.wc-focus-wrap {
  margin-bottom: 18px;
  display: none;
}
.wc-focus-wrap.active { display: block; animation: cvIn .4s cubic-bezier(.16,1,.3,1); }
/* ── Sky-look focus card (iPhone-Weather feel) ────────────────────────
   Skies stay rich and DEEP (no pastel fade-out) so white text never
   competes with bright pale stops. A subtle dark scrim sits between the
   wx-fx and the foreground for guaranteed legibility on every theme. */
.wc-focus-card {
  position: relative;
  background: linear-gradient(180deg, #1f4d82 0%, #2a649f 55%, #3c79b0 100%);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  padding: 26px 26px 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 22px 48px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
  transition: background 1.2s ease;
}
.wc-focus-card .wx-fx { position: absolute; inset: 0; z-index: 0; border-radius: 22px; pointer-events: none; }
/* Dark scrim — top-down and corner gradients ensure all text sits on a
   darker layer of the sky, never the lightest stop. */
.wc-focus-card::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.18) 100%);
  z-index: 0;
  border-radius: 22px;
}
.wc-focus-card > *:not(.wx-fx) { position: relative; z-index: 2; }
/* Sky themes — RICH saturated palette, top deeper than bottom, no pale fade */
.wc-focus-card.is-day.wx-Clear,
.wc-focus-card.is-day.wx-MostlyClear { background: linear-gradient(180deg, #143a6b 0%, #2364a4 55%, #4083bf 100%); }
.wc-focus-card.is-day.wx-PartlyCloudy,
.wc-focus-card.is-day.wx-MostlyCloudy { background: linear-gradient(180deg, #1f3854 0%, #3e607f 55%, #5d7d99 100%); }
.wc-focus-card.is-day.wx-Cloudy,
.wc-focus-card.is-day.wx-Foggy,
.wc-focus-card.is-day.wx-Haze { background: linear-gradient(180deg, #2c3742 0%, #4b5660 55%, #67717a 100%); }
.wc-focus-card.is-day.wx-Rain,
.wc-focus-card.is-day.wx-Drizzle,
.wc-focus-card.is-day.wx-HeavyRain { background: linear-gradient(180deg, #1a2734 0%, #34495e 55%, #4a627c 100%); }
.wc-focus-card.is-day.wx-Thunderstorm,
.wc-focus-card.is-day.wx-Thunderstorms { background: linear-gradient(180deg, #0d131c 0%, #232c3a 55%, #3b4655 100%); }
.wc-focus-card.is-day.wx-Snow,
.wc-focus-card.is-day.wx-Flurries { background: linear-gradient(180deg, #34536f 0%, #5a7691 55%, #7e95ad 100%); }
.wc-focus-card.is-night { background: linear-gradient(180deg, #06081c 0%, #11173a 55%, #1f2954 100%); }
.wc-focus-card.is-night.wx-Clear,
.wc-focus-card.is-night.wx-MostlyClear { background: linear-gradient(180deg, #02041c 0%, #0a103a 55%, #161e54 100%); }
.wc-focus-card.is-night.wx-PartlyCloudy,
.wc-focus-card.is-night.wx-Cloudy { background: linear-gradient(180deg, #0e1424 0%, #1f2740 55%, #313b58 100%); }
.wc-focus-card.is-night.wx-Rain,
.wc-focus-card.is-night.wx-Drizzle,
.wc-focus-card.is-night.wx-HeavyRain { background: linear-gradient(180deg, #04080f 0%, #121a28 55%, #232c3c 100%); }
.wc-focus-card.is-night.wx-Thunderstorm,
.wc-focus-card.is-night.wx-Thunderstorms { background: linear-gradient(180deg, #02030a 0%, #0a0e1c 55%, #181e30 100%); }
.wc-focus-card.is-night.wx-Snow { background: linear-gradient(180deg, #0e1b30 0%, #233758 55%, #3a527c 100%); }
.wc-focus-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.wc-focus-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--disp);
  font-size: 20px; color: #fff;
  letter-spacing: .3px;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.wc-focus-head-right { display: flex; align-items: center; gap: 8px; }
.wc-clock-toggle {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.wc-clock-toggle:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.wc-clock-toggle i { font-size: 14px; }
.wc-focus-title .wc-search-flag { font-size: 26px; }
.wc-focus-close {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.wc-focus-close:hover { background: rgba(255,72,72,.55); border-color: rgba(255,255,255,.4); color: #fff; transform: rotate(90deg); }
.wc-focus-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.wc-focus-clock {
  font-family: var(--mono);
  font-size: clamp(40px, 7.2vw, 64px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 2px 14px rgba(0,0,0,.28), 0 0 22px rgba(255,255,255,.18);
  line-height: 1.05;
}
.wc-focus-date {
  font-size: 13.5px; color: rgba(255,255,255,.92);
  margin-top: 6px; letter-spacing: .3px;
}
.wc-focus-tz {
  font-family: var(--mono);
  font-size: 12px; color: rgba(255,255,255,.78);
  margin-top: 4px;
}
.wc-focus-weather {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: rgba(0,0,0,.32);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
.wc-focus-weather-icon {
  font-size: 42px;
  color: #fffbe0;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.30));
}
.wc-focus-card.is-night .wc-focus-weather-icon { color: #cad9ff; }
.wc-focus-weather-temp {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.wc-focus-weather-cond {
  font-size: 14px; color: rgba(255,255,255,.92);
  margin-top: 4px;
}
.wc-focus-weather-hilo {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
}
.wc-focus-weather-hilo .hi { color: #ffd1ad; }
.wc-focus-weather-hilo .lo { color: #b4dcff; }
.wc-focus-weather-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,.78);
  margin-top: 4px;
}

/* Analog clock view — pure CSS/SVG face */
.wc-analog-wrap { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.wc-analog {
  width: 168px; height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.20), rgba(255,255,255,.05) 45%, rgba(0,0,0,.18) 100%);
  border: 2px solid rgba(255,255,255,.36);
  position: relative;
  box-shadow: 0 12px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.wc-analog::before {
  content: ''; position: absolute; inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
}
.wc-analog .wc-tick {
  position: absolute; left: 50%; top: 6px;
  width: 2px; height: 8px;
  background: rgba(255,255,255,.72);
  transform-origin: 50% 78px;
  border-radius: 1px;
}
.wc-analog .wc-tick.wc-tick-major { height: 12px; width: 3px; background: #fff; }
.wc-analog .wc-hand {
  position: absolute; left: 50%; top: 50%;
  transform-origin: 50% 100%;
  background: #fff;
  border-radius: 3px;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.wc-analog .wc-hand-h { width: 4px; height: 44px; margin-left: -2px; margin-top: -44px; background: #fff; }
.wc-analog .wc-hand-m { width: 3px; height: 62px; margin-left: -1.5px; margin-top: -62px; background: #fff; }
.wc-analog .wc-hand-s { width: 1.5px; height: 70px; margin-left: -.75px; margin-top: -70px; background: #ff7e7e; transition: transform .12s linear; }
.wc-analog .wc-center { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }

.wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
/* Tile = mini iPhone Weather card — RICH dark-stop sky gradient */
.wc-tile {
  position: relative;
  background: linear-gradient(180deg, #143a6b 0%, #2364a4 60%, #4083bf 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background 1s ease;
  animation: cvIn .5s cubic-bezier(.16,1,.3,1) both;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.45);
  box-shadow: 0 12px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.18);
}
.wc-tile .wx-fx { position: absolute; inset: 0; z-index: 0; border-radius: 18px; pointer-events: none; }
/* Same scrim treatment as the focus card for guaranteed text contrast */
.wc-tile::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.22) 100%);
  z-index: 0;
  border-radius: 18px;
}
.wc-tile > *:not(.wx-fx) { position: relative; z-index: 2; }
.wc-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.22);
}
/* Mirror sky themes onto tiles — no pastel fade-out */
.wc-tile.is-day.wx-PartlyCloudy,
.wc-tile.is-day.wx-MostlyCloudy { background: linear-gradient(180deg, #1f3854 0%, #3e607f 60%, #5d7d99 100%); }
.wc-tile.is-day.wx-Cloudy,
.wc-tile.is-day.wx-Foggy,
.wc-tile.is-day.wx-Haze { background: linear-gradient(180deg, #2c3742 0%, #4b5660 60%, #67717a 100%); }
.wc-tile.is-day.wx-Rain,
.wc-tile.is-day.wx-Drizzle,
.wc-tile.is-day.wx-HeavyRain { background: linear-gradient(180deg, #1a2734 0%, #34495e 60%, #4a627c 100%); }
.wc-tile.is-day.wx-Thunderstorm,
.wc-tile.is-day.wx-Thunderstorms { background: linear-gradient(180deg, #0d131c 0%, #232c3a 60%, #3b4655 100%); }
.wc-tile.is-day.wx-Snow,
.wc-tile.is-day.wx-Flurries { background: linear-gradient(180deg, #34536f 0%, #5a7691 60%, #7e95ad 100%); }
.wc-tile.is-night { background: linear-gradient(180deg, #06081c 0%, #11173a 60%, #1f2954 100%); }
.wc-tile.is-night.wx-PartlyCloudy,
.wc-tile.is-night.wx-Cloudy { background: linear-gradient(180deg, #0e1424 0%, #1f2740 60%, #313b58 100%); }
.wc-tile.is-night.wx-Rain,
.wc-tile.is-night.wx-Drizzle { background: linear-gradient(180deg, #04080f 0%, #121a28 60%, #232c3c 100%); }
.wc-tile.is-night.wx-Thunderstorm { background: linear-gradient(180deg, #02030a 0%, #0a0e1c 60%, #181e30 100%); }
.wc-tile.is-night.wx-Snow { background: linear-gradient(180deg, #0e1b30 0%, #233758 60%, #3a527c 100%); }
.wc-tile[data-rank="1"] {
  box-shadow: 0 14px 30px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1.5px rgba(255,212,90,.55);
}
.wc-tile[data-rank="1"]::before {
  content: 'HQ';
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono); font-size: 9.5px;
  font-weight: 800; letter-spacing: 1px;
  color: var(--gold);
  background: var(--gdim);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--gglow);
}
.wc-tile-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.wc-tile-flag {
  font-size: 24px;
  flex-shrink: 0;
}
.wc-tile-name {
  font-family: var(--disp);
  font-weight: 700; font-size: 15px;
  color: #fff;
  letter-spacing: .2px;
  line-height: 1.2;
}
.wc-tile-city {
  font-size: 11.5px;
  color: rgba(255,255,255,.78);
  margin-top: 2px;
}
.wc-tile-clock {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.6px;
  margin: 8px 0 4px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.wc-tile-date {
  font-size: 11.5px;
  color: rgba(255,255,255,.78);
  margin-bottom: 12px;
}
.wc-tile-weather {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.20);
}
.wc-tile-weather-left {
  display: flex; align-items: center; gap: 9px;
}
.wc-tile-weather-icon {
  font-size: 22px;
  color: #fffbe0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.30));
}
.wc-tile.is-night .wc-tile-weather-icon { color: #cad9ff; }
.wc-tile-temp {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.wc-tile-cond {
  font-size: 11.5px;
  color: rgba(255,255,255,.85);
}
.wc-tile-hilo { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,.78); }
.wc-tile-hilo .hi { color: #ffd1ad; }
.wc-tile-hilo .lo { color: #b4dcff; }
.wc-tile-loading {
  font-size: 11px; color: rgba(255,255,255,.78);
  font-style: italic;
}

/* ── MOBILE ────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .interview-card { padding: 20px; }
  .sec-title { font-size: 20px; }
  .hdr-back-btn span { display: none; }
  .tz-clock-grid { grid-template-columns: 1fr; gap: 14px; }
  .tz-arrow { transform: rotate(90deg); width: auto; padding: 4px 0; }
  .tz-arrow i { animation: tzArrowV 2.5s ease-in-out infinite; }
  @keyframes tzArrowV { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(3px); opacity: .9; } }
  .tz-conv-row { grid-template-columns: 1fr; gap: 10px; }
  .tz-conv-arrow { transform: rotate(90deg); padding: 0; }
  .tz-overlap-ribbon { grid-template-columns: repeat(12, 1fr); }
  .tz-rib-cell { height: 32px; font-size: 8.5px; }
  .lc-grid { grid-template-columns: 1fr 1fr; }
  .lc-out-card .lc-out-val { font-size: 22px; }
  .lc-out-card.lc-out-result .lc-out-val { font-size: 26px; }
}
@media (max-width: 540px) {
  .lc-grid { grid-template-columns: 1fr; }
  .lc-mode-btn { padding: 8px 14px; font-size: 11px; }
  .calc-wrap { padding: 18px; border-radius: 18px; }
  .calc-btn { min-height: 54px; font-size: 19px; border-radius: 12px; }
  .calc-btn.calc-op { font-size: 21px; }
  .calc-btn.calc-eq { font-size: 24px; }
  .calc-grid { gap: 9px; }
  .wc-focus-body { grid-template-columns: 1fr; }
  .wc-focus-card { padding: 18px; }
  .wc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .wc-tile { padding: 14px; }
  .wc-tile-clock { font-size: 19px; }
}
@media (max-width: 640px) {
  #hdr { padding: 0 14px; }
  .main-content { padding: 22px 14px 80px; }
  .page-pill { font-size: 11px; padding: 4px 10px; letter-spacing: 0; }
  .hdr-user-chip span { display: none; }
  .hdr-user-chip { padding: 4px; }
  .ig-q-text { font-size: 14px; }
  .ig-q-score-btn { width: 34px; height: 34px; font-size: 14px; }
  .ig-q-score-row { flex-wrap: wrap; }
  .interview-card { padding: 16px; }
  .ig-output { padding: 18px; }
  .snav-item { font-size: 12px; padding: 12px 12px; }
}
@media (max-width: 400px) {
  .ig-q-score-btn { width: 32px; height: 32px; font-size: 13px; }
  .ig-q-score-lbl { font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════════════
   ENTERPRISE REFRESH — sibling of Diagnostics, not a clone.
   • Distinct identity: DTTASA gold stays primary, cool cyan as accent
     for live data only.
   • No grid backdrop, no corner accent lines, no mono headings.
   • Premium depth: layered shadows + subtle gradients + hover-lift.
   • Cinematic section transitions with stagger.
   • Refined focus rings + press feedback for accessibility polish.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --ha-bg-0:    #0b1218;
  --ha-bg-1:    #11202e;
  --ha-bg-2:    #182a3d;
  --ha-bg-3:    #1f3450;
  --ha-acc:     #f0c832;        /* DTTASA gold — primary */
  --ha-acc-2:   #f7d94e;
  --ha-cool:    #5bd0ff;        /* live-data accent */
  --ha-cool-d:  rgba(91,208,255,.18);
  --ha-cool-g:  rgba(91,208,255,.34);
  --ha-ink:     #e8eef7;
  --ha-ink-2:   rgba(232,238,247,.78);
  --ha-ink-3:   rgba(232,238,247,.55);
  --ha-line:    rgba(255,255,255,.08);
  --ha-line-2:  rgba(255,255,255,.16);
  --ha-glow:    rgba(240,200,50,.28);
  --ha-shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.25);
  --ha-shadow-2: 0 4px 8px rgba(0,0,0,.45), 0 14px 36px rgba(0,0,0,.35);
  --ha-shadow-glow: 0 12px 32px rgba(240,200,50,.18);
  --ha-ease:    cubic-bezier(.22,1,.36,1);     /* refined spring */
  --ha-ease-2:  cubic-bezier(.16,1,.3,1);
}

/* ── Body — layered radial light for depth, no grid ─────────────── */
body {
  background:
    radial-gradient(ellipse 80% 60% at 22% -10%, rgba(240,200,50,.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 105%, rgba(91,208,255,.05), transparent 55%),
    linear-gradient(180deg, var(--ha-bg-0) 0%, var(--ha-bg-1) 60%, var(--ha-bg-0) 100%);
  background-attachment: fixed;
  color: var(--ha-ink);
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Remove gallery-grid from any previous override */
body::before { content: none !important; }

/* ── Header — glass with refined depth ──────────────────────────── */
#hdr {
  background: linear-gradient(180deg, rgba(11,18,24,.88), rgba(11,18,24,.72));
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ha-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.18);
}
.hdr-back-btn {
  background: rgba(255,255,255,.04);
  border-color: var(--ha-line-2);
  transition: all .35s var(--ha-ease);
}
.hdr-back-btn:hover { background: rgba(240,200,50,.08); border-color: var(--ha-acc); color: var(--ha-acc); transform: translateX(-2px); }

/* Page-pill — eyebrow with refined pulse */
.page-pill {
  background: linear-gradient(135deg, rgba(240,200,50,.16), rgba(240,200,50,.04));
  border: 1px solid rgba(240,200,50,.32);
  color: var(--ha-acc);
  font-weight: 700;
  font-size: 12px !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 14px 7px 12px;
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 0 0 0 1px rgba(240,200,50,.06), 0 8px 20px rgba(240,200,50,.08);
}
.page-pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ha-acc);
  box-shadow: 0 0 0 0 rgba(240,200,50,.5);
  animation: haPulse 2.4s var(--ha-ease) infinite;
}
@keyframes haPulse {
  0%   { box-shadow: 0 0 0 0 rgba(240,200,50,.55); transform: scale(.92); }
  70%  { box-shadow: 0 0 0 10px rgba(240,200,50,0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(240,200,50,0); transform: scale(.92); }
}

/* ── Sub-nav — pill-rail instead of underline ───────────────────── */
.sec-nav {
  background: linear-gradient(180deg, rgba(11,18,24,.86), rgba(11,18,24,.62));
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ha-line);
  padding: 10px 20px 0;
  gap: 4px;
}
.snav-item {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: .3px !important;
  text-transform: none !important;
  color: var(--ha-ink-3);
  padding: 11px 16px 13px !important;
  border-radius: 12px 12px 0 0 !important;
  border-bottom: 2px solid transparent !important;
  position: relative;
  transition: color .3s var(--ha-ease), background .3s var(--ha-ease), transform .3s var(--ha-ease);
}
.snav-item:hover { color: var(--ha-ink); background: rgba(255,255,255,.03); transform: translateY(-1px); }
.snav-item.active {
  color: var(--ha-acc) !important;
  border-bottom-color: var(--ha-acc) !important;
  background: linear-gradient(180deg, rgba(240,200,50,.10), rgba(240,200,50,.02)) !important;
}
.snav-item i { font-size: 12px; opacity: .85; }

/* ── Section titles — DM Sans display weight ────────────────────── */
.sec-title {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  letter-spacing: -.3px !important;
  text-transform: none !important;
  color: var(--ha-ink);
  background: linear-gradient(135deg, var(--ha-ink), var(--ha-acc) 110%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sec-sub {
  color: var(--ha-ink-3);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}

/* ── Glass panels — refined depth, no corner accent ─────────────── */
.glass {
  background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--ha-line-2);
  border-radius: 20px !important;
  padding: 24px;
  box-shadow: var(--ha-shadow-1);
  position: relative;
  transition: border-color .4s var(--ha-ease), box-shadow .4s var(--ha-ease), transform .4s var(--ha-ease);
}
.glass:hover { border-color: rgba(240,200,50,.24); box-shadow: var(--ha-shadow-2); }
.glass::after { content: none !important; }   /* drop any prior corner accent */

/* Soft top-edge highlight on glass */
.glass::before {
  content: '';
  position: absolute; top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  pointer-events: none;
  border-radius: 1px;
}

/* ── Buttons — sans + refined press feedback ────────────────────── */
.btn {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
  text-transform: none !important;
  border-radius: 12px !important;
  padding: 12px 22px !important;
  transition: transform .25s var(--ha-ease), box-shadow .35s var(--ha-ease), background .35s var(--ha-ease), border-color .35s var(--ha-ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--ha-acc) 0%, var(--ha-acc-2) 100%) !important;
  color: #11160a !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 22px rgba(240,200,50,.22), 0 0 0 1px rgba(240,200,50,.18) inset !important;
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 32px rgba(240,200,50,.36), 0 0 0 1px rgba(240,200,50,.32) inset !important;
}
.btn-outline {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--ha-line-2) !important;
  color: var(--ha-ink-2) !important;
}
.btn-outline:hover {
  background: rgba(240,200,50,.06) !important;
  border-color: var(--ha-acc) !important;
  color: var(--ha-acc) !important;
}
.btn-sm { padding: 9px 16px !important; font-size: 12px !important; }

/* ── Inputs / selects — refined focus ring ──────────────────────── */
.gi {
  background: rgba(11,18,24,.6) !important;
  border: 1px solid var(--ha-line-2) !important;
  color: var(--ha-ink) !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  transition: border-color .3s var(--ha-ease), box-shadow .3s var(--ha-ease), background .3s var(--ha-ease);
}
.gi:focus {
  outline: none !important;
  border-color: var(--ha-acc) !important;
  box-shadow: 0 0 0 3px rgba(240,200,50,.15);
  background: rgba(11,18,24,.85) !important;
}
.gi-label {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .4px !important;
  text-transform: uppercase !important;
  color: var(--ha-ink-3) !important;
}

/* ── Live data values — IBM Plex Mono ONLY here ─────────────────── */
.tz-clock,
.wc-tile-clock,
.wc-focus-clock,
.calc-display,
.calc-expression,
.tz-conv-output,
.tz-offset-pill,
.lc-out-val,
.lc-diff-val,
.tz-slot-times,
.tz-rib-cell,
.ig-q-num,
.ig-output-perq-score,
.ig-output-avg {
  font-family: 'IBM Plex Mono', 'SF Mono', Menlo, monospace !important;
}

/* ── Tab content transitions — gentle stagger ───────────────────── */
.cv.active { animation: haCvIn .6s var(--ha-ease) both; }
@keyframes haCvIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.cv.active .glass:nth-of-type(1) { animation-delay: .04s; }
.cv.active .glass:nth-of-type(2) { animation-delay: .10s; }
.cv.active .glass:nth-of-type(3) { animation-delay: .16s; }

/* ── Interview question cards — hover-lift + accent ─────────────── */
.ig-q {
  background: linear-gradient(155deg, rgba(255,255,255,.04), rgba(0,0,0,.10)) !important;
  border: 1px solid var(--ha-line) !important;
  border-radius: 14px !important;
  transition: transform .35s var(--ha-ease), border-color .35s var(--ha-ease), box-shadow .35s var(--ha-ease);
}
.ig-q:hover {
  transform: translateY(-2px);
  border-color: rgba(240,200,50,.22) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.32);
}
.ig-q-num {
  background: linear-gradient(135deg, var(--ha-acc), var(--ha-acc-2)) !important;
  color: #11160a !important;
  box-shadow: 0 4px 10px rgba(240,200,50,.32);
}
.ig-q-score-btn {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--ha-line-2) !important;
  color: var(--ha-ink-2) !important;
  border-radius: 12px !important;
  transition: transform .25s var(--ha-ease), border-color .25s var(--ha-ease), background .3s var(--ha-ease), color .3s var(--ha-ease);
}
.ig-q-score-btn:hover { transform: translateY(-2px); border-color: var(--ha-acc) !important; color: var(--ha-acc) !important; }
.ig-q-score-btn.selected {
  background: linear-gradient(135deg, var(--ha-acc), var(--ha-acc-2)) !important;
  border-color: transparent !important;
  color: #11160a !important;
  box-shadow: 0 6px 16px rgba(240,200,50,.30);
}

/* ── Timezone tiles — refined depth + live-data feel ────────────── */
.tz-clock-card {
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(0,0,0,.16)) !important;
  border: 1px solid var(--ha-line-2) !important;
  box-shadow: var(--ha-shadow-1);
  transition: border-color .35s var(--ha-ease), transform .35s var(--ha-ease), box-shadow .35s var(--ha-ease);
}
.tz-clock-card:hover { transform: translateY(-2px); border-color: rgba(240,200,50,.24) !important; box-shadow: var(--ha-shadow-2); }
.tz-clock-card.tz-them { border-color: rgba(91,208,255,.22) !important; }
.tz-clock-card.tz-them:hover { border-color: rgba(91,208,255,.36) !important; }
.tz-clock { color: var(--ha-acc) !important; text-shadow: 0 0 24px rgba(240,200,50,.22) !important; }
.tz-clock-card.tz-them .tz-clock { color: var(--ha-cool) !important; text-shadow: 0 0 24px rgba(91,208,255,.22) !important; }

/* World Clock tiles */
.wc-tile {
  background: linear-gradient(155deg, rgba(255,255,255,.05), rgba(0,0,0,.12)) !important;
  border: 1px solid var(--ha-line) !important;
  box-shadow: var(--ha-shadow-1);
  transition: transform .35s var(--ha-ease), border-color .35s var(--ha-ease), box-shadow .35s var(--ha-ease);
}
.wc-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(240,200,50,.26) !important;
  box-shadow: var(--ha-shadow-2), 0 0 0 1px rgba(240,200,50,.08) !important;
}
.wc-tile[data-rank="1"] {
  background: linear-gradient(155deg, rgba(240,200,50,.14), rgba(0,0,0,.10)) !important;
  border-color: rgba(240,200,50,.30) !important;
}
.wc-tile-clock { color: var(--ha-cool) !important; text-shadow: 0 0 18px rgba(91,208,255,.18); }
.wc-tile[data-rank="1"] .wc-tile-clock { color: var(--ha-acc) !important; text-shadow: 0 0 18px rgba(240,200,50,.22); }

/* Calculator — refined polish */
.calc-wrap {
  background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(0,0,0,.16)) !important;
  border: 1px solid var(--ha-line-2) !important;
  box-shadow: var(--ha-shadow-2);
  border-radius: 24px !important;
}
.calc-display { color: var(--ha-acc) !important; text-shadow: 0 0 22px rgba(240,200,50,.24) !important; }
.calc-btn {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--ha-line) !important;
  color: var(--ha-ink) !important;
  transition: transform .22s var(--ha-ease), background .25s var(--ha-ease), border-color .25s var(--ha-ease);
}
.calc-btn:hover { border-color: var(--ha-acc) !important; color: var(--ha-acc) !important; transform: translateY(-1px); }
.calc-btn.calc-op {
  background: linear-gradient(135deg, var(--ha-acc), var(--ha-acc-2)) !important;
  color: #11160a !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(240,200,50,.28);
}
.calc-btn.calc-eq {
  background: linear-gradient(135deg, #4ee598, #79ecaa) !important;
  color: #062c1c !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(78,229,152,.28);
}

/* Leave Calculator output cards — refined depth */
.lc-out-card {
  background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(0,0,0,.10)) !important;
  border: 1px solid var(--ha-line) !important;
  transition: transform .35s var(--ha-ease), border-color .35s var(--ha-ease), box-shadow .35s var(--ha-ease);
}
.lc-out-card:hover { transform: translateY(-2px); border-color: rgba(240,200,50,.24) !important; box-shadow: var(--ha-shadow-2); }
.lc-out-card.lc-out-result {
  background: linear-gradient(165deg, rgba(240,200,50,.16), rgba(0,0,0,.10)) !important;
  border-color: rgba(240,200,50,.34) !important;
}
.lc-out-val { color: var(--ha-acc) !important; }

/* Interview output card */
.ig-output {
  background: linear-gradient(165deg, rgba(240,200,50,.10), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(240,200,50,.28) !important;
  box-shadow: var(--ha-shadow-2);
}
.ig-output-band {
  font-family: 'DM Sans', system-ui, sans-serif !important;
  letter-spacing: .4px !important;
  text-transform: none !important;
  background: linear-gradient(135deg, var(--ha-acc), var(--ha-acc-2)) !important;
  color: #11160a !important;
  box-shadow: 0 6px 16px rgba(240,200,50,.28);
}

/* Mobile breathing room */
@media (max-width: 640px) {
  .sec-title { font-size: 22px !important; }
  .glass { padding: 18px !important; }
  .snav-item { padding: 10px 12px 12px !important; font-size: 11.5px !important; }
}

/* ════════════════════════════════════════════════════════════════════
   WEATHER VISUALS — animated per-condition layer for World Clock tiles
   and the focused tile. Pure CSS keyframes — no JS animation loop.
   ════════════════════════════════════════════════════════════════════ */
.wx-fx {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.wc-tile > *, .wc-focus-card > * { position: relative; z-index: 1; }
.wc-tile, .wc-focus-card { overflow: hidden; }

/* ── Day-tint gradients per condition, layered behind the .wx-fx fx ── */
.wc-tile.is-day.wx-Clear        { background: linear-gradient(155deg, rgba(91,170,255,.14), rgba(0,0,0,.16)) !important; }
.wc-tile.is-day.wx-MostlyClear  { background: linear-gradient(155deg, rgba(91,170,255,.10), rgba(0,0,0,.16)) !important; }
.wc-tile.is-day.wx-PartlyCloudy { background: linear-gradient(155deg, rgba(150,180,210,.12), rgba(0,0,0,.16)) !important; }
.wc-tile.is-day.wx-Cloudy       { background: linear-gradient(155deg, rgba(150,170,190,.14), rgba(0,0,0,.20)) !important; }
.wc-tile.is-day.wx-Drizzle, .wc-tile.is-day.wx-Rain { background: linear-gradient(155deg, rgba(90,130,170,.18), rgba(0,0,0,.24)) !important; }
.wc-tile.is-day.wx-Snow         { background: linear-gradient(155deg, rgba(190,220,255,.16), rgba(0,0,0,.18)) !important; }
.wc-tile.is-day.wx-Foggy        { background: linear-gradient(155deg, rgba(160,170,180,.14), rgba(0,0,0,.20)) !important; }
.wc-tile.is-day.wx-Thunderstorm { background: linear-gradient(155deg, rgba(70,80,120,.22), rgba(0,0,0,.30)) !important; }
.wc-tile.is-night               { background: linear-gradient(155deg, rgba(20,35,70,.40), rgba(0,0,0,.36)) !important; }
.wc-tile.is-night.wx-Clear      { background: linear-gradient(155deg, rgba(40,60,110,.40), rgba(0,0,0,.40)) !important; }

/* ── SUN (day, clear) — glowing disc top-right + slow ray pulse ───── */
.wx-fx-sun {
  position: absolute; top: -22px; right: -22px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe27a 0%, #ffb830 55%, transparent 72%);
  box-shadow: 0 0 50px rgba(255,184,48,.55), 0 0 80px rgba(255,184,48,.28);
  animation: wxSunPulse 5s ease-in-out infinite, wxSunDrift 28s linear infinite;
}
@keyframes wxSunPulse {
  0%,100% { transform: scale(1); filter: brightness(1); }
  50%     { transform: scale(1.07); filter: brightness(1.12); }
}
@keyframes wxSunDrift {
  0%   { transform-origin: center; }
  100% { transform: rotate(360deg); }
}

/* ── MOON (night, clear) — crescent top-right + tiny twinkling stars ─ */
.wx-fx-moon {
  position: absolute; top: 10px; right: 14px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4f4ff 0%, #b6bdd5 60%, #5a608a 100%);
  box-shadow: inset -8px -4px 0 #303759, 0 0 30px rgba(180,200,255,.35);
}
.wx-fx-star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255,255,255,.7);
  animation: wxTwinkle 2.4s ease-in-out infinite;
}
@keyframes wxTwinkle {
  0%,100% { opacity: .3; transform: scale(.8); }
  50%     { opacity: 1;  transform: scale(1.2); }
}

/* ── CLOUDS (partly-cloudy, cloudy) — drifting puffs ────────────── */
.wx-fx-cloud {
  position: absolute;
  background: radial-gradient(ellipse 50% 60% at 50% 60%, #f4f6fa 0%, #c3ccd9 65%, transparent 75%);
  border-radius: 50%;
  filter: blur(.3px);
  opacity: .82;
}
.wx-fx-cloud-1 { width: 96px; height: 36px; top: 18px; left: -40px;  animation: wxCloudDrift1 22s linear infinite; }
.wx-fx-cloud-2 { width: 70px; height: 28px; top: 42px; left: -30px;  animation: wxCloudDrift2 32s linear infinite; }
.wx-fx-cloud-3 { width: 120px; height: 42px; top: 64px; left: -60px; animation: wxCloudDrift1 26s linear infinite reverse; }
@keyframes wxCloudDrift1 { 0% { transform: translateX(0); } 100% { transform: translateX(280px); } }
@keyframes wxCloudDrift2 { 0% { transform: translateX(0); } 100% { transform: translateX(280px); } }
.wc-tile.is-night .wx-fx-cloud { background: radial-gradient(ellipse 50% 60% at 50% 60%, #6c7393 0%, #383e5c 65%, transparent 75%); opacity: .55; }

/* ── RAIN (drizzle/rain) — falling streaks ──────────────────────── */
.wx-fx-rain { background: linear-gradient(180deg, transparent, rgba(8,18,35,.10)); }
.wx-fx-drop {
  position: absolute;
  width: 1.6px; height: 12px;
  background: linear-gradient(to bottom, rgba(180,210,250,.0), rgba(180,210,250,.85));
  border-radius: 1px;
  animation: wxRainFall 0.9s linear infinite;
}
.wx-fx-drop.heavy { width: 2.2px; height: 18px; }
@keyframes wxRainFall {
  0%   { transform: translate(0, -20px); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(-4px, 130%); opacity: .6; }
}

/* ── SNOW — drifting flakes ─────────────────────────────────────── */
.wx-fx-flake {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255,255,255,.85);
  opacity: .9;
  animation: wxFlakeFall 6s linear infinite;
}
@keyframes wxFlakeFall {
  0%   { transform: translate(0, -20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(-30px, 140%) rotate(360deg); opacity: .7; }
}

/* ── THUNDERSTORM — dark cloud + flashing lightning ─────────────── */
.wx-fx-thunder-cloud {
  position: absolute; top: 0; right: -30px;
  width: 150px; height: 70px;
  background: radial-gradient(ellipse 70% 80% at 50% 70%, #4b5374 0%, #2b314e 65%, transparent 75%);
  border-radius: 50%;
  opacity: .85;
}
.wx-fx-flash {
  position: absolute;
  inset: 0;
  background: rgba(255,235,160,0);
  animation: wxFlash 6s steps(1) infinite;
}
@keyframes wxFlash {
  0%, 9%, 11%, 14%, 100% { background: rgba(255,235,160,0); }
  10%, 13%              { background: rgba(255,235,160,.65); }
}

/* ── FOG — drifting horizontal bands ────────────────────────────── */
.wx-fx-fog {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(220,225,235,.12) 35%, rgba(220,225,235,.10) 55%, transparent 100%);
}
.wx-fx-fog-band {
  position: absolute;
  left: -40%; width: 180%; height: 22px;
  background: linear-gradient(90deg, transparent, rgba(220,225,235,.32), transparent);
  filter: blur(2px);
}
.wx-fx-fog-band.b1 { top: 30%; animation: wxFogDrift 18s linear infinite; }
.wx-fx-fog-band.b2 { top: 55%; animation: wxFogDrift 24s linear infinite reverse; }
.wx-fx-fog-band.b3 { top: 75%; animation: wxFogDrift 30s linear infinite; }
@keyframes wxFogDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(40%); }
}

/* ── Tile weather chip — bigger temp, condition, hi/lo ──────────── */
.wc-tile-weather { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.wc-tile-weather-left { display: flex; align-items: center; gap: 10px; }
.wc-tile-weather-icon { font-size: 22px; color: var(--ha-acc); filter: drop-shadow(0 2px 6px rgba(240,200,50,.35)); }
.wc-tile.is-night .wc-tile-weather-icon { color: #c4d4ff; filter: drop-shadow(0 2px 6px rgba(180,200,255,.4)); }
.wc-tile-temp { font-family: 'IBM Plex Mono', monospace; font-size: 20px; font-weight: 700; color: var(--ha-ink); }
.wc-tile-cond { font-size: 11px; color: var(--ha-ink-3); margin-top: 2px; }
.wc-tile-hilo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--ha-ink-3);
}
.wc-tile-hilo .hi { color: #ff9e7a; }
.wc-tile-hilo .lo { color: #7ec3ff; }

/* ── Focus card — extended weather panel ────────────────────────── */
.wc-focus-card { overflow: hidden; position: relative; padding: 28px; }
.wc-focus-card .wx-fx { z-index: 0; }
.wc-focus-card > * { position: relative; z-index: 1; }
.wc-focus-body { grid-template-columns: 1fr 1fr; gap: 26px; }
.wc-focus-clock { font-family: 'IBM Plex Mono', monospace; font-size: clamp(40px, 6.6vw, 60px); color: var(--ha-acc); text-shadow: 0 0 22px rgba(240,200,50,.28); }
.wc-focus-card.is-night .wc-focus-clock { color: #b6cdff; text-shadow: 0 0 22px rgba(170,200,255,.30); }
.wc-focus-weather {
  background: rgba(11,18,24,.45);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wc-focus-weather-icon { font-size: 42px; }
.wc-focus-weather-temp { font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 700; }
.wc-focus-weather-hilo { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ha-ink-3); margin-top: 3px; }
.wc-focus-weather-hilo .hi { color: #ff9e7a; }
.wc-focus-weather-hilo .lo { color: #7ec3ff; }

/* Hourly strip */
.wc-hourly-strip {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 16px 0 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 16px;
  scrollbar-width: none;
}
.wc-hourly-strip::-webkit-scrollbar { display: none; }
.wc-hourly-cell {
  flex: 0 0 64px;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 0 8px;
  transition: transform .25s var(--ha-ease), border-color .25s var(--ha-ease);
}
.wc-hourly-cell:hover { transform: translateY(-2px); border-color: rgba(240,200,50,.28); }
.wc-hourly-cell .h-time { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ha-ink-3); }
.wc-hourly-cell .h-icon { font-size: 16px; color: var(--ha-acc); margin: 5px 0; }
.wc-hourly-cell .h-temp { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 700; color: var(--ha-ink); }
.wc-hourly-cell .h-precip { font-size: 9.5px; color: #7ec3ff; margin-top: 3px; }

/* Daily strip */
.wc-daily-strip {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 12px;
}
.wc-daily-row {
  display: grid;
  grid-template-columns: 80px 26px 1fr 50px 36px 50px;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.wc-daily-row .d-day { font-size: 12px; font-weight: 600; color: var(--ha-ink); }
.wc-daily-row .d-icon { font-size: 14px; color: var(--ha-acc); text-align: center; }
.wc-daily-row .d-precip { font-size: 10.5px; color: #7ec3ff; text-align: right; }
.wc-daily-row .d-range {
  position: relative;
  height: 5px; border-radius: 3px;
  background: linear-gradient(to right, #7ec3ff, var(--ha-acc), #ff9e7a);
  opacity: .45;
}
.wc-daily-row .d-lo, .wc-daily-row .d-hi { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.wc-daily-row .d-lo { color: #7ec3ff; text-align: right; }
.wc-daily-row .d-hi { color: #ff9e7a; }

/* Sun & moon line */
.wc-sunline {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: var(--ha-ink-3);
}
.wc-sunline i { color: var(--ha-acc); margin-right: 5px; }
.wc-sunline b { font-family: 'IBM Plex Mono', monospace; color: var(--ha-ink); font-weight: 600; }

@media (max-width: 820px) {
  .wc-focus-body { grid-template-columns: 1fr !important; gap: 16px !important; }
  .wc-daily-row { grid-template-columns: 64px 22px 1fr 38px 28px 38px; gap: 8px; }
}

/* ── Leave Calculator: record snapshot + diagnosis ──────────────── */
.lc-rec-snap, .lc-diag {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
}
.lc-rec-head, .lc-diag-head {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ha-acc);
  margin-bottom: 10px;
}
.lc-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 16px;
}
.lc-rec-row { font-size: 12.5px; line-height: 1.5; }
.lc-rec-row .k {
  display: block;
  font-size: 10.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--ha-ink-3);
  margin-bottom: 2px;
}
.lc-rec-row .v {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ha-ink);
  font-weight: 600;
}
.lc-rec-row .v.warn { color: #ffb347; }
.lc-rec-row .v.bad  { color: #ff5973; }
.lc-rec-row .v.ok   { color: #4ee598; }
.lc-rec-row .v .note {
  display: block;
  margin-top: 2px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--ha-ink-3);
}

.lc-diag-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ha-ink-2);
}
.lc-diag-body p { margin: 0 0 8px; }
.lc-diag-body p:last-child { margin-bottom: 0; }
.lc-diag-body b { color: var(--ha-acc); font-weight: 700; }
.lc-diag-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: rgba(240,200,50,.10);
  color: var(--ha-acc);
  padding: 1px 6px;
  border-radius: 4px;
}
.lc-diag-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.lc-diag-status.match  { background: rgba(78,229,152,.16); color: #4ee598; border: 1px solid rgba(78,229,152,.35); }
.lc-diag-status.minor  { background: rgba(255,179,71,.16); color: #ffb347; border: 1px solid rgba(255,179,71,.35); }
.lc-diag-status.major  { background: rgba(255,89,115,.16); color: #ff5973; border: 1px solid rgba(255,89,115,.35); }
.lc-diag-list { margin: 8px 0 0; padding-left: 18px; }
.lc-diag-list li { margin-bottom: 4px; }

/* Extra top breathing room for the World Clock section header
   (per user request 2026-05-23 — "move down half inch"). */
#ha-world.cv.active { padding-top: 24px; }

/* ════════════════════════════════════════════════════════════════════
   GLASSMORPHISM POLISH + WELCOME LIVENESS — HR Assistant.
   ════════════════════════════════════════════════════════════════════ */
.glass {
  background:
    linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02)) padding-box,
    linear-gradient(135deg, rgba(91,208,255,.30), rgba(91,208,255,.04)) border-box !important;
  border: 1px solid transparent !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 12px 32px rgba(0,0,0,.25),
    0 0 0 1px rgba(91,208,255,.06) !important;
}
.glass:hover {
  background:
    linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.03)) padding-box,
    linear-gradient(135deg, rgba(240,200,50,.40), rgba(91,208,255,.06)) border-box !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 18px 42px rgba(0,0,0,.32),
    0 0 0 1px rgba(240,200,50,.12) !important;
}

/* Welcome banner — a thin live strip above the section title on first
   page open, gives the page a "hi, I'm awake" feel. */
.sec-head::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ee598;
  box-shadow: 0 0 0 0 rgba(78,229,152,.55);
  animation: haWelcomePulse 2.4s cubic-bezier(.16,1,.3,1) infinite;
  margin-right: 12px;
  vertical-align: middle;
}
@keyframes haWelcomePulse {
  0%   { box-shadow: 0 0 0 0 rgba(78,229,152,.55); transform: scale(.92); }
  70%  { box-shadow: 0 0 0 9px rgba(78,229,152,0); transform: scale(1.18); }
  100% { box-shadow: 0 0 0 0 rgba(78,229,152,0); transform: scale(.92); }
}

/* World Clock focus card — add next-hour + alerts banner slots */
.wc-focus-card .dwc-nexthour,
.wc-focus-card .dwc-alerts {
  margin-bottom: 16px;
}
.wc-focus-card.is-night .dwc-nexthour { background: linear-gradient(90deg, rgba(91,208,255,.22), rgba(91,208,255,.04)); }

/* ── Idealist Posting Template tab (consolidated 2026-05-25) ─────────── */
.il-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.il-dept-card { padding: 14px 12px; background: var(--lift); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: all .25s cubic-bezier(.16,1,.3,1); }
.il-dept-card:hover { border-color: var(--gglow); background: var(--gdim); transform: translateY(-2px); }
.il-dept-card.active { border-color: var(--gold); background: var(--gdim); box-shadow: 0 0 0 1px var(--gold); }
.il-dept-card .ic { font-size: 18px; color: var(--gold); }
.il-dept-card .nm { font-family: var(--disp); font-size: 13px; color: var(--text); font-weight: 600; }
.il-dept-card .ct { font-size: 10.5px; color: var(--t3); }
.il-linked-banner { background: rgba(76,214,87,.10); border: 1px solid rgba(76,214,87,.3); color: var(--green); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.il-template-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.il-template-actions { display: flex; gap: 8px; }
.il-phase { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px dashed var(--border); }
.il-phase:last-child { border-bottom: 0; }
.il-phase-head { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 15px; color: var(--gold); margin-bottom: 14px; }
.il-phase-num { font-family: var(--mono); font-size: 9.5px; background: var(--gdim); color: var(--gold); padding: 3px 8px; border-radius: 4px; letter-spacing: 1.5px; font-weight: 700; border: 1px solid var(--gglow); }
.il-field { margin-bottom: 14px; position: relative; }
.il-field label { display: block; font-size: 11.5px; color: var(--t2); margin-bottom: 5px; font-weight: 600; }
.il-field .gi { width: 100%; padding: 10px 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--body); font-size: 13px; }
.il-field .gi:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.4); }
.il-field textarea.gi { font-family: var(--mono); font-size: 12px; line-height: 1.6; min-height: 80px; resize: vertical; }
.il-field .gi-readonly { background: rgba(212,175,55,.06); color: var(--t2); font-style: italic; cursor: default; }
.il-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.il-field-row .il-field { margin-bottom: 0; }
.il-field-wide { margin-bottom: 14px; }
.il-copy { position: absolute; right: 6px; top: 30px; background: rgba(212,175,55,.12); border: 1px solid var(--gglow); color: var(--gold); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; font-size: 11px; }
.il-copy:hover { background: var(--gold); color: var(--void); transform: scale(1.05); }
.il-copy.copied { background: var(--green); border-color: var(--green); color: var(--void); }
.il-copy.copied::after { content: '✓'; margin-left: 4px; }
.il-compliance-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(76,214,87,.06); border: 1px solid rgba(76,214,87,.3); border-radius: 10px; margin-bottom: 14px; font-size: 12.5px; color: var(--t2); line-height: 1.5; }
@media(max-width:820px) {
  .il-dept-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .il-field-row { grid-template-columns: 1fr; gap: 10px; }
  .il-template-actions { flex-direction: column; width: 100%; }
  .il-template-actions .btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════
 * MODAL — Idealist link-back uses .modal-overlay / .modal-box pattern.
 * Originally lived on the standalone idealist-template page; merged into
 * HR Assistant 2026-05-25 and the matching styles needed copying in.
 * ════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  z-index: 9000;
  align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
}
.modal-overlay.open { display: flex !important; }
.modal-box {
  background: var(--lift);
  border: 1px solid var(--gglow);
  border-radius: 14px;
  padding: 26px 24px;
  width: 92%; max-width: 520px;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  animation: mIn .35s cubic-bezier(.16,1,.3,1);
  color: var(--text);
}
.modal-box .modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--t3);
  transition: all .2s;
}
.modal-box .modal-close:hover { background: var(--panel2); color: var(--text); }
.modal-box .modal-title { font-family: var(--disp); font-size: 18px; color: var(--gold); margin-bottom: 6px; }
.modal-box .modal-sub { font-size: 12px; color: var(--t3); margin-bottom: 14px; line-height: 1.5; }
.modal-box .modal-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.modal-box .ig-row { margin-bottom: 14px; }
.modal-box .gi-label { display: block; font-size: 11px; color: var(--t3); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.modal-box .gi {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; background: rgba(0,0,0,.25);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--body); font-size: 13px;
}
.modal-box .gi:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.4); }
.modal-box .lc-out-sub { font-size: 11.5px; color: var(--t3); line-height: 1.5; }
.modal-box .lc-diag { padding: 12px 14px; border-radius: 8px; background: rgba(0,0,0,.3); border: 1px solid var(--border); font-size: 12px; line-height: 1.5; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ════════════════════════════════════════════════════════════════════
 * HR ASSISTANT — full mobile compat audit (added 2026-05-25)
 * Snav becomes horizontal-scrollable strip; content reflows to single
 * column; tables become scrollable; tiles + tabs sized for touch.
 * ════════════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  /* Sub-nav becomes a horizontal scroll strip */
  #sec-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; padding: 8px 6px; }
  #sec-nav .snav-item {
    display: inline-flex !important;
    margin: 0 4px;
    padding: 8px 12px;
    font-size: 11.5px;
    flex-shrink: 0;
  }
  #sec-nav::-webkit-scrollbar { height: 0; }

  /* Section content tighter padding */
  main, .cv.active { padding: 14px 12px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sec-title { font-size: 18px; }
  .sec-sub { font-size: 12px; }

  /* Glass cards full-bleed */
  .glass { padding: 14px 12px; border-radius: 12px; }

  /* Modal — fills screen with safe inset */
  .modal-box { width: calc(100vw - 24px); max-width: 100vw; padding: 20px 16px; border-radius: 12px; }
  .modal-box .modal-actions { flex-direction: column-reverse; gap: 8px; }
  .modal-box .modal-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  /* Hide the back-arrow label on tight headers */
  .hdr-back-btn span { display: none; }
  .page-pill span { display: none; }

  /* Interview Training Guide — stack cards */
  .interview-card { padding: 16px 14px; }
  .lc-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Calculator — bigger touch targets */
  .calc-wrap { padding: 16px; border-radius: 14px; }
  .calc-btn { min-height: 56px; font-size: 19px; border-radius: 12px; }
  .calc-grid { gap: 9px; }

  /* World Clock — tighter tiles */
  .wc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .wc-focus-card { padding: 18px; }
  .wc-focus-body { grid-template-columns: 1fr; gap: 16px; }

  /* Idealist tab — single col grid */
  .il-dept-grid { grid-template-columns: 1fr 1fr; }
  .il-template { padding: 14px 12px; }
  .il-phase { margin-bottom: 18px; padding-bottom: 14px; }
}

@media (max-width: 480px) {
  /* Snav items become icon-only at the tightest width to save horizontal space */
  #sec-nav .snav-item { padding: 8px 10px; }
  /* Calculator buttons even larger */
  .calc-btn { min-height: 60px; font-size: 20px; }
  /* Idealist dept grid single col below 480px */
  .il-dept-grid { grid-template-columns: 1fr; }
}

/* Safe-area inset for iOS notch / home-indicator */
body { padding-bottom: env(safe-area-inset-bottom); }
