/* SkillBench Ramp — brand: Mint #55B184, Cyan #43BBEA, Charcoal #3A3F51,
   Faint Gray #F0ECEC, Melon #EEB6B3. Typeface: Figtree. */

:root {
  --mint: #55B184;
  --cyan: #43BBEA;
  --charcoal: #3A3F51;
  --faint: #F0ECEC;
  --melon: #EEB6B3;
  --ink: #2c3040;
  --paper: #ffffff;
  --soft: #f7f5f4;
  --line: #e6e1e0;
  --grad: linear-gradient(120deg, var(--mint), var(--cyan));
  --radius: 14px;
  --shadow: 0 6px 24px rgba(58, 63, 81, 0.10);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* Ramp is a light UI: pin native controls (selects, scrollbars, range
     tracks) to light so they don't invert on a dark-mode OS. */
  color-scheme: light;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--soft);
}

button { font-family: inherit; }
textarea, input { font-family: inherit; color: var(--charcoal); }

/* ---------------- welcome gate ---------------- */

.gate {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background:
    radial-gradient(560px 280px at 12% -5%, rgba(85,177,132,0.14), transparent 60%),
    radial-gradient(560px 280px at 88% 105%, rgba(67,187,234,0.14), transparent 60%),
    var(--soft);
  padding: 32px 16px;
}

.gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 44px 48px 40px;
  width: min(440px, 92vw);
  text-align: center;
}

.gate-logo { height: 34px; display: block; margin: 0 auto 22px; }

