/* ==========================================================================
   鲁迅中学OJ系统 —— 设计系统
   明/暗双主题（prefers-color-scheme），全部用 CSS 变量驱动
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg: #f6f7f9;
  --bg-glow: radial-gradient(900px 420px at 50% -180px, #e8eefc 0%, rgba(246, 247, 249, 0) 72%);
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f4f7;
  --line: #e8eaef;
  --line-2: #dcdfe6;
  --ink: #14181f;
  --ink-2: #414958;
  --muted: #6f7787;

  --accent: #3b5bfd;
  --accent-ink: #2b46d6;
  --accent-soft: #eef1ff;
  --accent-line: #cfd8ff;

  --ok: #157347;
  --ok-soft: #e9f7f0;
  --ok-line: #c2e7d5;
  --warn: #8a5a00;
  --warn-soft: #fdf4e2;
  --warn-line: #f1ddb6;
  --bad: #b3261e;
  --bad-soft: #fdeeec;
  --bad-line: #f4cbc6;

  --code-bg: #0e1116;
  --code-bg-2: #131820;
  --code-ink: #e6edf3;
  --code-muted: #7d8798;
  --code-line: #232a35;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 10px 30px -14px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-3: 0 24px 60px -24px rgba(16, 24, 40, .34);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code",
    Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-glow: radial-gradient(900px 420px at 50% -200px, #15203a 0%, rgba(11, 13, 18, 0) 70%);
    --surface: #12151c;
    --surface-2: #171b23;
    --surface-3: #1c212b;
    --line: #242a35;
    --line-2: #2f3644;
    --ink: #e8ecf3;
    --ink-2: #b6becd;
    --muted: #8b93a3;

    --accent: #7b93ff;
    --accent-ink: #a9b8ff;
    --accent-soft: #1a2036;
    --accent-line: #2b3760;

    --ok: #56d19a;
    --ok-soft: #12251c;
    --ok-line: #21473a;
    --warn: #e3b464;
    --warn-soft: #272012;
    --warn-line: #4a3a1c;
    --bad: #ff8f85;
    --bad-soft: #2a1716;
    --bad-line: #4d2621;

    --code-bg: #0f141d;
    --code-bg-2: #151b26;
    --code-ink: #dce5ef;
    --code-muted: #7b8798;
    --code-line: #2a3341;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 12px 32px -16px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .4);
    --shadow-3: 0 28px 64px -28px rgba(0, 0, 0, .9);
  }
}

/* ---------------------------------------------------------------- 基础 */
[hidden] { display: none !important; }

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

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: var(--bg-glow);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 15px/1.65 var(--font);
  font-feature-settings: "cv02", "cv03", "cv04";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

h1, h2, h3 { letter-spacing: -.018em; line-height: 1.25; }

::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- 顶部栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 650;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #8b5cf6));
  color: #fff;
  font: 700 11px/1 var(--mono);
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.brand-sub { color: var(--muted); font-weight: 500; }

.topbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  padding: 7px 11px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }

/* 用户徽标 */
.who {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2);
  padding-left: 6px;
}
.who .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 600; font-size: 12.5px;
  border: 1px solid var(--accent-line);
}
.who .who-text { display: flex; flex-direction: column; line-height: 1.2; }
.who .who-name { color: var(--ink); font-weight: 600; font-size: 13px; }
.who .who-no { color: var(--muted); font-size: 11.5px; font-family: var(--mono); }

/* ---------------------------------------------------------------- 布局 */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.shell.narrow { max-width: 880px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- 首页 hero */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0 30px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
}
.hero h1 .accent { color: var(--accent); }
.hero p { margin: 0; max-width: 56ch; color: var(--muted); font-size: 14.5px; }

