/* ============================================================
   Transition 90 — Stylesheet
   Brand: Acumen Business Catalyst (#9B1E2E)
   ============================================================ */
:root {
  --red: #9B1E2E; --red-d: #7A1522; --red-l: #C0283C;
  --red-pale: #FDF2F3; --red-mid: #E8C0C5;
  --ink: #111111; --ink2: #3A3A3A; --ink3: #6A6A6A;
  --line: #E2E2E2; --surface: #F7F7F6; --white: #FFFFFF;
  --sage: #2d5a3d; --sage-soft: #e3ede7;
  --gold: #9c7a0a; --gold-soft: #fdf5dc;
  --font: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --r: 10px; --shadow-sm: 0 1px 3px rgba(17,17,17,0.04);
  --shadow: 0 2px 16px rgba(17,17,17,0.07);
  --shadow-lg: 0 8px 40px rgba(17,17,17,0.13);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: var(--font); background: var(--surface); color: var(--ink); line-height: 1.6; }

.hidden { display: none !important; }

/* ── FOCUS (keyboard nav only — invisible to mouse users) ── */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; transition: background 0.2s var(--ease); }
::-webkit-scrollbar-thumb:hover { background: var(--ink3); }

/* ── LOADING ── */
.loading-screen {
  position: fixed; inset: 0; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; z-index: 9999;
}
.ls-logo { display: flex; align-items: center; gap: 14px; }
.ls-mark { width: 48px; height: 48px; background: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; }
.ls-name { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.ls-sub  { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.ls-bar  { width: 180px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.ls-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--red-l)); border-radius: 99px; animation: lf 1.6s ease-in-out infinite; }
@keyframes lf { 0% { width: 0; } 100% { width: 100%; } }

