/* ===================================================================
   Online Coding Examination Platform — “CodeExam”
   Design system: LeetCode-style dark IDE, applied to EVERY panel
   (student, admin, auth, exam). One stylesheet, one look.
   =================================================================== */

:root {
  /* Surfaces */
  --bg:        #0e1117;   /* page */
  --panel:     #161a22;   /* cards / sidebar / bars */
  --raise:     #1d2230;   /* inputs, chips, hovers */
  --raise-2:   #252b3b;   /* stronger hover */
  --line:      #262c3a;   /* borders */

  /* Ink */
  --ink:       #e8ebf2;
  --ink-2:     #9aa3b5;
  --ink-3:     #6b7386;
  --mono:      #cfd6e4;

  /* Brand + semantic (LeetCode-ish) */
  --brand:     #ffa116;   /* LeetCode orange — logo + highlights */
  --blue:      #3b82f6;
  --ok:        #2cbb5d;   --ok-2:  #4ade80;  --ok-bg:  rgba(44,187,93,.13);  --ok-bd:  rgba(44,187,93,.4);
  --bad:       #ef4444;   --bad-2: #f87171;  --bad-bg: rgba(239,68,68,.12);  --bad-bd: rgba(239,68,68,.4);
  --warn:      #f59e0b;   --warn-2:#fbbf24;  --warn-bg:rgba(245,158,11,.12); --warn-bd:rgba(245,158,11,.4);
  --info:      #60a5fa;   --info-bg:rgba(59,130,246,.13); --info-bd:rgba(59,130,246,.4);

  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);

  /* Exam IDE aliases (kept for the exam page styles below) */
  --ide-bg: var(--bg); --ide-panel: var(--panel); --ide-raise: var(--raise);
  --ide-line: var(--line); --ide-ink: var(--ink); --ide-ink-2: var(--ink-2);
  --ide-mono: var(--mono); --ide-green: var(--ok); --ide-green-2: var(--ok-2);
  --ide-red: var(--bad); --ide-red-2: var(--bad-2);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--info); text-decoration: none; transition: color .15s; }