.hero-stats {
  display: flex; gap: 28px; flex-shrink: 0;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v {
  font: 700 22px/1.1 var(--font);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat .k { font-size: 12px; color: var(--muted); }

.progress {
  margin: 0 0 26px;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress > i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7c8cff);
  transition: width .6s var(--ease);
}

/* ---------------------------------------------------------------- 题目卡片 */
.cards { display: grid; gap: 10px; }

.card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    border-color .18s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  color: inherit;
}
.card-idx {
  font: 600 12.5px var(--mono);
  color: var(--muted);
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.card-main { flex: 1; min-width: 0; }
.card-title {
  font-weight: 600; font-size: 16px;
  display: flex; align-items: center; gap: 9px;
}
.card-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.chevron { color: var(--muted); opacity: 0; transform: translateX(-4px); transition: .18s var(--ease); }
.card:hover .chevron { opacity: 1; transform: translateX(0); }

/* ---------------------------------------------------------------- 徽标 / 状态 */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 550;
  white-space: nowrap;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.pill.neutral { background: var(--surface-3); color: var(--muted); border-color: var(--line); }
.pill.info { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- 登录 */
.login-wrap { display: grid; place-items: center; min-height: 64dvh; padding: 20px 0; }

.login-card {
  width: 100%;
  max-width: 442px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-3);
}
.login-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-line);
  margin-bottom: 16px;
}
.login-card h2 { margin: 0 0 6px; font-size: 20px; }
.login-card .lead { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }

.login-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.field input {
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: 14px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.form-error { grid-column: 1 / -1; color: var(--bad); font-size: 13px; min-height: 1px; }
.form-error:empty { display: none; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  --btn-bg: var(--surface);
  --btn-bg-hover: var(--surface-2);
  --btn-ink: var(--ink);
  --btn-line: var(--line-2);
  --btn-line-hover: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 550 13.5px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease),
    transform .12s var(--ease), box-shadow .16s var(--ease), opacity .16s;
}
.btn:hover:not(:disabled) {
  background: var(--btn-bg-hover);
  border-color: var(--btn-line-hover);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  --btn-bg: var(--accent);
  --btn-bg-hover: var(--accent-ink);
  --btn-ink: #fff;
  --btn-line: var(--accent);
  --btn-line-hover: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn.lg { height: 44px; font-size: 14.5px; padding: 0 22px; width: 100%; }
.btn.ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--surface-3);
  --btn-line: transparent;
  --btn-line-hover: transparent;
  --btn-ink: var(--muted);
}
.btn.ghost:hover:not(:disabled) { color: var(--ink); }
.btn kbd {
  font: 500 10.5px/1 var(--mono);
  padding: 3px 5px; border-radius: 5px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  opacity: .85;
}

/* ---------------------------------------------------------------- 工作台（题目页） */
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.crumbs a:hover { color: var(--ink); text-decoration: none; }

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 1000px) {
  .workbench { grid-template-columns: 1fr; }
}

.paper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-1);
}
.paper h1 { margin: 0 0 10px; font-size: 23px; font-weight: 680; }
.paper .meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.paper .statement {
  word-break: break-word;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}
