@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0e0f11;
  --surface:   #16181c;
  --surface2:  #1e2026;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --text:      #f0f0ee;
  --muted:     #888a90;
  --accent:    #4e9eff;
  --acc-dim:   rgba(78,158,255,0.12);
  --green:     #3ecf8e;
  --grn-dim:   rgba(62,207,142,0.10);
  --amber:     #f5a623;
  --amb-dim:   rgba(245,166,35,0.10);
  --red:       #f05252;
  --red-dim:   rgba(240,82,82,0.10);
  --purple:    #b07aff;
  --pur-dim:   rgba(176,122,255,0.10);
  --r:  10px;
  --rl: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing:.06em; }
.logo span { color: var(--accent); }

#worker-status {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  background: transparent;
  white-space: nowrap;
}
#worker-status.ok  { color: var(--green); border-color: rgba(62,207,142,.3); }
#worker-status.err { color: var(--red);   border-color: rgba(240,82,82,.3); }
#worker-status:hover { border-color: var(--border2); color: var(--text); }

.tabs {
  display: flex; gap: 3px;
  background: var(--surface);
  padding: 3px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.tab {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px; font-weight: 500;
  cursor: pointer; color: var(--muted);
  background: transparent; border: none;
  transition: all .15s; white-space: nowrap;
}
.tab.active { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.tab:hover:not(.active) { color: var(--text); }

main { flex:1; padding: 1.75rem 1.5rem; max-width: 900px; margin: 0 auto; width: 100%; }

.section { display: none; }
.section.visible { display: block; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.card-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}

.btn {
  padding: 8px 18px;
  border-radius: var(--r);
  font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--surface2); color: var(--text);
  transition: all .15s;
}
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.accent  { background: var(--acc-dim); border-color: rgba(78,158,255,.4); color: var(--accent); }
.btn.accent:hover:not(:disabled) { background: rgba(78,158,255,.2); }
.btn.danger  { background: var(--red-dim); border-color: rgba(240,82,82,.4); color: var(--red); }
.btn.danger:hover:not(:disabled) { background: rgba(240,82,82,.2); }
.btn-sm {
  padding: 5px 12px; font-size: 12px;
  border-radius: 7px; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all .15s;
}
.btn-sm:hover { border-color: var(--border2); color: var(--text); }

.pill {
  padding: 4px 13px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border);
  color: var(--muted); background: transparent;
  transition: all .15s; font-family: 'DM Sans', sans-serif;
}
.pill.active { border-color: var(--accent); color: var(--accent); background: var(--acc-dim); }
.pill:hover:not(.active) { border-color: var(--border2); color: var(--text); }

.tag { font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 500; font-family: 'DM Mono', monospace; }
.tag-tech { background: rgba(78,158,255,.10); color: var(--accent); }
.tag-beh  { background: rgba(62,207,142,.10); color: var(--green); }
.tag-sit  { background: rgba(245,166,35,.10);  color: var(--amber); }
.tag-open { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border); }
.tag-kc   { background: rgba(240,82,82,.10);  color: var(--red); }
.tag-cust { background: var(--pur-dim);        color: var(--purple); }
.tag-hard { background: rgba(240,82,82,.08);  color: var(--red); }
.tag-med  { background: rgba(245,166,35,.08);  color: var(--amber); }
.tag-easy { background: rgba(62,207,142,.08); color: var(--green); }

select, textarea, input[type="text"] {
  width: 100%;
  padding: 9px 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text); font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color .15s;
}
select:focus, textarea:focus, input[type="text"]:focus { border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.6; }

.alert {
  padding: 10px 14px; border-radius: var(--r);
  font-size: 13px; line-height: 1.5; margin-bottom: 1rem;
}
.alert-warn { background: var(--amb-dim); border: 1px solid rgba(245,166,35,.3); color: var(--amber); }
.alert-err  { background: var(--red-dim); border: 1px solid rgba(240,82,82,.3);  color: var(--red); }
.alert-info { background: var(--acc-dim); border: 1px solid rgba(78,158,255,.3);  color: var(--accent); }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; display: none;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--rl);
  padding: 1.5rem;
  width: min(460px, 92vw);
}
.modal h2 { font-size: 15px; margin-bottom: .5rem; }
.modal p  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.modal-row { display: flex; gap: 8px; margin-top: 1rem; }

