:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe3ef;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --blue: #2563eb;
  --green: #047857;
  --red: #be123c;
  --gold: #a16207;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  line-height: 1.65;
}

body.survey-page {
  background: #f3f6fb;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
}

.button.primary,
.nav-links a.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.ghost {
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero {
  padding: 52px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.survey-page .hero {
  padding: 30px 0 12px;
}

.survey-page .hero-copy {
  padding: 26px;
}

.survey-page h1 {
  max-width: 880px;
  font-size: clamp(30px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(32px, 5vw, 58px);
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 10px 0 0;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: #334155;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.profile-card {
  padding: 24px;
  border-radius: 12px;
  background: #172033;
  color: white;
}

.profile-card p {
  color: rgba(255, 255, 255, 0.78);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
}

.profile-card .tag {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.section {
  padding: 26px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head p {
  max-width: 680px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 20px;
}

.card.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.card.danger {
  border-color: #fecdd3;
  background: #fff1f2;
}

.card.good {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.list li {
  margin: 6px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.form {
  display: grid;
  gap: 18px;
  margin: 20px 0 44px;
}

.survey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.survey-side {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
}

.survey-side .card {
  padding: 16px;
}

.survey-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meta-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.meta-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.question {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 18px;
}

.question.key {
  border-left: 5px solid var(--blue);
}

.question-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.required {
  color: var(--red);
  font-size: 13px;
  white-space: nowrap;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

label.option {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #253047;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

label.option:hover {
  border-color: #93b4f6;
  background: #f4f8ff;
}

label.option:has(input:checked) {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

input,
textarea,
select {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: white;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  accent-color: var(--blue);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.status {
  display: none;
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
}

.status.show {
  display: block;
}

.status.ok {
  color: #065f46;
  background: #d1fae5;
}

.status.err {
  color: #9f1239;
  background: #ffe4e6;
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 16px;
}

.record-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.record-card time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0 44px;
}

.stack {
  display: grid;
  gap: 14px;
}

.response-item {
  cursor: pointer;
}

.response-item.active {
  outline: 2px solid var(--blue);
}

.footer {
  padding: 34px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.manual-hero {
  padding-bottom: 18px;
}

.manual-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 8px 0 48px;
  min-width: 0;
}

.manual-toc {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.manual-toc h2 {
  font-size: 20px;
}

.manual-toc-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.manual-toc-list a {
  display: block;
  border-radius: 7px;
  padding: 7px 9px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.manual-toc-list a:hover {
  background: #eef4ff;
  color: var(--blue);
}

.manual-toc-list .toc-h1 {
  font-weight: 900;
}

.manual-toc-list .toc-h2 {
  padding-left: 16px;
}

.manual-toc-list .toc-h3 {
  padding-left: 28px;
  color: var(--muted);
}

.manual-content {
  padding: 22px;
  background: #f8fbff;
  min-width: 0;
}

.manual-content #manualDocument {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.manual-content h1 {
  max-width: none;
  margin: 0 0 10px;
  border-bottom: 0;
  padding-bottom: 0;
  color: #111827;
  font-size: 30px;
}

.manual-content h2 {
  margin: 0 0 12px;
  border-left: 5px solid var(--blue);
  padding-left: 12px;
  color: #142033;
  font-size: 24px;
}

.manual-content h3 {
  margin: 14px 0 4px;
  color: #1f3a5f;
  font-size: 19px;
}

.manual-content p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.78;
}

.manual-content p,
.manual-content td,
.manual-content th {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.manual-content .manual-table-wrap {
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.manual-content table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.manual-content td,
.manual-content th {
  border: 1px solid #d8e1ee;
  padding: 10px 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
  vertical-align: top;
}

.manual-content td p,
.manual-content th p {
  font-size: 15px;
  line-height: 1.65;
}

.manual-content .manual-lead-line {
  border-radius: 8px;
  background: #f1f5f9;
  padding: 10px 12px;
  font-weight: 800;
}

.manual-content b,
.manual-content strong {
  font-weight: 850;
}

.manual-section-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.manual-section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
  background: #cbd5e1;
}

.manual-section-card.chapter-section::before {
  background: #2563eb;
}

.manual-section-card.major-direction {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.manual-section-card.major-direction::before {
  background: #2563eb;
}

.manual-section-card.has-risk {
  border-color: #fecdd3;
}

.manual-section-card.has-risk::before {
  background: #e11d48;
}

.manual-section-card.has-ok {
  border-color: #bbf7d0;
}

.manual-section-card.has-ok::before {
  background: #059669;
}

.manual-section-card.has-check {
  border-color: #fde68a;
}

.manual-section-card.has-check::before {
  background: #d97706;
}

.manual-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.label-study {
  background: #dbeafe;
  color: #1d4ed8;
}

.label-work {
  background: #dcfce7;
  color: #047857;
}

.label-warning {
  background: #ffe4e6;
  color: #be123c;
}

.label-major {
  background: #fef3c7;
  color: #a16207;
}

.label-access {
  background: #ede9fe;
  color: #6d28d9;
}

.label-note {
  background: #e2e8f0;
  color: #334155;
}

.manual-section-card.major-direction .manual-table-wrap,
.manual-section-card.major-direction table {
  border-color: #dbeafe;
}

.manual-section-card.major-direction td:first-child {
  background: #fbfdff;
}

.manual-match {
  border-radius: 8px;
  background: #fff7ed;
  outline: 1px solid #fed7aa;
}

.manual-dim {
  opacity: 0.32;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

body.manual-page {
  padding-bottom: 0;
  background: #f3f6fb;
}

.manual-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: stretch;
  padding: 34px 0 18px;
}

.manual-intro > div:first-child,
.manual-summary-grid {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.manual-intro h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.manual-summary-grid {
  display: grid;
  gap: 12px;
}

.summary-tile {
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--line);
}

.summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.summary-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.summary-tile.good {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.summary-tile.check {
  background: #fffbeb;
  border-color: #fde68a;
}

.summary-tile.risk {
  background: #fff1f2;
  border-color: #fecdd3;
}

.manual-toolbar {
  position: sticky;
  top: 64px;
  z-index: 8;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
  backdrop-filter: blur(16px);
}

.manual-toolbar input {
  margin-top: 0;
}

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

.manual-filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 0 13px;
  font-weight: 850;
  cursor: pointer;
}

.manual-filters button.active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

.manual-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
  padding: 18px 0 56px;
}

.manual-workspace .manual-toc,
.manual-picked-panel {
  position: sticky;
  top: 142px;
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.manual-picked-panel {
  display: grid;
  gap: 16px;
}

.manual-picked-panel h2,
.manual-picked-panel h3 {
  font-size: 18px;
}

.manual-card-list {
  display: grid;
  gap: 16px;
}

.manual-major-card {
  border: 1px solid #dbe5f2;
  border-left: 6px solid #94a3b8;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  scroll-margin-top: 146px;
}

.manual-major-card.ok {
  border-left-color: #059669;
}

.manual-major-card.check {
  border-left-color: #d97706;
}

.manual-major-card.risk {
  border-left-color: #e11d48;
}

.manual-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.manual-number {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 2px 9px;
  font-size: 13px;
  font-weight: 900;
}

.manual-card-header h2 {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 24px;
}

.manual-card-header p {
  margin-top: 8px;
  color: var(--muted);
}

.access-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.access-badge.ok {
  background: #dcfce7;
  color: #047857;
}

.access-badge.check {
  background: #fef3c7;
  color: #a16207;
}

.access-badge.risk {
  background: #ffe4e6;
  color: #be123c;
}

.manual-card-actions,
.manual-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.manual-card-actions {
  margin-top: 14px;
}

.manual-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  font-weight: 850;
  cursor: pointer;
}

.manual-action.pick.active,
.manual-action.pick:hover {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}

.manual-action.reject.active,
.manual-action.reject:hover {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}

.manual-major-tree {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.manual-major-tree summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  font-weight: 950;
  cursor: pointer;
}

.manual-major-tree summary span {
  color: var(--muted);
  font-size: 14px;
}

.manual-major-list {
  display: grid;
  gap: 1px;
  background: #e2e8f0;
}

.manual-major-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  background: #fff;
  padding: 13px 15px;
}

.manual-major-row strong {
  font-size: 16px;
}

.manual-major-row p {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.6;
}

.manual-major-row.is-rejected strong,
.manual-major-card.is-rejected h2 {
  color: #94a3b8;
  text-decoration: line-through;
}

.manual-major-card.is-picked {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #86efac;
}

.manual-major-row.is-picked {
  background: #f0fdf4;
}

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

.info-block {
  border-radius: 10px;
  padding: 13px;
  border: 1px solid var(--line);
}

.info-block span {
  display: inline-flex;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 900;
}

.info-block p {
  color: #334155;
  line-height: 1.65;
}

.info-block.study {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.info-block.study span {
  background: #dbeafe;
  color: #1d4ed8;
}

.info-block.work {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.info-block.work span {
  background: #dcfce7;
  color: #047857;
}

.info-block.warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.info-block.warning span {
  background: #fef3c7;
  color: #a16207;
}

.selection-list {
  display: grid;
  gap: 8px;
}

.selection-chip {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.empty-text {
  color: var(--muted);
  font-size: 14px;
}

.manual-source {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.manual-source summary {
  cursor: pointer;
  font-weight: 900;
}

.manual-mobile-bar,
.manual-drawer {
  display: none;
}

@media (max-width: 860px) {
  .hero-grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .admin-layout,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .manual-layout {
    grid-template-columns: 1fr;
  }

  .manual-toc {
    position: static;
    max-height: none;
  }

  .manual-content {
    padding: 12px;
  }

  .manual-content h1 {
    font-size: 25px;
  }

  .manual-content h2 {
    font-size: 21px;
  }

  .manual-section-card {
    padding: 17px;
  }

  .manual-label {
    margin-bottom: 4px;
  }

  .survey-layout {
    grid-template-columns: 1fr;
  }

  .survey-side {
    position: static;
    order: -1;
  }

  .survey-meta {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    padding: 20px;
  }

  .question {
    padding: 15px;
  }

  .question-title {
    align-items: flex-start;
  }

  .required {
    white-space: normal;
  }

  body.manual-page {
    padding-bottom: 72px;
  }

  .manual-intro {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .manual-intro > div:first-child,
  .manual-summary-grid {
    padding: 18px;
  }

  .manual-toolbar {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .manual-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .manual-filters button {
    flex: 0 0 auto;
  }

  .manual-workspace {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .manual-workspace .manual-toc,
  .manual-picked-panel {
    display: none;
  }

  .manual-major-card {
    padding: 16px;
    scroll-margin-top: 12px;
  }

  .manual-card-header {
    display: grid;
  }

  .access-badge {
    justify-self: start;
  }

  .manual-major-row {
    grid-template-columns: 1fr;
  }

  .manual-info-grid {
    grid-template-columns: 1fr;
  }

  .manual-mobile-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
  }

  .manual-mobile-bar button,
  .manual-mobile-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    font-weight: 900;
  }

  .manual-mobile-bar a {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
  }

  .manual-drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
  }

  .manual-drawer[hidden] {
    display: none;
  }

  .manual-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
  }

  .manual-drawer-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 78vh;
    overflow: auto;
    border-radius: 18px 18px 0 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.24);
  }

  .manual-drawer-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .manual-drawer-panel button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    font-weight: 850;
  }

  .manual-drawer .manual-toc-list {
    max-height: none;
  }

  .drawer-selection {
    display: grid;
    gap: 10px;
  }
}
