/* ================= 通用栅格 ================= */
.grid {
  display: grid;
  gap: var(--gap);
}

.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.g-auto {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.split-even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

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

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.grow {
  flex: 1;
  min-width: 0;
}

.right {
  text-align: right;
}

/* ================= 衙门首页 ================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.34);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #4a1b16 0%, #3a1512 52%, #2b1414 100%);
  box-shadow: 0 10px 30px rgba(58, 35, 24, 0.16);
  color: #f6ead2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 18% 26%, rgba(201, 162, 39, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 62%, rgba(201, 162, 39, 0.5) 0 1px, transparent 1.6px),
    repeating-linear-gradient(135deg, rgba(255, 236, 200, 0.05) 0 1px, transparent 1px 14px);
  background-size: 46px 46px, 62px 62px, auto;
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px;
  border-right: 1px solid rgba(201, 162, 39, 0.2);
}

.hero-art::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.5), transparent);
}

.hero-brandline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(246, 234, 210, 0.8);
}

.hero-title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 1.15;
  color: #f7e7c8;
  text-shadow: 0 2px 18px rgba(201, 162, 39, 0.28);
}

.hero-slogan {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(246, 234, 210, 0.84);
}

.hero-seal {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-top: 22px;
  border: 1px solid rgba(255, 232, 190, 0.5);
  border-radius: var(--r-xs);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #ffe9c4;
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.28), rgba(122, 46, 29, 0.5));
  box-shadow: inset 0 0 0 2px rgba(255, 235, 200, 0.12);
  transform: rotate(-3deg);
}

.hero-poem {
  font-family: var(--font-serif);
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 2px;
  color: rgba(246, 234, 210, 0.62);
}

.hero-body {
  position: relative;
  padding: 22px 24px 20px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.06), rgba(255, 250, 240, 0.02));
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: #ffe6ab;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(246, 234, 210, 0.84);
}

.countdown-date {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: rgba(246, 234, 210, 0.84);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-stat {
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 39, 0.24);
  border-radius: var(--r-sm);
  background: rgba(255, 250, 238, 0.06);
}

.hero-stat .k {
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(246, 234, 210, 0.72);
}

.hero-stat .v {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #f7e7c8;
  font-variant-numeric: tabular-nums;
}

.hero-stat .v small {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  color: rgba(246, 234, 210, 0.84);
}

.hero-progress {
  margin-top: 16px;
}

.hero-progress .bar {
  background: rgba(255, 245, 225, 0.16);
}

.hero-progress .bar-fill {
  background: linear-gradient(90deg, #e3c169, #c9a227);
}

.hero-progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  color: rgba(246, 234, 210, 0.78);
}

/* 品阶 */
.level-card .level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.level-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
}

.level-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
}

.level-step {
  position: relative;
  padding-top: 14px;
  text-align: center;
  font-size: 10.5px;
  color: var(--faint);
}

.level-step::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.level-step::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line-soft);
}

.level-step:first-child::after {
  display: none;
}

.level-step.is-done {
  color: var(--gold-deep);
}

.level-step.is-done::before {
  background: var(--gold);
  border-color: var(--gold);
}

.level-step.is-current {
  color: var(--brand);
  font-weight: 700;
}

.level-step.is-current::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(122, 46, 29, 0.14);
}

/* 今日必做 */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.task-item:last-child {
  border-bottom: 0;
}

.task-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.task-toggle:hover {
  border-color: var(--ok);
  color: var(--ok);
}

.task-item.is-done .task-toggle {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.task-item.is-done .task-title {
  color: var(--muted);
  text-decoration: line-through;
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--faint);
}

.task-bar {
  margin-top: 7px;
  max-width: 220px;
}

.task-xp {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

/* 三环 */
.ring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.ring-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.ring-note {
  font-size: 11px;
  color: var(--muted);
}

/* 快捷入口 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #fffdf7, #fdf8ee);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.quick-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

.quick-icon svg {
  width: 17px;
  height: 17px;
}

.quick-name {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
}

.quick-desc {
  font-size: 10.5px;
  color: var(--faint);
}

/* 警示条 */
.alert-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid #ecd2cb;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, #fdf1ed, #fffaf6);
  font-size: 12px;
  color: var(--warn);
}