/* Voice tab */
.voice-hub {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.75rem; padding: 1.5rem 0;
}
.voice-mode-select { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }

.current-q {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--rl);
  padding: 1.25rem 1.5rem;
  font-size: 15px; line-height: 1.7;
}
.current-q .q-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}

.orb-wrap {
  position: relative; width: 130px; height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(78,158,255,.18);
  animation: pring 2.2s ease-out infinite; opacity: 0;
}
.orb-ring:nth-child(1) { width:100%;height:100%; animation-delay:0s; }
.orb-ring:nth-child(2) { width:120%;height:120%; animation-delay:.55s; }
.orb-ring:nth-child(3) { width:140%;height:140%; animation-delay:1.1s; }
.orb-ring.pulse { border-color: rgba(78,158,255,.4); animation: pring-act 1.1s ease-out infinite; }
.orb-ring.speak  { border-color: rgba(62,207,142,.4); animation: pring-act 1.1s ease-out infinite; }

@keyframes pring     { 0%{transform:scale(.94);opacity:0} 50%{opacity:.3} 100%{transform:scale(1.06);opacity:0} }
@keyframes pring-act { 0%{transform:scale(.88);opacity:0} 50%{opacity:.7} 100%{transform:scale(1.12);opacity:0} }

.orb {
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; position: relative; z-index: 1;
}
.orb:hover            { border-color: var(--accent); transform: scale(1.04); }
.orb.listening        { border-color: var(--accent);  background: rgba(78,158,255,.08); }
.orb.speaking         { border-color: var(--green);   background: rgba(62,207,142,.08); }
.orb svg              { width: 30px; height: 30px; }
.orb-status {
  font-size: 12px; color: var(--muted);
  font-family: 'DM Mono', monospace; letter-spacing: .04em; min-height: 18px; text-align: center;
}

.transcript-box, .coach-bubble {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.1rem 1.4rem;
  min-height: 72px; font-size: 14px; line-height: 1.72;
}
.coach-bubble { background: var(--surface2); border-left: 3px solid var(--accent); }
.box-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px;
}
.box-label.accent { color: var(--accent); }
.box-label.muted  { color: var(--muted);  }
.interim-text { color: var(--muted); font-style: italic; }

.voice-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tts-toggle { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); cursor: pointer; }
.tts-toggle input { cursor: pointer; accent-color: var(--accent); }

/* Question Bank */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: .75rem; }
.q-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); margin-bottom: 1rem; }
.q-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); padding: .9rem 1.1rem; margin-bottom: 9px;
  transition: border-color .15s;
}
.q-card:hover { border-color: var(--border2); }
.q-text { font-size: 13px; line-height: 1.6; color: var(--text); margin-bottom: 9px; }
.q-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Drill */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 1.25rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: .9rem; text-align: center;
}
.stat-val { font-size: 22px; font-weight: 600; color: var(--text); font-family: 'DM Mono', monospace; }
.stat-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.prog-track { background: var(--surface2); border-radius: 4px; height: 4px; margin-bottom: 1.25rem; overflow: hidden; }
.prog-fill  { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.drill-nav  { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 1.1rem; }
.feedback-box {
  background: var(--surface2); border-radius: var(--r);
  padding: .9rem 1.1rem; margin-top: .9rem;
  font-size: 13px; line-height: 1.75; white-space: pre-wrap;
}
.score-pill {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; font-family: 'DM Mono', monospace; margin-bottom: 8px;
}
.sp-hi { background: var(--grn-dim); color: var(--green); border: 1px solid rgba(62,207,142,.3); }
.sp-md { background: var(--amb-dim); color: var(--amber); border: 1px solid rgba(245,166,35,.3); }
.sp-lo { background: var(--red-dim); color: var(--red);   border: 1px solid rgba(240,82,82,.3); }

/* STAR Builder */
.star-output {
  background: var(--surface2);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--rl); padding: 1.1rem 1.4rem;
  font-size: 13px; line-height: 1.8; white-space: pre-wrap; margin-top: 1rem;
  display: none;
}
.star-lbl { color: var(--accent); font-weight: 600; font-family: 'DM Mono', monospace; font-size: 12px; }

