/* Breakthrough 120 Command Central — KW Heritage design system */
:root {
  /* Official KW Heritage palette */
  --red: #ce011f;
  --red-deep: #bf0101;
  --white: #ffffff;
  --black: #000000;
  --gray-dark: #666666;
  --gray-light: #cccccc;
  --gray-mid: #999999;

  /* Derived neutrals (tints of the palette for large surfaces) */
  --surface: #ffffff;
  --page: #f5f5f5;
  --line: #e3e3e3;            /* light gray at reduced strength for card borders */
  --red-tint: rgba(206, 1, 31, 0.07);
  --red-tint-2: rgba(206, 1, 31, 0.14);

  /* Status (used sparingly, for data states only) */
  --ok: #1e7a3c;   --ok-bg: #e9f5ed;
  --warn: #8a5300; --warn-bg: #fff4e2;
  --info: #1f4f99; --info-bg: #eaf1fb;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--black); background: var(--page); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; color: var(--black); }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(206,1,31,.45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
[hidden] { display: none !important; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; background: var(--white); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 16px; gap: 18px; overflow-y: auto;
}
.brand { display: flex; flex-direction: column; gap: 10px; padding: 0 8px 14px; border-bottom: 1px solid var(--line); }
.brand img.kw { width: 150px; height: auto; }
.brand .product { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-dark); }
.brand .product b { color: var(--red); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-mid); padding: 12px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--gray-dark); font-weight: 600; font-size: 14px; text-decoration: none; position: relative;
}
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--page); color: var(--black); }
.nav a.active { background: var(--red-tint); color: var(--red); }
.nav a.active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.nav a .ext { margin-left: auto; width: 14px; height: 14px; opacity: .6; }
.sidebar-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--gray-dark); display: grid; gap: 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 32px; background: rgba(245,245,245,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
}
.topbar .title { display: flex; flex-direction: column; min-width: 0; }
.topbar .eyebrow { font-size: 12px; color: var(--gray-dark); font-weight: 600; }
.topbar h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.btn.menu-btn { display: none; }
.content:focus { outline: none; }
.preview-bar { padding: 0 32px; }
.content { padding: 8px 32px 48px; display: grid; gap: 24px; max-width: 1320px; width: 100%; }

/* ---------- Cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head p { color: var(--gray-dark); font-size: 13px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--gray-dark); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-dark); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title p { color: var(--gray-dark); font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--gray-light); background: var(--white); color: var(--black);
  font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--black); text-decoration: none; color: var(--black); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn-dark { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; color: var(--white); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--gray-dark); }
.btn-ghost:hover { background: var(--page); border-color: transparent; color: var(--black); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn-danger { color: var(--red-deep); border-color: rgba(191,1,1,.35); }
.btn-danger:hover { background: var(--red-tint); border-color: var(--red-deep); color: var(--red-deep); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--page); color: var(--gray-dark); white-space: nowrap; }
.pill.red { background: var(--red-tint); color: var(--red); }
.pill.dark { background: var(--black); color: var(--white); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--black); color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 300px; box-shadow: var(--shadow);
}
.hero-copy { padding: 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; position: relative; z-index: 1; }
.hero-copy .label { color: rgba(255,255,255,.7); }
.hero-copy h1 { color: var(--white); font-size: 34px; line-height: 1.1; }
.hero-copy h1 span { color: var(--red); }
.hero-copy p { color: rgba(255,255,255,.82); max-width: 520px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,0) 70%); }
.hero-media figcaption { position: absolute; right: 14px; bottom: 12px; z-index: 1; font-size: 12px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px; }
.hero .bt-logo { height: 34px; width: auto; border-radius: 6px; align-self: flex-start; }

/* ---------- Weather ---------- */
.wx-now { display: grid; gap: 16px; }
.wx-main { display: flex; align-items: center; gap: 16px; }
.wx-main .wx-icon { width: 64px; height: 64px; color: var(--black); }
.wx-temp { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.wx-temp sup { font-size: 22px; font-weight: 700; vertical-align: top; position: relative; top: 6px; }
.wx-cond { font-weight: 700; font-size: 16px; }
.wx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wx-stat { background: var(--page); border-radius: 12px; padding: 10px 12px; }
.wx-stat .label { font-size: 10.5px; }
.wx-stat b { display: block; font-size: 15px; margin-top: 2px; }
.wx-hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.wx-hour { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; display: grid; gap: 4px; justify-items: center; font-size: 12px; }
.wx-hour svg { width: 26px; height: 26px; }
.wx-hour b { font-size: 15px; }
.wx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--page); border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--black);
}
.wx-chip svg { width: 22px; height: 22px; }
.wx-chip .pop { color: var(--info); font-weight: 700; }
.wx-chip.na { font-weight: 600; color: var(--gray-dark); }
.wx-chip.na svg { opacity: .5; }
.wx-top { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.wx-top svg { width: 24px; height: 24px; }
.wx-top small { font-weight: 600; color: var(--gray-dark); }
.wx-detail { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--page); }
.wx-detail svg { width: 56px; height: 56px; }