.statement p { margin: 0 0 12px; }
.statement p:last-child { margin-bottom: 0; }
.statement strong { color: var(--ink); font-weight: 650; }
.statement em { font-style: italic; }
.statement .md-h { margin: 20px 0 8px; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.statement .md-list { margin: 0 0 12px; padding-left: 22px; }
.statement .md-list li { margin: 3px 0; }
.statement code {
  font: 12.5px var(--mono);
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px;
  color: var(--ink);
}
.statement pre.md-code {
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  overflow-x: auto;
}
.statement pre.md-code code {
  background: none; border: 0; padding: 0;
  color: var(--code-ink);
  font: 12.5px/1.7 var(--mono);
}
.statement .md-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.statement a { text-decoration: underline; text-underline-offset: 2px; }
.statement .md-img-missing {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  font: 12.5px var(--mono);
  background: var(--surface-2);
}
.paper h3 {
  font-size: 12px; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  margin: 26px 0 10px;
}

/* 样例块 */
.sample {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--surface-2);
}
.sample-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em;
}
.sample-io { display: grid; grid-template-columns: 1fr 1fr; }
.sample-io > div { padding: 10px 14px; min-width: 0; }
.sample-io > div + div { border-left: 1px solid var(--line); }
.sample-io .k { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.sample-io pre {
  margin: 0;
  font: 12.5px/1.7 var(--mono);
  white-space: pre-wrap; word-break: break-all;
  color: var(--ink);
}

/* ---------------------------------------------------------------- 编辑器 */
.editor {
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.editor-head {
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  height: 44px;
  background: var(--code-bg-2);
  border-bottom: 1px solid var(--code-line);
}
.editor-file {
  display: inline-flex; align-items: center; gap: 7px;
  font: 550 12.5px var(--mono);
  color: var(--code-ink);
  opacity: .92;
}
.editor-file .lang {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 5px;
  background: color-mix(in srgb, #f7c948 18%, transparent);
  color: #f2d06b;
}
.editor-tools {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font: 11.5px var(--mono); color: var(--code-muted);
}
.tool-btn {
  appearance: none; border: 0; cursor: pointer;
  background: transparent; color: var(--code-muted);
  font: 11.5px var(--font);
  padding: 5px 8px; border-radius: 6px;
  transition: background .14s, color .14s;
}
.tool-btn:hover { background: color-mix(in srgb, #fff 8%, transparent); color: var(--code-ink); }

.editor-body {
  padding: 14px 0;
  font: 13.5px/2 var(--mono);
  color: var(--code-ink);
  overflow-x: auto;
}
.cl { display: flex; min-height: 2em; }
.cl:hover { background: color-mix(in srgb, #fff 3%, transparent); }
.ln {
  flex: 0 0 46px;
  text-align: right;
  padding-right: 16px;
  color: var(--code-muted);
  opacity: .55;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.lc { flex: 1; white-space: pre; padding-right: 18px; min-width: 0; }

/* 语法高亮 —— 自己写词法分析出的 token */
.tok-kw { color: #ff7b72; }
.tok-str { color: #7ee787; }
.tok-num { color: #79c0ff; }
.tok-bi { color: #79c0ff; }
.tok-fn { color: #d2a8ff; }
.tok-com { color: #8b949e; font-style: italic; }
.tok-op { color: #a5b3c9; }

/* 空格输入框：琥珀色 = 待填，绿色 = 已填 */
.blank {
  font: inherit;
  font-size: 13px;
  height: 1.9em;
  line-height: 1.6;
  padding: 0 7px;
  margin: 0 1px;
  min-width: 2.5ch;
  vertical-align: baseline;
  color: #ffe9a8;
  background: rgba(245, 158, 11, .13);
  border: 1px solid rgba(245, 158, 11, .45);
  border-bottom-width: 2px;
  border-radius: 6px;
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
  caret-color: #fbbf24;
}
.blank::placeholder { color: rgba(251, 191, 36, .5); font-weight: 700; }
.blank:hover { background: rgba(245, 158, 11, .2); }
.blank:focus {
  outline: none;
  background: rgba(59, 91, 253, .16);
  border-color: #7b93ff;
  color: #dfe6ff;
  box-shadow: 0 0 0 3px rgba(99, 122, 255, .22);
}
.blank.filled {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .5);
  color: #b9f6d0;
}
.blank.missing {
  background: rgba(239, 68, 68, .18);
  border-color: #ef4444;
  color: #ffd0cb;
  animation: nudge .2s 2;
}
@keyframes nudge {
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.editor-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--code-bg-2);
  border-top: 1px solid var(--code-line);
}
.editor-foot .hint {
  margin-left: auto; font-size: 11.5px; color: var(--code-muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.editor-foot .hint kbd {
  font: 10.5px var(--mono);
  padding: 2px 5px; border-radius: 4px;
  background: color-mix(in srgb, #fff 8%, transparent);
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.btn.on-dark {
  --btn-bg: rgba(255, 255, 255, .07);
  --btn-bg-hover: rgba(255, 255, 255, .14);
  --btn-line: rgba(255, 255, 255, .14);
  --btn-line-hover: rgba(255, 255, 255, .22);
  --btn-ink: var(--code-ink);
}
.btn.ghost.on-dark {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, .08);
  --btn-line: transparent;
  --btn-line-hover: transparent;
}
.btn.primary.on-dark {
  --btn-bg: #3b5bfd;
  --btn-bg-hover: #2b46d6;
  --btn-line: #3b5bfd;
  --btn-line-hover: #2b46d6;
  --btn-ink: #fff;
}

/* ---------------------------------------------------------------- 判题结果 */
.result { margin-top: 18px; }
.result:empty { display: none; }

.verdict-bar {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.verdict-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.verdict-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.verdict-text b { font-size: 15px; letter-spacing: -.01em; }
.verdict-text span { font-size: 12.5px; color: var(--muted); }
.verdict-score {
  margin-left: auto; text-align: right; font-variant-numeric: tabular-nums;
}
.verdict-score b { font-size: 19px; letter-spacing: -.02em; }
.verdict-score span { display: block; font-size: 11.5px; color: var(--muted); }

.v-AC .verdict-icon { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.v-WA .verdict-icon { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line); }
.v-CE .verdict-icon, .v-RE .verdict-icon, .v-DENIED .verdict-icon {
  background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line);
}
.v-TLE .verdict-icon, .v-MLE .verdict-icon, .v-OLE .verdict-icon {
  background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line);
}

.cases { display: grid; gap: 7px; margin-top: 12px; }
.case {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
}
.case-name { font: 12px var(--mono); color: var(--muted); min-width: 88px; }
.case-ms { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); }
.case details { flex-basis: 100%; }
.case summary {
  cursor: pointer; font-size: 12.5px; color: var(--muted);
  padding: 3px 0; list-style: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.case summary::-webkit-details-marker { display: none; }
.case summary::before {
  content: "";
  width: 0; height: 0;
  border-left: 4.5px solid currentColor;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  transition: transform .16s var(--ease);
}
.case details[open] summary::before { transform: rotate(90deg); }
.case summary:hover { color: var(--ink); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 8px; }
.kv .k { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.kv pre {
  margin: 0; padding: 9px 11px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 12px/1.65 var(--mono);
  white-space: pre-wrap; word-break: break-all;
  max-height: 170px; overflow: auto;
  color: var(--ink-2);
}

pre.err {
  margin: 12px 0 0;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  color: #ffb4a8;
  border: 1px solid var(--bad-line);
  font: 12.5px/1.75 var(--mono);
  white-space: pre-wrap;
  max-height: 300px;
  overflow: auto;
}

.answers {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.answers h3 {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-ink);
}
.answer-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 7px 0; }
.answer-row .k { font: 12px var(--mono); color: var(--muted); }
.answer-row code {
  font: 12.5px var(--mono);
  padding: 3px 9px; border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  color: var(--ink);
}

/* ---------------------------------------------------------------- 报告页 */
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 680; }

.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: auto;
}
table.report { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.report th, table.report td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
table.report thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2);
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: .01em;
  border-bottom: 1px solid var(--line-2);
}
table.report th:first-child, table.report td:first-child { text-align: left; }
table.report thead th:first-child {
  position: sticky; top: 0; left: 0; z-index: 3;
  background: var(--surface-2);
}
table.report thead th { z-index: 2; }
table.report tbody tr:hover td { background: var(--surface-2); }
table.report tbody tr:last-child td { border-bottom: 0; }
table.report td.ac { color: var(--ok); font-weight: 700; font-size: 15px; }
table.report td.tried { color: var(--warn); font-size: 12.5px; }
table.report td.todo { color: var(--muted); opacity: .45; }
.stu-cell { display: flex; flex-direction: column; line-height: 1.3; }
.stu-cell b { font-weight: 600; }
.stu-cell span { font: 11.5px var(--mono); color: var(--muted); }

.section-title {
  margin: 36px 0 12px;
  font-size: 15px; font-weight: 650; letter-spacing: -.01em;
}

.recent { display: grid; gap: 7px; }
.recent .row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
}
.recent .who { font-weight: 600; min-width: 82px; }
.recent .no { font: 11.5px var(--mono); color: var(--muted); min-width: 76px; }
.recent .prob { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .time { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; }

/* 教师后台：标题行 + 导出 */
.page-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.stu-link { color: inherit; display: block; }
.stu-link:hover { color: var(--accent); text-decoration: none; }

/* 题目难度 */
.stat-rows { display: grid; gap: 9px; margin-top: 12px; }
.stat-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(110px, 1.5fr) auto auto;
  gap: 16px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 13px;
}
.stat-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-bar {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--line);
}
.stat-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7c8cff);
  transition: width .5s var(--ease);
}
.stat-bar i.high { background: linear-gradient(90deg, var(--ok), #4ade80); }
.stat-bar i.low { background: linear-gradient(90deg, var(--bad), #f87171); }
.stat-num { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-sub { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* 学生明细：每次递交 */
.subs { display: grid; gap: 8px; margin-top: 12px; }
.sub {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: var(--surface-2);
}
.sub > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; cursor: pointer; list-style: none; font-size: 13px;
}
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::before {
  content: "";
  width: 0; height: 0;
  border-left: 4.5px solid currentColor;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  color: var(--muted);
  transition: transform .16s var(--ease);
}
.sub[open] > summary::before { transform: rotate(90deg); }
.sub-when { font: 12px var(--mono); color: var(--muted); }
.sub-meta { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); }
.sub .code-box { margin: 0 0 12px; }

/* ---------------------------------------------------------------- 管理后台 */
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 22px;
}
.tab {
  appearance: none; border: 0; background: transparent;
  padding: 10px 14px; font: inherit; font-size: 14px;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }

.admin-grid { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 78px; }
@media (max-width: 900px) { .admin-side { position: static; } }
.admin-list { display: flex; flex-direction: column; gap: 6px; }
.admin-item {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.admin-item b { font-size: 14px; font-weight: 600; }
.admin-item span { font: 11.5px var(--mono); color: var(--muted); }
.admin-item:hover { background: var(--surface-2); border-color: var(--line-2); }
.admin-item.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.admin-editor {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-1); min-width: 0;
}
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-head label { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }

textarea.code-input {
  width: 100%;
  font: 12.5px/1.65 var(--mono);
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface); color: var(--ink);
  resize: vertical;
}
textarea.code-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini th {
  text-align: left; font-size: 11.5px; font-weight: 600;
  color: var(--muted); padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
table.mini td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.mini tr:last-child td { border-bottom: 0; }
table.mini input {
  width: 100%; height: 34px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 13px; background: var(--surface); color: var(--ink);
}
table.mini input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.test-list { display: grid; gap: 10px; }
.test-row {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; background: var(--surface-2);
}
.test-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12.5px; }
.test-idx { font: 600 12px var(--mono); color: var(--muted); }
.test-sample { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.test-io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .test-io { grid-template-columns: 1fr; } }
.test-io label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.test-head .btn { margin-left: auto; }

.editor-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.btn.small { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.danger {
  --btn-bg: var(--bad-soft);
  --btn-bg-hover: color-mix(in srgb, var(--bad) 14%, transparent);
  --btn-ink: var(--bad);
  --btn-line: var(--bad-line);
  --btn-line-hover: var(--bad);
}

.admin-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
  box-shadow: var(--shadow-1);
}
.admin-card h3 { margin: 0 0 6px; font-size: 15px; }
.admin-card.danger { border-color: var(--bad-line); }
.admin-card.danger h3 { color: var(--bad); }
.inline-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.inline-form select.pick-select {
  height: 38px; padding: 0 12px; min-width: 220px;
  border: 1px solid var(--line-2); border-radius: 10px;
  font: inherit; font-size: 14px; background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.inline-form select.pick-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.inline-form input {
  height: 38px; padding: 0 12px; min-width: 220px;
  border: 1px solid var(--line-2); border-radius: 10px;
  font: inherit; font-size: 14px; background: var(--surface); color: var(--ink);
}
.inline-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.statement-preview {
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  min-height: 60px;
}

/* 首页算法演示 */
.demo-section { margin: 4px 0 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-head h3 { margin: 0 0 3px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.demo-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.demo-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.demo-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-play {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid var(--accent-line);
  font-size: 12px;
}
.demo-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demo-body b { font-size: 14px; font-weight: 600; }
.demo-desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-meta { font: 11px var(--mono); color: var(--muted); }
.demo-del {
  position: absolute; top: 5px; right: 7px;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 6px; color: var(--muted); font-size: 16px; line-height: 1;
  opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.demo-card:hover .demo-del { opacity: 1; }
.demo-del:hover { background: var(--bad-soft); color: var(--bad); }

.modal-wide { width: min(1080px, 100%); }
.demo-frame {
  width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 10px;
  background: #0b0e14; display: block;
}
.demo-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.demo-foot .spacer { flex: 1 1 auto; }

/* 最大化：浏览器全屏，或退回铺满窗口 */
.modal:fullscreen,
.modal.modal-max {
  width: 100vw; height: 100vh; max-height: none;
  margin: 0; padding: 12px 16px 14px;
  border: 0; border-radius: 0;
  display: flex; flex-direction: column;
  background: var(--surface);
}
.modal.modal-max { position: fixed; inset: 0; z-index: 130; }
.modal:fullscreen .modal-head,
.modal.modal-max .modal-head { flex: 0 0 auto; }
.modal:fullscreen .demo-frame,
.modal.modal-max .demo-frame {
  flex: 1 1 auto;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}
.modal:fullscreen .demo-foot,
.modal.modal-max .demo-foot { flex: 0 0 auto; }

/* 名单勾选列 */
.students-table th.pick, .students-table td.pick { width: 34px; padding-right: 0; }
.students-table .pick input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* 学生名单表 */
.students-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.students-table th, .students-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: middle;
}
.students-table thead th {
  background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted);
}
.students-table tbody tr:hover td { background: var(--surface-2); }
.students-table tbody tr:last-child td { border-bottom: 0; }
.students-table input {
  height: 32px; width: 150px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 13px; background: var(--surface); color: var(--ink);
}
.students-table input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.students-table .num { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.students-table .ops { display: flex; gap: 6px; justify-content: flex-end; }
.students-table td:last-child { width: 1%; }

/* 题目自检结果 */
.check-body { min-height: 56px; }
.check-list { display: grid; gap: 8px; margin-top: 12px; }
.check-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: 13px;
}
.check-name { font-weight: 600; }
.check-meta { font: 11.5px var(--mono); color: var(--muted); }
.check-err { flex-basis: 100%; color: var(--bad); font-size: 12px; }

/* 导入弹窗 */
.admin-btns { display: flex; gap: 8px; }
.admin-btns .btn { flex: 1; padding: 0 8px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9, 12, 20, .48);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  width: min(800px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  padding: 20px 22px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.icon-btn {
  appearance: none; border: 0; background: transparent;
  font-size: 22px; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 2px 8px; border-radius: 8px;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.modal-text { margin-top: 10px; min-height: 320px; }
.modal-bar { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.import-errors {
  margin-top: 12px; padding: 12px 14px;
  border-radius: 10px;
  background: var(--bad-soft); border: 1px solid var(--bad-line);
  color: var(--bad); font-size: 13px;
}
.import-errors b { display: block; margin-bottom: 6px; }
.import-error { margin: 4px 0; font-size: 12.5px; line-height: 1.6; }

/* 错题本 */
.mine-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1);
}
.mine-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mine-title a { font-weight: 650; font-size: 16px; color: var(--ink); }
.mine-title a:hover { color: var(--accent); text-decoration: none; }
.mine-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mine-cases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.mine-case-tag { font: 11.5px var(--mono); color: var(--muted); }
.mine-item .kv { margin-top: 10px; }
.code-box {
  margin-top: 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  font: 12.5px/1.9 var(--mono);
  color: var(--code-ink);
  overflow-x: auto;
}
.code-box .cl { min-height: 1.9em; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend .item { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }

/* ---------------------------------------------------------------- 杂项 */
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
}

.toast {
  position: fixed; left: 50%; bottom: 30px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--bg);
  padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 80; max-width: 88vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden { display: none !important; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    height: auto; min-height: 56px;
    padding: 8px 14px 6px; gap: 4px;
    flex-wrap: wrap;
  }
  .brand { font-size: 14px; }
  .topbar nav {
    width: 100%; margin-left: 0; gap: 2px;
    justify-content: flex-start; overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav .who { margin-left: auto; padding-left: 4px; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .card { padding: 14px 16px; gap: 13px; }
  .card-idx { width: 26px; height: 26px; font-size: 11.5px; }
  .card .pill { height: 22px; padding: 0 8px; font-size: 11.5px; }
  .blank { height: 2.2em; font-size: 13.5px; }
  .editor-foot .hint { margin-left: 0; flex-basis: 100%; }
  .stat-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .stat-row .stat-bar { grid-column: 1 / -1; }
  .stat-row .stat-sub { display: none; }
  .shell { padding: 22px 16px 60px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-stats { gap: 22px; }
  .paper { padding: 20px; }
  .login-card { padding: 24px 20px; }
  .login-card form { grid-template-columns: 1fr; }
  .sample-io { grid-template-columns: 1fr; }
  .sample-io > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ln { flex-basis: 34px; padding-right: 10px; }
  .who .who-text { display: none; }
}
