/* 思路灯 · 纸感青绿（手机优先） */

:root {
  --paper: #f4f6f1;
  --sheet: #fbfcf8;
  --ink: #202b26;
  --ink-soft: rgba(32, 43, 38, 0.68);
  --ink-faint: rgba(32, 43, 38, 0.45);
  --pine: #23594a;
  --jade: #3e8e77;
  --amber: #dfa440;
  --amber-soft: #fdf3dd;
  --line: #dce3d9;
  --sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Cascadia Mono", monospace;
  --radius-sheet: 20px;
  --radius-control: 10px;
  --radius-pill: 999px;
  --gutter: 16px;
  --shadow-raise: 0 1px 2px rgba(32, 43, 38, 0.05), 0 18px 34px -26px rgba(32, 43, 38, 0.4);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pine); }

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

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 辅导页的顶栏要和下面的双栏工作区对齐，不能用首页那种窄栏宽 */
.wrap-wide { max-width: 1180px; }

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 90;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--radius-control);
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 246, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pine);
}

.brand-mark svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* 一盏明灯：灯罩是暖琥珀，外圈一圈很淡的光晕，其余都是平色 */
.lamp-glow { fill: var(--amber); opacity: 0.34; }
.lamp-glass { fill: #f0c877; }

.lamp-line {
  fill: none;
  stroke: #1b4438;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--pine);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- 按钮 ---------- */

.btn {
  font: inherit;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 140ms ease-out, background-color 140ms ease-out, transform 140ms ease-out;
}

.btn:hover { border-color: var(--jade); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--pine);
  border-color: var(--pine);
  color: #f7f9f4;
  font-weight: 600;
}

.btn-primary:hover { background: #1e4c40; }

.btn-quiet {
  background: none;
  border-color: transparent;
  color: var(--ink-soft);
  padding: 8px 10px;
}

.btn-quiet:hover { border-color: var(--line); color: var(--ink); }

.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

.btn-small { font-size: 13px; padding: 6px 10px; }

/* ---------- 首页 ---------- */

.hero { padding: 34px 0 22px; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 8.4vw, 46px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--pine);
}

.hero p {
  margin: 0;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 16px;
}

.sheet {
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(35, 89, 74, 0.05) 0 1px,
    transparent 1px 34px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-raise);
  overflow: hidden;
}

.sheet-note {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
}

.sheet-note b {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--ink);
}

.level + .level { border-top: 1px solid var(--line); }

.level-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 19px 18px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.level-toggle:hover { background: rgba(62, 142, 119, 0.05); }

.level-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.008em;
}

.level-tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.level-chevron {
  margin-left: auto;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--jade);
  transition: transform 160ms ease-out;
}

.level[data-open="true"] .level-chevron { transform: rotate(180deg); }

.level-intro {
  margin: 0 18px 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

.level-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease-out;
}

.level[data-open="true"] .level-panel { grid-template-rows: 1fr; }

.level-panel > div { overflow: hidden; }

.subjects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 18px 20px;
}

@media (min-width: 560px) {
  .subjects { grid-template-columns: 1fr 1fr; }
}

.subject {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease-out, transform 140ms ease-out;
}

.subject:hover { border-color: var(--jade); transform: translateY(-1px); }

.subject-name { font-size: 16px; font-weight: 600; }

.subject-blurb {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: right;
}

.home-foot {
  margin: 22px 0 48px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- 登录页 ---------- */

.auth { padding: 44px 0 60px; }

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 26px 22px 28px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--pine);
}

.auth-card p.lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.tab {
  font: inherit;
  font-weight: 600;
  padding: 8px 4px 12px;
  margin-right: 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
}

.tab[aria-selected="true"] { color: var(--pine); border-bottom-color: var(--jade); }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field .optional { font-weight: 400; color: var(--ink-faint); }

.input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
}

.input::placeholder { color: var(--ink-faint); }

.input:focus { border-color: var(--jade); }

.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #f0dcb4;
  background: var(--amber-soft);
  border-radius: var(--radius-control);
  color: #7a5413;
  font-size: 14px;
}

.notice[hidden] { display: none; }

.auth-actions { margin-top: 22px; display: flex; align-items: center; gap: 12px; }

.text-link { font-size: 14px; }