.gate-card h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate-sub { color: #6a6f82; font-size: 15px; line-height: 1.55; margin: 0 0 26px; }

.gate-card form { display: flex; flex-direction: column; gap: 12px; }

.gate-card input {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.gate-error { color: #c0564f; font-size: 13.5px; margin: 2px 0 0; }
.gate-foot { color: #9aa0b2; font-size: 12.5px; letter-spacing: 0.02em; }

/* ---------------- buttons ---------------- */

.btn-primary {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 3px 12px rgba(85, 177, 132, 0.28);
}
.btn-primary:hover { box-shadow: 0 5px 18px rgba(67, 187, 234, 0.34); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: default; box-shadow: none; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--mint);
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- app shell ---------------- */

.app {
  height: calc(100vh - 54px); /* minus the global top nav */
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.user-chip {
  background: var(--faint);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.user-chip .tier { color: #8a90a4; font-weight: 500; }

.meter { display: flex; align-items: center; gap: 7px; }
.meter-label { font-size: 11px; font-weight: 700; color: #9aa0b2; }
.meter-track {
  width: 110px;
  height: 8px;
  background: var(--faint);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.meter-value { font-size: 12.5px; font-weight: 800; color: var(--mint); min-width: 30px; }

/* ---------------- tabs ---------------- */

.tabs { display: flex; gap: 4px; padding: 10px 22px 0; border-bottom: 1px solid var(--line); align-items: center; }

.tabs-right { margin-left: auto; display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }

.tab, .sectab {
  position: relative;
  background: none;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  color: #8a90a4;
  padding: 10px 16px 12px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
}
.tab.active, .sectab.active { color: var(--charcoal); border-image: var(--grad) 1; border-bottom: 2.5px solid var(--mint); }

.nudge-dot {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--melon);
}

/* ---------------- explore / chat ---------------- */

.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.thread {
  flex: 1;
  overflow-y: auto;
  padding: 26px 26px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bot-row { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 30px; height: 30px; margin-top: 2px; flex: none; }

.bubble {
  max-width: 86%;
  border-radius: var(--radius);
  padding: 13px 17px;
  font-size: 15px;
  line-height: 1.62;
}
.bubble p:first-child { margin-top: 0; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 8px 0; padding-left: 22px; }
.bubble li { margin: 3px 0; }
.bubble code {
  background: rgba(58, 63, 81, 0.07);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.bubble h1, .bubble h2, .bubble h3 { font-size: 16px; margin: 12px 0 6px; }
.bubble strong { font-weight: 700; }

.bot-bubble { background: var(--soft); border: 1px solid var(--line); border-top-left-radius: 4px; }

.user-row { display: flex; justify-content: flex-end; }
.user-bubble {
  background: var(--charcoal);
  color: #fff;
  border-top-right-radius: 4px;
}

.msg-tools { margin-top: 8px; display: flex; gap: 10px; }
.flag-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #a8adc0;
  cursor: pointer;
}
.flag-btn:hover { color: var(--melon); }
.flag-form { margin-top: 8px; display: flex; gap: 8px; }
.flag-form input {
  flex: 1;
  border: 1.5px solid var(--melon);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
}
.flag-form button {
  background: var(--melon);
  color: var(--charcoal);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
}
.flag-done { font-size: 12.5px; color: var(--mint); font-weight: 600; margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); opacity: 0.4;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; background: var(--mint); }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }

.nudge-banner {
  margin: 0 26px 10px;
  padding: 11px 16px;
  background: linear-gradient(120deg, rgba(85,177,132,0.10), rgba(67,187,234,0.10));
  border: 1px solid rgba(85,177,132,0.35);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.composer {
  display: flex;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
  align-items: flex-end;
}
.composer textarea {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  max-height: 160px;
  transition: border-color 0.15s ease;
}
.btn-send { padding: 12px 20px; }

/* ---------------- calibrate ---------------- */

#view-calibrate { overflow-y: auto; padding: 28px 30px 40px; display: block; }

.cal-intro h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.cal-intro p { color: #6a6f82; font-size: 15px; line-height: 1.6; max-width: 640px; margin: 0 0 20px; }

#cal-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}

.cal-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cal-status { font-size: 13.5px; color: #8a90a4; font-weight: 600; }

/* report */

.report { margin-top: 30px; }

.report-banner {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.report-banner.pending {
  background: rgba(238, 182, 179, 0.16);
  border: 1px solid rgba(226, 147, 142, 0.45);
}
.report-banner.reviewed {
  background: linear-gradient(120deg, rgba(85,177,132,0.10), rgba(67,187,234,0.10));
  border: 1px solid rgba(85, 177, 132, 0.4);
}

.manager-note {
  border-left: 3.5px solid var(--mint);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.manager-note span { font-weight: 800; color: var(--mint); margin-right: 6px; }

.report-head {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 22px;
}
.dial { flex: none; }
.dial text { font-weight: 800; }
.report-read { font-size: 15px; line-height: 1.6; }

.report-section { margin-bottom: 22px; }
.report-section h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-mint { background: var(--mint); }
.dot-melon { background: #e2938e; }
.dot-cyan { background: var(--cyan); }

.report-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  background: #fff;
}
.report-item.right { border-left: 3.5px solid var(--mint); }
.report-item.gap { border-left: 3.5px solid var(--cyan); }

.correction { border-left: 3.5px solid #e2938e; }
.correction .they-said { color: #8a90a4; font-style: italic; }
.correction .fix { margin-top: 6px; }
.correction .why { margin-top: 6px; font-size: 13.5px; color: #6a6f82; }
.correction .why::before { content: "Why it matters: "; font-weight: 700; color: var(--charcoal); }

.next-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- scrollbars ---------------- */

.thread::-webkit-scrollbar, #view-calibrate::-webkit-scrollbar { width: 10px; }
.thread::-webkit-scrollbar-thumb, #view-calibrate::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

@media (max-width: 700px) {
  .meter { display: none; }
  .bubble { max-width: 94%; }
  .app { border: none; }
}


/* ==================================================================
   SHARED UI SYSTEM
   One set of tokens and components for every Ramp surface (home,
   manager, admin). A page's own <style> block should only describe what
   is genuinely unique to that page — anything shaped like a panel,
   badge, table, button, gauge, form control, or list row lives here so
   the three surfaces cannot drift apart again.
   ================================================================== */

/* ---------------- extra semantic tokens ---------------- */

:root {
  --dim: #8a90a4;        /* muted text */
  --dimmer: #9aa0b2;     /* hints, placeholders */
  --amber-ink: #96690a;  /* "needs attention" text — readable on light */
  --rose-ink: #b0605a;   /* melon, as text */
  --danger: #c0564f;
  --focus: #2A8CB4;      /* 3.8:1 on white — brand cyan itself is only 2.2:1 */
}

/* Focus indicator, shared by every control. Grouped rather than repeated so a
   control added later cannot quietly fall back to a low-contrast border.

   An outline, not border-color: every control's base rule sets the `border`
   shorthand with a var() in it, which becomes a pending-substitution value and
   clobbers a border-color longhand from this rule even though this rule wins
   the cascade. The outline also doesn't shift layout. */
.gate-card input:focus,
.composer textarea:focus,
#cal-form textarea:focus,
.page input:not([type="range"]):focus,
.page select:focus,
.page textarea:focus,
.page input[type="range"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

/* ---------------- page shell ---------------- */

.page { max-width: 1240px; margin: 0 auto; padding: 26px 30px 80px; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 5px; }
.page-head p { color: #6a6f82; font-size: 14px; line-height: 1.55; max-width: 76ch; margin: 0; }
.page-head p strong { color: var(--charcoal); font-weight: 700; }

/* ---------------- section tabs ----------------
   The global nav owns the pill tabs (surface level); page sections use
   the underline tabs, so the two levels never read as siblings. */

.sectabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}

.sectab-count {
  display: inline-block;
  margin-left: 7px;
  background: rgba(214, 158, 42, 0.22);
  color: var(--amber-ink);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: 1px;
}
.sectab.active .sectab-count { background: rgba(85, 177, 132, 0.18); color: #3d8a63; }

/* ---------------- panels ---------------- */

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.panel-lg { border-radius: 16px; padding: 24px 26px; }
.panel-pick { cursor: pointer; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.panel-pick:hover { border-color: var(--cyan); }
.panel-pick.selected { border-color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint); }

.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------------- section headings ---------------- */

.section + .section { margin-top: 32px; }

.section-h {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.section-h .note {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--dimmer);
}

/* ---------------- tables ----------------
   Always inside .table-wrap: wide admin tables scroll in their own box
   instead of forcing the page to scroll sideways. */

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.data-table th {
  text-align: left;
  background: var(--soft);
  color: var(--dim);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--faint); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: var(--soft); }
.data-table tr.inactive td { opacity: 0.5; }

/* ---------------- badges — one system ----------------
   Every status pill on every surface resolves to one of these five, so
   "awaiting review" looks the same to a manager and to an admin. */

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.badge-mint  { background: rgba(85, 177, 132, 0.16);  color: #3d8a63; }
.badge-cyan  { background: rgba(67, 187, 234, 0.16);  color: #2a8cb4; }
.badge-amber { background: rgba(214, 158, 42, 0.20);  color: var(--amber-ink); }
.badge-melon { background: rgba(238, 182, 179, 0.30); color: var(--rose-ink); }
.badge-gray  { background: rgba(154, 160, 178, 0.18); color: var(--dim); }

/* ---------------- score gauge ---------------- */

.gauge { display: flex; align-items: center; gap: 8px; min-width: 118px; }
.gauge-track { flex: 1; height: 6px; background: var(--faint); border-radius: 999px; overflow: hidden; }
.gauge-fill { height: 100%; background: var(--grad); border-radius: 999px; }
.gauge-num { font-weight: 800; color: var(--mint); font-size: 13px; min-width: 34px; }

.score { color: var(--mint); font-weight: 800; }

/* ---------------- buttons ---------------- */

.btn-ghost, .btn-mini, .btn-dashed, .btn-icon { font-family: inherit; cursor: pointer; }

.btn-primary.btn-sm { padding: 10px 17px; font-size: 14px; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: #6a6f82;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13.5px;
}
.btn-ghost:hover { color: var(--charcoal); border-color: var(--dim); }

.btn-mini {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: #6a6f82;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
}
.btn-mini:hover { color: var(--charcoal); border-color: var(--dim); }

.btn-dashed {
  background: none;
  border: 1.5px dashed var(--line);
  color: var(--dim);
  font-weight: 700;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
}
.btn-dashed:hover { color: var(--mint); border-color: var(--mint); }

.btn-icon {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--dimmer);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 15px;
  line-height: 1;
  flex: none;
}
.btn-icon:hover { color: var(--danger); border-color: var(--melon); }

.back-btn {
  background: none;
  border: none;
  color: var(--dim);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  font-family: inherit;
}
.back-btn:hover { color: var(--charcoal); }

/* ---------------- form controls ----------------
   Scoped to .page so every control on a dashboard matches by default —
   including ones added later, which is how the drift started. */

.page input:not([type="range"]),
.page select,
.page textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s ease;
}
.page textarea { line-height: 1.55; resize: vertical; }/* The score slider is styled rather than left native, so its track reads as
   the same component as .gauge-track. */
.page input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--faint);
  accent-color: var(--mint);
}
.page input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 5px rgba(58, 63, 81, 0.35);
  cursor: pointer;
}
.page input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--paper);
  cursor: pointer;
}

.page .input-sm { padding: 6px 9px; font-size: 13px; border-radius: 8px; max-width: 150px; }

/* ---------------- list rows ---------------- */

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--faint);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.list-row:first-child { border-top: none; }
.list-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------------- small utilities ---------------- */

.muted { color: var(--dim); }
.attention { color: var(--amber-ink); font-weight: 700; }

.empty { color: var(--dim); font-size: 14px; padding: 18px 2px; line-height: 1.55; }
td.empty { text-align: center; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type="search"] { flex: 1; min-width: 220px; }

.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 1020px) { .split { grid-template-columns: 1fr; } }

.note-callout {
  background: linear-gradient(120deg, rgba(85, 177, 132, 0.09), rgba(67, 187, 234, 0.09));
  border: 1px solid rgba(85, 177, 132, 0.35);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.55;
}
.note-callout strong { color: var(--mint); }

.chip.active { border-color: var(--mint); color: var(--mint); background: rgba(85, 177, 132, 0.09); }

/* ---------------- right-side drawer ---------------- */

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(30, 34, 48, 0.45);
  display: flex;
  justify-content: flex-end;
  z-index: 70;
}
.drawer-panel {
  width: min(760px, 96vw);
  height: 100%;
  overflow-y: auto;
  background: var(--soft);
  border-left: 1px solid var(--line);
  padding: 24px 28px 60px;
}
.drawer-panel h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.drawer-panel > .sub { color: var(--dim); font-size: 13px; margin-bottom: 20px; }
.drawer-panel .section-h { margin-top: 26px; }

/* ---------------- review editor ----------------
   The manager's correction form. Lives here rather than in review.html
   because it is a first-class Ramp component. */

.ed-section { margin-bottom: 22px; }
.ed-section > h3 {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-hint { font-size: 12.5px; color: var(--dimmer); margin: 0 0 10px; line-height: 1.5; }
.ed-item { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.ed-item textarea, .ed-item input[type="text"] { flex: 1; }

.ed-corr {
  flex: 1;
  border: 1px solid var(--line);
  border-left: 3.5px solid #e2938e;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ed-corr label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dump {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 22px;
}

.score-row { display: flex; align-items: center; gap: 14px; }
.score-row input[type="range"] { flex: 1; }
.score-out { font-weight: 800; font-size: 20px; color: var(--mint); min-width: 56px; }

.submit-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.form-status { font-size: 13.5px; color: var(--dim); font-weight: 600; }