/* ── LOGIN PAGE ── */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.login-brand {
  background: var(--ink); padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.login-brand::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155,30,46,0.18) 0%, transparent 70%);
}
.lb-mark { width: 54px; height: 54px; background: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 28px; }
.lb-name { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -1px; margin-bottom: 6px; }
.lb-sub  { font-size: 13px; color: rgba(255,255,255,0.35); letter-spacing: 0.3px; margin-bottom: 44px; }
.lb-shifts { display: flex; flex-direction: column; gap: 10px; }
.lbs-item { display: flex; gap: 12px; align-items: center; }
.lbs-num { width: 28px; height: 28px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.lbs-text { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.4; }
.lbs-text strong { color: rgba(255,255,255,0.75); font-weight: 600; display: block; }

.login-form-wrap {
  background: var(--white); display: flex; align-items: center; justify-content: center; padding: 60px;
}
.login-form { width: 100%; max-width: 380px; }
.lf-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.lf-title { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.5px; }
.lf-sub   { font-size: 13px; color: var(--ink3); margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none; border-radius: 6px; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); background: #fff; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .hint { font-size: 11px; color: var(--ink3); margin-top: 5px; line-height: 1.5; }

.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; background: var(--red); color: #fff; border: none;
  font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; transition: background 0.15s var(--ease), transform 0.1s var(--ease); border-radius: 6px;
}
.btn-red:hover:not(:disabled) { background: var(--red-d); }
.btn-red:active:not(:disabled) { transform: scale(0.97); }
.btn-red:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-red.full { width: 100%; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; background: transparent; color: var(--ink3);
  border: 1.5px solid var(--line); font-family: var(--font); font-size: 13px;
  cursor: pointer; transition: all 0.15s var(--ease); border-radius: 6px;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost:active { transform: scale(0.97); }

.btn-outline-red {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: transparent; color: var(--red);
  border: 1.5px solid var(--red); font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s var(--ease); border-radius: 6px;
}
.btn-outline-red:hover { background: var(--red-pale); }
.btn-outline-red:active { transform: scale(0.97); }

.err-box { background: var(--red-pale); border: 1px solid var(--red-mid); color: var(--red); padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.ok-box  { background: var(--sage-soft); border: 1px solid #b5d4be; color: var(--sage); padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }

.divider { position: relative; text-align: center; color: var(--ink3); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 44%; height: 1px; background: var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* ── MODAL ── */
.modal-bg { position: fixed; inset: 0; background: rgba(17,17,17,0.55); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s var(--ease); }
.modal-box { background: var(--white); border-radius: 12px; padding: 32px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; animation: modalIn 0.25s var(--ease); }
.modal-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.3px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: none; } }

/* ── APP SHELL ── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ── */
.sidebar { width: 240px; background: var(--ink); flex-shrink: 0; display: flex; flex-direction: column; overflow-y: auto; }
.sb-brand { padding: 24px 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sb-mark { width: 32px; height: 32px; background: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; margin-bottom: 8px; }
.sb-name { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.sb-sub  { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-top: 2px; }
.sb-batch { display: inline-block; margin-top: 8px; padding: 3px 9px; background: rgba(155,30,46,0.25); border: 1px solid rgba(155,30,46,0.5); color: rgba(255,180,180,0.9); border-radius: 99px; font-size: 10px; font-weight: 600; }

.sb-nav { padding: 14px 12px; flex: 1; }
.sb-section { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.2); padding: 0 10px; margin: 14px 0 6px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 6px; cursor: pointer; color: rgba(255,255,255,0.45); font-size: 13px; transition: all 0.18s var(--ease); margin-bottom: 1px; }
.nav-item:hover  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.nav-item.active { background: var(--red); color: #fff; font-weight: 600; }
.nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

.sb-footer { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: rgba(255,255,255,0.04); border-radius: 6px; }
.user-av { width: 30px; height: 30px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0; }
.user-name { font-size: 12px; font-weight: 600; color: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 10px; color: rgba(255,255,255,0.3); }
.logout-btn { background: none; border: none; color: rgba(255,255,255,0.25); cursor: pointer; font-size: 16px; padding: 4px; }
.logout-btn:hover { color: rgba(255,255,255,0.6); }

/* ── MAIN ── */
.main-content { flex: 1; overflow-y: auto; background: var(--surface); }
.page-header { padding: 28px 36px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.page-title { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; }
.page-sub   { font-size: 13px; color: var(--ink3); margin-top: 3px; }
.page-body  { padding: 24px 36px 48px; }

/* ── CARDS ── */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.card-lg { padding: 28px; border-radius: 12px; }
.card-sm { padding: 14px; border-radius: 8px; }

/* ── STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.stat-icon { font-size: 22px; margin-bottom: 8px; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.stat-value { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.stat-sub   { font-size: 11px; color: var(--ink3); margin-top: 3px; }

/* ── SCENARIO GRID ── */
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sc-card {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 20px; cursor: pointer; transition: all 0.18s var(--ease); position: relative; overflow: hidden;
}
.sc-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.sc-card.done  { border-color: var(--sage); }
.sc-card.locked { opacity: 0.5; cursor: not-allowed; }

.sc-shift-tag { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.sc-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.sc-desc  { font-size: 12px; color: var(--ink3); line-height: 1.55; margin-bottom: 14px; }
.sc-meta  { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sc-pill  { font-size: 11px; color: var(--ink3); display: flex; align-items: center; gap: 4px; }
.sc-score-badge { margin-left: auto; background: var(--sage-soft); color: var(--sage); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.sc-diff-easy   { width: 100%; height: 3px; position: absolute; top: 0; left: 0; background: var(--sage); }
.sc-diff-medium { width: 100%; height: 3px; position: absolute; top: 0; left: 0; background: var(--gold); }
.sc-diff-hard   { width: 100%; height: 3px; position: absolute; top: 0; left: 0; background: var(--red); }

/* ── SCENARIO DETAIL ── */
.detail-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; height: calc(100vh - 100px); }

.brief-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; overflow-y: auto; }
.brief-section { margin-bottom: 18px; }
.brief-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.brief-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 12px; line-height: 1.3; letter-spacing: -0.3px; }
.situation-box { background: var(--red-pale); border-left: 3px solid var(--red); padding: 12px 14px; font-size: 13px; line-height: 1.65; color: var(--ink2); border-radius: 0 6px 6px 0; }
.char-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.char-name { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.char-role { font-size: 11px; color: var(--red); font-weight: 600; margin-bottom: 4px; }
.char-desc { font-size: 12px; color: var(--ink3); line-height: 1.5; }
.obj-list  { list-style: none; }
.obj-list li { display: flex; gap: 8px; font-size: 12px; color: var(--ink2); margin-bottom: 7px; line-height: 1.5; align-items: flex-start; }
.obj-check { flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px; border-radius: 4px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 9px; transition: all 0.25s; }
.obj-check.met     { background: var(--sage); border-color: var(--sage); color: #fff; animation: objPop 0.35s var(--ease); }
.obj-check.met::after     { content: '✓'; }
.obj-check.partial { border-color: var(--gold); background: var(--gold-soft); animation: objPop 0.35s var(--ease); }
.obj-check.partial::after { content: '·'; color: var(--gold); font-weight: 900; }
@keyframes objPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.score-rubric { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rubric-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--line); font-size: 12px; }
.rubric-row:last-child { border-bottom: none; font-weight: 700; background: var(--surface); }
.rubric-label { color: var(--ink3); }
.rubric-pts   { font-weight: 700; color: var(--ink); }
.rubric-pts.live { color: var(--red); }

/* ── SHIFT BADGE ── */
.shift-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--red-pale); border: 1px solid var(--red-mid); border-radius: 6px; margin-bottom: 12px; }
.shift-badge-num { font-size: 10px; font-weight: 700; color: var(--red); }
.shift-badge-text { font-size: 11px; color: var(--ink2); }

/* ── CHAT ── */
.chat-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.chat-persona { display: flex; align-items: center; gap: 10px; }
.persona-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.persona-name { font-weight: 700; font-size: 14px; }
.persona-role { font-size: 11px; color: var(--ink3); }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sage); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 82%; animation: msgIn 0.25s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.user-msg { flex-direction: row-reverse; align-self: flex-end; }
.msg-av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.user-msg .msg-av { background: var(--red); color: #fff; font-weight: 700; font-size: 11px; border: none; }
.msg-body {}
.msg-bubble { padding: 10px 14px; border-radius: 12px 12px 12px 3px; font-size: 13px; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.user-msg .msg-bubble { background: var(--red); color: #fff; border: none; border-radius: 12px 12px 3px 12px; }
.msg-time { font-size: 10px; color: var(--ink3); margin-top: 4px; }

.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.t-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); animation: tdot 1.2s infinite; }
.t-dot:nth-child(2) { animation-delay: 0.2s; }
.t-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-end; }
.chat-input-wrap { flex: 1; }
.chat-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 13px; resize: none; outline: none; background: var(--surface); transition: border-color 0.15s; min-height: 42px; max-height: 110px; }
.chat-input:focus { border-color: var(--red); background: #fff; }
.send-btn { width: 40px; height: 40px; background: var(--red); border: none; border-radius: 8px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; }
.send-btn:hover { background: var(--red-d); }
.send-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.chat-hint { font-size: 10px; color: var(--ink3); text-align: center; margin-top: 4px; }

.hint-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hint-chip { padding: 5px 10px; background: var(--red-pale); border: 1px solid var(--red-mid); color: var(--red); border-radius: 99px; font-size: 11px; cursor: pointer; transition: all 0.15s; }
.hint-chip:hover { background: var(--red); color: #fff; }

/* ── COMPLETION ── */
.completion-overlay { position: fixed; inset: 0; background: rgba(17,17,17,0.8); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s var(--ease); }
.completion-box { background: var(--white); border-radius: 16px; padding: 40px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; text-align: center; animation: modalIn 0.3s var(--ease); }
.comp-icon  { font-size: 56px; margin-bottom: 12px; }
.comp-grade { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
.comp-score { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -2px; margin-bottom: 4px; }
.comp-score.great { color: var(--sage); }
.comp-score.good  { color: var(--gold); }
.comp-score.grow  { color: var(--red); }
.comp-sub { font-size: 13px; color: var(--ink3); margin-bottom: 20px; }
.comp-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; text-align: left; }
.comp-dim { background: var(--surface); border-radius: 8px; padding: 10px 12px; }
.comp-dim-label { font-size: 10px; color: var(--ink3); margin-bottom: 3px; }
.comp-dim-val { font-weight: 800; font-size: 16px; }
.comp-shift-box { background: var(--red-pale); border: 1px solid var(--red-mid); border-radius: 8px; padding: 12px 14px; text-align: left; margin-bottom: 12px; }
.comp-shift-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.comp-shift-text { font-size: 12px; color: var(--ink2); line-height: 1.5; }
.comp-feedback-box { background: var(--surface); border-radius: 8px; padding: 12px 14px; text-align: left; margin-bottom: 12px; font-size: 13px; color: var(--ink2); line-height: 1.6; }
.comp-strength { background: var(--sage-soft); border-radius: 8px; padding: 12px 14px; text-align: left; margin-bottom: 8px; }
.comp-strength-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage); margin-bottom: 3px; }
.comp-improve { background: var(--gold-soft); border-radius: 8px; padding: 12px 14px; text-align: left; margin-bottom: 18px; }
.comp-improve-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.comp-actions { display: flex; gap: 10px; justify-content: center; }

/* ── ADMIN ── */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-col { grid-column: 1 / -1; }
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.t-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-table th { background: var(--surface); padding: 9px 12px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink3); border-bottom: 2px solid var(--line); }
.t-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.t-table tr:last-child td { border-bottom: none; }
.t-table tr:hover td { background: var(--surface); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.badge-on  { background: var(--sage-soft); color: var(--sage); }
.badge-off { background: var(--surface); color: var(--ink3); border: 1px solid var(--line); }
.badge-admin { background: #e8d5fc; color: #6c1fb3; }
.badge-easy   { background: var(--sage-soft); color: var(--sage); }
.badge-medium { background: var(--gold-soft); color: var(--gold); }
.badge-hard   { background: var(--red-pale); color: var(--red); }

.act-btn { background: none; border: 1px solid var(--line); color: var(--ink3); padding: 4px 10px; border-radius: 5px; font-family: var(--font); font-size: 11px; cursor: pointer; transition: all 0.15s; }
.act-btn:hover { border-color: var(--red); color: var(--red); }
.act-btn.danger:hover { border-color: #c0392b; color: #c0392b; }

.tabs { display: flex; gap: 3px; background: var(--surface); border-radius: 8px; padding: 3px; margin-bottom: 20px; width: fit-content; border: 1px solid var(--line); }
.tab { padding: 7px 18px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink3); transition: all 0.15s; border: none; background: transparent; font-family: var(--font); }
.tab.active { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13px; z-index: 9999; box-shadow: var(--shadow-lg); animation: toastIn 0.25s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-icon  { font-size: 40px; margin-bottom: 10px; }
.empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-desc  { font-size: 13px; color: var(--ink3); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.25s ease; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; height: auto; }
  .sidebar { display: none; }
  .page-header, .page-body { padding-left: 20px; padding-right: 20px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