/* KC Tips */
.tip-group { margin-bottom: 1.5rem; }
.tip-head  { font-family: 'DM Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.tip-item  { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.6; }
.tip-item:last-child { border-bottom: none; }
.tip-dot   { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.star-ref  { display: grid; grid-template-columns: 90px 1fr; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.sr-lbl    { padding: 9px 13px; font-size: 12px; font-weight: 600; color: var(--accent); font-family: 'DM Mono', monospace; background: var(--surface2); border-bottom: 1px solid var(--border); }
.sr-lbl:last-of-type { border-bottom: none; }
.sr-val    { padding: 9px 13px; font-size: 13px; line-height: 1.6; background: var(--surface); border-bottom: 1px solid var(--border); }
.sr-val:last-child { border-bottom: none; }

/* Question Manager */
.qm-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 680px) { .qm-layout { grid-template-columns: 1fr; } }

.qm-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 8px; flex-wrap: wrap; }
.qm-count   { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); }

.qm-list { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow-y: auto; padding-right: 3px; }
.qm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: .85rem 1rem; cursor: pointer; transition: border-color .15s;
}
.qm-card:hover    { border-color: var(--border2); }
.qm-card.selected { border-color: var(--accent); background: var(--acc-dim); }
.qm-card-text { font-size: 13px; line-height: 1.55; margin-bottom: 8px; }
.qm-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qm-actions   { display: flex; gap: 5px; margin-left: auto; }
.qm-notes     { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; font-style: italic; }
.qm-empty     { font-size: 13px; color: var(--muted); padding: 2rem 0; text-align: center; line-height: 1.7; }

.btn-ico {
  padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 12px;
  font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.btn-ico:hover { border-color: var(--border2); color: var(--text); }
.btn-ico.active { border-color: var(--accent); color: var(--accent); background: var(--acc-dim); }
.btn-ico.del:hover { border-color: var(--red); color: var(--red); }

.qm-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 1.25rem 1.4rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 1rem; height: fit-content;
}
.qm-panel h3 { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-group   { display: flex; flex-direction: column; gap: 5px; }
.form-lbl     { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }

.ai-box {
  background: var(--surface2);
  border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: var(--r); padding: .9rem 1.1rem;
  font-size: 13px; line-height: 1.75;
  max-height: 280px; overflow-y: auto; display: none;
}
.ai-box-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--green); text-transform: uppercase; margin-bottom: 7px; }
.practice-hint { font-size: 12px; color: var(--muted); padding: 8px 12px; background: var(--surface2); border-radius: var(--r); border: 1px solid var(--border); }
.practice-hint a { color: var(--accent); text-decoration: none; }
.practice-hint a:hover { text-decoration: underline; }

/* Misc */
.loading-dots::after { content:''; animation: ldots 1.2s steps(4,end) infinite; }
@keyframes ldots { 0%,20%{content:''}40%{content:'.'}60%{content:'..'}80%,100%{content:'...'} }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ══ FLASHCARDS ══ */
.fc-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:1.25rem; }
.fc-filters  { display:flex; gap:6px; flex-wrap:wrap; }
.fc-stats    { font-family:'DM Mono',monospace; font-size:12px; color:var(--muted); }