/* ---------- Class cards ---------- */
.class-list { display: grid; gap: 12px; }
.class-card {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.class-card:hover { border-color: var(--gray-light); box-shadow: var(--shadow-lift); }
.class-card.is-today { border-color: rgba(206,1,31,.45); box-shadow: 0 0 0 3px var(--red-tint); }
.class-card.is-cancelled { opacity: .7; background: var(--page); }
.class-card.is-cancelled h3 { text-decoration: line-through; }
.date-block { text-align: center; border-radius: 14px; background: var(--page); padding: 10px 6px; }
.date-block .dow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.date-block .day { font-size: 28px; font-weight: 800; line-height: 1.05; }
.date-block .mon { font-size: 12px; font-weight: 700; color: var(--gray-dark); text-transform: uppercase; }
.class-body { display: grid; gap: 6px; min-width: 0; }
.class-body h3 { font-size: 17px; }
.class-body h3 a { color: var(--black); }
.class-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--gray-dark); font-size: 13.5px; }
.class-meta span { display: inline-flex; align-items: center; gap: 6px; }
.class-meta svg { width: 15px; height: 15px; flex: none; color: var(--gray-mid); }
.class-desc { color: var(--gray-dark); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.class-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.class-side { display: grid; justify-items: end; gap: 8px; }

/* Class detail */
.detail-head { display: grid; gap: 14px; }
.detail-head h1 { font-size: 30px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; }
.fact b { font-size: 15px; }
.prose { color: #222; white-space: pre-line; font-size: 15px; line-height: 1.7; }
.source-note { font-size: 12px; color: var(--gray-dark); display: flex; gap: 6px; align-items: center; }

/* ---------- Instructors ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); text-decoration: none; color: var(--black); transition: box-shadow .15s, border-color .15s; }
.person:hover { box-shadow: var(--shadow-lift); border-color: var(--gray-light); text-decoration: none; color: var(--black); }
.avatar { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--page); display: grid; place-items: center; font-weight: 800; color: var(--gray-dark); font-size: 20px; flex: none; overflow: hidden; border: 1px solid var(--line); }
.avatar.lg { width: 120px; height: 120px; border-radius: 28px; font-size: 36px; }
.avatar.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
.avatar svg { width: 55%; height: 55%; color: var(--gray-light); }
.person .name { font-weight: 750; }
.stars { display: inline-flex; gap: 1px; color: var(--red); vertical-align: middle; }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--gray-light); }
.rating-summary { display: flex; align-items: center; gap: 10px; }
.rating-summary .big { font-size: 34px; font-weight: 800; }

/* Reviews */
.review { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.review:last-child { border-bottom: 0; }
.review blockquote { margin: 0; color: #222; }

/* ---------- Resources ---------- */
.resources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.resource { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.resource .media { aspect-ratio: 16 / 9; background: var(--page); display: grid; place-items: center; color: var(--gray-mid); }
.resource .media iframe, .resource .media img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.resource .media svg { width: 40px; height: 40px; }
.resource .body { padding: 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.resource .attr { font-size: 12px; color: var(--gray-dark); }

/* ---------- Stats (admin) ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.stat .value { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat .value.empty { font-size: 20px; color: var(--gray-mid); }
.stat .hint { font-size: 12px; color: var(--gray-dark); }
.stat .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; }
.stat .ico svg { width: 18px; height: 18px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--black); font-weight: 650; font-size: 14px; background: var(--white); }
.quick a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.quick a svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--gray-dark); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.activity { display: grid; }
.activity .item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.activity .item:last-child { border-bottom: 0; }
.activity time { margin-left: auto; color: var(--gray-dark); font-size: 12px; white-space: nowrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gray-dark); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafafa; white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fcfcfc; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label-text { font-size: 13px; font-weight: 700; }
.field .help { font-size: 12px; color: var(--gray-dark); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--gray-light); border-radius: 12px; background: var(--white);
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.checks { display: grid; gap: 6px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input { width: auto; min-width: 200px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--gray-dark); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--black); color: var(--white); }

/* ---------- States ---------- */
.empty { text-align: center; padding: 34px 20px; color: var(--gray-dark); display: grid; gap: 8px; justify-items: center; }
.empty svg { width: 40px; height: 40px; color: var(--gray-light); }
.empty b { color: var(--black); font-size: 15px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--page); font-size: 14px; border: 1px solid var(--line); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice.warn { background: var(--warn-bg); border-color: #f2dcb8; color: #4d3200; }
.notice.error { background: var(--red-tint); border-color: rgba(206,1,31,.25); color: #6b0010; }
.notice.info { background: var(--info-bg); border-color: #cfdcf2; color: #13325f; }
.notice.ok { background: var(--ok-bg); border-color: #cbe6d3; color: #0f4422; }
.skeleton { background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { transition: none !important; } }

/* ---------- Modal / drawer ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lift); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal .body { padding: 22px; display: grid; gap: 16px; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--white); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--black); color: var(--white); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lift); max-width: calc(100vw - 32px); }
.toast.error { background: var(--red-deep); }

/* ---------- Entry & login pages ---------- */
.entry { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); }
.entry-media { position: relative; background: var(--black); overflow: hidden; }
.entry-media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.entry-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%); }
.entry-media .caption { position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 1; color: var(--white); display: grid; gap: 10px; }
.entry-media .caption img { width: 220px; height: auto; opacity: 1; border-radius: 6px; }
.entry-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 6vw, 88px); gap: 28px; }
.entry-panel .kw { width: 190px; }
.entry-panel h1 { font-size: 36px; line-height: 1.1; }
.entry-panel h1 span { color: var(--red); }
.choices { display: grid; gap: 14px; }
.choice {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 20px;
  border: 1.5px solid var(--line); border-radius: var(--radius-lg); color: var(--black); text-decoration: none; background: var(--white); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.choice:hover { border-color: var(--red); box-shadow: var(--shadow-lift); text-decoration: none; color: var(--black); }
.choice .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); }
.choice.admin .ico { background: var(--black); color: var(--white); }
.choice .ico svg { width: 26px; height: 26px; }
.choice strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.choice span { color: var(--gray-dark); font-size: 14px; }
.choice .arrow { width: 22px; height: 22px; color: var(--gray-mid); }
.login-card { width: min(440px, 100%); display: grid; gap: 18px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--gray-mid); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; line-height: 1.35; }
.account:hover, .account:focus-visible { border-color: var(--red); }
.account b { font-size: 13px; color: var(--gray-dark); font-weight: 700; }
.code-input { letter-spacing: .5em; font-size: 22px; font-weight: 800; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lift); }
  .sidebar.open { transform: none; }
  .nav a.active::before { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 18px; }
  .content { padding: 4px 16px 40px; gap: 18px; }
  .preview-bar { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { height: 200px; order: -1; }
  .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, #000 100%); }
  .hero-copy { padding: 22px; }
  .hero-copy h1 { font-size: 27px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-card { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .class-side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .entry { grid-template-columns: 1fr; }
  .entry-media { height: 240px; }
  .entry-panel { padding: 28px 16px 40px; }
  .entry-panel h1 { font-size: 28px; }
  .card { padding: 18px; }
  .detail-head h1 { font-size: 24px; }
  .wx-top small { display: none; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .wx-temp { font-size: 44px; }
  .class-actions .btn { flex: 1; }
}