/* ---------- 辅导页 ---------- */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 18px var(--gutter) 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 320px);
  z-index: 60;
  transform: translateX(-102%);
  transition: transform 200ms ease-out;
  background: var(--sheet);
  border-right: 1px solid var(--line);
  padding: 16px;
  overflow-y: auto;
}

.rail[data-open="true"] { transform: none; }

.rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rail-head h2 { margin: 0; font-size: 15px; font-weight: 700; }

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(32, 43, 38, 0.32);
  border: 0;
  padding: 0;
}

.rail-scrim[hidden] { display: none; }

.chat-list { list-style: none; margin: 0; padding: 0; }

.chat-item { border-top: 1px solid var(--line); padding: 10px 0; }

.chat-open {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  background: none;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
  color: inherit;
  border-radius: 8px;
}

.chat-open:hover { background: rgba(62, 142, 119, 0.07); }

.chat-item[data-active="true"] .chat-title { color: var(--pine); }

.chat-title { font-size: 14px; font-weight: 600; }

.chat-preview {
  font-size: 12px;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.chat-time { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

.chat-item .chat-actions { margin-left: auto; display: flex; gap: 6px; }

.chat-rename-input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid var(--jade);
  border-radius: 8px;
}

.rail-empty { color: var(--ink-faint); font-size: 13px; padding: 10px 2px; }

.conversation { min-width: 0; }

.chat-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.chat-strip[hidden] { display: none; }

.chat-strip .live-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.chat-strip .btn { margin-left: auto; flex: none; }

.banner {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #f0dcb4;
  background: var(--amber-soft);
  border-radius: var(--radius-control);
  color: #7a5413;
  font-size: 13px;
}

.banner b { font-weight: 600; }

.banner[hidden] { display: none; }

.thread { min-height: 120px; }

.empty {
  margin-bottom: 22px;
  padding: 24px 20px 20px;
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(35, 89, 74, 0.055) 0 1px,
    transparent 1px 34px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
}

.empty h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--pine);
  letter-spacing: -0.01em;
}

.empty p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }

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

.starter {
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  cursor: pointer;
}

.starter:hover { border-color: var(--jade); color: var(--pine); }

.msg { margin: 0 0 24px; }

.msg-role {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

/* 题杆：用户题目用衬线 + 细竖线，是整页唯一的记忆点 */
.question {
  border-left: 3px solid var(--jade);
  padding: 2px 0 2px 14px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
}

.answer { font-size: 16px; }

.answer > *:first-child { margin-top: 0; }
.answer > *:last-child { margin-bottom: 0; }

.answer h3, .answer h4, .answer h5, .answer h6 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--pine);
  letter-spacing: -0.004em;
}

.answer p { margin: 0 0 12px; }

.answer ul, .answer ol { margin: 0 0 12px; padding-left: 22px; }

.answer li { margin-bottom: 4px; }

.answer code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(35, 89, 74, 0.07);
  padding: 1px 5px;
  border-radius: 5px;
}

.answer pre {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  overflow-x: auto;
}

.answer pre code { background: none; padding: 0; }

.answer blockquote {
  margin: 0 0 12px;
  border-left: 3px solid var(--line);
  padding-left: 12px;
  font-family: var(--serif);
  color: var(--ink-soft);
}

.answer blockquote p { margin: 0 0 6px; }

.answer hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.msg-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.shot {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.error-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--amber-soft);
  border: 1px solid #f0dcb4;
  color: #7a5413;
  font-size: 14px;
}

.typing::after {
  content: "▌";
  margin-left: 2px;
  color: var(--jade);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { opacity: 0; } }

.composer {
  position: sticky;
  bottom: 0;
  margin-top: 4px;
  padding: 14px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-raise);
}

.composer textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--ink);
}

.composer textarea:focus { outline: none; }

.composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.composer-row .send { margin-left: auto; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.thumbs:empty { display: none; }

.thumb { position: relative; }

.thumb img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.composer-hint { margin: 8px 0 0; font-size: 12px; color: var(--ink-faint); }

.composer[data-dragover="true"] { border-color: var(--jade); }

/* ---------- 会员状态与未开通提示 ---------- */

.member-line {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.member-line[hidden] { display: none; }

.member-line b { font-weight: 600; color: var(--pine); }

.member-line.trial {
  padding: 8px 12px;
  border: 1px solid #f0dcb4;
  background: var(--amber-soft);
  border-radius: var(--radius-control);
  color: #7a5413;
}

.member-line.trial b { color: #7a5413; }

.gate {
  padding: 26px 22px 24px;
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(35, 89, 74, 0.055) 0 1px,
    transparent 1px 34px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-raise);
}

.gate[hidden] { display: none; }

.gate h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 6vw, 28px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--pine);
  letter-spacing: -0.01em;
}

.gate p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }

.gate .gate-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.gate-foot b { color: var(--ink); font-weight: 600; }

/* ---------- 联系老师弹层 ---------- */

.contact-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.contact-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--pine); }
.contact-head span { font-size: 13px; color: var(--ink-faint); }

.contact-qr {
  margin: 16px auto 14px;
  width: 208px;
  height: 208px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.contact-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }

.contact-qr p {
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

.contact-facts {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.contact-facts li { display: flex; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.contact-facts li:first-child { border-top: 0; }
.contact-facts .k { flex: none; width: 4.5em; color: var(--ink-faint); }
.contact-facts .v { color: var(--ink); word-break: break-all; }

.contact-status {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: rgba(62, 142, 119, 0.08);
  color: var(--ink-soft);
  font-size: 13px;
}

.contact-status.warn { background: var(--amber-soft); border: 1px solid #f0dcb4; color: #7a5413; }

/* ---------- 教师端 ---------- */

.teacher { padding: 24px var(--gutter) 60px; max-width: 900px; margin: 0 auto; }

.teacher h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: var(--pine); }

.teacher .lead { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; }

.teacher-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--sheet);
  box-shadow: var(--shadow-raise);
}

.teacher-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.teacher-row .input { flex: 1 1 220px; }

.teacher-stats { margin: 0 0 14px; font-size: 13px; color: var(--ink-faint); }

.teacher-stats b { color: var(--ink); font-weight: 600; }

.user-list { list-style: none; margin: 16px 0 0; padding: 0; }

.user-item {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.user-main { min-width: 0; flex: 1 1 220px; }

.user-name { font-size: 15px; font-weight: 600; }

.user-sub { font-size: 12px; color: var(--ink-faint); }

.user-badge {
  flex: none;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.user-badge.vip { border-color: var(--jade); color: var(--pine); background: rgba(62, 142, 119, 0.08); }
.user-badge.trial { border-color: #f0dcb4; color: #7a5413; background: var(--amber-soft); }

.user-actions { display: flex; gap: 6px; flex: none; }

/* ---------- 切换科目弹层 ---------- */

.sheet-overlay[hidden] { display: none; }

.sheet-overlay.sheet-center { align-items: center; }

.sheet-panel.sheet-center {
  max-width: 430px;
  margin: 0 var(--gutter);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 22px 20px 24px;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  background: rgba(32, 43, 38, 0.32);
}

.sheet-panel {
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--sheet);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line);
  padding: 18px var(--gutter) 26px;
}

.sheet-panel h2 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }

.sheet-group + .sheet-group { margin-top: 18px; }

.sheet-group h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

.sheet-subjects { display: flex; flex-wrap: wrap; gap: 8px; }

.sheet-subject {
  font: inherit;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  cursor: pointer;
}

.sheet-subject:hover { border-color: var(--jade); }

.sheet-subject[data-current="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #f7f9f4;
  font-weight: 600;
}

/* ---------- 桌面 ---------- */

/* 窄屏：品牌独占一行，操作按钮整排落到第二行，避免挤成截断的一团 */
@media (max-width: 560px) {
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding-bottom: 12px;
  }

  .brand { width: 100%; }

  .topbar-nav {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .topbar-nav .btn { font-size: 13px; padding: 8px 12px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 24px; }

  .rail {
    position: sticky;
    top: 78px;
    transform: none;
    width: auto;
    max-height: calc(100vh - 110px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(251, 252, 248, 0.7);
  }

  .rail-scrim, .rail-close { display: none; }
  .rail-toggle { display: none; }

  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    padding-top: 24px;
  }

  .rail-head h2 { font-size: 14px; }

  .composer textarea { min-height: 128px; }
}

/* ---------- 动效克制 ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