/* Deck mastery grid shown before session starts */
.fc-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 1.5rem;
}
.fc-deck-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s;
}
.fc-deck-tile:hover { border-color: var(--border2); }
.fc-deck-tile.selected { border-color: var(--accent); background: var(--acc-dim); }
.fc-deck-tile-name { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.fc-deck-tile-count { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.fc-mastery-bar { height: 3px; border-radius: 2px; background: var(--surface2); overflow: hidden; }
.fc-mastery-fill { height: 100%; border-radius: 2px; transition: width .4s; }
.fc-mastery-pct { font-family: 'DM Mono', monospace; font-size: 10px; margin-top: 4px; }

.fc-card-wrap {
  perspective: 1000px;
  width:100%; max-width:640px;
  margin:0 auto 1.5rem;
  height:240px; cursor:pointer;
}
.fc-card {
  width:100%; height:100%;
  position:relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  border-radius: var(--rl);
}
.fc-card.flipped { transform: rotateY(180deg); }

.fc-face {
  position:absolute; inset:0;
  border-radius: var(--rl);
  backface-visibility: hidden;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:2rem;
  text-align:center;
  border:1px solid var(--border);
}
.fc-front { background: var(--surface); border-top: 3px solid var(--accent); }
.fc-back  { background: var(--surface2); border-top: 3px solid var(--green); transform: rotateY(180deg); }
.fc-face-label {
  font-family:'DM Mono',monospace; font-size:10px;
  letter-spacing:.1em; text-transform:uppercase;
  margin-bottom:12px;
}
.fc-face-label.q { color:var(--accent); }
.fc-face-label.a { color:var(--green); }
.fc-face-text { font-size:16px; line-height:1.65; color:var(--text); font-weight:500; }
.fc-face-sub  { font-size:13px; line-height:1.6; color:var(--muted); margin-top:8px; }

.fc-hint { font-size:12px; color:var(--muted); text-align:center; margin-bottom:1.25rem; font-family:'DM Mono',monospace; }

.fc-nav { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:1rem; }
.fc-progress { font-family:'DM Mono',monospace; font-size:13px; color:var(--muted); min-width:80px; text-align:center; }

/* 3-tier score buttons */
.fc-score-row { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:.5rem; }
.fc-score-btn {
  padding:8px 20px; border-radius:var(--r); font-size:13px; font-weight:500;
  cursor:pointer; border:1px solid var(--border); font-family:'DM Sans',sans-serif;
  transition:all .15s;
}
.fc-score-btn.knew   { background:var(--grn-dim); color:var(--green);  border-color:rgba(62,207,142,.3); }
.fc-score-btn.shaky  { background:var(--amb-dim); color:var(--amber);  border-color:rgba(245,166,35,.3); }
.fc-score-btn.missed { background:var(--red-dim); color:var(--red);    border-color:rgba(240,82,82,.3); }
.fc-score-btn.knew:hover   { background:rgba(62,207,142,.25); }
.fc-score-btn.shaky:hover  { background:rgba(245,166,35,.25); }
.fc-score-btn.missed:hover { background:rgba(240,82,82,.25); }

/* Session stats bar */
.fc-session-bar {
  display: flex; gap: 16px; align-items: center; justify-content: center;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 1rem;
  font-family: 'DM Mono', monospace; font-size: 12px;
}
.fc-bar-item { display: flex; align-items: center; gap: 5px; }
.fc-bar-dot  { width: 7px; height: 7px; border-radius: 50%; }
.fc-bar-dot.g { background: var(--green); }
.fc-bar-dot.y { background: var(--amber); }
.fc-bar-dot.r { background: var(--red); }
.fc-streak { color: var(--accent); }

.fc-xp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 20px;
  background: rgba(78,158,255,.08);
  border: 1px solid rgba(78,158,255,.2);
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--accent);
}

.fc-session-end { text-align:center; padding:2rem 0; }
.fc-session-end h3 { font-size:18px; margin-bottom:1rem; }
.fc-big-score { font-size:48px; font-family:'DM Mono',monospace; font-weight:600; margin-bottom:.5rem; }
.fc-big-score.good { color:var(--green); }
.fc-big-score.mid  { color:var(--amber); }
.fc-big-score.low  { color:var(--red); }
.fc-deck-stats { font-size:13px; color:var(--muted); margin-bottom:1.5rem; line-height:1.8; }

.fc-breakdown {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 400px; margin: 0 auto 1.5rem;
}
.fc-bd-cell {
  padding: 12px; border-radius: var(--r);
  text-align: center;
}
.fc-bd-cell.g { background: var(--grn-dim); border: 1px solid rgba(62,207,142,.2); }
.fc-bd-cell.y { background: var(--amb-dim); border: 1px solid rgba(245,166,35,.2); }
.fc-bd-cell.r { background: var(--red-dim); border: 1px solid rgba(240,82,82,.2); }
.fc-bd-val { font-size: 24px; font-family: 'DM Mono', monospace; font-weight: 600; }
.fc-bd-val.g { color: var(--green); }
.fc-bd-val.y { color: var(--amber); }
.fc-bd-val.r { color: var(--red); }
.fc-bd-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }

.fc-xp-earned {
  font-family: 'DM Mono', monospace;
  font-size: 15px; color: var(--accent);
  margin-bottom: 1.5rem;
}

/* spaced repetition indicator */
.fc-replay-badge {
  display: inline-block;
  font-size: 10px; font-family: 'DM Mono', monospace;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(240,82,82,.08);
  border: 1px solid rgba(240,82,82,.2);
  color: var(--red);
  margin-top: 6px;
}
