@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg: #F7F4EF;
  --dark: #141720;
  --dark2: #1E2130;
  --burgundy: #8B2635;
  --burgundy-hover: #7A1F2D;
  --burgundy-light: #FDF2F3;
  --burgundy-border: #E8B4BB;
  --gold: #C4A07A;
  --gold-light: #F5EDE0;
  --surface: #FFFFFF;
  --surface2: #FAFAF8;
  --border: #E8E3DA;
  --border2: #D5CEC3;
  --text: #141720;
  --text-sub: #6B6459;
  --text-muted: #A09480;
  --green: #16A34A;
  --green-light: #F0FDF4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(20,23,32,0.06);
  --shadow: 0 4px 20px rgba(20,23,32,0.08);
  --shadow-lg: 0 12px 40px rgba(20,23,32,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ── Header ── */
.site-header {
  background: var(--dark);
  color: #fff;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 32px; height: 32px; background: var(--burgundy);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.brand-text { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.brand-text em { color: var(--gold); font-style: normal; }

/* ── Lang toggle ── */
.lang-toggle {
  display: flex; gap: 2px; background: rgba(255,255,255,0.08);
  border-radius: 8px; padding: 3px;
}
.lang-toggle button {
  background: none; border: none; color: rgba(255,255,255,0.45);
  font-size: 12px; font-weight: 700; padding: 5px 12px;
  border-radius: 6px; cursor: pointer; transition: all 0.15s;
  font-family: inherit; letter-spacing: 0.3px;
}
.lang-toggle button.active {
  background: var(--gold); color: var(--dark);
}

/* ── Layout ── */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 100px; }

/* ── Page hero ── */
.page-hero { text-align: center; padding: 40px 0 32px; }
.page-hero-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--burgundy); background: var(--burgundy-light);
  border: 1px solid var(--burgundy-border);
  padding: 4px 12px; border-radius: 99px; margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(26px, 5vw, 34px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.15; color: var(--dark);
}
.page-hero p { font-size: 14px; color: var(--text-sub); margin-top: 8px; }

/* ── Mentor Grid ── */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 500px) { .mentor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px) { .mentor-grid { grid-template-columns: repeat(4, 1fr); } }

.mentor-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
  text-align: center;
}
.mentor-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-light) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.mentor-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.mentor-card:hover::before { opacity: 1; }
.mentor-card:active { transform: translateY(-1px); }

.mentor-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dark2), var(--dark));
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; position: relative;
}
.mentor-card.all-done .mentor-avatar { background: linear-gradient(135deg, #16A34A, #15803D); }

.mentor-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mentor-prog-text { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.mentor-prog-bar {
  width: 100%; height: 3px; background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.mentor-prog-fill {
  height: 100%; background: var(--gold);
  border-radius: 99px; transition: width 0.4s ease;
}
.mentor-card.all-done .mentor-prog-fill { background: var(--green); }
.done-badge {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px; background: var(--green);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 10px; color: #fff;
}

/* ── Operator link ── */
.op-link-wrap { text-align: center; margin-top: 8px; }
.op-link {
  font-size: 12px; color: var(--text-muted); text-decoration: none;
  border-bottom: 1px dashed var(--border2);
  transition: color 0.15s;
}
.op-link:hover { color: var(--text-sub); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,23,32,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border-radius: 20px;
  padding: 36px 32px; width: 360px; max-width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(8px); transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }
.modal-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dark2), var(--dark));
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.modal-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }
.pin-dots {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 20px;
}
.pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border2); background: transparent;
  transition: all 0.15s;
}
.pin-dot.filled { background: var(--dark); border-color: var(--dark); }
.pin-input-hidden {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.numpad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.num-btn {
  height: 52px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface2); font-size: 18px; font-weight: 600;
  cursor: pointer; font-family: Georgia, serif; color: var(--dark);
  transition: all 0.12s; display: flex; align-items: center; justify-content: center;
}
.num-btn:hover { background: var(--bg); border-color: var(--border2); }
.num-btn:active { transform: scale(0.95); background: var(--gold-light); }
.num-btn.del { font-size: 20px; font-family: inherit; }
.num-btn.confirm-btn {
  background: var(--dark); color: #fff; border-color: var(--dark);
  font-size: 14px; font-family: inherit; font-weight: 700;
}
.num-btn.confirm-btn:hover { background: var(--dark2); }
.pin-error-msg {
  font-size: 13px; color: var(--burgundy); min-height: 20px;
  font-weight: 500;
}
.modal-cancel {
  background: none; border: none; font-size: 13px; color: var(--text-muted);
  cursor: pointer; margin-top: 8px; font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.modal-cancel:hover { color: var(--text-sub); }

/* ── Eval page header ── */
.eval-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.eval-mentor-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 99px; padding: 6px 14px 6px 8px;
}
.eval-mentor-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--dark); color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.eval-mentor-name { font-size: 13px; font-weight: 600; }
.eval-prog-chip {
  font-size: 12px; color: var(--text-sub);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 99px; padding: 6px 14px;
  font-weight: 600;
}