.alert-strip b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* ================= 隙时策 ================= */
.quest-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quest-box {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fffdf7;
}

.quest-box .k {
  font-size: 11px;
  color: var(--muted);
}

.quest-box .v {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.quest-box .v small {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
}

.quest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.quest-item:last-child {
  border-bottom: 0;
}

.quest-item.is-done .quest-title {
  color: var(--faint);
  text-decoration: line-through;
}

.quest-title {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.quest-reward {
  font-size: 10.5px;
  color: var(--gold-deep);
  white-space: nowrap;
}

.week-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-card {
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: #fffdf8;
}

.day-card.is-today {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf5, var(--gold-soft));
}

.day-name {
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--faint);
}

.day-date {
  margin-top: 1px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
}

.day-task {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.day-xp {
  margin-top: 4px;
  font-size: 10px;
  color: var(--gold-deep);
}

/* ================= 赶考路 ================= */
.journey-map {
  position: relative;
  padding: 20px 18px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.1), transparent 40%),
    linear-gradient(180deg, #fbf6e9, #f6eedc);
  overflow: hidden;
}

.journey-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(0deg, rgba(122, 46, 29, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(122, 46, 29, 0.05) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.map-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.node-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 74px;
}

.node-row.is-left .node-card { grid-column: 1; text-align: right; }
.node-row.is-left .node-col { grid-column: 2; }
.node-row.is-left .node-space { grid-column: 3; }
.node-row.is-right .node-space { grid-column: 1; }
.node-row.is-right .node-col { grid-column: 2; }
.node-row.is-right .node-card { grid-column: 3; }

.node-col {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.node-row:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: calc(100% + 10px);
  border-left: 1px dashed rgba(122, 46, 29, 0.4);
  transform: translateX(-50%);
  z-index: 1;
}

.node-dot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf7;
  color: var(--faint);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--sh-1);
}

.node-dot.is-open {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122, 46, 29, 0.1);
}

.node-dot.is-passed {
  border-color: var(--gold);
  color: #fff4dc;
  background: linear-gradient(145deg, #d9b34a, var(--gold));
}

.node-card {
  position: relative;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--sh-1);
}

.node-card.is-locked {
  opacity: 0.62;
}

.node-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.node-row.is-left .node-title {
  justify-content: flex-end;
}

.node-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--faint);
}

.node-row.is-left .node-meta {
  text-align: right;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0;
}

.stars .off {
  color: var(--line);
}

.node-actions {
  margin-top: 7px;
}

.node-row.is-left .node-actions {
  display: flex;
  justify-content: flex-end;
}

.map-start,
.map-end {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 253, 246, 0.7);
}

.map-end {
  position: relative;
  justify-content: center;
  margin-top: 8px;
  border: 1px dashed rgba(201, 162, 39, 0.6);
  font-family: var(--font-serif);
  letter-spacing: 2px;
  color: var(--gold-deep);
}

.map-end::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--link-h, 50px));
  width: 1px;
  height: var(--link-h, 50px);
  border-left: 1px dashed rgba(122, 46, 29, 0.4);
  transform: translateX(-50%);
}

.course-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.course-row:last-child {
  border-bottom: 0;
}

.course-row.is-passed .course-row-title {
  color: var(--muted);
}

.course-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.course-row-meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--faint);
}

/* ================= 书斋 ================= */
.lib-banner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lib-entry {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(201, 162, 39, 0.14), transparent 42%),
    linear-gradient(180deg, #fffdf7, #fbf5e8);
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.lib-entry:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.lib-entry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

.lib-entry-icon svg {
  width: 22px;
  height: 22px;
}

.lib-entry h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 1.2px;
}

.lib-entry p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--faint);
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--faint);
  min-width: 34px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fffdf8;
  color: var(--muted);
  font-size: 11.5px;
  transition: all 0.16s ease;
}

.chip-btn:hover {
  border-color: var(--gold);
  color: var(--brand);
}

.chip-btn.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff3e2;
}

.chip-btn.is-ghost {
  border-style: dashed;
}

.chip-btn .count {
  font-size: 10px;
  opacity: 0.7;
}