a:hover { color: #93c5fd; }

::selection { background: rgba(255,161,22,.3); }

/* ===================================================================
   Generic top bar (used by the exam page)
   =================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: 0 22px; gap: 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.topbar .brand span { color: var(--brand); }
.topbar nav { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.topbar .who { color: var(--ink-2); font-size: .85rem; }
.topbar .who strong { color: var(--ink); }

/* ===================================================================
   App shell — left sidebar + main column
   =================================================================== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 18px 14px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.side-logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); padding: 6px 12px 16px; letter-spacing: .2px; }
.side-logo span { color: var(--brand); }
.side-nav { flex: 1; overflow-y: auto; }
.nav-group {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); margin: 18px 12px 6px; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; margin: 2px 0; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 600; font-size: .9rem;
  border: 1px solid transparent;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--raise); color: var(--ink); }
.nav-item.active { background: var(--raise); color: var(--ink); border-color: var(--line); }
.nav-item.active .ni-icon { color: var(--brand); }
.ni-icon { width: 20px; text-align: center; color: var(--ink-3); font-size: .95rem; }
.side-foot { padding: 12px; color: var(--ink-3); font-size: .74rem; text-align: center; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mainbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: 62px; padding: 0 26px;
  background: rgba(14,17,23,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.mainbar-title { font-weight: 700; font-size: 1rem; flex: 1; color: var(--ink); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .82rem;
  color: #1a1200; background: var(--brand);
}
.user-meta .u-name { font-weight: 700; font-size: .86rem; line-height: 1.15; color: var(--ink); }
.user-meta .u-sub { color: var(--ink-3); font-size: .74rem; }
.main-body { padding: 0; }
.main-body .container { margin-top: 26px; margin-bottom: 10px; }

/* ===================================================================
   Layout primitives
   =================================================================== */
.container { max-width: 1120px; margin: 30px auto; padding: 0 22px; position: relative; }
.container.wide { max-width: 1400px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card h2, .card h3 { margin-top: 0; color: var(--ink); }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px){ .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

h1 { font-size: 1.55rem; margin: 0 0 6px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.subtitle { color: var(--ink-2); margin: 0 0 22px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }

/* Stat tiles */
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat .num { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.stat .lbl { color: var(--ink-3); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* Welcome banner */
.welcome {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--panel) 60%, #1c1f2c 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px; margin-bottom: 22px;
}
.welcome::after {
  content: ""; position: absolute; top: -60px; right: -40px; width: 260px; height: 260px;
  background: radial-gradient(closest-side, rgba(255,161,22,.14), transparent);
  pointer-events: none;
}
.welcome h1 { font-size: 1.8rem; margin: 0 0 6px; }
.welcome h1 .accent { color: var(--brand); }
.welcome p { color: var(--ink-2); margin: 0 0 16px; }

/* Activity cards */
.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px){ .activity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .activity-grid { grid-template-columns: 1fr; } }
.act-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.act-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--raise); border: 1px solid var(--line); color: var(--brand);
}
.act-card .lbl { color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.act-card .num { font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: var(--ink); }

.empty-state { text-align: center; padding: 30px 20px; color: var(--ink-3); }
.empty-state .big { font-size: 2rem; opacity: .7; }

/* ===================================================================
   Forms
   =================================================================== */
label { display: block; font-weight: 600; font-size: .88rem; margin: 15px 0 6px; color: var(--ink-2); }
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; padding: 10px 13px;
  color: var(--ink);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .93rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 96px; resize: vertical; }
select option { color: #14161b; background: #fff; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 160px; }

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: #10131a; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: .9rem; font-weight: 700; font-family: inherit;
  background: #f3f4f6;
  transition: background .15s, color .15s, filter .15s;
  white-space: nowrap;
}
.btn:hover { background: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: var(--raise); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--raise-2); }
.btn.ok     { background: var(--ok); color: #fff; }
.btn.ok:hover { filter: brightness(1.12); background: var(--ok); }
.btn.danger { background: transparent; color: var(--bad-2); border-color: var(--bad-bd); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 6px 11px; font-size: .8rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ===================================================================
   Tables
   =================================================================== */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th {
  background: transparent; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-3);
}
td { color: var(--ink-2); }
td strong { color: var(--ink); }
tr:hover td { background: rgba(255,255,255,.025); }

/* ===================================================================
   Badges & alerts
   =================================================================== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
  background: var(--raise); color: var(--ink-2); border: 1px solid var(--line);
}
.badge.ok    { background: var(--ok-bg);   color: var(--ok-2);   border-color: var(--ok-bd); }
.badge.bad   { background: var(--bad-bg);  color: var(--bad-2);  border-color: var(--bad-bd); }
.badge.warn  { background: var(--warn-bg); color: var(--warn-2); border-color: var(--warn-bd); }
.badge.info  { background: var(--info-bg); color: var(--info);   border-color: var(--info-bd); }
.badge.gray  { background: var(--raise);   color: var(--ink-2);  border-color: var(--line); }

.alert {
  padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: .9rem; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
}
.alert.ok   { background: var(--ok-bg);   color: var(--ok-2);   border-color: var(--ok-bd); }
.alert.bad  { background: var(--bad-bg);  color: var(--bad-2);  border-color: var(--bad-bd); }
.alert.info { background: var(--info-bg); color: var(--info);   border-color: var(--info-bd); }
.alert.warn { background: var(--warn-bg); color: var(--warn-2); border-color: var(--warn-bd); }

/* ===================================================================
   Auth pages
   =================================================================== */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card h1 { text-align: center; }
.auth-card .subtitle { text-align: center; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 20px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: .88rem; color: var(--ink-2); }

/* ===================================================================
   Code / output blocks
   =================================================================== */
pre.output, pre.code {
  background: var(--bg); color: var(--mono); padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  overflow: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .84rem; white-space: pre-wrap; word-break: break-word; max-height: 320px;
}
details summary { cursor: pointer; color: var(--info); font-weight: 600; }

/* ===================================================================
   Modal
   =================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(5,7,12,.72);
  display: none; place-items: center; z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-backdrop.show { display: grid; }
.modal {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px; max-width: 460px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); color: var(--ink);
}
.modal h2 { margin-top: 0; }
.modal p { color: var(--ink-2); }
.modal .big-warn { font-size: 2.5rem; }

footer.site { text-align: center; color: var(--ink-3); font-size: .8rem; padding: 24px; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c3344; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a4358; }
::-webkit-scrollbar-track { background: transparent; }

/* Responsive sidebar (off-canvas on small screens) */
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 100;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: block; }
}

