/* ============================================================
   RedTeam Xperience â€” v4 (reference layout, red/black/cream)
   ============================================================ */
:root {
  --red: #f01c24;
  --red-700: #c8121a;
  --red-grad: linear-gradient(180deg, #ff5b5c 0%, #ff1a1e 100%);
  --red-soft: #ffe1e2;

  --ink: #16130d;
  --ink-2: #221d15;

  --card: #ffffff;
  --cream: #ffe8e6;

  --text: #1d1a13;
  --text-2: #6f6657;
  --muted: #a79d8b;
  --line: #ece3d2;
  --line-2: #e3d8c4;

  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(70,55,25,.05), 0 2px 8px rgba(70,55,25,.05);
  --shadow-md: 0 8px 22px rgba(70,55,25,.09), 0 18px 40px rgba(70,55,25,.07);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: #d7d4cd;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }

/* ---------- Frame + app panel ---------- */
.frame {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* Scoped to `.frame .app`: this reference "rail" mockup shell (used only by the
   /login-alt preview page, which wraps its .app in .frame) shares the bare
   `.app` class name with the real AppShell shell below — unscoped, this block
   silently overrode AppShell's shell padding/overflow/shadow on every page. */
.frame .app {
  width: 100%;
  display: flex;
  gap: 8px;
  position: relative;
  /* `clip` clips identically to `hidden` (keeps the decorative ::before/::after
     blurs contained) but does NOT establish a scroll container, so the sticky
     .topbar below resolves against the viewport instead of this panel. */
  overflow: clip;
  background:
   radial-gradient(620px 360px at 86% 4%, rgba(241, 72, 78, .09), transparent 70%), radial-gradient(520px 360px at 8% 104%, rgba(241, 72, 78, .045), transparent 72%), linear-gradient(150deg, #fff5f5 0%, #f6ece5 45%, #ffffff 100%);
  padding: 20px 26px 26px 16px;
  box-shadow: 0 30px 70px rgba(60,50,30,.18);
}
.frame .app::before {
  content: ""; position: absolute; top: -180px; right: -90px;
  width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,60,66,.16) 0%, rgba(241,90,96,.06) 44%, transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: 0;
}
.frame .app::after {
  content: ""; position: absolute; top: -70px; right: 90px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 1.5px dashed rgba(241,60,66,.14); pointer-events: none; z-index: 0;
}
.rail, .main { position: relative; }

/* ---------- Left icon rail ---------- */
.rail { flex: 0 0 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; }
.rail-logo { width: auto; height: auto;  }
.rail-nav { display: flex; flex-direction: column; gap: 6px; }
.r-item { position: relative; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s; }
.r-item svg { width: 21px; height: 21px; stroke-width: 1.9; }
.r-item:hover { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.r-item.active { background: var(--ink); color: #fff; }
.r-label {
  position: absolute; left: 52px; top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
  box-shadow: var(--shadow-md); z-index: 80;
}
.r-item:hover .r-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.main { flex: 1; min-width: 0; padding-left: 16px; }

/* ============ Top bar ============ */
/* Scoped to `.frame .topbar`: this reference mockup's topbar (used only by
   the /login-alt preview, wrapped in .frame) shared the bare `.topbar`
   class with the real AppShell topbar below — unscoped, it silently won
   the cascade (padding:10px 0, z-index:60) over TopbarView's own rules in
   styles-v3.css on every real page. */
.frame .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  /* Sticky header on scroll — frosted bar that pins to the viewport top while
     the dashboard scrolls underneath (see overflow:clip note on .app). */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 245, 245, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.frame .topbar.is-stuck {
  border-bottom-color: var(--line-2);
  box-shadow: 0 6px 18px rgba(70, 55, 25, .08);
}
.logo { flex: 0 0 auto; padding: 6px 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(255,255,255,.42); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.logo img { height: 20px; width: auto; }

.topnav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}
.t-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 7px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.t-item:hover { color: var(--text); background: rgba(255,255,255,.6); }
.t-item.active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.set-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* gap: 7px; */
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(12px) saturate(1.25);
    -webkit-backdrop-filter: blur(12px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 4px 16px rgba(150, 70, 50, .10);
}
.set-btn svg { width: 15px; height: 15px; }
.set-btn:hover { background: rgba(255,255,255,.62); }
.ic-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 16px rgba(150,70,50,.10);
  display: grid; place-items: center; color: var(--text); position: relative;
}
.ic-btn svg { width: 18px; height: 18px; }
.ic-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #f5eee0; }
.ava {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red-grad); color: #fff;
  font-weight: 700; font-size: 15px; display: grid; place-items: center;
}

/* ============ Greeting ============ */
.hello {
  font-size:20px;
  font-weight: 500;
  letter-spacing: -.03em;
  margin: 28px 0 0 2px;
}

/* ============ Stat strip ============ */
.strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: center;
  padding: 0px 6px 26px !important;
}
.splitbar { display: flex; flex-direction: column; gap: 12px; }
.legends { display: flex; gap: 22px; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.lg b { color: var(--text); font-weight: 700; }
.lg .d { width: 9px; height: 9px; border-radius: 3px; }
.d-dark { background: var(--ink); }
.d-red { background: var(--red); }
.d-soft { background: #ff9b9d; }
.d-hatch { background: repeating-linear-gradient(45deg, #cdbfa6, #cdbfa6 2px, transparent 2px, transparent 4px); }
.track { display: flex; gap: 5px; height: 34px; }
.seg { border-radius: 8px; height: 100%; }
.s-dark { background: var(--ink); }
.s-red { background: var(--red-grad); }
.s-soft { background: #ff9b9d; }
.s-hatch { background: repeating-linear-gradient(45deg, #d3c6ae, #d3c6ae 4px, #e8ddca 4px, #e8ddca 8px); }

.bignums {display: grid;grid-template-columns: repeat(3, 1fr);align-items: center;gap: 20px;}
.bn {display: flex;align-items: center;gap: 14px;padding: 19px 22px;position: relative;background-color: #ffffff52;border-radius: 5px;box-shadow: var(--shadow-sm);}
.bn-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: 0 0 48px; box-shadow: 0 6px 14px rgba(240,28,36,.10); }
.bn-ic svg { width: 24px; height: 24px; }
.bn-txt {min-width: 0;width: 100%;}
.bn .v { font-family: var(--display); font-size: 42px; font-weight: 700; line-height: .92; letter-spacing: -.03em; color: var(--text); }
.bn .k { font-size: 12px; color: var(--text-2); font-weight: 500; line-height: 1.25; margin-top: 6px; }

/* ============ Bento board ============ */
.board {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.82fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "courses courses userbox"
    "perf    comp    userbox";
  gap: 20px;
}
/* `.card`/`.c-head`/`.exp` are shared with the real Dashboard's "Course
   Performance" card, which opts into this mockup's look via the `.v4-scope`
   wrapper — styles-v3.css re-declares higher-specificity `.v4-scope .card`
   / `.v4-scope .c-head` / `.v4-scope .exp` copies for that real usage, so
   scoping the bare originals here to `.frame` (the /login-alt preview's own
   wrapper) doesn't affect it. Unscoped, this `.card` rule was also the bare,
   lowest-specificity fallback for ANY element with class="card" elsewhere in
   the real app (e.g. Dashboard's unrelated "Recent Activity" card), silently
   handing it this mockup's 14px radius/22px padding instead of its own. */
.frame .card {
  background: var(--card);
  border-radius: 14px;
  padding: 22px 22px;
  box-shadow: var(--shadow-sm);
}
.courses-area { grid-area: courses; align-self: start; }
.courses-area .sec-head { margin-bottom: 14px; }
.perf { grid-area: perf; }
.comp { grid-area: comp; }
.userbox { grid-area: userbox; display: flex; flex-direction: column; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); }

.frame .c-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.frame .c-head h3 { font-size: 16px; }
.frame .exp {
  margin-left: auto;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2);
}
.frame .exp svg { width: 15px; height: 15px; }
.frame .exp:hover { background: var(--cream); color: var(--text); }

/* ---------- Schedule ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 18px; }
.wd { text-align: center; padding: 9px 0; border-radius: 9px; }
.wd .dn { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.wd .dt { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; }
.wd.on { background: var(--ink); }
.wd.on .dn { color: rgba(255,255,255,.65); }
.wd.on .dt { color: #fff; }

.timeline { display: flex; flex-direction: column; gap: 12px; }
.tl-row { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; }
.tm { font-size: 11.5px; color: var(--muted); font-weight: 600; font-family: var(--mono); padding-top: 4px; }
.tl-line { height: 1px; background: var(--line); margin-top: 9px; }
.ev { background: var(--cream); border-radius: 10px; padding: 11px 13px; }
.ev-t { font-size: 13px; font-weight: 600; }
.ev-s { font-size: 11px; color: var(--text-2); font-weight: 500; margin-top: 3px; }
.ev-av { display: inline-flex; margin-top: 9px; }
.ev-av i {
  width: 22px; height: 22px; border-radius: 50%; margin-left: -6px;
  display: grid; place-items: center; font-size: 9.5px; font-weight: 700; font-style: normal;
  border: 2px solid var(--card); background: var(--line-2); color: var(--text);
}
.ev-av i:first-child { margin-left: 0; }
.ev-dark { background: var(--ink); }
.ev-dark .ev-t { color: #fff; }
.ev-dark .ev-s { color: rgba(255,255,255,.6); }
.ev-dark .ev-av i { border-color: var(--ink); background: #39322a; color: #fff; }
.ev-red { background: var(--red-grad); }
.ev-red .ev-t { color: #fff; }
.ev-red .ev-s { color: rgba(255,255,255,.85); }
.ev-red .ev-av i { border-color: #ff3338; background: rgba(255,255,255,.25); color: #fff; }

/* Mobile: override v3's display:none — icon-only by default, expand on tap */
@media (max-width: 860px) {
  .topbar .search {
    display: flex !important;
    width: 38px; height: 38px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    transition: width .25s ease, border-radius .25s ease, padding .25s ease;
  }
  .topbar .search input {
    display: none;
  }
  .topbar .search.expanded {
    width: auto;
    flex: 1;
    border-radius: 999px;
    padding: 8px 14px;
  }
  .topbar .search.expanded input {
    display: block;
    min-width: 0;
  }
  .topbar .search svg {
    flex: 0 0 auto;
  }
  /* Group the collapsed search icon with the theme/bell/avatar cluster on the right,
     instead of leaving it stranded on the left. margin-left:auto starts the right
     group at the search button (and is moved off .theme-btn, which set it in v3). */
  .topbar .search {
    margin-left: auto;
  }
  .topbar .theme-btn { margin-left: 0; }
  .topbar .search-results {
    position: fixed;
    top: 90px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: 50vh;
  }
  /* Expanded search takes the row; hide the other icon buttons so it has
     room to grow instead of pushing them past the viewport edge. */
  .topbar:has(.search.expanded) .theme-btn,
  .topbar:has(.search.expanded) .menu {
    display: none;
  }
}

.table-card .exp { margin-left: 0; }

.thead, .trow {
  display: grid;
  grid-template-columns: 2.2fr 1fr 0.8fr 1fr;
  align-items: center;
  gap: 10px;
}
.thead { padding: 0 8px 12px; border-bottom: 1px solid var(--line); }
.thead span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.col-prog, .col-st { text-align: left; }
.trow { padding: 12px 8px; border-radius: 10px; }
.trow.sel { background: #fff; box-shadow: var(--shadow-sm); }
.col-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.check { width: 19px; height: 19px; border-radius: 6px; background: var(--red); display: grid; place-items: center; flex: 0 0 19px; }
.check svg { width: 12px; height: 12px; color: #fff; }
.logo-tile {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 34px;
  display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 11px;
}
.l-red { background: var(--red-grad); }
.l-ink { background: linear-gradient(135deg,#221d15,#0e0c09); }
.l-dark { background: linear-gradient(135deg,#3a332a,#1c1812); }
.nm { font-size: 13px; font-weight: 600; line-height: 1.25; min-width: 0; }
.nm small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.col-cat { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.col-prog { font-size: 13px; font-weight: 700; font-family: var(--display); }
.pill { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; display: inline-block; }
.pill.ok { background: #e2f3e7; color: #2f8a52; }
.pill.active { background: var(--red-soft); color: var(--red-700); }
.pill.pend { background: var(--cream); color: var(--text-2); }

/* ---------- Learning Activity (black) ---------- */
.activity { background: var(--ink); color: #fff; }
.activity .c-head h3 { color: #fff; }
.activity .exp { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
.activity .exp:hover { background: rgba(255,255,255,.1); color: #fff; }
.act-nums { display: flex; gap: 26px; margin-bottom: 18px; }
.an { display: flex; align-items: flex-start; gap: 6px; }
.an .num { font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.an .ar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 4px; }
.an .ar svg { width: 13px; height: 13px; }
.an .ar.up { background: rgba(95,208,138,.18); color: #5fd08a; }
.an .ar.dn { background: rgba(255,107,108,.18); color: #ff6b6c; }
.dotgrid { display: grid; grid-template-columns: repeat(var(--cols, 13), 1fr); gap: 9px; }
.dotgrid .g { width: 100%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.10); }
.dotgrid .g.mid { background: #ffb24a; }
.dotgrid .g.on { background: var(--red); box-shadow: 0 0 8px rgba(240,28,36,.6); }

/* ---------- Course Performance (line chart) ---------- */
.perf .legend { display: flex; gap: 14px; margin-left: auto; }
.perf .legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.perf .legend .ld { width: 8px; height: 8px; border-radius: 50%; }
.ld.grey { background: #c9bda5; }
.ld.red { background: var(--red); }
.year { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: var(--cream); padding: 7px 12px; border-radius: 999px; }
.year svg { width: 13px; height: 13px; }
.perf .exp { margin-left: 0; }
.chart { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.yax { display: flex; flex-direction: column; justify-content: space-between; height: 180px; text-align: right; }
.yax span { font-size: 10px; color: var(--muted); font-family: var(--mono); transform: translateY(-4px); }
.plot { position: relative; height: 180px; }
.lines { width: 100%; height: 100%; overflow: visible; }
.lines .grid { stroke: var(--line); stroke-width: 1; }
.lines polyline { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln-grey { stroke: #cdc0a8; stroke-dasharray: 5 6; }
.ln-red { stroke: var(--red); }
.perf .tip { position: absolute; transform: translate(-50%,-130%); background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--mono); padding: 5px 9px; border-radius: 8px; white-space: nowrap; }
.perf .tip::after { content:""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 8px; height: 8px; background: var(--ink); border-radius: 1px; }
.tip-line { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--line-2); }
.tip-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2.5px solid var(--card); transform: translate(-50%,-50%); }
.xax { display: flex; justify-content: space-between; margin: 12px 0 0 40px; }
.xax span { font-size: 11px; color: var(--text-2); font-weight: 500; }
.xax span.on { color: var(--red); font-weight: 700; }

/* ---------- Composition (donut) ---------- */
.donut-wrap { display: flex; justify-content: center; padding: 10px 0 18px; }
.donut {
  width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(var(--red) 0% 67%, var(--ink) 67% 100%);
  display: grid; place-items: center; position: relative;
}
.d-hole { position: absolute; inset: 24px; background: var(--card); border-radius: 50%; z-index: 1; }
.d-val { position: relative; z-index: 2; font-family: var(--display); font-size: 32px; font-weight: 600; text-align: center; letter-spacing: -.02em; }
.d-val small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; margin-top: 2px; }
.comp-legend { display: flex; justify-content: center; gap: 22px; }
.cl { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; font-family: var(--display); }
.cl b { color: var(--text-2); font-weight: 500; font-family: var(--sans); font-size: 12px; }
.cl .dot { width: 9px; height: 9px; border-radius: 50%; }
.cl .dot.red { background: var(--red); }
.cl .dot.dark { background: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
  .board { grid-template-columns: 1.4fr 1fr 0.92fr; }
}
@media (max-width: 1180px) {
  .board {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "courses courses"
      "perf    comp"
      "userbox userbox";
  }
  .userbox { flex-direction: row; }
  .userbox .idcard2, .userbox .support2 { flex: 1 1 0; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app { padding: 16px;}
  .main { padding-left: 0; }
  .strip { grid-template-columns: 1fr; gap: 20px; }
  .board {
    grid-template-columns: 1fr;
    grid-template-areas: "courses" "perf" "comp" "userbox";
  }
  .userbox { flex-direction: column; }
  .hello { font-size: 34px; }
  .course-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; text-align: left; }
  .promo .info { text-align: left; justify-content: flex-start; }
  .feed { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hello { font-size: 28px; }
  .bignums { grid-template-columns: 1fr; gap: 10px; }
  .bn:not(:first-child)::before { display: none; }
  .legends { gap: 12px; }
  .set-btn { padding: 8px 10px; }
}
/* ============================================================
   Sections below the bento â€” My Courses cards, Promo, Feed
   ============================================================ */
.section { margin-top: 32px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 20px; letter-spacing: -.025em; }
.sec-head .count { font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--red-soft); color: var(--red); padding: 3px 9px; border-radius: 999px; }
.sec-head .link { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 5px; }
.sec-head .link svg { width: 16px; height: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 999px; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-grad); color: #fff; box-shadow: 0 8px 20px rgba(240,28,36,.30); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn svg { width: 17px; height: 17px; }

/* Course cards — `.course`/`.course-grid` are shared with the /login-alt
   preview (wrapped in .frame). Unscoped, this 14px-radius/22px-padding
   version silently won the cascade over styles-v3.css's real 5px-radius
   `.course` card (used by the actual Dashboard/My Courses grids) since this
   file loads second — every real course card was rendering with the wrong
   corner radius. */
.frame .course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.frame .course { background: var(--card); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.frame .course:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.c-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.c-logo { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg,#3a332a,#16130d); }
.c-logo.l-red { background: var(--red-grad); }
.c-logo.l-ink { background: linear-gradient(135deg,#221c14,#0e0c09); }
.c-logo.l-dark { background: linear-gradient(135deg,#221c14,#0e0c09); }
.c-save { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.c-save svg { width: 15px; height: 15px; }
.c-save.on { color: var(--red); }
.c-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 16px; }
.c-title { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.3; margin-top: 8px; min-height: 44px; text-wrap: pretty; color: var(--text); }
.c-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.c-tags span { font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--cream); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.c-tags span svg { width: 13px; height: 13px; color: var(--muted); }
.c-prog { margin-top: 18px; }
.c-prog .pt { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.c-prog .pt .pc { color: var(--red); }
.c-prog .pt .rem { color: var(--muted); font-weight: 500; }
.c-prog .bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.c-prog .bar i { display: block; height: 100%; background: var(--red-grad); border-radius: 999px; }
.c-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.c-foot .lessons { font-size: 13px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.c-foot .lessons svg { width: 16px; height: 16px; color: var(--muted); }
.c-foot .btn { padding: 10px 18px; }

/* Promo CTA */
.promo { background: linear-gradient(120deg,#17130d 0%,#221c14 100%); border-radius: 14px; padding: 30px 32px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 26px; align-items: center; }
.promo .grid-ov { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: 30px 30px; }
.promo .glow { position: absolute; right: 30%; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(240,28,36,.30), transparent 70%); }
.promo h3 { font-size: 24px; line-height: 1.15; position: relative; color: #fff; }
.promo .mid { position: relative; }
.promo .mid p { font-size: 13.5px; color: #c7bfb2; line-height: 1.5; margin-bottom: 16px; }
.promo .info { position: relative; text-align: right; display: flex; align-items: center; gap: 22px; justify-content: flex-end; }
.promo .info .k { font-size: 12px; color: #a99f90; font-weight: 500; }
.promo .info .v { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 2px 0 12px; }
.promo .info .v.price { color: #ff6b6c; margin-bottom: 0; }
.promo .info .enr { color: #9aa0ac; font-size: 13px; font-weight: 500; }
.promo .pthumb { width: 116px; height: 96px; border-radius: 11px; background: linear-gradient(135deg,#2a0d10,#7c1c20); position: relative; overflow: hidden; display: grid; place-items: center; flex: 0 0 116px; }
.promo .pthumb .code { font-family: var(--display); font-weight: 800; color: #fff; font-size: 20px; letter-spacing: .04em; position: relative; z-index: 1; }
.promo .pthumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80px 60px at 70% 30%, rgba(240,28,36,.5), transparent 70%); }

/* Community Feeds */
.feed-card { background: #fff7f2; border-radius: 14px; padding: 26px 28px 28px;  }
.avastack { display: flex; align-items: center; }
.avastack .a { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.avastack .a:first-child { margin-left: 0; }
.avastack .more { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; }
.composer { display: flex; align-items: center; gap: 12px; background: var(--cream); border-radius: 11px; padding: 12px 16px; margin-top: 16px; }
.composer .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--red-grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: 0 0 40px; }
.composer input { flex: 1; border: none; background: none; outline: none; font-family: inherit; font-size: 14px; color: var(--text); }
.composer .tools { display: flex; gap: 4px; }
.composer .tools button { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.composer .tools button:hover { background: #e7ddc9; color: var(--red); }
.composer .tools button svg { width: 18px; height: 18px; }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.post .ph { display: flex; align-items: center; gap: 11px; }
.post .ph .ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: 0 0 42px; }
.post .ph .who { font-size: 14px; font-weight: 600; line-height: 1.15; }
.post .ph .who span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.post .ph .tag { margin-left: auto; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.post .ph .tag.win { color: var(--red); background: var(--red-soft); }
.post .ph .tag.tip { color: #9a7b1e; background: #f4ecd6; }
.post .ph .tag.res { color: #5a6675; background: #eceef2; }
.post .pf .act.sh { margin-left: 0; padding: 6px 11px; }
.post .txt { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-top: 13px; }
.post .media { height: 118px; border-radius: 10px; margin-top: 14px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; }
.post .media.m-red { background: linear-gradient(135deg,#fff1f1,#ffe0e1); }
.post .media.m-blue { background: linear-gradient(135deg,#f6efe1,#ece1cb); }
.post .media .dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.05) 1.4px, transparent 1.4px); background-size: 16px 16px; }
.post .media .chip { position: relative; z-index: 2; background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 7px; }
.post .media .chip .ic { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; }
.post .media .chip .ic svg { width: 12px; height: 12px; color: #fff; }
.post .pf { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.post .pf .act { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--cream); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.post .pf .act svg { width: 16px; height: 16px; }
.post .pf .time { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ============================================================
   Per-card soft red glow
   ============================================================ */
.card, .course, .feed-card, .post {
  background-image: radial-gradient(170px 150px at 100% 0%, rgba(241,84,90,.06), transparent 60%);
}

/* ============================================================
   Explore More Courses
   ============================================================ */
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.xcard { position: relative; height: 392px; background-color: #19150f; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform .15s, box-shadow .15s; }
.xcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.x-media { position: absolute; inset: 0; overflow: hidden; }
.xm-1 { background: linear-gradient(150deg, #3a1d1f, #140f0c); }
.xm-2 { background: linear-gradient(150deg, #2b2620, #141009); }
.xm-3 { background: linear-gradient(150deg, #222a31, #10110c); }
.x-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.x-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(11,8,5,.95) 0%, rgba(11,8,5,.5) 42%, rgba(11,8,5,.05) 72%, transparent 100%); }
.x-badge2 { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.92); color: var(--text); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); }
.x-badge2 i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.x-rate2 { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(20,15,12,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.x-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 18px; color: #fff; }
.x-name { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; }
.x-desc { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.82); margin-top: 7px; text-wrap: pretty; }
.x-foot2 { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.x-meta2 { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.88); }
.x-meta2 svg { width: 15px; height: 15px; color: #ff8f8b; }
.x-go2 { width: 40px; height: 40px; border-radius: 50%; background: var(--red-grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(240,28,36,.3); transition: transform .15s; flex: 0 0 40px; }
.xcard:hover .x-go2 { transform: translateX(3px); }
.x-go2 svg { width: 18px; height: 18px; }

/* ============================================================
   Community Feeds â€” redesigned posts
   ============================================================ */
.post { padding: 18px; }
.achv { display: inline-flex; align-items: center; gap: 9px; margin-top: 13px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.achv-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 22px; }
.achv-ic svg { width: 13px; height: 13px; }

/* ============================================================
   TWEAKS â€” expressive feel-reshaping overrides
   (defaults: vibe=balanced, corners=soft, density=comfortable
    match the base design, so no rules needed for those)
   ============================================================ */

/* ---- Vibe: soft (calm, flat, pale) ---- */
html[data-vibe="soft"] {
  --shadow-sm: 0 1px 2px rgba(60,48,24,.03), 0 2px 6px rgba(60,48,24,.03);
  --shadow-md: 0 4px 12px rgba(60,48,24,.05), 0 10px 22px rgba(60,48,24,.04);
}
html[data-vibe="soft"] .app {
  background:
    radial-gradient(620px 360px at 86% 4%, rgba(241,72,78,.045), transparent 70%),
    linear-gradient(150deg, #f8f2ed 0%, #f6f0ea 50%, #f7f1ec 100%);
}
html[data-vibe="soft"] .app::before { opacity: .38; }
html[data-vibe="soft"] .app::after { opacity: .45; }
html[data-vibe="soft"] .btn-red,
html[data-vibe="soft"] .x-go,
html[data-vibe="soft"] .ava { box-shadow: none; }
html[data-vibe="soft"] .ev-red { background: linear-gradient(160deg,#f6b6b3,#ef9b98); }
html[data-vibe="soft"] .post-bar { background: #e7c3c2; }

/* ---- Vibe: bold (punchy, saturated, deep) ---- */
html[data-vibe="bold"] {
  --shadow-sm: 0 2px 4px rgba(60,40,20,.08), 0 3px 10px rgba(60,40,20,.07);
  --shadow-md: 0 10px 26px rgba(60,40,20,.13), 0 22px 46px rgba(60,40,20,.10);
}
html[data-vibe="bold"] .app {
  background:
    radial-gradient(720px 460px at 86% 2%, rgba(241,52,60,.22), transparent 66%),
    radial-gradient(520px 380px at 6% 104%, rgba(241,52,60,.10), transparent 72%),
    linear-gradient(150deg, #f7eae3 0%, #f6e6de 45%, #f8e5e0 100%);
}
html[data-vibe="bold"] .app::before { opacity: 1; width: 640px; height: 540px; filter: blur(30px); }
html[data-vibe="bold"] .app::after { opacity: 1; border-color: rgba(241,55,62,.30); }
html[data-vibe="bold"] .btn-red { box-shadow: 0 10px 28px rgba(240,28,36,.50); }
html[data-vibe="bold"] .x-go { box-shadow: 0 8px 22px rgba(240,28,36,.55); }
html[data-vibe="bold"] .post-bar { width: 4px; }
html[data-vibe="bold"] .t-item.active,
html[data-vibe="bold"] .r-item.active { box-shadow: 0 8px 20px rgba(20,16,12,.30); }

/* ---- Corners: sharp ---- */
html[data-corners="sharp"] .app { border-radius: 0; }
html[data-corners="sharp"] .card,
html[data-corners="sharp"] .course,
html[data-corners="sharp"] .feed-card,
html[data-corners="sharp"] .post,
html[data-corners="sharp"] .xcard,
html[data-corners="sharp"] .promo,
html[data-corners="sharp"] .pthumb { border-radius: 4px; }
html[data-corners="sharp"] .ev,
html[data-corners="sharp"] .achv,
html[data-corners="sharp"] .r-item,
html[data-corners="sharp"] .rail-logo,
html[data-corners="sharp"] .c-logo,
html[data-corners="sharp"] .logo-tile,
html[data-corners="sharp"] .x-tile,
html[data-corners="sharp"] .bn-ic { border-radius: 3px; }
html[data-corners="round"] .bn-ic { border-radius: 15px; }

/* ---- Corners: round ---- */
html[data-corners="round"] .app { border-radius: 38px; }
html[data-corners="round"] .card,
html[data-corners="round"] .course,
html[data-corners="round"] .feed-card,
html[data-corners="round"] .post,
html[data-corners="round"] .xcard,
html[data-corners="round"] .promo,
html[data-corners="round"] .pthumb { border-radius: 26px; }
html[data-corners="round"] .ev,
html[data-corners="round"] .achv,
html[data-corners="round"] .r-item,
html[data-corners="round"] .rail-logo,
html[data-corners="round"] .c-logo,
html[data-corners="round"] .logo-tile,
html[data-corners="round"] .x-tile,
html[data-corners="round"] .bn-ic,
html[data-corners="round"] .exp { border-radius: 15px; }

/* ---- Density: cozy ---- */
html[data-density="cozy"] .card { padding: 16px; }
html[data-density="cozy"] .board { gap: 14px; }
html[data-density="cozy"] .course-grid,
html[data-density="cozy"] .explore-grid { gap: 14px; }
html[data-density="cozy"] .feed { gap: 14px; }
html[data-density="cozy"] .section { margin-top: 22px; }
html[data-density="cozy"] .course { padding: 16px; }
html[data-density="cozy"] .feed-card { padding: 20px; }
html[data-density="cozy"] .strip { padding: 16px 6px 20px; }
html[data-density="cozy"] .hello { margin-top: 12px; }

/* ---- Density: airy ---- */
html[data-density="airy"] .card { padding: 28px; }
html[data-density="airy"] .board { gap: 30px; }
html[data-density="airy"] .course-grid,
html[data-density="airy"] .explore-grid { gap: 28px; }
html[data-density="airy"] .feed { gap: 26px; }
html[data-density="airy"] .section { margin-top: 46px; }
html[data-density="airy"] .course { padding: 26px; }
html[data-density="airy"] .feed-card { padding: 32px; }
html[data-density="airy"] .strip { padding: 30px 6px 36px; }
html[data-density="airy"] .hello { margin-top: 26px; font-size: 20px; }

/* ============================================================
   User details + support (right column)
   ============================================================ */
.userbox { min-width: 0; }
.idcard2 {
  background:linear-gradient(165deg, #fcdcd726 0%, #f4b6b047 100%);
  border-radius: 12px;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.idcard2::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.32), transparent 70%); pointer-events: none; }
.id-ava { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto; background: #fce6e3; border: 4px solid rgba(255,255,255,.75); display: grid; place-items: center; position: relative; }
.id-ava svg { width: 36px; height: 36px; color: #bd8d88; }
.id-name { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); margin-top: 13px; position: relative; }
.id-sid { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: #7a5550; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.6); padding: 5px 12px; border-radius: 999px; margin-top: 11px; position: relative; }
.id-sid .ok { width: 7px; height: 7px; border-radius: 50%; background: #41b06a; }
.id-stats { display: flex; gap: 9px; margin-top: 18px; position: relative; }
.id-stats .ist { flex: 1; background: rgba(255,255,255,.5); border-radius: 12px; padding: 12px 6px; }
.id-stats .ist .v { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); line-height: 1; }
.id-stats .ist .k { font-size: 10.5px; color: #8a6560; font-weight: 500; margin-top: 4px; }
.id-feat { margin-top: 16px; border-radius: 12px; background: linear-gradient(160deg, #f01c24, #ed2a2f); padding: 16px; text-align: left; color: #fff; position: relative; overflow: hidden; }
.id-feat .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; opacity: .92; }
.id-feat .ttl { font-family: var(--display); font-size: 17px; font-weight: 700; margin-top: 4px; }
.id-feat .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.35); margin-top: 13px; overflow: hidden; }
.id-feat .bar i { display: block; height: 100%; width: 64%; background: #fff; border-radius: 999px; }
.id-feat .pc { font-size: 11.5px; font-weight: 600; margin-top: 9px; }
.id-feat::after { content: ""; position: absolute; right: -25px; bottom: -32px; width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.16); }

.support2 {
  background: linear-gradient(165deg, #fcdcd726 0%, #f4b6b047 100%);
  border-radius: 12px;
  padding: 22px 20px;
  flex: 1;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.support2::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); pointer-events: none; }
.sp-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--red-grad); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(240,28,36,.32); position: relative; }
.sp-ico svg { width: 24px; height: 24px; color: #fff; }
.support2 h3 { font-size: 18px; color: var(--text); margin-top: 16px; position: relative; }
.support2 p { font-size: 13px; color: #7a5550; line-height: 1.55; margin-top: 8px; position: relative; }
.support2 .btn { align-self: flex-start; margin-top: 18px; position: relative; }

/* corner-tweak coverage for the soft-red cards */
html[data-corners="sharp"] .idcard2,
html[data-corners="sharp"] .support2,
html[data-corners="sharp"] .id-feat,
html[data-corners="sharp"] .id-stats .ist,
html[data-corners="sharp"] .sp-ico { border-radius: 4px; }
html[data-corners="round"] .idcard2,
html[data-corners="round"] .support2 { border-radius: 26px; }
html[data-corners="round"] .id-feat,
html[data-corners="round"] .id-stats .ist,
html[data-corners="round"] .sp-ico { border-radius: 16px; }
html[data-corners="sharp"] .userbox { border-radius: 5px; }
html[data-corners="round"] .userbox { border-radius: 28px; }

/* ============================================================
   THEME TOGGLE BUTTON (top bar)
   ============================================================ */
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 16px rgba(150,70,50,.10);
  display: grid; place-items: center; color: var(--text);
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn:hover { background: rgba(255,255,255,.62); }
.theme-btn .ic-sun { display: none; }
.theme-btn .ic-moon { display: block; }
html[data-theme="dark"] .theme-btn .ic-sun { display: block; }
html[data-theme="dark"] .theme-btn .ic-moon { display: none; }

/* Smooth cross-fade when switching themes */
body, .app, .card, .course, .feed-card, .post, .bn, .userbox,
.idcard2, .support2, .composer, .r-item, .set-btn, .ic-btn, .theme-btn,
.c-tags span, .id-stats .ist {
  transition: background-color .35s ease, color .35s ease,
              border-color .35s ease, box-shadow .35s ease;
}

/* ============================================================
   DARK MODE
   ============================================================ */
html[data-theme="dark"] {
  --red: #ff3b41;
  --red-700: #ff6166;
  --red-soft: #3a1b1d;

  --ink: #322b22;
  --ink-2: #3d3527;

  --card: #1b1813;
  --cream: #241f18;

  --text: #f3ede1;
  --text-2: #b4a995;
  --muted: #7f7665;
  --line: #2b251d;
  --line-2: #39311f;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.30);
  --shadow-md: 0 8px 22px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.35);
}

html[data-theme="dark"] body { background: #0e0b09; }

html[data-theme="dark"] .app {
  background:
    radial-gradient(620px 360px at 86% 4%, rgba(241,72,78,.13), transparent 70%),
    radial-gradient(520px 360px at 8% 104%, rgba(241,72,78,.06), transparent 72%),
    linear-gradient(150deg, #1a1410 0%, #141009 45%, #181210 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
html[data-theme="dark"] .app::after { border-color: rgba(241,90,96,.18); }

/* Glassy top-bar controls */
html[data-theme="dark"] .set-btn,
html[data-theme="dark"] .ic-btn,
html[data-theme="dark"] .theme-btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
}
html[data-theme="dark"] .set-btn:hover,
html[data-theme="dark"] .ic-btn:hover,
html[data-theme="dark"] .theme-btn:hover { background: rgba(255,255,255,.11); }
html[data-theme="dark"] .ic-btn .dot { border-color: var(--card); }

/* Left rail hover */
html[data-theme="dark"] .r-item:hover { background: rgba(255,255,255,.08); color: var(--text); box-shadow: none; }

/* Stat strip */
html[data-theme="dark"] .bn { background-color: rgba(255,255,255,.03); }
html[data-theme="dark"] .d-hatch { background: repeating-linear-gradient(45deg, #4a4030, #4a4030 2px, transparent 2px, transparent 4px); }
html[data-theme="dark"] .s-hatch { background: repeating-linear-gradient(45deg, #4a4030, #4a4030 4px, #2e271c 4px, #2e271c 8px); }

/* Community feed surface */
html[data-theme="dark"] .feed-card { background-color: #1d1812; }

/* User box (right column) — pink glass becomes warm-dark glass */
html[data-theme="dark"] .idcard2,
html[data-theme="dark"] .support2 {
  background: linear-gradient(165deg, rgba(255,90,92,.10) 0%, rgba(240,40,46,.10) 100%);
}
html[data-theme="dark"] .id-ava { background: #3a201e; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .id-ava svg { color: #d98e88; }
html[data-theme="dark"] .id-sid { color: #d99a93; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }
html[data-theme="dark"] .id-stats .ist { background-color: rgba(255,255,255,.05); }
html[data-theme="dark"] .id-stats .ist .k { color: #b78f8a; }
html[data-theme="dark"] .support2 p { color: #c2a39e; }

/* Composer tool hover */
html[data-theme="dark"] .composer .tools button:hover { background: rgba(255,255,255,.08); }

/* Per-card soft glow, a touch stronger on dark (re-applied after bg overrides) */
html[data-theme="dark"] .card,
html[data-theme="dark"] .course,
html[data-theme="dark"] .feed-card,
html[data-theme="dark"] .post {
  background-image: radial-gradient(170px 150px at 100% 0%, rgba(241,84,90,.10), transparent 60%);
}
/* ============================================================
   DROPDOWN MENUS (notifications + user)
   These are the /login-alt preview's own copies of the real notification
   and user-menu dropdowns — styles-v3.css already defines complete,
   real versions of every selector below (with different, on-scale
   numbers). Unscoped, this file's copies silently won the cascade for
   the REAL topbar dropdowns too (e.g. .dd-head rendered at 8px 10px 10px
   instead of v3's 15px 16px 12px) since this file loads second.
   ============================================================ */
.frame .menu { position: relative; }
.frame .menu .dropdown {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: min(330px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 300;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.frame .menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.frame .menu .dropdown::before {
  content: ""; position: absolute; top: -6px; right: 16px;
  width: 12px; height: 12px; background: var(--card);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); border-radius: 2px;
}

/* Notifications panel */
.frame .dd-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; }
.frame .dd-head h4 { font-size: 15px; font-family: var(--display); }
.frame .dd-badge { font-size: 10.5px; font-weight: 700; font-family: var(--mono); background: var(--red-soft); color: var(--red); padding: 2px 8px; border-radius: 999px; }
.frame .dd-clear { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.frame .dd-clear:hover { color: var(--red); }
.frame .dd-list { display: flex; flex-direction: column; max-height: 322px; overflow-y: auto; }
.frame .noti { display: flex; gap: 11px; padding: 10px; border-radius: 11px; position: relative; transition: background .15s; }
.frame .noti:hover { background: var(--cream); }
.frame .noti.unread::after { content: ""; position: absolute; top: 13px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.frame .noti-ic { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px; display: grid; place-items: center; color: #fff; }
.frame .noti-ic svg { width: 17px; height: 17px; }
.frame .ni-red { background: var(--red-grad); }
.frame .ni-ink { background: linear-gradient(135deg,#3a332a,#16130d); }
.frame .ni-soft { background: #ff9b9d; }
.frame .noti-body { display: flex; flex-direction: column; min-width: 0; }
.frame .noti-t { font-size: 13px; font-weight: 600; color: var(--text); }
.frame .noti-s { font-size: 12px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.frame .noti-time { font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 4px; font-family: var(--mono); }
.frame .dd-foot { display: block; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--red); padding: 11px; margin-top: 4px; border-top: 1px solid var(--line); }
.frame .dd-foot:hover { background: var(--cream); border-radius: 0 0 11px 11px; }

/* User menu panel */
.frame .user-dd { width: min(258px, calc(100vw - 24px)); }
.frame .ud-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; }
.frame .ud-ava { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; background: var(--red-grad); color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.frame .ud-info { display: flex; flex-direction: column; min-width: 0; }
.frame .ud-name { font-size: 14px; font-weight: 700; color: var(--text); }
.frame .ud-mail { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.frame .ud-list { display: flex; flex-direction: column; }
.frame .ud-item { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text); transition: background .15s, color .15s; }
.frame .ud-item svg { width: 17px; height: 17px; color: var(--text-2); }
.frame .ud-item:hover { background: var(--cream); }
.frame .ud-item:hover svg { color: var(--red); }
.frame .ud-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.frame .ud-danger { color: var(--red); }
.frame .ud-danger svg { color: var(--red); }
.frame .ud-danger:hover { background: var(--red-soft); }

/* ============================================================
   ENTRANCE + GRAPH ANIMATIONS
   ============================================================ */
html.js-anim .hello,
html.js-anim .strip,
html.js-anim .courses-area,
html.js-anim .perf,
html.js-anim .comp,
html.js-anim .userbox,
html.js-anim .section,
html.js-anim .course,
html.js-anim .xcard,
html.js-anim .post { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }

html.js-anim .is-visible {
  opacity: 1 !important; transform: none !important;
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.course-grid .course:nth-child(1) {background-image: url(../image/security-img-1.jpg);}
.course-grid .course:nth-child(2) {background-image: url(../image/security-img-2.jpg);}
.course-grid .course:nth-child(3) {background-image: url(../image/security-img-3.jpg);}

/* Graph element transitions (revealed by JS once their card is visible) */
html.js-anim .c-prog .bar i,
html.js-anim .id-feat .bar i,
html.js-anim .track .seg { transition: width 1.1s cubic-bezier(.5,0,.1,1); }
html.js-anim .lines polyline { transition: stroke-dashoffset 1.5s ease; }

/* Donut sweep (animatable via @property where supported) */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
html.js-anim .donut { --p: 0%; background: conic-gradient(var(--red) 0% var(--p), var(--ink) var(--p) 100%); }
html.js-anim .donut.go { animation: donutSweep 1.2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes donutSweep { from { --p: 0%; } to { --p: 67%; } }

@media (prefers-reduced-motion: reduce) {
  html.js-anim .hello, html.js-anim .strip, html.js-anim .courses-area,
  html.js-anim .perf, html.js-anim .comp, html.js-anim .userbox,
  html.js-anim .section, html.js-anim .course, html.js-anim .xcard,
  html.js-anim .post { opacity: 1 !important; transform: none !important; }
}
/* ============================================================
   MOBILE NAV (hamburger drawer)
   ============================================================ */
.nav-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  display: none; place-items: center;
  background: rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 16px rgba(150,70,50,.10);
  color: var(--text); margin-right: 6px; flex: 0 0 auto;
}
.nav-toggle svg { width: 21px; height: 21px; }
.nav-toggle .ic-x { display: none; }
.app.nav-open .nav-toggle .ic-bars { display: none; }
.app.nav-open .nav-toggle .ic-x { display: block; }

.rail-drawer-head { display: none; }
.nav-backdrop { display: none; }

html[data-theme="dark"] .nav-toggle {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
}

/* The unconditional display:none above (and on .nav-backdrop) is scoped
   to this file's unused ".rail" drawer variant, which only re-shows them
   below 760px. This app's real drawer (.sidebar, from styles-v3.css)
   goes off-canvas below 860px, so 761-860px was a dead zone: the sidebar
   was hidden off-screen with no toggle visible to bring it back. */
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-backdrop { display: block; }
}

@media (max-width:1400px) {
 html[data-density="airy"] .board {
    gap: 15px;
}
html[data-density="airy"] .course-grid, html[data-density="airy"] .explore-grid {
    gap: 15px;
}
html[data-density="airy"] .feed {
    gap: 15px;
}
.c-title{font-size: 20px;}
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .nav-toggle { display: grid; }
  .rail-logo { margin-right: auto; }
  .set-btn { display: none; }          /* settings still available in the user menu */
  .actions { gap: 6px; }
  .menu .dropdown{    width: min(330px, calc(85vw - 24px))}
  /* Slide-in drawer */
  .rail {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 252px; max-width: 84vw;
    flex-direction: column; gap: 4px;
    padding: 16px 12px 22px;
    background: var(--card);
    box-shadow: none;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 1000; overflow-y: auto; align-items: stretch;
  }
  .app.nav-open .rail { transform: translateX(0); }

  .rail-drawer-head { display: flex; align-items: center; padding: 4px 10px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .rail-drawer-head img { height: 24px; width: auto; }

  .rail-nav { flex-direction: column; gap: 3px; width: 100%; }
  .r-item { width: 100%; height: 48px; justify-content: flex-start; gap: 14px; padding: 0 14px; border-radius: 12px;display: flex; }
  .r-item svg { width: 20px; height: 20px; flex: 0 0 20px; }
  .r-item .r-label {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; background: none; color: inherit;
    box-shadow: none; padding: 0; white-space: nowrap;
    font-size: 14px; font-weight: 600; z-index: auto;
  }
  .r-item:hover .r-label { transform: none; }

  .nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(15,10,8,.55);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s; z-index: 990;
  }
  .app.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}
/* ============================================================
   RESPONSIVE GRID OVERRIDES
   These MUST come last: the base .course-grid / .explore-grid /
   .feed / .promo rules are declared later in the file than the
   main @media block, so without this they'd win at mobile widths.
   ============================================================ */
@media (max-width: 1180px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .course-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .feed { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; text-align: left; }
  .promo .info { text-align: left; justify-content: flex-start; }
}
/* Stat cards: stack on mobile so they never force a min-width overflow.
   (Kept last to override the base .bignums and the airy-density .hello.) */
@media (max-width: 760px) {
  .bignums { grid-template-columns: 1fr; gap: 12px; }
  .bn { padding: 16px 18px; }
  .bn:not(:first-child)::before { display: none; }
  html[data-density="airy"] .hello,
  .hello { font-size: 27px; margin-top: 34px; margin-bottom: 15px;}
}
/* ============================================================
   MOBILE OVERFLOW FIX
   'airy' density's large padding inflates each grid item's
   min-content size; with default minmax(auto,1fr) tracks this
   forces the column wider than the viewport (clipped by .app).
   Fix: minmax(0,1fr) so columns shrink, + tame airy on phones.
   ============================================================ */
@media (max-width: 760px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .course-grid,
  .explore-grid,
  .feed { grid-template-columns: minmax(0, 1fr); }
  .main, .courses-area, .perf, .comp, .userbox,
  .section, .feed-card, .course { min-width: 0; }

  /* Section headers wrap instead of pushing See All / links off-screen */
  .sec-head { flex-wrap: wrap; }

  /* Tame 'airy' density on phones (its desktop spacing is too large) */
  html[data-density="airy"] .card,
  html[data-density="airy"] .feed-card { padding: 18px; }
  html[data-density="airy"] .course { padding: 18px; }
  html[data-density="airy"] .board { gap: 16px; }
  html[data-density="airy"] .course-grid,
  html[data-density="airy"] .explore-grid,
  html[data-density="airy"] .feed { gap: 16px; }
  html[data-density="airy"] .section { margin-top: 26px; }
  html[data-density="airy"] .strip { padding: 18px 4px 22px; }
  html[data-density="airy"] .hello { font-size: 30px; margin-top: 14px; }
}
@media (max-width: 760px) {
  /* Composer: let the input shrink so the Post button stays in view */
  .composer input { min-width: 0; }
  /* Card headers (Course Performance / Progress Composition): wrap controls */
  .c-head { flex-wrap: wrap; }
}
/* Dark mode: remove the course photo backgrounds (keep the soft red glow) */
html[data-theme="dark"] .course-grid .course:nth-child(1),
html[data-theme="dark"] .course-grid .course:nth-child(2),
html[data-theme="dark"] .course-grid .course:nth-child(3) {
  background-image: radial-gradient(170px 150px at 100% 0%, rgba(241,84,90,.10), transparent 60%);
}
/* ============================================================
   LEFT RAIL — sticky on scroll + expand/collapse (desktop)
   ============================================================ */
@media (min-width: 761px) {
  /* overflow:clip clips the decorative glows like hidden did, but does NOT
     create a scroll container, so position:sticky on the rail works. */
  .app { overflow: clip; }

  .rail {
    position: sticky;
    top: 28px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow: visible;
    /* overflow-x: hidden; */
    scrollbar-width: none;
    transition: flex-basis .25s ease;
    z-index: 8;
  }
  .rail::-webkit-scrollbar { display: none; }

  /* Collapse / expand toggle button */
  .rail-toggle {
    width: 44px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    color: var(--text-2); margin-bottom: 4px; flex: 0 0 auto;
    transition: background .15s, color .15s;
  }
  .rail-toggle:hover { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
  .rail-toggle svg { width: 20px; height: 20px; }
  .rail-toggle .ic-collapse { display: none; }

  /* ---- Expanded state (icon + text, like the mobile drawer) ---- */
  html.rail-expanded .rail { flex-basis: 218px; align-items: stretch; }
  html.rail-expanded .rail-nav { width: 100%; }
  html.rail-expanded .r-item {
    width: 100%; height: 46px; justify-content: flex-start;
    gap: 13px; padding: 0 14px;display: flex;
  }
  html.rail-expanded .r-item svg { flex: 0 0 21px; }
  html.rail-expanded .r-item .r-label {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; background: none; color: inherit;
    box-shadow: none; padding: 0; font-size: 14px; font-weight: 600;
    white-space: nowrap; z-index: auto;
  }
  html.rail-expanded .r-item:hover .r-label { transform: none; }
  html.rail-expanded .rail-toggle {
    width: 100%; place-items: center start; padding: 0 12px;
  }
  html.rail-expanded .rail-toggle .ic-expand { display: none; }
  html.rail-expanded .rail-toggle .ic-collapse { display: block; }

}

/* Hide the rail toggle on mobile (the hamburger handles nav there) */
@media (max-width: 760px) {
  .rail-toggle { display: none; }
    .idcard2{overflow: visible;}
  .support2{overflow: visible;}
}

/* Dark-mode hover for the rail toggle */
html[data-theme="dark"] .rail-toggle:hover { background: rgba(255,255,255,.08); color: var(--text); box-shadow: none; }
/* ============================================================
   SITE FOOTER (white theme) + rail logout button
   ============================================================ */
.site-footer { background: #ffffff; border-top: 1px solid var(--line-2); border-radius: 14px; margin-top: 36px; box-shadow: var(--shadow-sm); }
.site-footer .sf-inner { padding: 32px 34px; display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.sf-brand img { height: 30px; width: auto; }
.sf-contact { display: flex; flex-direction: column; gap: 11px; }
.sf-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.sf-contact a:hover { color: var(--red); }
.sf-contact a svg { width: 16px; height: 16px; color: var(--muted); }
.sf-download { margin-left: auto; display: flex; flex-direction: column; gap: 13px; align-items: flex-end; }
.sf-dl-label { font-size: 13px; color: var(--text-2); font-weight: 600; line-height: 1.35; text-align: right; }
.sf-stores { display: flex; gap: 12px; }
.sf-store { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; border-radius: 11px; padding: 8px 16px; transition: transform .12s, box-shadow .15s; }
.sf-store:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sf-store > svg { width: 22px; height: 22px; }
.sf-store .st { display: flex; flex-direction: column; line-height: 1.12; }
.sf-store .st .s { font-size: 9px; opacity: .82; }
.sf-store .st .b { font-size: 14px; font-weight: 700; font-family: var(--display); }
.sf-socials { display: flex; gap: 9px; }
.sf-socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--text-2); transition: background .15s, color .15s; }
.sf-socials a:hover { background: var(--red); color: #fff; }
.sf-socials svg { width: 16px; height: 16px; }

html[data-theme="dark"] .site-footer { background: #1b1813; border-top-color: var(--line); }
html[data-theme="dark"] .sf-store { background: #2c251c; }
html[data-theme="dark"] .sf-socials a { background: rgba(255,255,255,.05); }

@media (max-width: 760px) {
  .site-footer .sf-inner { gap: 26px; padding: 24px 20px; }
  .sf-download { margin-left: 0; align-items: flex-start; }
  .sf-dl-label { text-align: left; }
}

/* ---- Rail logout button (light-red floating) ---- */
.r-logout {
  margin-top: auto; position: relative;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--red-soft); color: var(--red);
  box-shadow: 0 8px 18px rgba(240,28,36,.18);
  transition: background .15s, box-shadow .15s, transform .12s;
}
.r-logout:hover { background: #ffd2d3; box-shadow: 0 12px 24px rgba(240,28,36,.32); transform: translateY(-1px); }
.r-logout:active { transform: translateY(0); }
.r-logout svg { width: 20px; height: 20px; }
.r-logout .r-label {
  position: absolute; left: 52px; top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  box-shadow: var(--shadow-md); z-index: 80;
}
.r-logout:hover .r-label { opacity: 1; transform: translateY(-50%) translateX(0); }
html[data-theme="dark"] .r-logout { background: #3a1c1e; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
html[data-theme="dark"] .r-logout:hover { background: #4a2224; }

/* give the rail full height so the logout pins to the bottom */
@media (min-width: 761px) { .rail { height: calc(100vh - 40px); } }

/* expanded rail: logout shows inline label */
@media (min-width: 761px) {
  html.rail-expanded .r-logout { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 13px; padding: 0 14px; }
  html.rail-expanded .r-logout .r-label { position: static; opacity: 1; transform: none; background: none; color: inherit; box-shadow: none; padding: 0; font-size: 14px; pointer-events: auto; }
}
/* mobile drawer: logout inline label */
@media (max-width: 760px) {
  .r-logout { width: 100%; height: 48px; display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding: 0 14px; }
  .r-logout .r-label { position: static; opacity: 1; transform: none; background: none; color: inherit; box-shadow: none; padding: 0; font-size: 14px; font-weight: 600; pointer-events: auto; }
}
/* ============================================================
   Sticky top bar on scroll  +  icon-only Setting button
   ============================================================ */
/* The real AppShell's sticky-topbar position/z-index/padding/margin/backdrop-
   filter/border are already fully defined in styles-v3.css (which also
   handles the border-bottom "stuck" toggle) — this file used to redeclare
   the same bare `.topbar` selector with different, off-scale numbers
   (padding:12px 6px vs v3's 16px 25px 18px) that silently won the cascade
   since this file loads second. Only the dark-theme override is unique to
   this file, so only that survives here. */
html[data-theme="dark"] .topbar { background: rgba(24,19,14,.86); border-bottom-color: var(--line); }

/* This file loads after styles-v3.css and its unconditional z-index:95
   above would otherwise win the cascade over v3's mobile override,
   dropping the topbar (and its hamburger/close toggle) back below the
   sidebar drawer (z-index:1000). Re-assert the elevation here too. */
@media (max-width: 860px) {
  .topbar {
    z-index: 1002;
  }
}

/* Setting button: icon only (drop the "Setting" text) to match the icon row */
.set-btn {
  width: 38px; height: 38px; padding: 0; gap: 0;
  font-size: 0; border-radius: 50%; justify-content: center;
}
.set-btn svg { width: 18px; height: 18px; }
/* Explore badge: dark glassy pill in dark mode (was a white pill with
   invisible light text). Matches the rating chip. */
html[data-theme="dark"] .x-badge2 {
  background: rgba(20,15,12,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.12);
}

/* ============================================================
   PAGE: Exam scheduling flow (confirm → schedule → slot → time → ready)
   Ported from RedTeam mockups (exam-confirm/schedule/slot/time/ready.html).
   .btn-ghost override intentionally omitted — project keeps its own.
   ============================================================ */
/* ====================== Exam start flow: confirm → voucher → schedule ====================== */
.exf { max-width: 760px; margin: 0 auto; }

/* step indicator */
.exf-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 4px auto 26px; max-width: 560px; }
.exf-step { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.exf-step .n { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--text-2); font-size: 12.5px; transition: background .15s ease, color .15s ease; }
.exf-step .n svg { width: 14px; height: 14px; }
.exf-step.active { color: var(--text); }
.exf-step.active .n { background: var(--red-grad); color: #fff; }
.exf-step.done .n { background: #16a34a; color: #fff; }
.exf-dash { flex: 1; height: 2px; min-width: 22px; background: var(--line-2); margin: 0 12px; border-radius: 2px; }
.exf-dash.done { background: #16a34a; }

/* card */
.exf-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-md); padding: 24px 32px; }
.exf-card h2 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.exf-lead { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 22px; }

/* summary / detail rows */
.exf-summary { border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--red-soft-2); }
.exf-srow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.exf-srow:last-child { border-bottom: 0; }
.exf-srow .k { color: var(--text-2); font-weight: 600; }
.exf-srow .v { color: var(--text); font-weight: 700; text-align: right; font-family: var(--display); }

/* note */
.exf-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; }
.exf-note svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--red); margin-top: 1px; }
.exf-note p { font-size: 12.5px; line-height: 1.65; color: var(--text-2); }

/* field */
.exf-field { margin-top: 20px; }
.exf-field h3 { margin-bottom: 8px; }
.exf-field label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.exf-input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 9px; background: var(--card); color: var(--text); font-size: 15px; font-family: var(--mono); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; transition: border-color .15s ease, box-shadow .15s ease; }
.exf-input::placeholder { color: var(--muted); letter-spacing: 1px; font-weight: 500; }
.exf-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.exf-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.exf-msg { font-size: 12.5px; margin-top: 10px; font-weight: 600; display: none; }
.exf-msg.show { display: block; }
.exf-msg.err { color: var(--red); }
.exf-msg.ok { color: #16a34a; }

/* actions */
.exf-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.exf-actions .btn[disabled], .exf-actions .btn.is-off { opacity: .5; pointer-events: none; }

@media (max-width: 560px) {
  .exf-steps { gap: 0; }
  .exf-step span.lbl { display: none; }
  .exf-dash { margin: 0 8px; }
  .exf-actions { flex-direction: column-reverse; }
  .exf-actions .btn { width: 100%; }
}

/* ---- Verify slot: instructions ---- */
.exf-steps-note { margin: 2px 0 22px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--red-soft-2); }
.exf-steps-note p { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.exf-steps-note p + p { margin-top: 8px; }
.exf-steps-note b { color: var(--text); font-family: var(--display); }

/* ---- Verify slot: layout ---- */
.slot-grid { display: grid; grid-template-columns: minmax(0, 370px) 1fr; gap: 24px; align-items: start; }

/* calendar card */
.cal { background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-md); padding: 22px 22px 20px; }
.cal-year { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.cal-sel { font-family: var(--display); font-size: 23px; font-weight: 700; color: var(--text); margin-top: 3px; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 14px; }
.cal-nav button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .14s ease, color .14s ease; }
.cal-nav button svg { width: 16px; height: 16px; }
.cal-nav button:hover { border-color: var(--red-soft); color: var(--red); }
.cal-nav .cal-month { font-family: var(--display); font-size: 14.5px; font-weight: 700; color: var(--text); min-width: 128px; text-align: center; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0 6px; }
.cal-day { aspect-ratio: 1 / 1; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; display: grid; place-items: center; cursor: default; background: var(--line-2); color: var(--muted); font-family: inherit; transition: filter .12s ease, box-shadow .12s ease; }
.cal-day.off { background: transparent; color: var(--muted); opacity: .45; }
.cal-day.avail { background: #2ea44f; color: #fff; cursor: pointer; }
.cal-day.avail:hover { filter: brightness(1.09); }
.cal-day.today { background: #2f9e93; color: #fff; }
.cal-day.sched { background: #c0555b; color: #fff; }
.cal-day.sel { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--red); }
.cal-foot { display: flex; justify-content: center; margin-top: 18px; }
.cal-foot .btn[disabled] { opacity: .5; pointer-events: none; }

/* right column */
.slot-side { display: flex; flex-direction: column; gap: 22px; }
.slot-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; padding: 4px 2px; }
.slot-legend span { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.slot-legend i { width: 34px; height: 26px; border-radius: 6px; flex: 0 0 auto; }
.slot-legend i.avail { background: #2ea44f; }
.slot-legend i.today { background: #2f9e93; }
.slot-legend i.sched { background: #c0555b; }
.slot-legend i.off { background: var(--line-2); }

@media (max-width: 820px) {
  .slot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .slot-legend { grid-template-columns: 1fr; }
}

/* ---- Available Time Slots ---- */
.slot-head { text-align: center; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--red); margin-bottom: 20px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.detail-chips .chip { display: inline-flex; align-items: center; gap: 8px; background: var(--red-soft-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 15px; font-size: 13px; }
.detail-chips .chip .k { font-weight: 700; color: var(--text); }
.detail-chips .chip .v { color: var(--text-2); font-family: var(--mono); font-weight: 600; }
.slot-avail-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; }
.slot-avail { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.slot-avail .tag { display: inline-block; background: var(--red-grad); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; margin-right: 8px; }
.slot-avail b { color: var(--text); font-family: var(--mono); }
.slot-times { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.slot-time { padding: 11px 18px; border: 1.5px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--text); font-family: var(--mono); font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .14s ease, background .14s ease, color .14s ease; }
.slot-time:hover { border-color: var(--red-soft); }
.slot-time.sel { border-color: var(--red); background: var(--red-soft-2); color: var(--red); }
.slot-empty { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.btn-outline-red { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red-soft-2); }

/* ---- Get ready + countdown ---- */
.ready-banner { text-align: center; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-md); padding: 26px 30px; max-width: 780px; margin: 0 auto; }
.ready-banner h2 { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.5; }
.ready-banner p { margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cd-grid { display: flex; justify-content: center; gap: 14px; margin: 28px auto; flex-wrap: wrap; }
.cd-box { min-width: 96px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-md); padding: 20px 12px; text-align: center; }
.cd-num { font-family: var(--display); font-size: 42px; font-weight: 700; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.cd-sep { align-self: center; font-size: 30px; color: var(--muted); font-weight: 700; }
.cd-box.live .cd-num { color: var(--red); }

/* ---- My Sessions table ---- */
.sess-wrap { margin-top: 30px; }
.sess-wrap h3 { font-family: var(--display); font-size: 15px; color: var(--text-2); font-weight: 700; margin-bottom: 14px; }
.sess-scroll { overflow-x: auto; }
.sess-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.sess-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--text); padding: 15px 18px; background: var(--red-soft-2); border-bottom: 1px solid var(--line-2); }
.sess-table td { font-size: 13.5px; color: var(--text-2); font-weight: 600; padding: 16px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.sess-table tr:last-child td { border-bottom: 0; }
.sess-table td.exam { color: var(--text); font-weight: 700; font-family: var(--display); }
.sess-actions { display: flex; gap: 10px; }

/* ---- Not verified / join meeting ---- */
.verify-card { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-md); padding: 24px 32px; }
.verify-card h2 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.verify-list { display: flex; flex-direction: column; gap: 12px; }
/* Hanging-indent steps. The paragraph must stay in normal flow — as a flex/grid
   container every inline <b>/<a> and each run of text between them becomes its own
   item, which broke the sentence into ragged side-by-side columns. */
.verify-list p { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.verify-list p .num { position: absolute; left: 0; top: 0; font-weight: 700; color: var(--red); }
.verify-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.verify-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.verify-badge.no { background: var(--red-soft-2); color: var(--red); border: 1px solid var(--red-soft); }
.verify-badge.yes { background: rgba(46,164,79,.12); color: #2ea44f; border: 1px solid rgba(46,164,79,.3); }

@media (max-width: 560px) {
  .cd-box { min-width: 68px; padding: 16px 8px; }
  .cd-num { font-size: 30px; }
  .cd-sep { font-size: 22px; }
}

/* ============================================================
   Engagement booking pass — redesigned slot picker (v2)
   ============================================================ */
.sched2 { max-width: 700px; margin: 0 auto; }

/* boarding-pass exam strip */
.bpass { display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--red); border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden; }
.bpass-seg { padding: 13px 20px; display: flex; flex-direction: column; gap: 3px; justify-content: center; min-width: 0; }
.bpass-seg + .bpass-seg { border-left: 1.5px dashed var(--line-2); }
.bpass-seg.grow { flex: 1; }
.bpass-k { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.bpass-v { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpass-seg.code .bpass-v { font-family: var(--mono); color: var(--red); letter-spacing: 1px; }

/* calendar */
.caln { margin-top: 20px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-md); padding: 24px; }
.caln-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.caln-title { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.1; }
.caln-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.caln-nav { display: flex; gap: 8px; }
.caln-nav button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .14s ease, color .14s ease, opacity .14s ease; }
.caln-nav button svg { width: 17px; height: 17px; }
.caln-nav button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.caln-nav button:disabled { opacity: .3; cursor: not-allowed; }
.caln-dow { display: grid; grid-template-columns: repeat(7, 1fr); }
.caln-dow span { text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--muted); padding-bottom: 10px; }
.caln-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
/* height:50px used to fight aspect-ratio:1/1 (an explicit height always wins,
   so aspect-ratio never actually applied) — at narrow widths, where the cell's
   grid-column width shrinks below 50px, every circular day marker stretched
   into a vertical oval. min-height keeps a comfortable tap target; width now
   comes from the 7-column grid track, and aspect-ratio keeps height matching it. */
.caln-day { position: relative; aspect-ratio: 1 / 1; min-height: 32px; border: 0; background: transparent; border-radius: 50%; font-size: 14px; font-weight: 600; color: var(--text); display: grid; place-items: center; cursor: default; font-family: inherit; transition: background .12s ease; }
.caln-day.off { color: var(--muted); opacity: .25; }
.caln-day.disabled { color: var(--muted); opacity: .4; }
.caln-day.avail { cursor: pointer; }
.caln-day.avail::after { content: ""; position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #2ea44f; }
.caln-day.avail:hover { background: var(--red-soft-2); }
.caln-day.today { box-shadow: inset 0 0 0 2px var(--red); }
.caln-day.sel { background: var(--red-grad); color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(240, 28, 36, .35); }
.caln-day.sel::after { background: #fff; }

/* inline key */
.caln-key { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.caln-key span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.caln-key i { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; }
.caln-key i.k-avail { background: #2ea44f; }
.caln-key i.k-today { box-shadow: inset 0 0 0 2px var(--red); }
.caln-key i.k-sel { background: var(--red); }
.caln-key i.k-off { background: var(--line-2); }

/* booking bar */
.bookbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 15px 20px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--red-soft-2); }
.bookbar.empty { justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
.bookbar-k { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.bookbar-date { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); margin-top: 3px; }
.bookbar .btn { flex: 0 0 auto; }

@media (max-width: 560px) {
  .bpass { flex-wrap: wrap; }
  .bpass-seg + .bpass-seg { border-left: 0; }
  .bookbar { flex-direction: column; align-items: stretch; text-align: center; }
  .bookbar .btn { width: 100%; }
}

/* ---- Departure board: time slots ---- */
/* NOTE: this panel is `.slot-board`, not `.board` — `.board` is the Dashboard
   bento grid and would force the head + slot grid into separate columns. */
.exf .slot-board { display: block; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-md); padding: 24px; }
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.board-day { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.1; }
.board-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---- Session ticket stub (unused legacy) ---- */
.stub { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--red); border-radius: 16px; box-shadow: var(--shadow-md); padding: 22px 26px; max-width: 840px; margin: 0 auto; }
.stub-exam { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); margin-top: 4px; }
.stub-win { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-top: 10px; }
.stub-win svg { width: 16px; height: 16px; color: var(--red); flex: 0 0 auto; }
.stub-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sess-title { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 32px 0 14px; }

@media (max-width: 560px) {
  .stub { flex-direction: column; align-items: stretch; }
  .stub-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   Left/right booking shell (v3) — panel + ticket rail
   ============================================================ */
.book2 { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 22px; align-items: stretch; }

/* the ticket rail on the right */
.book-rail { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.rail-id { border-left: 4px solid var(--red); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.rail-row { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rail-k { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.rail-v { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-row.code .rail-v { font-family: var(--mono); color: var(--red); letter-spacing: 1px; font-size: 17px; }
/* perforated divider between rail sections */
.rail-sec { padding: 18px 20px; border-top: 1.5px dashed var(--line-2); position: relative; }
.rail-sec::before, .rail-sec::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.rail-sec::before { left: -9px; }
.rail-sec::after { right: -9px; }
.rail-key { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.rail-key span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.rail-key i { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.rail-key i.k-avail { background: #2ea44f; }
.rail-key i.k-today { box-shadow: inset 0 0 0 2px var(--red); }
.rail-key i.k-sel { background: var(--red); }
.rail-key i.k-off { background: var(--line-2); }
.rail-selval { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--text); margin-top: 6px; line-height: 1.25; }
.rail-selval.empty { font-family: var(--body, inherit); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rail-cta { padding: 4px 20px 20px; margin-top: auto; }
.rail-cta .btn { width: 100%; justify-content: center; }
.rail-cta .btn[disabled] { opacity: .5; pointer-events: none; }
.rail-change { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--red); }

/* calendar tweaks inside left column */
.book2 .caln { margin-top: 0; }
.book2 .caln-key { display: none; }             /* legend moves to the rail */

/* redesigned time list (departure rows) */
/* time tiles */
.exf .slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin-top: 18px; }
.exf .tcard { position: relative; min-width: 0; padding: 15px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg); cursor: pointer; text-align: left; transition: border-color .14s ease, background .14s ease; }
.exf .tcard:hover { border-color: var(--red-soft); }
.exf .tcard.sel { border-color: var(--red); background: var(--red-soft-2); box-shadow: 0 0 0 3px var(--red-soft); }
.exf .tcard-time { display: block; padding-right: 24px; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--text); }
.exf .tcard.sel .tcard-time { color: var(--red); }
.exf .tcard-seats { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #2ea44f; }
.exf .tcard-seats .dot { width: 7px; height: 7px; border-radius: 50%; background: #2ea44f; flex: 0 0 auto; }
.exf .tcard-seats.low { color: #cf8a00; }
.exf .tcard-seats.low .dot { background: #cf8a00; }
.exf .tcard-check { position: absolute; top: 13px; right: 13px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; background: var(--card); }
.exf .tcard.sel .tcard-check { background: var(--red); border-color: var(--red); }
.exf .tcard-check svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.exf .tcard.sel .tcard-check svg { opacity: 1; }
.exf .tcard.full { opacity: .55; pointer-events: none; }
.exf .tcard.full .tcard-seats { color: var(--muted); }
.exf .tcard.full .tcard-seats .dot { background: var(--muted); }

@media (max-width: 880px) {
  .book2 { grid-template-columns: 1fr; }
  .book-rail { position: static; }
  .rail-sec::before, .rail-sec::after { display: none; }
}

/* ============================================================
   Session boarding pass (get-ready) — one unified ticket
   ============================================================ */
.pass-lead { text-align: center; max-width: 620px; margin: 0 auto 22px; }
.pass-lead h2 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.45; }
.pass-lead p { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.exf .pass { display: flex; max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-2);  border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; }
.pass-main { flex: 1; min-width: 0; padding: 28px 30px; }
.pass-eng { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pass-name { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--text); margin-top: 6px; line-height: 1.1; }
.pass-win { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text-2); margin-top: 16px; }
.pass-win svg { width: 16px; height: 16px; color: var(--red); flex: 0 0 auto; }
.pass-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pass-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--red-soft-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text-2); }
.pass-chip b { color: var(--red); }

.pass-side { flex: 0 0 268px; padding: 26px 28px; border-left: 2px dashed var(--line-2); position: relative; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.pass-side::before, .pass-side::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.pass-side::before { top: -11px; }
.pass-side::after { bottom: -11px; }
.pass-side-lbl { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: center; }
.tmini { display: flex; justify-content: center; gap: 12px; }
.tmini div { text-align: center; }
.tmini .n { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.tmini .l { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.pass-side.live .tmini .n { color: var(--red); }
.pass-actions { display: flex; flex-direction: column; gap: 10px; }
.pass-actions .btn { width: 100%; justify-content: center; }

@media (max-width: 720px) {
  .exf .pass { flex-direction: column; }
  .pass-side { flex-basis: auto; border-left: 0; border-top: 2px dashed var(--line-2); }
  .pass-side::before { left: -11px; top: -11px; }
  .pass-side::after { left: auto; right: -11px; top: -11px; bottom: auto; }
}

/* Locked buttons in the identity-check card (Join / Start Test) read as disabled,
   and ease back to full strength the moment the window opens / verification lands. */
.verify-actions .btn { transition: opacity .28s ease, background-color .28s ease, border-color .28s ease, color .28s ease; }
.verify-actions .btn[disabled], .verify-actions .btn.is-off { opacity: .5; pointer-events: none; cursor: not-allowed; }

/* ==========================================================================
   Course exams (admin › Final Examination, taken in-app)
   Cards reuse .exm-* from styles-v3.css; everything below is the parts the
   proctored exam doesn't have — autosave chip, resume banner, answer review.
   ========================================================================== */

.exm-cehead { margin-top: 34px; }

/* -- taking: autosave status + resume banner ------------------------------ */

.cex-save {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; line-height: 1.35; color: var(--muted);
  background: var(--card);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.cex-save svg { width: 15px; height: 15px; flex: none; }
.cex-save-saved { color: #16a34a; border-color: rgba(22, 163, 74, .35); }
.cex-save-failed { color: #f01c24; border-color: rgba(240, 28, 36, .35); }
.cex-save-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none;
  animation: cexPulse 1s ease-in-out infinite;
}
@keyframes cexPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.cex-resumed {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 16px; padding: 12px 14px;
  border: 1px solid rgba(240, 28, 36, .28); border-radius: 12px;
  background: rgba(240, 28, 36, .06);
  font-size: 13px; line-height: 1.5; color: var(--text);
}
.cex-resumed svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: #f01c24; }

/* -- instructions --------------------------------------------------------- */

.cex-facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 14px 0 18px; padding: 0;
}
.cex-facts li {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 12.5px; color: var(--muted); background: var(--card);
}
.cex-facts li b { color: var(--text); }

.cex-locked-note {
  display: flex; align-items: center; gap: 9px;
  margin: 16px 0 0; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft, rgba(127, 127, 127, .06));
  font-size: 13px; color: var(--muted);
}
.cex-locked-note svg { width: 17px; height: 17px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .cex-save { transition: none; }
  .cex-save-dot { animation: none; }
}

/* Retake status under a failed course-exam result. */
.cex-retest-note {
  margin: 14px auto 0; max-width: 520px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft, rgba(127, 127, 127, .06));
  font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center;
}
.cex-retest-note b { color: var(--text); }

/* ============================================================================
   Pre-exam agreements gate — NDA + EC-Council Certification Agreement.
   Shown after the examiner verifies the candidate and before the portal hand-off
   (components/ExamDocsModal.jsx). Reuses the PdfReader stage + .reader-pg chrome.
   ========================================================================== */
.exdoc-overlay {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); animation: exqFade .18s ease;
}
.exdoc {
  position: relative; width: 100%; max-width: 860px; max-height: 92vh;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: 16px; text-align: left;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
  animation: exqPop .2s cubic-bezier(.22, .61, .36, 1);
}
html[data-theme="dark"] .exdoc { background: #1b1813; }

.exdoc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.exdoc-head h3 { font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--text); margin: 0; }
.exdoc-head p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.exdoc-head .rec-modal-x:disabled { opacity: .5; cursor: default; }

/* Document switcher */
.exdoc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.exdoc-tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 13px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: transparent; border: 1px solid var(--line-2);
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.exdoc-tab:hover { color: var(--text); border-color: var(--red); }
.exdoc-tab.is-active { color: var(--text); border-color: var(--red); background: rgba(240, 28, 36, .07); }
.exdoc-tab-no {
  width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: var(--text-2); border: 1px solid var(--line-2);
}
.exdoc-tab-no svg { width: 12px; height: 12px; }
.exdoc-tab.is-done .exdoc-tab-no { color: #fff; background: #2ea44f; border-color: #2ea44f; }

/* PDF stage — scrolls inside the modal; the reader's tall page min-height is overridden. */
.exdoc-stage {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  padding: 12px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .14);
}
/* Keyed per document, so switching agreements fades the new one in rather than
   snapping between two walls of text. */
.exdoc-doc { animation: exdoc-doc-in .3s ease both; }
@keyframes exdoc-doc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .exdoc-doc { animation: none; } }
.exdoc-stage .reader-split { gap: 0; min-height: 0; justify-content: center; }
.exdoc-stage .reader-stage { height: auto; overflow: visible; padding-bottom: 0; }
.exdoc-stage .pdfv-reader { min-height: 320px; max-width: 100%; }
.exdoc-stage .pdfv-loading { background: transparent; }
.exdoc-stage .pdfv-skel-page { min-height: 300px; padding: 28px 30px; }

.exdoc-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.exdoc-count { font-size: 13px; color: var(--text-2); }
.exdoc-count b { color: var(--text); }

/* Consent row — locked until the document has been paged to the end. */
.exdoc-consent {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-soft, rgba(127, 127, 127, .06));
  font-size: 13px; line-height: 1.5; color: var(--text);
}
.exdoc-consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--red); }
.exdoc-consent.is-locked { cursor: default; color: var(--text-2); }
.exdoc-consent em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--muted); }

.exdoc-err { margin: 0; font-size: 13px; color: var(--red); }

.exdoc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.exdoc-actions .btn[disabled], .exdoc-actions .btn.is-off { opacity: .5; pointer-events: none; }
.exdoc-progress { margin-right: auto; font-size: 12.5px; color: var(--muted); }

@media (max-width: 640px) {
  .exdoc { padding: 16px; max-height: 96vh; }
  .exdoc-tab-t { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .exdoc-progress { width: 100%; margin: 0 0 4px; }
}

/* ============================================================================
   Certificates — the modal, the My Certificates grid, and the certificate
   affordances bolted onto existing rows/cards.

   One modal serves My Courses, the course-exam result screen and the
   certificates page, mirroring how the three blade screens all shared a single
   openAccredibleCertificate() dialog.
   ========================================================================== */

/* --- modal --------------------------------------------------------------- */
.cert-modal-overlay {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px);
  animation: exqFade .18s ease;
}
/* Closing is animated too — the component keeps the node mounted for EXIT_MS
   (CertificateModal.jsx) so the dialog leaves as smoothly as it arrived. */
.cert-modal-overlay.is-closing { animation: exqFade .2s ease reverse forwards; pointer-events: none; }
.cert-modal-overlay.is-closing .cert-modal { animation: certPop .2s cubic-bezier(.4, 0, 1, 1) reverse forwards; }

.cert-modal {
  position: relative; width: 100%; max-width: 720px; max-height: 92vh;
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 16px; text-align: left;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
  animation: certPop .22s cubic-bezier(.22, .61, .36, 1);
}
html[data-theme="dark"] .cert-modal { background: #1b1813; }

@keyframes certPop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.cert-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cert-modal-head h3 { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--text); }
.cert-modal-head p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.cert-modal-head .rec-modal-x:disabled { opacity: .5; cursor: default; }

/* The preview stage keeps a fixed aspect so the skeleton, the pending state and the
   final image all occupy the same box — no reflow when the certificate lands. */
.cert-stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  aspect-ratio: 1.414 / 1;                       /* A4 landscape, like the PDF */
  display: grid; place-items: center; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-soft, rgba(127, 127, 127, .06));
}
.cert-img {
  max-width: 100%; max-height: 100%; display: block; border-radius: 10px;
  opacity: 0; transform: scale(.99);
  transition: opacity .28s ease, transform .28s ease;
}
.cert-img.is-in { opacity: 1; transform: none; }

.cert-pending { position: absolute; inset: 0; display: grid; place-items: center; }
.cert-pending-msg { position: relative; text-align: center; padding: 16px; }
.cert-pending-msg p { margin: 10px 0 4px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.cert-pending-msg span { font-size: 12px; color: var(--muted); }
.cert-spin {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--line-2); border-top-color: var(--red);
  animation: certSpin .8s linear infinite;
}
@keyframes certSpin { to { transform: rotate(360deg); } }

.cert-empty { text-align: center; padding: 20px; }
.cert-empty p { margin: 12px 0 4px; font-size: 14px; font-weight: 700; color: var(--text); }
.cert-empty-sub, .cert-state .cert-empty-sub { display: block; font-size: 12.5px; color: var(--muted); }
.cert-seal {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  color: var(--red); background: var(--red-soft); border: 1px solid rgba(240, 28, 36, .28);
}
.cert-seal svg { width: 28px; height: 28px; }

.cert-err { margin: 0; font-size: 13px; color: var(--red); }

.cert-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.cert-actions .cert-transcript { margin-right: auto; }
.cert-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.cert-actions .btn svg { width: 15px; height: 15px; }
.cert-actions .btn[disabled], .cert-actions .btn.is-off { opacity: .5; pointer-events: none; }

/* --- My Certificates page ------------------------------------------------- */
.certx { padding: 0 4px 40px; }
.certx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 26px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cert-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-card.is-pending { opacity: .8; }

.cert-thumb {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 1.414 / 1;
  padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: var(--bg-soft, rgba(127, 127, 127, .06));
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-thumb-seal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--red); background: var(--red-soft); }
.cert-thumb-seal svg { width: 28px; height: 28px; }
/* Hover affordance — the whole thumbnail is the button, so it needs to say so. */
.cert-thumb-veil {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55);
  opacity: 0; transition: opacity .18s ease;
}
.cert-thumb:hover .cert-thumb-veil, .cert-thumb:focus-visible .cert-thumb-veil { opacity: 1; }

.cert-card-body { padding: 16px 18px 6px; flex: 1 1 auto; }
.cert-card-body h3 { margin: 0 0 10px; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cert-chip {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  color: #16a34a; background: #e8f7ee; border: 1px solid rgba(22, 163, 74, .3);
}
.cert-chip.ghost { color: var(--text-2); background: transparent; border-color: var(--line-2); }
.cert-chip.warn { color: #d98a00; background: rgba(217, 138, 0, .14); border-color: rgba(217, 138, 0, .4); }
.cert-meta { margin: 12px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.cert-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 16px; }
.cert-link { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cert-link:hover { color: var(--red); }

.cert-state { text-align: center; padding: 56px 20px; }
.cert-state p { margin: 14px 0 4px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.cert-state .btn { margin-top: 16px; }

/* --- certificate affordances on existing surfaces ------------------------- */
/* Exams › results row: transcript / certificate / report share the last column. */
.exm-ractions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.exm-raction.cert, .exm-ractions a.exm-raction {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.exm-ractions .exm-raction svg { width: 15px; height: 15px; }
.exm-raction.cert:hover, .exm-ractions a.exm-raction:hover { border-color: var(--red); color: var(--red); }

/* Dashboard: the certificates tile is the only stat that navigates. */
.stat-link { color: inherit; text-decoration: none; }
.stat-link:hover { text-decoration: none; }

@media (max-width: 640px) {
  .cert-modal { padding: 16px; max-height: 96vh; }
  .cert-actions { justify-content: stretch; }
  .cert-actions .cert-transcript { margin-right: auto; }
  .cert-grid { grid-template-columns: 1fr; }
}

/* "View all certificates" — Exams results header; the certificates page has no
   sidebar entry by default, so this is one of its entry points. */
.exm-rlink { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--red); }
.exm-rlink svg { width: 13px; height: 13px; }
.exm-rlink:hover { text-decoration: underline; }