.search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 190px;
}

.search-box svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 31px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fffdf8;
  font-size: 12px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--gold);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 12px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.course-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.course-cover {
  position: relative;
  height: 56px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 244, 220, 0.35), transparent 45%),
    linear-gradient(120deg, #7a2e1d, #4a1b16);
}

.course-cover[data-cat="判断"] { background: linear-gradient(120deg, #3b5a4a, #24382d); }
.course-cover[data-cat="数量"] { background: linear-gradient(120deg, #3b556e, #223449); }
.course-cover[data-cat="申论"] { background: linear-gradient(120deg, #6a5491, #3d2f58); }
.course-cover[data-cat="公基"] { background: linear-gradient(120deg, #8a6420, #58400f); }
.course-cover[data-cat="面试"] { background: linear-gradient(120deg, #2f6b6b, #1c4444); }
.course-cover[data-cat="资料"] { background: linear-gradient(120deg, #7a2e1d, #4a1b16); }

.course-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: repeating-linear-gradient(135deg, rgba(255, 244, 220, 0.2) 0 1px, transparent 1px 9px);
}

.course-cover-text {
  position: absolute;
  left: 12px;
  bottom: 7px;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 244, 220, 0.7);
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px 13px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.course-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 10.5px;
  color: var(--faint);
}

.course-actions {
  display: flex;
  gap: 6px;
  padding: 0 13px 12px;
}

.course-actions .btn {
  flex: 1;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-main {
  flex: 1;
  min-width: 0;
}

.schedule-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.schedule-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 排课向导 */
.steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--faint);
}

.step + .step::before {
  content: "";
  width: 22px;
  height: 1px;
  margin-right: 8px;
  background: var(--line);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}

.step.is-active {
  color: var(--brand);
  font-weight: 600;
}

.step.is-active .step-num {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff3e2;
}

.step.is-done {
  color: var(--gold-deep);
}

.step.is-done .step-num {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.radio-card {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fffdf8;
  text-align: left;
  transition: all 0.16s ease;
}

.radio-card.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(122, 46, 29, 0.18);
}

.radio-card .rc-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.radio-card .rc-desc {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--faint);
}

.pick-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
}

.pick-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}

.pick-item:last-child {
  border-bottom: 0;
}

.pick-item.is-picked {
  background: var(--gold-soft);
}

.pick-title {
  font-size: 12.5px;
  font-weight: 600;
}

.pick-desc {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--faint);
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  background: #fffdf8;
  font-size: 11.5px;
}

.preview-date {
  flex: 0 0 66px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.parse-area {
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: #fdfaf3;
  padding: 10px;
}

/* ================= 温书计时 ================= */
.focus-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 22px 22px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 162, 39, 0.2), transparent 56%),
    linear-gradient(180deg, #3a211b, #241111);
  color: #f4e7cf;
  box-shadow: 0 12px 30px rgba(43, 20, 20, 0.22);
}

.focus-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 236, 200, 0.12) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-45deg, rgba(255, 236, 200, 0.08) 0 1px, transparent 1px 13px);
}

.focus-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(244, 231, 207, 0.68);
}

.timer-ring {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
}

.timer-time {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.timer-clock {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  color: #ffe9bc;
  font-variant-numeric: tabular-nums;
}

.timer-state {
  font-size: 10.5px;
  letter-spacing: 2px;
  color: rgba(244, 231, 207, 0.5);
}

.timer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.timer-actions .btn {
  min-width: 92px;
}

.btn-on-dark {
  color: #f3e3c6;
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(255, 244, 222, 0.08);
}

.btn-on-dark:hover {
  background: rgba(255, 244, 222, 0.15);
}

.focus-note {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: rgba(244, 231, 207, 0.4);
}

.focus-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-tip {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.focus-tip:last-child {
  border-bottom: 0;
}

.focus-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.focus-tip-icon svg {
  width: 15px;
  height: 15px;
}

.focus-tip h4 {
  font-size: 12.5px;
  font-weight: 600;
}

.focus-tip p {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--faint);
}

.sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
}

.sound-row:last-child {
  border-bottom: 0;
}