/* ── Team tabs ── */
.team-tabs-wrap { margin-bottom: 20px; }
.team-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.team-tabs::-webkit-scrollbar { display: none; }
.team-tab {
  flex-shrink: 0; padding: 9px 18px;
  border-radius: 99px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-sub);
  transition: all 0.15s; display: flex; align-items: center; gap: 5px;
}
.team-tab:hover { border-color: var(--dark); color: var(--dark); }
.team-tab.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.team-tab .tab-check { font-size: 11px; color: var(--green); }
.team-tab.done { border-color: var(--green); color: var(--green); }
.team-tab.done.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.card-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Criterion ── */
.criterion { margin-bottom: 28px; }
.criterion:last-child { margin-bottom: 0; }
.criterion-label {
  font-size: 15px; font-weight: 700; margin-bottom: 3px;
  display: flex; align-items: baseline; gap: 8px;
}
.criterion-label-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.criterion-desc { font-size: 12px; color: var(--text-sub); margin-bottom: 12px; line-height: 1.5; }

/* ── Segment ── */
.segment-group { display: flex; gap: 6px; }
.seg-btn {
  flex: 1; border: 1.5px solid var(--border);
  background: var(--surface2); border-radius: 10px;
  padding: 10px 4px 8px; cursor: pointer;
  font-family: inherit; text-align: center;
  transition: all 0.15s; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.seg-btn:hover { border-color: var(--dark); background: var(--bg); }
.seg-num { font-size: 18px; font-family: Georgia, serif; font-weight: 700; color: var(--dark); line-height: 1; }
.seg-label { font-size: 9px; color: var(--text-muted); line-height: 1.3; text-align: center; }
.seg-btn.selected {
  background: var(--dark); border-color: var(--dark);
}
.seg-btn.selected .seg-num { color: #fff; }
.seg-btn.selected .seg-label { color: rgba(255,255,255,0.6); }

/* ── Bonus box ── */
.bonus-box {
  background: var(--burgundy-light);
  border: 2px solid var(--burgundy);
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
}
.bonus-box-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--burgundy);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.bonus-box-title::after { content: ''; flex: 1; height: 1px; background: var(--burgundy-border); }
.bonus-box .seg-btn.selected {
  background: var(--burgundy); border-color: var(--burgundy);
}

/* ── Score display ── */
.score-panel {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 100%);
  border-radius: var(--radius);
  padding: 24px; text-align: center; margin-bottom: 16px;
  color: #fff;
}
.score-main {
  font-family: Georgia, serif;
  font-size: 60px; line-height: 1; font-weight: 400;
  color: #fff;
}
.score-main .score-denom { font-size: 24px; color: rgba(255,255,255,0.4); }
.score-subtitle { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; letter-spacing: 0.5px; }
.score-breakdown {
  display: flex; gap: 16px; justify-content: center; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1);
}
.score-item { text-align: center; }
.score-item-val { font-size: 18px; font-family: Georgia, serif; color: var(--gold); }
.score-item-label { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── Comment ── */
.comment-wrap { margin-bottom: 16px; }
.comment-label { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 8px; }
.comment-area {
  width: 100%; min-height: 80px; resize: vertical;
  border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  font-size: 13px; font-family: inherit;
  background: var(--surface2); outline: none;
  transition: border-color 0.15s; color: var(--text);
  line-height: 1.6;
}
.comment-area:focus { border-color: var(--dark); background: var(--surface); }
.comment-area::placeholder { color: var(--text-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: inherit; font-weight: 700; font-size: 14px;
  border: none; border-radius: 12px; cursor: pointer;
  transition: all 0.15s; text-decoration: none; padding: 14px 24px;
}
.btn-dark { background: var(--dark); color: #fff; width: 100%; }
.btn-dark:hover { background: var(--dark2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20,23,32,0.2); }
.btn-dark:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text-sub);
  border: 1.5px solid var(--border); width: 100%;
}
.btn-ghost:hover { border-color: var(--dark); color: var(--dark); }

/* ── Done banner ── */
.done-banner {
  text-align: center; padding: 60px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-sm);
}
.done-banner-icon { font-size: 56px; margin-bottom: 16px; }
.done-banner h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.done-banner p { color: var(--text-sub); font-size: 14px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--dark); color: #fff;
  padding: 12px 22px; border-radius: 99px;
  font-size: 13px; font-weight: 600;
  z-index: 500; opacity: 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(20,23,32,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─────── OPERATOR DASHBOARD ─────── */

.dash-wrap { max-width: 900px; margin: 0 auto; padding: 32px 20px 80px; }

/* Section */
.dash-section { margin-bottom: 40px; }
.dash-section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.dash-section-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.dash-section-title { font-size: 18px; font-weight: 800; }
.dash-section-sub { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat-val { font-family: Georgia, serif; font-size: 36px; color: var(--dark); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 6px; font-weight: 600; letter-spacing: 0.5px; }

/* Matrix */
.matrix-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.matrix-scroll { overflow-x: auto; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.matrix-table th {
  padding: 10px 14px; font-weight: 700; font-size: 12px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  color: var(--text-sub); text-align: center;
}
.matrix-table th:first-child { text-align: left; min-width: 80px; }
.matrix-table td {
  padding: 10px 14px; text-align: center;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table td.done-cell { color: var(--green); font-size: 16px; background: var(--green-light); }
.matrix-table td.empty-cell { color: var(--border2); }
.matrix-table th:first-child, .matrix-table td:first-child {
  text-align: left; font-weight: 600; padding-left: 20px;
}

/* Rankings */
.rank-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th {
  padding: 12px 16px; text-align: left; font-size: 11px;
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.rank-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr:hover td { background: var(--bg); }

.rank-num {
  font-family: Georgia, serif; font-size: 22px; font-weight: 700;
  width: 36px; text-align: center; display: inline-block;
}
.rank-1 { color: #D4AF37; }
.rank-2 { color: #9EA3A8; }
.rank-3 { color: #CD7F32; }
.rank-other { color: var(--text-muted); }

.team-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--dark); color: #fff;
  font-size: 16px; font-weight: 900;
}
.rank-score { font-family: Georgia, serif; font-size: 22px; font-weight: 600; }
.rank-raw { font-family: Georgia, serif; font-size: 16px; color: var(--text-muted); }
.warn-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; background: #FFF3CD; color: #856404;
  border-radius: 6px; padding: 3px 8px; font-weight: 600;
}

/* Mentor table */
.mentor-card2 {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.mentor-table { width: 100%; border-collapse: collapse; }
.mentor-table th {
  padding: 12px 16px; text-align: left; font-size: 11px;
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mentor-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.mentor-table tr:last-child td { border-bottom: none; }
.mentor-table tr:hover td { background: var(--bg); }

.mentor-name-cell { font-weight: 700; font-size: 14px; }
.prog-mini {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-sub);
}
.prog-mini-bar {
  width: 56px; height: 4px; background: var(--border);
  border-radius: 99px; overflow: hidden; flex-shrink: 0;
}
.prog-mini-fill { height: 100%; background: var(--gold); border-radius: 99px; }
.avg-score-cell { font-family: Georgia, serif; font-size: 18px; }
.tendency-pill {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 700;
}
.tend-generous { background: #FFF0E6; color: #C2410C; }
.tend-strict   { background: #EEF2FF; color: #3730A3; }
.tend-neutral  { background: var(--bg); color: var(--text-sub); border: 1px solid var(--border); }

/* Dash actions */
.dash-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 24px; }
.dash-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: all 0.15s; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-sub);
}
.dash-btn:hover { border-color: var(--dark); color: var(--dark); }
.refresh-badge {
  font-size: 11px; color: var(--text-muted);
  text-align: right; margin-bottom: 12px;
}

/* responsive */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card:last-child { grid-column: 1/-1; }
  .card { padding: 20px; }
  .bonus-box { padding: 18px; }
}

/* ── Comments section ── */
.comment-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.comment-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.comment-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.comment-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.comment-item:last-child { border-bottom: none; }
.comment-mentor {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  min-width: 52px;
  padding-top: 1px;
}
.comment-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  flex: 1;
}

/* ── AI Judge cards (operator dashboard) ── */
.ai-judge-card {
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); margin-bottom:10px; overflow:hidden;
}
.ai-judge-head {
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px; cursor:pointer; transition:background .15s;
}
.ai-judge-head:hover { background:rgba(255,255,255,0.03); }
.ai-rank { font-size:18px; min-width:32px; }
.ai-total-pill {
  font-family:Georgia,serif; font-weight:700; font-size:15px;
  background:var(--dark); color:#fff; padding:4px 14px; border-radius:14px;
}
.ai-expand-arrow { color:var(--text-muted); transition:transform .2s; }
.ai-judge-card.expanded .ai-expand-arrow { transform:rotate(180deg); }
.ai-judge-body { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.ai-judge-card.expanded .ai-judge-body { max-height:2000px; }
.ai-judge-overall {
  padding:16px 18px; font-size:14px; line-height:1.7; color:var(--text);
  border-top:1px solid var(--border); border-left:3px solid var(--gold);
  background:var(--bg); margin:0 18px 14px; border-radius:0 8px 8px 0;
}
.ai-mini-grid { padding:0 18px; display:grid; gap:10px; }
.ai-mini-crit { padding:10px 0; border-bottom:1px solid var(--border); }
.ai-mini-crit:last-child { border-bottom:none; }
.ai-mini-name { font-weight:700; font-size:13px; margin-right:8px; }
.ai-mini-score {
  font-family:Georgia,serif; font-size:13px; color:var(--gold); font-weight:700;
}
.ai-mini-analysis { font-size:12.5px; color:var(--text-sub); line-height:1.6; margin-top:4px; }
.ai-judge-imps { padding:14px 18px 18px; }
.ai-imps-label { font-size:12px; font-weight:700; color:var(--gold); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; }
.ai-judge-imps ul { list-style:none; padding:0; margin:0; }
.ai-judge-imps li { font-size:13px; color:var(--text-sub); line-height:1.6; margin-bottom:6px; padding-left:14px; position:relative; }
.ai-judge-imps li::before { content:'•'; position:absolute; left:0; color:var(--gold); }
