:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e3e8ef;
  --border-strong: #cfd6e4;
  --text: #1b2432;
  --muted: #667085;
  --primary: #2f6bff;
  --primary-dark: #1f52d0;
  --primary-soft: #eaf0ff;
  --danger: #d93a3f;
  --danger-soft: #fdecec;
  --ok: #0f9d58;
  --ok-soft: #e7f7ef;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }

/* ---------------------------------------------------------------- 头部 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.app-header .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; white-space: nowrap; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #2f6bff, #5b8cff);
  color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.brand small {
  font-weight: 500; color: var(--muted); font-size: 11px;
  border: 1px solid var(--border); border-radius: 99px; padding: 1px 7px; margin-left: 2px;
}
.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; }
.nav a {
  color: var(--muted); padding: 6px 11px; border-radius: 8px; font-size: 13.5px; white-space: nowrap;
}
.nav a:hover { background: #f1f4f9; color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip { color: var(--muted); font-size: 13px; white-space: nowrap; }
.user-chip b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- 布局 */
.container { max-width: 1140px; margin: 0 auto; padding: 22px 20px 72px; }
.container.narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 19px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .app-header .inner { height: auto; padding: 10px 14px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .container { padding: 16px 14px 80px; }
}

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 { font-size: 15px; }
.card-head .hint { color: var(--muted); font-size: 12.5px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 18px; }
.card.hoverable { transition: border-color .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.card.hoverable:hover { border-color: #c7d4ef; transform: translateY(-1px); box-shadow: 0 10px 28px -14px rgba(47, 107, 255, .4); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { background: #f7f9fc; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { color: var(--danger); border-color: #f0c9ca; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f4f9; color: var(--text); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- 表单 */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #344054; }
.field .help { color: var(--muted); font-size: 12px; margin-top: 4px; }
.input, .textarea, .select {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; color: var(--text); font-family: inherit; font-size: 13.5px; line-height: 1.5;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.textarea { resize: vertical; min-height: 76px; }
.input-sm { height: 34px; padding: 0 9px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; min-width: 0; }
.inline { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: 99px;
  font-size: 12px; font-weight: 500; line-height: 18px;
  background: #f1f4f9; color: var(--muted); border: 1px solid transparent;
}
.badge-blue { background: var(--primary-soft); color: var(--primary-dark); }
.badge-green { background: var(--ok-soft); color: var(--ok); }
.badge-orange { background: var(--warn-soft); color: var(--warn); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: #f1f4f9; color: #667085; }

/* ---------------------------------------------------------------- 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th, table.table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table th { font-size: 12.5px; color: var(--muted); font-weight: 500; background: #fafbfd; white-space: nowrap; }
table.table tbody tr:hover { background: #fafbff; }
table.table tbody tr:last-child td { border-bottom: none; }
table.table td.num, table.table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------------------------------------------------------------- 统计 */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .k { color: var(--muted); font-size: 12.5px; }
.stat .v { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- 题目 */
.q-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 14px; }
.q-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.q-head .seq {
  width: 24px; height: 24px; border-radius: 7px; background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
}
.q-head .q-title { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; color: var(--text); }
.q-head .grow { flex: 1; }
.q-score {
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap;
  background: #f1f4f9; border: 1px solid var(--border); padding: 2px 10px; border-radius: 99px;
}
.q-body { padding: 16px 18px 18px; }

/* ---- 题干 Markdown 排版（参考力扣：标题/加粗/行内代码/左边框代码块/示例块） ---- */
.q-content { color: #2a3446; margin-bottom: 14px; font-size: 14px; line-height: 1.75; }
.q-content:empty { display: none; }
.q-content > :first-child { margin-top: 0; }
.q-content > :last-child { margin-bottom: 0; }
.q-content p { margin: 0 0 .8em; }
.q-content h1, .q-content h2, .q-content h3, .q-content h4, .q-content h5, .q-content h6 {
  margin: 1.15em 0 .5em; font-weight: 650; line-height: 1.4; color: var(--text); letter-spacing: -.01em;
}
.q-content h1 { font-size: 19px; }
.q-content h2 { font-size: 17px; }
.q-content h3 { font-size: 15.5px; }
.q-content h4 { font-size: 14.5px; }
.q-content h5, .q-content h6 { font-size: 14px; color: #344054; }
.q-content strong, .md-inline strong { font-weight: 650; color: var(--text); }
.q-content em, .md-inline em { font-style: italic; }
.q-content del, .md-inline del { color: var(--muted); }
.q-content a, .md-inline a { color: var(--primary); text-decoration: none; border-bottom: 1px solid transparent; }
.q-content a:hover, .md-inline a:hover { border-bottom-color: var(--primary); }
.q-content code, .md-inline code {
  font-family: var(--mono); font-size: .86em;
  background: #f0f2f7; border: 1px solid #e4e8f0; border-radius: 5px;
  padding: 1px 5px; color: #475467; white-space: pre-wrap; word-break: break-word;
}
.q-content pre.md-pre {
  margin: .8em 0; padding: 2px 0 2px 14px;
  border-left: 3px solid var(--border-strong); background: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #5b6472;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.q-content pre code {
  background: none; border: 0; padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap;
}
.q-content .md-example { margin: .9em 0; padding-left: 14px; border-left: 3px solid var(--border-strong); }
.q-content .md-example pre.md-pre { border-left: 0; padding-left: 0; margin: .5em 0; }
.q-content .md-example > :last-child { margin-bottom: 0; }
.q-content .md-ex-label { font-weight: 650; color: var(--text); margin: 0 0 .5em; }
.q-content ul, .q-content ol { margin: .6em 0 .9em; padding-left: 1.5em; }
.q-content ul { list-style: disc; }
.q-content ol { list-style: decimal; }
.q-content li { margin: .3em 0; }
.q-content li > ul, .q-content li > ol { margin: .3em 0; }
.q-content li::marker { color: var(--muted); }
.q-content blockquote { margin: .8em 0; padding: 2px 0 2px 14px; border-left: 4px solid var(--border-strong); color: var(--muted); }
.q-content blockquote p { margin: .3em 0; }
.q-content hr { border: 0; border-top: 1px solid var(--border); margin: 1.2em 0; }
.q-content .md-table-wrap { overflow-x: auto; margin: .8em 0; border: 1px solid var(--border); border-radius: 8px; }
.q-content table { border-collapse: collapse; width: 100%; font-size: 13px; }
.q-content th, .q-content td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 7px 12px; text-align: left; }
.q-content th:last-child, .q-content td:last-child { border-right: 0; }
.q-content tbody tr:last-child td { border-bottom: 0; }
.q-content th { background: #f4f6fb; font-weight: 600; color: #344054; }
.q-content tbody tr:nth-child(even) { background: #fafbfd; }

/* ---- 小节标签 / 纯文本答案 / 编辑器预览 ---- */
.q-section-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin: 0 0 8px; }
.md-plain { white-space: pre-wrap; padding: 10px 12px; background: #fafbfd; border: 1px solid var(--border); border-radius: 9px; min-height: 60px; color: #2a3446; }
.md-edit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.md-edit-head label { margin-bottom: 0; }
.md-preview { margin-top: 10px; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: 9px; background: #fcfdff; }
.md-preview:empty::before { content: '（暂无内容，输入题干后此处实时预览）'; color: var(--muted); font-size: 13px; }
button[data-preview].active { background: var(--primary-soft); color: var(--primary-dark); border-color: #cfdcff; }
.help code { font-family: var(--mono); font-size: 11.5px; background: #eef2f8; border-radius: 4px; padding: 0 4px; color: #475467; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: #c3d2f2; background: #fbfcff; }
.opt.checked { border-color: var(--primary); background: var(--primary-soft); }
.opt input { margin: 4px 0 0; accent-color: var(--primary); flex: none; }
.opt .k { font-family: var(--mono); color: var(--muted); font-size: 12.5px; flex: none; }
.opt .v { white-space: pre-wrap; }
.q-answer-line { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--muted); }
.q-answer-line b { color: var(--text); font-weight: 600; }
.q-comment { margin-top: 10px; padding: 8px 11px; border-radius: 8px; background: #f7f9fc; color: #475467; font-size: 13px; border-left: 3px solid var(--primary); white-space: pre-wrap; }

/* ---------------------------------------------------------------- 代码区 */
.code-wrap { border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: #fbfcfe; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: #f4f7fc; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.code-stdin {
  min-height: 54px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
}
.code-area {
  width: 100%; min-height: 190px; border: 0; outline: none; resize: vertical;
  padding: 12px 14px; background: #fbfcfe; color: #1f2933;
  font-family: var(--mono); font-size: 13px; line-height: 1.65; tab-size: 4;
}
/* 学生端编辑器：文字透明的 textarea 叠在同尺寸高亮层上 */
.code-surface { position: relative; }
.code-hl {
  position: absolute; inset: 0; margin: 0; overflow: hidden; pointer-events: none;
  padding: 12px 14px; color: #1f2933;
  font-family: var(--mono); font-size: 13px; line-height: 1.65; tab-size: 4; white-space: pre;
}
.code-surface .code-area {
  display: block;
  background: transparent; color: transparent; caret-color: #1f2933;
  white-space: pre; overflow-wrap: normal; overflow-x: auto;
}
.code-surface .code-area::placeholder { color: #9aa5b5; }

/* Python 语法高亮配色（编辑器与成绩页代码共用） */
.tok-kw { color: #a626a4; font-weight: 500; }
.tok-str { color: #067d17; }
.tok-num { color: #b25e09; }
.tok-cmt { color: #8b949e; font-style: italic; }
.tok-bi { color: #0b69a3; }
.tok-deco { color: #9a6700; }
.console {
  margin-top: 10px; border: 1px solid var(--border); border-radius: 9px; background: #f8fafc;
  padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap;
  max-height: 260px; overflow: auto; color: #24303f;
}
.console .stderr-line { color: var(--danger); }
.console .meta { color: var(--muted); font-size: 12px; margin-top: 6px; font-family: inherit; }
.case-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.case-item { border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; font-size: 12.5px; background: #fcfdff; }
.case-item .case-grid { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 4px 10px; font-family: var(--mono); white-space: pre-wrap; }
.case-item .lbl { color: var(--muted); font-family: inherit; }

/* ---------------------------------------------------------------- 作业卡片 */
.a-card .card-body { display: flex; flex-direction: column; gap: 8px; }
.a-card h3 { font-size: 15px; }
.a-meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.a-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }

/* ---------------------------------------------------------------- 空态 / 提示 */
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 13.5px; }
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .35; }
.notice {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 13px; border-radius: 9px; font-size: 13px;
  background: var(--warn-soft); color: var(--warn); border: 1px solid #f3e0c0;
}
.notice.info { background: var(--primary-soft); color: var(--primary-dark); border-color: #cfdcff; }
.notice.danger { background: var(--danger-soft); color: var(--danger); border-color: #f3cccd; }
.notice.ok { background: var(--ok-soft); color: var(--ok); border-color: #c9ecd9; }

/* ---------------------------------------------------------------- 提交条 */
.submit-bar {
  position: sticky; bottom: 0; z-index: 20;
  margin-top: 16px; padding: 12px 16px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px -12px rgba(16, 24, 40, .3);
}
.submit-bar .status { color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- 登录 */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 50px -30px rgba(16, 24, 40, .45); padding: 28px; }
.login-card h1 { font-size: 20px; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.login-card .foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 16px; }
.login-role { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 12px; }

/* ---------------------------------------------------------------- 落地页 */
.landing { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.landing-inner { max-width: 820px; width: 100%; }
.landing h1 { font-size: 28px; letter-spacing: -.02em; }
.landing .lead { color: var(--muted); margin: 8px 0 26px; font-size: 14.5px; }
.entry-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .entry-grid { grid-template-columns: 1fr; } }
.entry {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.entry:hover { transform: translateY(-2px); border-color: #c7d4ef; box-shadow: 0 16px 40px -24px rgba(47, 107, 255, .5); }
.entry .icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--primary-soft); margin-bottom: 12px; }
.entry h3 { font-size: 16px; color: var(--text); }
.entry p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.entry .go { color: var(--primary); font-size: 13px; margin-top: 14px; font-weight: 500; }

/* ---------------------------------------------------------------- 弹层 */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 24, 40, .45);
  display: grid; place-items: center; padding: 20px; animation: fade .12s ease-out;
}
.modal {
  width: 100%; max-width: 460px; background: #fff; border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(16, 24, 40, .5); overflow: hidden;
  animation: pop .14s ease-out;
}
.modal.wide { max-width: 680px; }
.modal-head { padding: 16px 20px 0; font-size: 15.5px; font-weight: 600; }
.modal-body { padding: 10px 20px 4px; color: #475467; font-size: 13.5px; }
.modal-foot { padding: 14px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99) } to { opacity: 1; transform: none } }

.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 8px 16px; border-radius: 9px; font-size: 13px; background: #1b2432; color: #fff;
  box-shadow: 0 12px 30px -12px rgba(16, 24, 40, .6); animation: pop .16s ease-out;
}
.toast.error { background: var(--danger); }
.toast.ok { background: #0f7a4a; }

/* ---------------------------------------------------------------- 编辑题 */
.q-edit { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.q-edit-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fafbfd; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap; }
.q-edit-body { padding: 14px; }
.opt-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.opt-row .mark { width: 18px; text-align: center; font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
.tag-type { font-size: 12px; padding: 3px 8px; border-radius: 7px; background: #eef2f9; color: #475467; font-weight: 600; }
.drag-handle { color: var(--muted); cursor: default; letter-spacing: 2px; font-size: 11px; }
.pill-tabs { display: inline-flex; padding: 3px; background: #eef2f9; border-radius: 9px; gap: 3px; }
.pill-tabs button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit; }
.pill-tabs button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.hidden { display: none !important; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap8 { gap: 8px; }
.gap12 { gap: 12px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.grow { flex: 1; min-width: 0; }