/* ================= 功时册 ================= */
.total-banner {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.total-num {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.total-unit {
  padding-bottom: 5px;
  font-size: 13px;
  color: var(--muted);
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legend-list {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 auto;
}

.legend-name {
  flex: 1;
  color: var(--ink-2);
}

.legend-val {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 130px;
  padding-top: 10px;
}

.bar-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
}

.bar-col-track {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  width: 100%;
  max-width: 34px;
  border-bottom: 1px solid var(--line);
}

.bar-col-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #ddc069, var(--gold));
}

.bar-col-fill.is-brand {
  background: linear-gradient(180deg, #9c4429, var(--brand));
}

.bar-col-label {
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

.bar-col-val {
  font-size: 10px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

/* ================= 墨卷坊 ================= */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.radar-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12px;
}

.history-item:last-child {
  border-bottom: 0;
}

.history-date {
  flex: 0 0 88px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.history-type {
  flex: 1;
  color: var(--ink-2);
}

.history-score {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.score-band {
  display: flex;
  gap: 14px;
  padding: 9px 0 12px;
  border-bottom: 1px solid var(--line-soft);
}

.score-band .item {
  flex: 1;
}

.score-band .k {
  font-size: 10.5px;
  color: var(--faint);
}

.score-band .v {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ================= 错题本 ================= */
.wrong-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wrong-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.wrong-item:last-child {
  border-bottom: 0;
}

.wrong-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.wrong-q {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

.wrong-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--faint);
}

.wrong-answer {
  margin-top: 9px;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: #fdfaf2;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}

.wrong-answer .ans-label {
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--gold-deep);
}

.ai-answer {
  margin-top: 10px;
  margin-bottom: 2px;
  border-left-color: var(--gold);
  background: #fdf7e6;
}

.due-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, #fdf7e6, #fffdf5);
  font-size: 12px;
  color: var(--gold-deep);
}

/* ================= 荣誉殿 ================= */
.honor-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 26px 14px 16px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.22), transparent 60%),
    linear-gradient(180deg, #3a211b, #251111);
}

.honor-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 96px;
}

.honor-podium.is-high {
  transform: translateY(-16px);
}

.honor-medal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffe9bc;
  background: radial-gradient(circle at 40% 30%, #a63a24, #5e2013);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.14);
}

.honor-podium.is-high .honor-medal {
  width: 72px;
  height: 72px;
  font-size: 22px;
  background: radial-gradient(circle at 40% 30%, #e0bd5c, #8c6b12);
  color: #3b2608;
}

.honor-podium .p-name {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 2px;
  color: #f0dfc0;
}

.honor-podium .p-tier {
  font-size: 9.5px;
  letter-spacing: 1px;
  color: rgba(240, 223, 192, 0.5);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.honor-card {
  position: relative;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fffdf8;
}

.honor-card.is-locked {
  background: #faf6ec;
  border-style: dashed;
}

.honor-card.is-worn {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.28);
}

.honor-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.honor-card.is-locked .honor-name {
  color: var(--faint);
}

.honor-desc {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--faint);
}

.honor-progress {
  margin-top: 8px;
}

.honor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--faint);
}

/* ================= 籍册 ================= */
.note-item {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.note-item:last-child {
  border-bottom: 0;
}

.note-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.note-body {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--faint);
}

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

.avatar-opt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fffdf8;
  font-size: 10px;
  color: var(--faint);
}

.avatar-opt.is-active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.avatar-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 14px;
  color: #fff4e4;
  background: linear-gradient(145deg, #a13a24, #5e2013);
}

.plan-row {
  padding: 8px 0;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12px;
}

.plan-head span {
  color: var(--muted);
}