/* ===================================================================
   Exam-taking interface — the IDE. Same tokens, denser chrome.
   =================================================================== */
body.exam-mode { background: var(--bg); }

.exam-topbar { gap: 14px; }
.exam-topbar .brand {
  display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden;
}
.exam-topbar .brand .brand-sep { color: var(--line); }
.exam-topbar .brand .brand-title {
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timer {
  font-weight: 800; font-size: 1rem; padding: 6px 14px; border-radius: 10px;
  background: var(--raise); color: var(--ink); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.timer.danger { background: var(--bad); border-color: var(--bad); color: #fff; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.2); } }

/* Shell: problem panel | splitter | editor column */
.exam-shell { display: flex; height: calc(100vh - 62px); overflow: hidden; }
.exam-left {
  width: 420px; min-width: 280px; flex-shrink: 0; overflow-y: auto; overflow-x: hidden;
  padding: 20px 22px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.splitter { width: 5px; flex-shrink: 0; cursor: col-resize; background: var(--bg); transition: background .15s; }
.splitter:hover, .splitter.dragging { background: var(--blue); }
.exam-right { flex: 1; min-width: 320px; display: flex; flex-direction: column; height: 100%; background: var(--bg); }
.exam-shell.editor-max .exam-left,
.exam-shell.editor-max .splitter { display: none; }

/* Problem panel */
.exam-left h2 { color: var(--ink); font-size: 1.25rem; margin: 0 0 4px; }
.exam-left h3 { color: var(--ink); font-size: .95rem; margin: 20px 0 8px; }
.exam-left .muted, .exam-left .small { color: var(--ink-2); }
.q-marks {
  display: inline-block; margin: 2px 0 12px; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; color: var(--info);
  background: var(--info-bg); border: 1px solid var(--info-bd);
}
.q-statement { white-space: pre-wrap; color: var(--mono); line-height: 1.65; font-size: .93rem; }

.q-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.q-nav button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--raise); color: var(--ink-2); cursor: pointer; font-weight: 700;
  transition: background .15s, color .15s;
}
.q-nav button:hover { color: var(--ink); background: var(--raise-2); }
.q-nav button.active { background: #fff; color: #10131a; border-color: transparent; }
.q-nav button.done { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-2); }
.q-nav button.done.active { background: var(--ok); color: #fff; }

/* Example / test-case blocks */
.case {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin: 10px 0; background: var(--bg);
}
.case > .small { color: var(--ink-2); font-weight: 700; margin-bottom: 2px; }
.case .io-label { color: var(--ink-3); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }
.case .io {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84rem;
  white-space: pre-wrap; word-break: break-word;
  background: var(--raise); color: var(--mono);
  padding: 7px 10px; border-radius: 7px; margin-top: 4px;
  border: 1px solid var(--line);
}

/* Editor toolbar */
.editor-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; row-gap: 8px;
  padding: 10px 14px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.editor-bar .spacer { flex: 1; min-width: 8px; }

.lc-select {
  width: auto; min-width: 110px; padding: 7px 10px; font-weight: 600; font-size: .86rem;
  background: var(--raise); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}

.icon-btn {
  background: transparent; color: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 11px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--raise); color: var(--ink); }

.lc-btn {
  border: none; border-radius: var(--radius-sm); padding: 8px 16px; font-size: .86rem; font-weight: 700;
  cursor: pointer; font-family: inherit; color: #fff; white-space: nowrap;
  transition: filter .15s, background .15s;
}
.lc-btn:disabled { opacity: .55; cursor: wait; }
.lc-btn.run    { background: var(--raise); color: var(--ink); border: 1px solid var(--line); }
.lc-btn.run:hover { background: var(--raise-2); }
.lc-btn.submit { background: var(--ok); }
.lc-btn.submit:hover { filter: brightness(1.12); }
.lc-btn.ghost  { background: transparent; color: var(--ink-2); padding: 8px 10px; border: 1px solid transparent; }
.lc-btn.ghost:hover { background: var(--raise); color: var(--ink); }

/* Settings dropdown */
.settings-wrap { position: relative; }
.settings-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; width: 232px; box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.settings-menu.show { display: block; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 4px; }
.set-row label { margin: 0; color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.set-row select {
  width: 112px; padding: 5px 8px; background: var(--raise); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px;
}

/* Editor + console column */
#editor { flex: 1 1 auto; min-height: 120px; }

.console-wrap {
  display: flex; flex-direction: column; height: 250px; min-height: 130px; flex-shrink: 0;
  border-top: 1px solid var(--line); background: var(--bg);
}
.console-tabs { display: flex; gap: 2px; padding: 6px 12px 0; flex-shrink: 0; }
.ctab {
  background: transparent; border: none; color: var(--ink-2); cursor: pointer;
  padding: 8px 14px; font-size: .82rem; font-weight: 700; font-family: inherit;
  border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent;
}
.ctab:hover { color: var(--ink); }
.ctab.active { color: var(--ink); border-bottom-color: var(--brand); }
.console-body { flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid var(--line); }
.console {
  background: var(--bg); color: var(--mono); height: 100%; overflow: auto;
  padding: 12px 16px; box-sizing: border-box;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem; white-space: pre-wrap; margin: 0;
}

/* Custom-input pane */
#custom-pane { display: flex; flex-direction: column; gap: 8px; white-space: normal; }
#custom-pane .hint { color: var(--ink-2); font-size: .8rem; flex-shrink: 0; }
#custom-input {
  width: 100%; height: 64px; flex-shrink: 0; resize: none;
  background: var(--raise); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: ui-monospace, monospace; font-size: .85rem; padding: 8px 10px;
  min-height: 0;
}
#custom-input:focus { outline: none; border-color: var(--blue); box-shadow: none; }
.custom-output {
  margin: 0; color: var(--mono); font-family: ui-monospace, monospace; font-size: .85rem;
  white-space: pre-wrap; overflow: auto; flex: 1; min-height: 0;
}

/* Rich run/submit results */
.res-head { font-weight: 800; font-size: .98rem; margin-bottom: 10px; color: var(--ink); }
.res-head.ok  { color: var(--ok-2); }
.res-head.bad { color: var(--bad-2); }
.res-head .res-sub { color: var(--ink-2); font-weight: 600; font-size: .82rem; margin-left: 8px; }
.res-case {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; background: var(--panel);
}
.res-case .rc-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .86rem; }
.res-case.pass .rc-top .rc-name { color: var(--ok-2); }
.res-case.fail .rc-top .rc-name { color: var(--bad-2); }
.res-case .rc-top .rc-marks { color: var(--ink-2); font-weight: 600; }
.rc-io { display: grid; grid-template-columns: 82px 1fr; gap: 5px 10px; margin-top: 8px; font-size: .82rem; align-items: start; }
.rc-io .k { color: var(--ink-2); font-weight: 600; padding-top: 5px; }
.rc-io .v {
  white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, monospace;
  color: var(--mono); background: var(--raise); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 9px; min-width: 0;
}
.rc-io .v.diff-bad { border-color: var(--bad-bd); }