.plan-head b {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ================= 设置 ================= */
.settings-block {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.settings-block:last-child {
  border-bottom: 0;
}

.settings-block h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.settings-block > p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}

.setting-row .s-name {
  font-size: 12.5px;
  color: var(--ink-2);
}

.setting-row .s-desc {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--faint);
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
  .split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .split,
  .split-even {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    border-right: 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    padding-bottom: 20px;
  }

  .hero-poem {
    display: none;
  }

  .g-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lib-banner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .g-2,
  .g-3,
  .g-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: 5px;
  }

  .countdown-num {
    font-size: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-stat {
    padding: 8px 9px;
  }

  .hero-stat .v {
    font-size: 16px;
  }

  .ring-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ring-grid .ring-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
  }

  .ring-grid .ring-wrap svg {
    width: 100%;
    height: 100%;
  }

  .ring-grid .ring-value {
    font-size: 16px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .node-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .node-row:not(:last-child)::after {
    left: 15px;
  }

  .map-end::before {
    left: 15px;
  }

  .node-row.is-left .node-card,
  .node-row.is-right .node-card {
    grid-column: 2;
    text-align: left;
  }

  .node-row.is-left .node-col,
  .node-row.is-right .node-col {
    grid-column: 1;
  }

  .node-row.is-left .node-space,
  .node-row.is-right .node-space {
    display: none;
  }

  .node-row.is-left .node-title,
  .node-row.is-left .node-meta,
  .node-row.is-left .node-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .node-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .radio-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .timer-ring {
    width: 186px;
    height: 186px;
  }

  .timer-clock {
    font-size: 36px;
  }

  .honor-stage {
    gap: 10px;
    padding: 20px 8px 12px;
  }

  .honor-podium {
    width: 78px;
  }

  .honor-medal {
    width: 48px;
    height: 48px;
    font-size: 15px;
  }

  .honor-podium.is-high .honor-medal {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .page-head h1 {
    letter-spacing: 2px;
  }
}

/* ================= 古风插画层 ================= */
.art-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: rgba(201, 162, 39, 0.6);
}

.art-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-art {
  overflow: hidden;
}

.hero-art > :not(.art-layer) {
  position: relative;
  z-index: 1;
}

.hero-palace {
  inset: auto -14px -8px auto;
  width: 76%;
  height: 84%;
  opacity: 0.34;
}

.hero-hills {
  color: #e8d0a0;
  opacity: 0.22;
}

.journey-map > :not(.art-layer) {
  position: relative;
  z-index: 1;
}

.map-hills {
  color: #9a7554;
  opacity: 0.4;
}

.honor-stage {
  position: relative;
  overflow: hidden;
}

.honor-stage > :not(.art-layer) {
  position: relative;
  z-index: 1;
}

.stage-hills {
  color: #e6c875;
  opacity: 0.18;
}

.jinshi-panel {
  position: relative;
  overflow: hidden;
}

.jinshi-panel > :not(.art-layer) {
  position: relative;
  z-index: 1;
}

.jinshi-palace {
  inset: auto -34px -26px auto;
  width: 66%;
  height: 82%;
  color: #e6c875;
  opacity: 0.26;
}

.lib-entry {
  position: relative;
  overflow: hidden;
}

.lib-entry > :not(.art-layer) {
  position: relative;
  z-index: 1;
}

.lib-books {
  inset: auto 0 -6px auto;
  width: 46%;
  height: 88%;
  color: #7a2e1d;
  opacity: 0.14;
}

.lib-scholar {
  inset: auto 10px -4px auto;
  width: 38%;
  height: 92%;
  color: #7a2e1d;
  opacity: 0.12;
}

@media (max-width: 720px) {
  .hero-palace {
    width: 90%;
    height: 70%;
    opacity: 0.26;
  }

  .hero-hills {
    opacity: 0.18;
  }

  .jinshi-palace {
    width: 78%;
    opacity: 0.2;
  }
}

/* ================= 督学对话 ================= */
.mentor-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  max-height: 52vh;
  padding: 4px 2px;
  overflow-y: auto;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.chat-row.is-user {
  flex-direction: row-reverse;
}

.chat-avatar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: 10.5px;
}

.chat-row.is-user .chat-avatar {
  border-color: var(--brand-dark);
  background: var(--brand);
  color: #fff3e2;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fdfaf3;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
  word-break: break-word;
}

.chat-row.is-user .chat-bubble {
  border-color: var(--brand-dark);
  background: var(--brand);
  color: #fff3e2;
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.chat-input-row textarea {
  flex: 1;
  min-height: 64px;
}

@media (max-width: 720px) {
  .chat-bubble {
    max-width: 88%;
  }

  .chat-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-input-row .btn {
    width: 100%;
  }
}