:root {
  --bg-app: #0f1115;
  --bg-activity: #0c0e12;
  --bg-side: #151820;
  --bg-side-hover: #1c212b;
  --bg-editor: #1a1e27;
  --bg-pane: #f7f5f1;
  --bg-pane-alt: #ffffff;
  --bg-tab: #12151c;
  --bg-tab-active: #1a1e27;
  --border: #2a3040;
  --border-soft: #e6e1d8;
  --text: #d7dde8;
  --text-dim: #8b93a7;
  --text-ink: #1c2430;
  --text-muted: #667084;
  --accent: #7aa2ff;
  --accent-soft: rgba(122, 162, 255, 0.14);
  --teal: #3d9a8b;
  --teal-soft: #e5f3f0;
  --warn: #c9852a;
  --warn-soft: #f7edd9;
  --ok: #2f7a56;
  --ok-soft: #e4f2ea;
  --danger: #c44b4b;
  --danger-soft: #f8e6e6;
  --gold: #d4a84b;
  --radius: 8px;
  --font-ui: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
  --font-read: "Source Han Serif TC", "Noto Serif TC", "Songti TC", "Songti SC",
    serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --activity-w: 52px;
  --side-w: 280px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg-app);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}
button,
input {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #3a4254;
  border-radius: 8px;
}
.pane-scroll::-webkit-scrollbar-thumb {
  background: #c9c2b6;
}

/* ========== Auth ========== */
.auth-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(122, 162, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 90% 80%, rgba(61, 154, 139, 0.12), transparent 55%),
    var(--bg-app);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--bg-side);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.auth-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #7aa2ff, #3d9a8b);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0c0e12;
  font-size: 0.85rem;
}
.auth-brand h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.auth-brand p {
  margin: 0.1rem 0 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  background: var(--bg-activity);
  border-radius: 10px;
  padding: 0.25rem;
  margin-bottom: 1.1rem;
}
.auth-tabs button {
  border-radius: 8px;
  padding: 0.55rem 0.4rem;
  color: var(--text-dim);
}
.auth-tabs button.active {
  background: var(--bg-editor);
  color: var(--text);
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.field label {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.field input {
  background: var(--bg-activity);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  outline: none;
}
.field input:focus {
  border-color: var(--accent);
}
.btn-primary {
  width: 100%;
  border-radius: 9px;
  padding: 0.72rem 1rem;
  background: var(--accent);
  color: #0c0e12;
  font-weight: 600;
  margin-top: 0.2rem;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-secondary {
  width: 100%;
  border-radius: 9px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--border);
  color: var(--text);
  margin-top: 0.55rem;
}
.btn-secondary:hover {
  background: var(--bg-side-hover);
}
.auth-note {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
}
.auth-error {
  color: #ff8e8e;
  font-size: 0.8rem;
  margin: -0.2rem 0 0.7rem;
  min-height: 1.1em;
}

/* ========== Workspace shell ========== */
.workspace {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--activity-w) var(--side-w) 5px minmax(0, 1fr);
  overflow: hidden;
  transition: grid-template-columns 0.32s ease;
}
.workspace.side-collapsed {
  grid-template-columns: var(--activity-w) 0px 0px minmax(0, 1fr);
}
body.resizing .workspace {
  transition: none;
}
.side-splitter {
  cursor: col-resize;
  background: transparent;
  position: relative;
  z-index: 4;
}
.side-splitter::after {
  content: "";
  position: absolute;
  inset: 0 -2px;
  background: transparent;
}
.side-splitter:hover,
.side-splitter:active {
  background: var(--accent);
}

.activity {
  background: #f6f6f7;
  border-right: 1px solid #e3e5e7;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0;
  gap: 0.25rem;
}
.act-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #686f7a;
  display: grid;
  place-items: center;
  position: relative;
}
.act-btn:hover {
  color: #1a2533;
  background: #eff0f1;
}
.act-btn.active {
  color: #2b4a6f;
  background: #e8eef4;
}
.act-btn.active::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: #4b6585;
}
.act-toggle {
  margin-bottom: 0.15rem;
}
.act-sep {
  width: 18px;
  height: 1px;
  margin: 0.2rem 0 0.35rem;
  background: var(--border);
}
.act-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pdf-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #525659;
}
.pdf-status {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #e8eaed;
  font-size: 0.92rem;
}
.pdf-doc {
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  padding: 12px 0 40px;
  box-sizing: border-box;
}
.pdf-page {
  position: relative;
  background: #fff;
  margin: 0 auto 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.pdf-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.pdf-mark {
  position: absolute;
  background: rgba(255, 214, 0, 0.45);
  pointer-events: none;
}
.pdf-mark.current {
  background: rgba(255, 145, 0, 0.55);
  outline: 2px solid #ef6c00;
}
/* 批注热区：盖住被标注的词，悬停弹卡片 */
.pdf-note {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 2px;
  cursor: help;
  appearance: none;
}
.pdf-note:hover,
.pdf-note:focus-visible {
  background: rgba(243, 168, 179, 0.28);
  outline: 1px solid rgba(243, 168, 179, 0.75);
}
.pdf-note-pop {
  position: fixed;
  z-index: 60;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ffe8b2;
  background: #fffdf6;
  color: #1e1e1e;
  font-family: "Songti TC", "SimSun", "Songti SC", serif;
  font-size: 12.5px;
  line-height: 1.62;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  white-space: pre-wrap;
}
.handbook-host {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
}
.pdf-toolbar {
  flex: 0 0 30px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  background: #1e1e1e;
  border-bottom: 1px solid #2b2b2b;
  color: #cccccc;
  overflow: visible;
}
.pdf-toolbar svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pdf-tool {
  width: 26px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #cccccc;
  cursor: pointer;
  display: grid;
  place-items: center;
  font: inherit;
}
.pdf-tool:hover,
.pdf-tool.on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pdf-pager,
.pdf-zoom {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}
.pdf-pager input {
  width: 2.6rem;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: #2d2d2d;
  color: #f3f3f3;
  text-align: center;
  font: inherit;
  font-size: 12px;
}
.pdf-pager span {
  margin: 0 4px 0 6px;
  color: #bdbdbd;
  font-size: 12px;
  white-space: nowrap;
}
.pdf-zoom-label {
  height: 22px;
  min-width: 4.6rem;
  padding: 0 8px 0 10px;
  border: none;
  border-radius: 6px;
  background: #2d2d2d;
  color: #f3f3f3;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pdf-zoom-label::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid #c8c8c8;
}
.pdf-zoom-label:hover {
  background: #3a3a3a;
}
.pdf-zoom-list {
  position: fixed;
  z-index: 30;
  min-width: 132px;
  padding: 4px;
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.pdf-zoom-list[hidden] {
  display: none;
}
.pdf-zoom-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #e6e6e6;
  font: inherit;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
}
.pdf-zoom-list button:hover,
.pdf-zoom-list button.on {
  background: #3a3d41;
}
.pdf-zoom-rule {
  height: 1px;
  margin: 4px 6px;
  background: #3c3c3c;
}
.pdf-find {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  align-self: flex-start;
  width: max-content;
  max-width: calc(100% - 12px);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 4px 6px 2px;
  padding: 4px 6px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.pdf-find[hidden] {
  display: none;
}
.pdf-find input {
  flex: 1 1 180px;
  width: 180px;
  min-width: 72px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #1f1f1f;
  color: #f3f3f3;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
}
.pdf-find input:focus {
  outline: none;
  border-color: #d08a2d;
  box-shadow: 0 0 0 1px #d08a2d;
}
.pdf-find-nav,
.pdf-find-opt {
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #bdbdbd;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pdf-find-nav {
  width: 26px;
}
.pdf-find-opt {
  flex: 0 0 auto;
  padding: 0 6px;
  white-space: nowrap;
}
.pdf-find-nav:hover,
.pdf-find-opt:hover,
.pdf-find-opt.on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pdf-count {
  color: #9a9a9a;
  font-size: 12px;
  padding: 0 4px;
}
.pdf-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.pdf-outline {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(300px, 92%);
  display: flex;
  flex-direction: column;
  background: #202021;
  border-right: 1px solid #3c3c3c;
  box-shadow: 12px 0 28px rgba(0, 0, 0, 0.42);
  color: #d4d4d4;
  transform: translateX(-105%);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.pdf-outline.open {
  transform: translateX(0);
  pointer-events: auto;
}
.pdf-outline-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 6px 0 18px;
}
.pdf-outline-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #c8c8c8;
  text-align: left;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  padding: 4px 14px 4px 12px;
  cursor: pointer;
}
.pdf-outline-item.depth-0 {
  margin-top: 8px;
  color: #f4f4f4;
  font-weight: 600;
}
.pdf-outline-item.depth-0:first-child {
  margin-top: 2px;
}
.pdf-outline-item.depth-1 {
  padding-left: 26px;
}
.pdf-outline-item.depth-2 {
  padding-left: 42px;
  color: #b5b5b5;
}
.pdf-outline-item:hover,
.pdf-outline-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pdf-outline-empty {
  margin: 12px;
  color: #9a9a9a;
  font-size: 12px;
}
.pdf-stage > .pdf-frame-wrap {
  height: auto;
  min-width: 0;
}
.handbook-editor .tabbar {
  flex: 0 0 auto;
}
.handbook-tab {
  pointer-events: none;
}
.handbook-card {
  margin: 0.75rem;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.handbook-card-title {
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.handbook-card p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.handbook-card .chip-btn {
  display: inline-flex;
  text-decoration: none;
}
.act-spacer {
  flex: 1;
}

.sidebar {
  background: #fff;
  border-right: 1px solid #e3e5e7;
  color: #1a2533;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.sidebar ::-webkit-scrollbar-thumb {
  background: #d5d8de;
}
.sidebar .tree-item,
.sidebar .tree-label,
.sidebar .tree-toggle {
  color: #3a4451;
}
.sidebar .tree-item:hover,
.sidebar .tree-toggle:hover {
  background: #f6f6f7;
  color: #1a2533;
}
.sidebar .tree-item.active {
  background: #e8eef4;
  color: #2b4a6f;
}
.sidebar .tree-item .sec-no,
.sidebar .side-head h2,
.sidebar .side-scope,
.sidebar .side-meta,
.sidebar .side-count {
  color: #686f7a;
}
.sidebar .side-head h2 {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.sidebar .side-row {
  align-items: center;
}
.sidebar .side-row .txt {
  flex: 1;
  min-width: 0;
}
.sidebar .side-row .title {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sidebar .side-meta {
  flex: 0 0 auto;
  margin-left: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.p4-summary {
  margin: 2px 4px 10px;
  padding: 12px 12px 14px;
  border: 1px solid #eff0f1;
  border-radius: 12px;
  background: #f6f6f7;
}
.p4-sum-row {
  display: flex;
  gap: 12px;
}
.p4-sum-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p4-sum-row span {
  font-size: 12px;
  color: #686f7a;
}
.p4-sum-row strong {
  font-size: 20px;
  font-weight: 650;
  color: #1a2533;
  font-variant-numeric: tabular-nums;
}
.p4-sum-row small {
  font-size: 13px;
  font-weight: 500;
  color: #686f7a;
}
.p4-bar {
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: #e3e5e7;
  overflow: hidden;
}
.p4-bar i {
  display: block;
  height: 100%;
  background: #4b6585;
}
.p4-ch + .p4-ch {
  border-top: 1px solid #eff0f1;
}
.p4-ch-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  text-align: left;
  color: #1a2533;
  border-radius: 8px;
}
.p4-ch-head:hover {
  background: #f6f6f7;
}
.p4-caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid #9aa1ab;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
}
.p4-caret.open {
  transform: rotate(90deg);
}
.p4-ch-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.p4-ch-title em,
.p4-sec-title em {
  font-style: normal;
  color: #4b6585;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.p4-ch-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: #686f7a;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.p4-ch-meta i {
  font-style: normal;
  color: #3a4451;
}
.p4-secs {
  padding: 0 0 8px;
}
.p4-secs[hidden] {
  display: none;
}
.p4-sec {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px 7px 14px;
  text-align: left;
  border-radius: 8px;
  color: #3a4451;
}
.p4-sec:hover:not(:disabled) {
  background: #f6f6f7;
}
.p4-sec.active {
  background: #e8eef4;
  color: #2b4a6f;
}
.p4-sec.empty {
  opacity: 0.45;
  cursor: default;
}
.p4-sec-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.p4-sec-meta {
  flex: 0 0 auto;
  font-size: 11px;
  color: #9aa1ab;
  font-variant-numeric: tabular-nums;
}
.p4-ring {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.p4-ring svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
}
.p4-ring circle {
  fill: none;
  stroke-width: 2.2;
}
.p4-ring .track {
  stroke: #e3e5e7;
}
.p4-ring .fill {
  stroke: #4b6585;
  stroke-linecap: round;
}
.p4-ring.done svg {
  transform: none;
}
.p4-ring.done circle {
  fill: #1b7a4c;
  stroke: none;
}
.p4-ring.done path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar[hidden] {
  display: none !important;
}
.side-head {
  padding: 0.85rem 0.9rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.side-head h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.side-tools {
  display: flex;
  gap: 0.2rem;
}
.icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-dim);
  display: grid;
  place-items: center;
}
.icon-btn:hover {
  background: var(--bg-side-hover);
  color: var(--text);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.side-body {
  flex: 1;
  overflow: auto;
  padding: 0.2rem 0.45rem 1rem;
}
.tree-group {
  margin-top: 0.55rem;
}
.tree-label {
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.tree-ch-title {
  flex: 1;
  min-width: 0;
  white-space: normal;
  line-height: 1.35;
}
.tree-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.42rem 0.5rem;
  border-radius: 7px;
  color: var(--text);
}
.tree-item:hover {
  background: var(--bg-side-hover);
}
.tree-item.active {
  background: var(--accent-soft);
}
.tree-item .ico {
  color: var(--text-dim);
  margin-top: 0.1rem;
  flex: 0 0 auto;
}
.tree-item .txt {
  min-width: 0;
}
.tree-item .title {
  font-size: 0.86rem;
  white-space: normal;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.tree-item .sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}
.lock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

/* ========== Editor area ========== */
.editor {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-editor);
}
.tabbar {
  display: flex;
  align-items: stretch;
  background: var(--bg-tab);
  border-bottom: 1px solid var(--border);
  min-height: 36px;
  overflow-x: auto;
}
.tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
  max-width: 220px;
  background: transparent;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  background: var(--bg-tab-active);
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--accent);
}
.tab .name {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
}
.tab .close {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  opacity: 0.55;
}
.tab:hover .close,
.tab.active .close {
  opacity: 1;
}
.tab .close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.tabbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.45rem;
}
.panes {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.editor-split {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.panes > .editor-group,
.panes > .editor-split {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.editor-split > .editor-group,
.editor-split > .editor-split {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.editor-group {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-editor);
}
.editor-group > .pane {
  flex: 1 1 auto;
  height: auto;
  border-right: none;
}
.editor-group.focused .tabbar {
  box-shadow: inset 0 2px 0 var(--accent);
}
.editor-group:not(.focused) .tab.active {
  color: var(--text-dim);
  box-shadow: none;
}
.pane {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-pane);
  color: var(--text-ink);
}
.pane.handbook-pane {
  background: #3c4043;
}
.panes.split .pane {
  border-right: none;
}
.pane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: #efece6;
  border-bottom: 1px solid var(--border-soft);
}
.pane-toolbar .crumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pane-toolbar .actions {
  display: flex;
  gap: 0.3rem;
  flex: 0 0 auto;
}
.chip-btn {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
}
.chip-btn:hover {
  border-color: #b7c4de;
  background: #eef3ff;
}
.chip-btn.primary {
  background: var(--text-ink);
  color: #fff;
  border-color: var(--text-ink);
}
.tree-item .sec-no {
  color: var(--accent, #3d9a8b);
  font-weight: 650;
  margin-right: 0.15rem;
}
.pane-scroll.lecture-reader {
  padding: 0;
  background: #f7f5f1;
}
.pane-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.35rem 2.4rem;
  scrollbar-gutter: stable;
}
.empty-editor {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  background: var(--bg-editor);
  text-align: center;
  padding: 2rem;
}
.empty-editor h3 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-weight: 560;
}
.empty-editor p {
  margin: 0;
  max-width: 28em;
  font-size: 0.88rem;
}

/* content inside pane */
.doc-title {
  font-family: var(--font-read);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.tag {
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e8eef8;
  color: #35507a;
}
.tag.warn {
  background: var(--warn-soft);
  color: #8a5a12;
}
.tag.muted {
  background: #eceae4;
  color: var(--text-muted);
}
.reader {
  font-family: var(--font-read);
  font-size: 1.02rem;
  line-height: 1.75;
}
.reader h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  margin: 1.15rem 0 0.45rem;
}
.reader ul,
.reader ol {
  padding-left: 1.25em;
}
.reader .muted {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}
.reader .tip {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.reader .tip.warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}
.reader table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  margin: 0.5rem 0 0.9rem;
}
.reader table.cmp th,
.reader table.cmp td {
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.55rem;
  vertical-align: top;
}
.reader table.cmp th {
  background: #efece6;
  text-align: left;
}
.flow {
  margin: 0.5rem 0 0.9rem;
  font-family: var(--font-ui);
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.flow-row span,
.flow-box {
  background: #efece6;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  text-align: center;
  font-size: 0.88rem;
}
.flow-box.accent {
  background: var(--teal-soft);
}
.flow-arrow {
  text-align: center;
  color: var(--text-muted);
  margin: 0.2rem 0;
}
.related {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.related .label {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-bottom: 0.1rem;
}

.stem {
  font-family: var(--font-read);
  font-size: 1.08rem;
  white-space: pre-line;
  margin: 0 0 1rem;
}
.choices {
  display: grid;
  gap: 0.5rem;
}
.choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-ink);
  padding: 0.75rem 0.8rem;
}
.choice:hover:not(:disabled) {
  border-color: #b7c4de;
  background: #eef3ff;
}
.choice .key {
  flex: 0 0 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eceae4;
  font-size: 0.75rem;
  font-weight: 600;
}
.choice.selected {
  border-color: #7aa2ff;
  background: #eef3ff;
}
.choice.correct {
  border-color: var(--ok);
  background: var(--ok-soft);
}
.choice.wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.q-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.explain {
  margin-top: 1rem;
  padding: 0.9rem 0.95rem;
  border-radius: 10px;
  background: #efece6;
  border: 1px solid var(--border-soft);
}
.explain h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.lock-gate {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--warn-soft);
  border: 1px dashed #d2b56a;
}
.lock-gate h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}
.lock-gate p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* side panels: exam / free / activate / account */
.panel-block {
  background: var(--bg-editor);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  margin: 0.45rem 0.35rem;
}
.panel-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}
.panel-block p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.panel-block + .panel-block {
  margin-top: 0.55rem;
}
.inline-links {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.55rem;
}
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}
.status-line:last-child {
  border-bottom: none;
}
.badge {
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.off {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .workspace.side-open {
    grid-template-columns: var(--activity-w) minmax(200px, 72vw) 5px minmax(0, 1fr);
  }
  .workspace.side-collapsed {
    grid-template-columns: var(--activity-w) 0px 0px minmax(0, 1fr);
  }
  .panes.cols-2,
  .panes.cols-3 {
    overflow-x: auto;
  }
}

/* ========== Learn shell extras ========== */
html, body, #root {
  height: 100%;
  margin: 0;
}
body {
  background: var(--site-bg, #f5f4f0);
}
.learn-topbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0 0.75rem 0 0;
  background: #0a0c10;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}
.learn-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.side-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.side-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-toggle:hover,
.side-toggle[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.side-zone-label {
  padding: 0.7rem 0.5rem 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 650;
}
.side-zone-rule {
  height: 1px;
  margin: 0.75rem 0.4rem 0.15rem;
  background: var(--border);
}
.side-count {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.68rem;
}
.learn-back {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font: inherit;
}
.learn-back:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.learn-topbar strong {
  color: var(--text);
  font-weight: 560;
}
.learn-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
}
.learn-shell .workspace {
  flex: 1;
  min-height: 0;
}
.learn-gate {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg-app);
  color: var(--text);
}
.learn-gate-card {
  width: min(460px, 100%);
  background: var(--bg-side);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
}
.learn-gate-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.learn-gate-card p {
  margin: 0 0 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}
.learn-gate-card .price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.learn-gate-actions {
  display: grid;
  gap: 0.5rem;
}

/* ========== Draggable split + handbook reader ========== */
.panes.cols-1,
.panes.cols-2,
.panes.cols-3 {
  display: grid;
}
.splitter {
  background: var(--border);
  position: relative;
  z-index: 3;
}
.splitter.splitter-x {
  cursor: col-resize;
  width: 6px;
  height: 100%;
}
.splitter.splitter-y {
  cursor: row-resize;
  width: 100%;
  height: 6px;
}
.splitter:hover,
.splitter:active {
  background: var(--accent);
}
body.resizing {
  cursor: col-resize !important;
  user-select: none !important;
}
body.resizing-y,
body.resizing-y * {
  cursor: row-resize !important;
}
body.resizing iframe,
body.resizing .pane-scroll,
body.resizing .pdf-frame-wrap {
  pointer-events: none;
}
.drop-hint {
  position: fixed;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
  background: rgba(122, 162, 255, 0.16);
  color: #d7e6ff;
  font-size: 13px;
  text-align: center;
  padding: 8px;
  pointer-events: none;
  border-radius: 8px;
}
.drop-hint[hidden] {
  display: none !important;
}
.drop-hint[data-dir="center"] {
  background: rgba(122, 162, 255, 0.08);
}
.tree-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}
.tree-toggle:hover {
  color: var(--text);
}
.tree-toggle .caret {
  width: 0.9em;
  flex: 0 0 auto;
}
.tree-children[hidden] {
  display: none;
}
.handbook-reader {
  font-family: var(--font-read);
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text-ink);
  max-width: 52rem;
}
.handbook-reader h3,
.handbook-reader h4 {
  font-family: var(--font-ui);
  color: var(--text-ink);
  margin: 1.35rem 0 0.55rem;
  line-height: 1.4;
}
.handbook-reader h3 {
  font-size: 1.12rem;
}
.handbook-reader h4 {
  font-size: 1.02rem;
  font-weight: 650;
}
.handbook-reader .know {
  margin: 0.55rem 0 0.85rem;
}
.handbook-reader .know p {
  margin: 0 0 0.55rem;
}
.handbook-reader .box {
  margin: 0.8rem 0 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #f3f0ea;
}
.handbook-reader .box h3 {
  margin-top: 0;
}
.handbook-reader ul,
.handbook-reader ol {
  padding-left: 1.35em;
  margin: 0.4rem 0 0.7rem;
}
.handbook-reader li {
  margin: 0.25rem 0;
}
.handbook-reader pre.tbl {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  background: #efece6;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  white-space: pre-wrap;
}
.tab[draggable="true"],
.tree-item[draggable="true"] {
  cursor: grab;
}
.tab[draggable="true"]:active,
.tree-item[draggable="true"]:active {
  cursor: grabbing;
}

.act-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 2px #f6f6f7;
}
.side-count {
  margin-left: 0.45rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #eceef1;
  color: #5c6673;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: 0.1em;
}
.side-scope,
.quiz-side-meta {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}
.side-scope {
  margin: 0 0.85rem 0.7rem;
}
.quiz-side-meta {
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quiz-pane {
  position: relative;
  background: var(--bg-pane);
  color: var(--text-ink);
}
.quiz-bar,
.exam-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  background: #efece6;
  font-size: 0.82rem;
}
.quiz-bar strong,
.exam-top strong {
  font-size: 0.88rem;
}
.quiz-filters {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.quiz-filter,
.q-tool,
.q-ghost,
.quiz-nav button,
.exam-top button,
.quiz-dialog button {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-ink);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.75rem;
}
.quiz-filter.on,
.q-tool.on {
  border-color: #0a6f96;
  color: #0a6f96;
  background: #e7f4f8;
}
.q-primary {
  border: none;
  background: #0f2744;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}
.q-primary:hover,
.q-ghost:hover,
.quiz-filter:hover,
.q-tool:hover,
.quiz-nav button:hover,
.exam-top button:hover {
  filter: brightness(0.97);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.quiz-scroll .muted,
.quiz-empty {
  color: var(--text-muted);
}
.quiz-empty {
  max-width: 36rem;
  margin: 2.5rem auto;
  text-align: center;
}
.quiz-empty h3 {
  margin: 0 0 0.35rem;
  color: var(--text-ink);
  font-weight: 650;
}
.q-card,
.exam-cover,
.exam-result {
  max-width: 46rem;
  margin: 0 auto;
}
.q-kicker,
.book-index,
.book-meta,
.q-verdict {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.q-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.7rem;
}
.q-id {
  font-family: var(--font-mono);
  color: #0a6f96;
  font-weight: 650;
}
.q-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.q-note {
  display: block;
  margin-top: 0.7rem;
}
.q-note span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.q-note textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--text-ink);
  padding: 0.65rem 0.75rem;
  font-family: var(--font-read);
  line-height: 1.6;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  max-width: 46rem;
  margin: 1.1rem auto 0;
}
.choice:disabled {
  opacity: 1;
  cursor: default;
}
.choice.correct .key {
  background: var(--ok);
  color: #fff;
}
.choice.wrong .key {
  background: var(--danger);
  color: #fff;
}

.q-explain {
  margin-top: 1rem;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-soft);
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.75;
}
.q-verdict {
  margin: 0 0 0.7rem;
}
.q-ref {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.q-ref span {
  margin-right: 0.4rem;
  color: #0a6f96;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.q-label {
  margin: 0.75rem 0 0.15rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.q-fused p,
.q-zs > p,
.q-cw > p {
  margin: 0.28rem 0;
  text-indent: 2em;
}
.q-explain .kp {
  color: #0a6f96;
  font-weight: 700;
}
.q-explain strong {
  font-weight: 700;
}
.q-sub {
  margin: 0.15rem 0 0.15rem 2em;
}
.q-sub p {
  margin: 0.12rem 0;
  text-indent: 0;
}
.q-alpha {
  margin: 0.3rem 0 0.3rem 2em;
  padding: 0;
  list-style: none;
  counter-reset: qalpha;
}
.q-alpha > li {
  counter-increment: qalpha;
  margin: 0.18rem 0;
}
.q-alpha > li::before {
  content: "(" counter(qalpha, lower-alpha) ") ";
  font-weight: 650;
}
.q-alpha p {
  display: inline;
  margin: 0;
  text-indent: 0;
}

.exam-top {
  background: #0f2744;
  color: #e8eef6;
  border-bottom-color: #0f2744;
}
.exam-top button {
  background: transparent;
  color: #e8eef6;
  border-color: rgba(255, 255, 255, 0.28);
}
.exam-top .q-primary {
  background: #fff;
  color: #0f2744;
}
.exam-clock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  min-width: 4.2rem;
}
.exam-clock.warn {
  color: #f0c36a;
}
.exam-clock.danger {
  color: #ffb4b4;
}
.exam-top-space {
  flex: 1;
}
.exam-review-tag {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.exam-cover,
.exam-result {
  padding-top: 1.2rem;
}
.exam-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.exam-cover h2 {
  margin: 0.25rem 0 0.15rem;
  font-size: 1.35rem;
  font-family: var(--font-read);
}
.exam-paper-name {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.exam-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
}
.exam-facts li {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.7rem 0.55rem;
  text-align: center;
}
.exam-facts strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--font-read);
}
.exam-facts span,
.exam-stats span {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.exam-rules {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text-ink);
}
.exam-rules li {
  margin: 0.25rem 0;
}
.exam-last,
.exam-auto {
  margin: 0 0 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: var(--warn-soft);
}
.exam-last.pass {
  background: var(--ok-soft);
}
.exam-last.fail {
  background: var(--danger-soft);
}
.exam-cover-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sheet-title {
  margin: 1.4rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 650;
}
.exam-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, 32px);
  gap: 6px;
}
.sheet-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-ink);
  font-size: 0.75rem;
  position: relative;
}
.sheet-btn.done {
  background: #e7f4f8;
  border-color: #0a6f96;
}
.sheet-btn.current {
  box-shadow: inset 0 0 0 2px #0f2744;
}
.sheet-btn.flag::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  border-width: 0 6px 6px 0;
  border-style: solid;
  border-color: transparent #c9852a transparent transparent;
}
.sheet-btn.ok {
  background: var(--ok-soft);
  border-color: var(--ok);
}
.sheet-btn.bad {
  background: var(--danger-soft);
  border-color: var(--danger);
}
.sheet-btn.blank {
  background: #f3f0ea;
  color: var(--text-muted);
}
.exam-score {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.4rem 0;
}
.exam-score strong {
  font-size: 3rem;
  line-height: 1;
  font-family: var(--font-read);
}
.exam-score.pass strong,
.exam-score.pass em {
  color: var(--ok);
}
.exam-score.fail strong,
.exam-score.fail em {
  color: var(--danger);
}
.exam-score em {
  margin-left: 0.4rem;
  font-style: normal;
  font-weight: 650;
}
.exam-passline {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}
.exam-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.exam-stats div {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
}
.exam-stats strong {
  display: block;
  font-size: 1.25rem;
}
.exam-bars {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.exam-bar-row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr 3.2rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
}
.exam-bar {
  height: 8px;
  border-radius: 999px;
  background: #e6e1d8;
  overflow: hidden;
}
.exam-bar span {
  display: block;
  height: 100%;
  background: #0a6f96;
}
.exam-bar-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.book-section h3 {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.92rem;
}
.book-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.55rem;
}
.book-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0;
  color: var(--text-muted);
}
.book-index em.ok {
  color: var(--ok);
  font-style: normal;
}
.book-index em.bad {
  color: var(--danger);
  font-style: normal;
}
.book-stem {
  margin: 0.35rem 0;
  font-family: var(--font-read);
}
.note-body {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-soft);
  font-family: var(--font-read);
  line-height: 1.7;
  white-space: pre-wrap;
}
.quiz-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 21, 0.45);
  padding: 1rem;
}
.quiz-dialog {
  width: min(26rem, 100%);
  background: #fff;
  color: var(--text-ink);
  border-radius: 12px;
  padding: 1rem 1.05rem 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.quiz-dialog h3 {
  margin: 0 0 0.4rem;
}
.quiz-dialog p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}
.quiz-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}
@media (max-width: 720px) {
  .exam-facts,
  .exam-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exam-bar-row {
    grid-template-columns: 1fr;
  }
}

.exam-brief {
  position: fixed;
  inset: 0;
  z-index: 70;
}
.exam-brief-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.55);
}
.exam-brief-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 2rem));
  margin: 8vh auto 0;
  background: #fff;
  color: #1c2430;
  --text-ink: #1c2430;
  --text-muted: #5c6b80;
  --border-soft: #d5deea;
  border-radius: 12px;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.exam-brief-card .exam-cover-actions {
  justify-content: flex-end;
}
.exam-brief-card .exam-cover-actions button {
  height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid #c5d0de;
  background: #fff;
  color: #1c2430;
  cursor: pointer;
  font: inherit;
}

.px-lock {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
  color: #1c2430;
  --text: #1c2430;
  --text-ink: #1c2430;
  --text-muted: #5c6b80;
  --text-dim: #5c6b80;
  --border-soft: #d5deea;
  --ok: #1d7a45;
  --ok-soft: #e5f6ec;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --warn-soft: #fff4d6;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}
.px-bar {
  height: 64px;
  background: #0b3a6a;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
}
.px-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.px-brand strong {
  font-size: 0.95rem;
  font-weight: 650;
}
.px-brand span,
.px-paper {
  font-size: 0.78rem;
  opacity: 0.85;
}
.px-paper {
  text-align: center;
}
.px-clock {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.px-clock.warn { color: #ffd56a; }
.px-clock.danger { color: #ffb4b4; }
.px-resume {
  border: none;
  background: #fff4d6;
  color: #6a4b00;
  text-align: center;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font: inherit;
}
.px-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.px-question,
.px-sheet-view {
  width: min(860px, calc(100% - 2rem));
  margin: 1.25rem auto 1.5rem;
  background: #fff;
  border: 1px solid #d5deea;
  padding: 1.4rem 1.6rem 1.5rem;
  color: #1c2430;
}
.px-qhead {
  font-size: 0.82rem;
  color: #5c6b80;
  margin-bottom: 0.7rem;
}
.px-stem {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.px-opt {
  width: 100%;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border: 1px solid #c5d0de;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.55rem;
  color: #1c2430;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  cursor: pointer;
}
.px-opt.selected {
  border-color: #0b3a6a;
  background: #eef4fb;
}
.px-opt.correct {
  border-color: #1d7a45;
  background: #e5f6ec;
}
.px-opt.wrong {
  border-color: #b42318;
  background: #fde8e6;
}
.px-opt:disabled { cursor: default; }
.px-radio {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  border: 2px solid #5c6b80;
  border-radius: 50%;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.px-opt.selected .px-radio {
  border-color: #0b3a6a;
  background: radial-gradient(circle, #0b3a6a 42%, transparent 46%);
}
.px-letter {
  flex: 0 0 auto;
  font-weight: 650;
}
.px-foot {
  height: 58px;
  background: #e9eef3;
  border-top: 1px solid #d5deea;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
}
.px-foot button {
  height: 34px;
  padding: 0 0.85rem;
  border-radius: 4px;
  border: 1px solid #b7c3d1;
  background: #fff;
  color: #1c2430;
  font: inherit;
  cursor: pointer;
}
.px-foot button:disabled {
  opacity: 0.45;
  cursor: default;
}
.px-foot .px-end,
.px-dialog-actions .px-end {
  background: #0b3a6a;
  color: #fff;
  border-color: #0b3a6a;
}
.px-icon {
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}
.px-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.px-icon.on {
  color: #9a6b12;
  border-color: #c9852a;
  background: #fff8ea;
}
.px-icon.on svg { fill: currentColor; }
.px-spacer { flex: 1; }
.px-count {
  color: #5c6b80;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.px-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 0.9rem;
  color: #5c6b80;
  font-size: 0.82rem;
}
.px-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.35rem;
  border: 1px solid #c5d0de;
  border-radius: 2px;
  vertical-align: -1px;
  background: #fff;
}
.px-legend i.done { background: #e7f4f8; border-color: #0a6f96; }
.px-legend i.flag { border-color: #c9852a; }
.px-legend i.ok { background: #e5f6ec; border-color: #1d7a45; }
.px-legend i.bad { background: #fde8e6; border-color: #b42318; }
.px-sheet-view h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.px-sheet-view > p {
  margin: 0 0 0.8rem;
  color: #5c6b80;
}
.px-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.45);
  display: grid;
  place-items: center;
  z-index: 2;
}
.px-dialog {
  width: min(440px, calc(100% - 2rem));
  background: #fff;
  color: #1c2430;
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.px-dialog h3 { margin: 0 0 0.4rem; }
.px-dialog p { margin: 0 0 0.9rem; color: #5c6b80; }
.px-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}
.px-dialog-actions button {
  height: 34px;
  padding: 0 0.9rem;
  border-radius: 4px;
  border: 1px solid #b7c3d1;
  background: #fff;
  color: #1c2430;
  font: inherit;
  cursor: pointer;
}
.px-lock .q-explain {
  margin-top: 1rem;
  color: #1c2430;
}

/* 练习、错题集、笔记的阅读面对齐 CFA 学生端：石墨底、矿物蓝操作、白底字母圆。
   全屏考试和讲义正文不走这层。 */
.quiz-pane {
  --foco-page: #f6f6f7;
  --foco-card: #fff;
  --foco-line: #eff0f1;
  --foco-line-strong: #e3e5e7;
  --foco-ink: #1a2533;
  --foco-body: #3a4451;
  --foco-secondary: #686f7a;
  --foco-action: #4b6585;
  --foco-action-deep: #2b4a6f;
  --foco-ok: #1b7a4c;
  --foco-ok-bg: #d0ebd5;
  --foco-bad: #c23a3a;
  --foco-bad-bg: #f8d4d7;
  background: var(--foco-page);
  color: var(--foco-body);
}
.quiz-pane .quiz-bar,
.quiz-pane .exam-top {
  position: relative;
  background: var(--foco-page);
  border-bottom-color: var(--foco-line);
  color: var(--foco-secondary);
}
.quiz-pane .quiz-bar strong,
.quiz-pane .exam-top strong {
  color: var(--foco-ink);
  font-weight: 650;
}
.quiz-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--foco-line-strong);
}
.quiz-meter i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--foco-action);
}
.quiz-pane .quiz-filter.on,
.quiz-pane .q-tool.on {
  border-color: var(--foco-action);
  color: var(--foco-action-deep);
  background: #f7f8f9;
}
.quiz-pane .q-primary {
  background: var(--foco-action);
  border-radius: 8px;
}
.quiz-pane .q-primary:hover {
  background: var(--foco-action-deep);
  filter: none;
}
.quiz-pane .quiz-scroll {
  background: var(--foco-page);
}
.quiz-pane .q-card,
.quiz-pane .exam-cover,
.quiz-pane .exam-result,
.quiz-pane .book-card {
  color: var(--foco-body);
}
.quiz-pane .stem,
.quiz-pane .choice,
.quiz-pane .q-explain,
.quiz-pane .book-stem,
.quiz-pane .note-body {
  font-family: "Songti SC", "Songti TC", "Noto Serif SC", "Source Han Serif SC", serif;
  text-autospace: auto;
  text-spacing-trim: trim-start;
}
.quiz-pane .stem {
  color: var(--foco-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}
.quiz-pane .q-kicker,
.quiz-pane .book-meta,
.quiz-pane .q-verdict {
  color: var(--foco-secondary);
}
.quiz-pane .q-id {
  color: var(--foco-action);
}
.quiz-pane .choice {
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 20px;
  background: var(--foco-line);
  color: var(--foco-body);
  padding: 14px 16px;
}
.quiz-pane .choice:hover:not(:disabled) {
  background: #e7e9eb;
  border-color: transparent;
}
.quiz-pane .choice.selected {
  background: #e6e9ee;
  border-color: transparent;
}
.quiz-pane .choice .key {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 999px;
  border: 1px solid var(--foco-line-strong);
  background: #fff;
  color: var(--foco-secondary);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.quiz-pane .choice.correct {
  background: var(--foco-ok-bg);
  border-color: transparent;
}
.quiz-pane .choice.wrong {
  background: var(--foco-bad-bg);
  border-color: transparent;
}
.quiz-pane .choice.correct .key,
.quiz-pane .choice.wrong .key {
  background: #fff;
}
.quiz-pane .choice.correct .key {
  color: var(--foco-ok);
  border-color: #c3e6cb;
}
.quiz-pane .choice.wrong .key {
  color: var(--foco-bad);
  border-color: #f5c6cb;
}
.quiz-pane .q-explain {
  border: none;
  background: transparent;
  padding: 4px 0 0;
  color: var(--foco-body);
  font-size: 16px;
  line-height: 1.7;
}
.quiz-pane .q-explain .q-label {
  display: inline-block;
  margin: 14px 0 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.quiz-pane .q-explain .q-label:has(+ .q-zs) {
  background: #e2e8ef;
  color: var(--foco-action-deep);
}
.quiz-pane .q-explain .q-label:has(+ .q-cw) {
  background: #ffd1d5;
  color: #8a3d3d;
}
.quiz-pane .q-zs,
.quiz-pane .q-cw,
.quiz-pane .q-fused {
  margin-top: 8px;
  padding: 12px 14px 14px;
  border-radius: 12px;
}
.quiz-pane .q-zs,
.quiz-pane .q-fused {
  background: rgba(84, 114, 147, 0.07);
}
.quiz-pane .q-cw {
  background: rgba(181, 138, 58, 0.07);
}
.quiz-pane .book-card {
  border: 1px solid var(--foco-line);
  border-radius: 16px;
  background: var(--foco-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.quiz-pane .book-section h3 {
  color: var(--foco-ink);
  font-size: 17px;
  font-weight: 650;
}
.quiz-pane .streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--foco-secondary);
}
.quiz-pane .streak i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--foco-line-strong);
}
.quiz-pane .streak i.on {
  background: var(--foco-ok);
}
.quiz-pane .streak em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.quiz-pane .exam-score.pass strong,
.quiz-pane .exam-score.pass em {
  color: var(--foco-ok);
}
.quiz-pane .exam-score.fail strong,
.quiz-pane .exam-score.fail em {
  color: var(--foco-bad);
}
.quiz-pane .exam-bar {
  background: var(--foco-line-strong);
}
.quiz-pane .exam-bar span {
  background: var(--foco-action);
}
.quiz-pane .q-note textarea {
  border-color: var(--foco-line-strong);
  border-radius: 12px;
  color: var(--foco-ink);
}
.quiz-pane .quiz-bar.quiet {
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-bottom: none;
}
.quiz-pane .quiz-bar.quiet strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiz-pane .quiz-pos {
  flex: 0 0 auto;
}
.q-explain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eff0f1;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #686f7a;
}
.q-explain-head > span:first-child {
  font-weight: 650;
  color: #1a2533;
}
.q-explain-head b {
  color: #1b7a4c;
  font-weight: 700;
}
.quiz-pane .q-explain {
  margin-top: 22px;
  padding: 14px 18px 18px;
  border: 1px solid #e3e5e7;
  border-radius: 14px;
  background: #fff;
}
.quiz-pane .q-explain .q-ref {
  margin-top: 0;
}
.quiz-pane .quiz-pos {
  background: #eff0f1;
  color: var(--foco-secondary);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.quiz-pane .q-kicker {
  margin-bottom: 0.35rem;
}
.quiz-pane .q-dock {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 8px 18px 12px;
  border-top: 1px solid var(--foco-line);
  background: var(--foco-page);
}
.quiz-pane .q-dock .q-note {
  flex: 1 0 100%;
  margin: 0 0 6px;
}
.quiz-pane .q-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--foco-secondary);
  display: grid;
  place-items: center;
}
.quiz-pane .q-icon:hover {
  background: #eff0f1;
  filter: none;
}
.quiz-pane .q-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quiz-pane .q-icon.on {
  color: #f5b800;
}
.quiz-pane .q-icon.on svg {
  fill: currentColor;
}
.quiz-pane .q-icon.note.on {
  color: var(--foco-action);
}
.quiz-pane .q-icon.note.on svg {
  fill: none;
}
.quiz-pane .q-dock-gap {
  flex: 1;
}
.quiz-pane .q-retry {
  border: none;
  background: transparent;
  color: var(--foco-secondary);
  font-size: 13px;
  padding: 0 8px;
}
.quiz-pane .q-dock .quiz-nav {
  margin: 0;
  max-width: none;
  gap: 8px;
}
.quiz-pane .q-dock .quiz-nav button {
  border: none;
  background: transparent;
  color: var(--foco-secondary);
  border-radius: 8px;
  padding: 8px 12px;
}
.quiz-pane .q-dock .quiz-nav .q-next {
  background: var(--foco-action);
  color: #fff;
}
.quiz-pane .q-dock .quiz-nav .q-next:hover:not(:disabled) {
  background: var(--foco-action-deep);
  filter: none;
}
.quiz-pane .q-dock .quiz-nav .q-next:disabled {
  background: #e3e5e7;
  color: #9aa1ab;
}

/* 编辑区外框跟侧栏同一套浅色：白底标签栏，当前标签用矿物蓝下划线。 */
.workspace,
.editor,
.editor-group {
  background: #f6f6f7;
}
.side-splitter {
  background: #fff;
}
.tabbar {
  background: #fff;
  border-bottom: 1px solid #e3e5e7;
  min-height: 38px;
  padding: 0 6px;
}
.tab {
  position: relative;
  border-right: none;
  padding: 0 10px;
  color: #686f7a;
}
.tab:hover {
  color: #1a2533;
}
.tab.active {
  background: transparent;
  color: #1a2533;
  box-shadow: none;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #4b6585;
}
.tab .name {
  font-size: 13px;
}
.tab .close {
  color: #9aa1ab;
}
.tab .close:hover {
  background: #eff0f1;
  color: #1a2533;
}
.editor-group.focused .tabbar {
  box-shadow: none;
}
.editor-group:not(.focused) .tab.active {
  color: #686f7a;
}
.editor-group:not(.focused) .tab.active::after {
  background: #c7ccd3;
}
.splitter {
  background: #e3e5e7;
}
.splitter:hover,
.splitter:active {
  background: #4b6585;
}

/* 没有打开文件时，侧栏铺满右侧，内容居中限宽。 */
.workspace.side-open.no-files {
  grid-template-columns: var(--activity-w) minmax(0, 1fr) 0px 0px;
}
.workspace.side-open.no-files .sidebar {
  border-right: none;
}
.workspace.side-open.no-files .side-head,
.workspace.side-open.no-files .side-body {
  padding-left: max(0.9rem, calc((100% - 760px) / 2));
  padding-right: max(0.9rem, calc((100% - 760px) / 2));
}
.workspace.side-open.no-files .side-head {
  padding-top: 1.6rem;
}
.workspace.side-open.no-files .side-splitter {
  pointer-events: none;
}
.activity .act-sep {
  width: 20px;
  height: 1px;
  margin: 6px 0;
  background: #d5d8de;
}

/* ========== PDF 阅览区（学员上传） ========== */
.pdf-lib {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 100%;
  padding: 0.1rem 0.35rem 1rem;
  border-radius: 8px;
}
.pdf-lib.dragging {
  outline: 1.5px dashed #6b8fb5;
  outline-offset: -2px;
  background: #f1f5f9;
}
.pdf-lib-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.7rem;
  border: 1px dashed #c3c9d1;
  border-radius: 8px;
  color: #3a4451;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pdf-lib-upload:hover {
  background: #f3f5f8;
  border-color: #8aa2bd;
}
.pdf-lib-upload.disabled {
  cursor: not-allowed;
  color: #8b929c;
  background: #f6f6f7;
}
.pdf-lib-plus {
  font-size: 1.05rem;
  line-height: 1;
  color: #2b4a6f;
}
.pdf-lib-upload.disabled .pdf-lib-plus {
  color: inherit;
}
.pdf-lib-rule {
  margin: 0.35rem 0.2rem 0.55rem;
  color: #8b929c;
  font-size: 11.5px;
  line-height: 1.45;
}
.pdf-lib-notice {
  margin: 0 0.2rem 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}
.pdf-lib-notice.warn {
  background: #fdf3e4;
  color: #8a5a12;
}
.pdf-lib .side-scope {
  margin: 0.2rem;
}
.pdf-lib-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  border-radius: 7px;
}
.pdf-lib-row .tree-item {
  padding-right: 1.9rem;
}
.pdf-lib-row.active .tree-item {
  background: #e8eef4;
  color: #2b4a6f;
}
.pdf-lib-meta {
  margin-top: 0.12rem;
  color: #8b929c;
  font-size: 0.72rem;
}
.pdf-lib-del {
  position: absolute;
  top: 0.32rem;
  right: 0.3rem;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #8b929c;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s;
}
.pdf-lib-row:hover .pdf-lib-del,
.pdf-lib-del:focus-visible {
  opacity: 1;
}
.pdf-lib-del:hover {
  background: #fbe9e9;
  color: #c4383d;
}

/* ========== 字体与层级：统一宋体，章 > 节 > 条目 > 说明 ========== */
:root {
  --font-song: "Songti SC", "Songti TC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --activity-w: 60px;
  --tabbar-h: 38px;
}
.sidebar,
.tabbar,
.pane-toolbar .crumb,
.quiz-pane .quiz-bar strong,
.quiz-pane .book-section h3,
.quiz-pane .quiz-empty,
.welcome {
  font-family: var(--font-song);
  text-autospace: auto;
}
.sidebar .side-count,
.sidebar .side-meta,
.sidebar .p4-ch-meta,
.sidebar .p4-sec-meta,
.sidebar .p4-sum-row,
.sidebar .pdf-lib-meta,
.sidebar .pdf-lib-upload,
.sidebar input,
.sidebar button.me-action {
  font-family: var(--font-ui);
}

.sidebar .side-head {
  display: block;
  padding: 16px 14px 10px;
}
.sidebar .side-head h2 {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a2533;
}
.sidebar .side-desc {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8b929c;
}

/* 一级：章、分组 */
.sidebar .tree-group {
  margin-top: 4px;
}
.sidebar .tree-group + .tree-group {
  margin-top: 6px;
}
.sidebar .tree-toggle {
  align-items: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  color: #1a2533;
}
.sidebar .tree-toggle .caret {
  width: 12px;
  color: #9aa1ab;
  font-size: 11px;
}
.sidebar .tree-ch-title em,
.sidebar .p4-ch-title em {
  font-style: normal;
  color: #4b6585;
  margin-right: 8px;
}
.sidebar .p4-ch-title {
  font-size: 14.5px;
  font-weight: 700;
}
.sidebar .tree-toggle .side-count {
  margin-left: auto;
}

/* 二级：节、条目 */
.sidebar .tree-children {
  padding-left: 10px;
}
.sidebar .tree-item {
  align-items: flex-start;
  padding: 7px 8px;
  border-radius: 8px;
}
.sidebar .tree-item .title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
}
.sidebar .tree-item .ico {
  margin-top: 3px;
  color: #9aa1ab;
}
.sidebar .tree-item .sec-no {
  color: #4b6585;
  font-weight: 600;
  margin-right: 4px;
}
.sidebar .tree-item .title:has(> .sec-no) {
  padding-left: 3.55em;
  text-indent: -3.55em;
}
.sidebar .tree-item.active .title {
  font-weight: 600;
}
.sidebar .side-row {
  align-items: center;
}
.sidebar .p4-sec-title {
  font-size: 14px;
  line-height: 1.5;
}
.sidebar .p4-sec.active .p4-sec-title {
  font-weight: 600;
}
.sidebar .side-scope {
  margin: 8px 8px;
  font-size: 13px;
  line-height: 1.6;
}

/* 标签与面包屑 */
.tab .name {
  font-size: 13.5px;
}
.tab.active .name {
  font-weight: 600;
}
.pane-toolbar .crumb {
  font-size: 13px;
}

/* 题目区：栏目标题 > 小标题 > 正文 */
.quiz-pane .quiz-bar strong {
  font-size: 15px;
  font-weight: 700;
}
.q-explain-head {
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 4px;
  font-family: var(--font-song);
  font-size: 14px;
}
.q-explain-head > span:first-child {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.q-explain-head b {
  font-family: var(--font-ui);
  font-size: 15px;
}
.quiz-pane .q-explain .q-ref {
  margin: 8px 0 0;
  font-size: 13px;
  color: #8b929c;
}
.quiz-pane .q-explain .q-label,
.quiz-pane .q-explain .q-label:has(+ .q-zs),
.quiz-pane .q-explain .q-label:has(+ .q-cw) {
  display: block;
  margin: 20px 0 0;
  padding: 0 0 0 10px;
  border-left: 3px solid #4b6585;
  border-radius: 0;
  background: none;
  color: #1a2533;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.quiz-pane .q-explain .q-label:has(+ .q-cw) {
  border-left-color: #b58a3a;
}
.quiz-pane .book-section h3 {
  font-size: 17px;
  font-weight: 700;
}

/* ========== 活动栏：图标 + 文字 ========== */
.activity {
  gap: 2px;
  padding: 8px 0 10px;
}
.act-btn {
  width: 52px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
}
.act-label {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.act-btn.active .act-label {
  font-weight: 600;
}
.act-btn.active::before {
  left: -4px;
  top: 12px;
  bottom: 12px;
}
.act-dot {
  top: 6px;
  right: 12px;
}
.activity .act-sep {
  width: 28px;
  margin: 5px 0;
}
.activity .act-spacer {
  flex: 1;
}

/* ========== 自动收起的标签栏与工具栏 ========== */
.editor-group.autohide {
  position: relative;
  overflow: hidden;
}
.editor-group.autohide > .pane {
  position: relative;
}
.editor-group.autohide > .tabbar,
.editor-group.autohide .pane > .pane-toolbar,
.editor-group.autohide .handbook-host > .pdf-toolbar,
.editor-group.autohide .handbook-host > .pdf-find,
.editor-group.autohide .quiz-pane > .quiz-bar {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.editor-group.autohide > .tabbar {
  top: 0;
  z-index: 7;
  transform: translateY(-100%);
}
.editor-group.autohide .pane > .pane-toolbar,
.editor-group.autohide .handbook-host > .pdf-toolbar,
.editor-group.autohide .quiz-pane > .quiz-bar {
  top: var(--tabbar-h);
  z-index: 6;
  transform: translateY(calc(-100% - var(--tabbar-h)));
}
.editor-group.autohide .handbook-host > .pdf-find {
  top: calc(var(--tabbar-h) + 30px);
  right: auto;
  margin: 4px 6px;
  z-index: 6;
  transform: translateY(calc(-100% - var(--tabbar-h) - 30px));
}
.editor-group.autohide.chrome-on > .tabbar,
.editor-group.autohide.chrome-on .pane > .pane-toolbar,
.editor-group.autohide.chrome-on .handbook-host > .pdf-toolbar,
.editor-group.autohide.chrome-on .handbook-host > .pdf-find,
.editor-group.autohide.chrome-on .quiz-pane > .quiz-bar {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.editor-group.autohide.chrome-on .pane > .pane-toolbar,
.editor-group.autohide.chrome-on .quiz-pane > .quiz-bar {
  box-shadow: 0 6px 14px rgba(26, 37, 51, 0.06);
}
.editor-group.autohide > .tabbar {
  box-shadow: 0 1px 0 #e3e5e7;
}
.editor-group.autohide .pdf-find[hidden] {
  display: none;
}
.editor-group.autohide::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 8;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 999px;
  background: rgba(104, 111, 122, 0.32);
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.editor-group.autohide.chrome-on::after {
  opacity: 0;
}
.editor-group.autohide:has(.handbook-pane)::after {
  background: rgba(255, 255, 255, 0.38);
}

/* ========== 开始备考（未打开任何文件时） ========== */
.editor-blank {
  overflow: auto;
  background: #f6f6f7;
}
.welcome {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 64px;
  color: #3a4451;
}
.wl-kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4b6585;
}
.welcome h1 {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a2533;
}
.wl-lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #5c6673;
}
.welcome h2 {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a2533;
}
.wl-cards,
.wl-res {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.wl-card,
.wl-res-card,
.wl-contact,
.wl-link {
  border: 1px solid #e3e5e7;
  border-radius: 14px;
  background: #fff;
  color: #1a2533;
  text-align: left;
}
.wl-card,
.wl-res-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wl-card:hover,
.wl-res-card:hover,
.wl-contact:hover,
.wl-link:hover {
  border-color: #c3ccd7;
  box-shadow: 0 6px 18px rgba(26, 37, 51, 0.06);
}
.wl-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8eef4;
  color: #2b4a6f;
}
.wl-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wl-card strong,
.wl-res-card strong,
.wl-link strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.wl-res-card small,
.wl-link small,
.wl-note,
.wl-sessions em,
.wl-facts em {
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  color: #8b929c;
}
.wl-zone {
  margin-top: 28px;
}
.wl-zone header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.wl-zone h2 {
  margin: 0;
  font-size: 18px;
}
.wl-zone header button,
.wl-back {
  padding: 0;
  background: none;
  color: #8b929c;
  font-size: 13px;
  font-weight: 600;
}
.wl-back {
  color: #2b4a6f;
}
.wl-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
}
.wl-contact-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 650;
}
.wl-contact-main svg,
.wl-res-card .wl-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wl-contact-main svg {
  flex: 0 0 auto;
  color: #2b4a6f;
}
.wl-contact em {
  flex: 0 0 auto;
  color: #2b4a6f;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 650;
}
.wl-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.wl-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
}
.wl-link:hover {
  text-decoration: none;
}
.wl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.wl-facts span {
  display: grid;
  gap: 2px;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #1a2533;
  font-size: 15px;
  font-weight: 700;
}
.wl-sessions {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e3e5e7;
  border-radius: 14px;
  background: #fff;
}
.wl-sessions li {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 12px 14px;
}
.wl-sessions li + li {
  border-top: 1px solid #eff0f1;
}
.wl-sessions strong {
  font-size: 14px;
}
.wl-note {
  margin: 8px 2px 0;
}
.wl-qr {
  display: block;
  width: min(220px, 70%);
  margin: 22px auto 0;
  padding: 12px;
  border: 1px solid #e3e5e7;
  border-radius: 16px;
  background: #fff;
}
@media (max-width: 720px) {
  .wl-cards,
  .wl-res,
  .wl-sessions li {
    grid-template-columns: 1fr;
  }
}

/* ========== 我的 ========== */
.me-panel {
  display: grid;
  gap: 14px;
  padding: 4px 4px 16px;
}
.me-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f6f6f7;
}
.me-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8eef4;
  color: #2b4a6f;
}
.me-avatar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.me-who strong {
  display: block;
  font-size: 15px;
  color: #1a2533;
}
.me-who small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: #8b929c;
}
.me-group {
  overflow: hidden;
  border: 1px solid #eff0f1;
  border-radius: 12px;
}
.me-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  color: #3a4451;
  font-size: 14px;
  text-align: left;
}
.me-row + .me-row {
  border-top: 1px solid #eff0f1;
}
.me-row strong {
  color: #1a2533;
  font-weight: 600;
}
.me-action:hover {
  background: #f6f6f7;
}
.me-chev {
  color: #9aa1ab;
  font-size: 18px;
  line-height: 1;
}
.me-danger {
  justify-content: center;
  color: #c23a3a;
}
.me-back {
  justify-self: start;
  padding: 2px 4px;
  border: none;
  background: none;
  color: #2b4a6f;
  font-size: 13px;
  font-weight: 600;
}
.me-note {
  margin: 0;
  padding: 0 4px;
  color: #6d7682;
  font-size: 12.5px;
  line-height: 1.55;
}
.me-bank {
  align-items: center;
}
.me-bank > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.me-bank small {
  color: #8b929c;
  font-size: 12px;
  font-weight: 400;
}
.me-clear {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdecec;
  color: #c23a3a;
  font-size: 12.5px;
  font-weight: 600;
}
.me-confirm {
  padding: 12px 14px 14px;
  border-top: 1px solid #eff0f1;
  background: #fff;
}
.me-confirm p {
  margin: 0 0 10px;
  color: #3a4451;
  font-size: 13px;
  line-height: 1.55;
}
.me-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.me-confirm-actions button {
  padding: 6px 12px;
  border-radius: 8px;
  background: #eff0f1;
  color: #3a4451;
  font-size: 13px;
}
.me-clear-go {
  background: #c23a3a;
  color: #fff;
}

/* ========== 错题集 / 收藏集 ========== */
.lib-card {
  margin: 0 0 10px;
  padding: 10px 10px 8px;
  border: 1px solid #eff0f1;
  border-radius: 12px;
  background: #fff;
}
.lib-card header,
.lib-sub-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.lib-card header strong,
.lib-sub-title strong {
  min-width: 0;
  color: #1a2533;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}
.lib-card header em,
.lib-sub-title em {
  flex: 0 0 auto;
  color: #8b929c;
  font-style: normal;
  font-size: 12px;
}
.lib-actions {
  display: flex;
  margin-top: 8px;
  border-top: 1px solid #f2f3f4;
}
.lib-actions button {
  flex: 1;
  padding: 8px 4px;
  background: none;
  color: #2b4a6f;
  font-size: 13px;
  font-weight: 600;
}
.lib-actions button + button {
  box-shadow: inset 1px 0 0 #f2f3f4;
}
.lib-actions svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}
.lib-sub-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f2f3f4;
}
.lib-sub-title strong {
  font-size: 13px;
  font-weight: 600;
}
.lib-clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid #e4e6e8;
  border-radius: 999px;
  background: #fff;
  color: #5c6673;
  font-size: 12.5px;
}
.lib-confirm {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f2f3f4;
}
.lib-confirm p {
  margin: 0 0 8px;
  color: #3a4451;
  font-size: 12.5px;
  line-height: 1.55;
}
.lib-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.lib-confirm-actions button {
  padding: 5px 10px;
  border-radius: 8px;
  background: #eff0f1;
  color: #3a4451;
  font-size: 12.5px;
}
.lib-clear-go {
  background: #c23a3a;
  color: #fff;
}
.lib-foot {
  margin: 2px 4px 12px;
  color: #8b929c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.lib-out {
  margin: 12px 0 0;
  color: #2f9e5f;
  font-size: 13.5px;
}
.quiz-back {
  margin-right: 8px;
  padding: 0;
  background: none;
  color: #2b4a6f;
  font-size: 13px;
  font-weight: 600;
}

/* ========== 未开通：锁 ========== */
.lock-note {
  margin: 2px 8px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f1e3;
  color: #7a5b24;
  font-size: 12.5px;
  line-height: 1.55;
}
.row-lock {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #c4a35a;
}
.row-lock svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar .tree-item.locked .txt,
.sidebar .p4-sec .p4-sec-title {
  flex: 1;
}
.sidebar .p4-sec.locked .p4-sec-title,
.sidebar .tree-item.locked .title {
  color: #6d7682;
}
.q-locked {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 8px 2px 12px;
}
.q-locked h3 {
  margin: 0;
  font-size: 18px;
}
.q-locked p,
.book-card .q-primary {
  margin-top: 8px;
}

/* ========== 更新动态 ========== */
.act-dot-new {
  background: #2f9e5f;
}
.upd-list {
  display: grid;
  gap: 4px;
}
.upd-read-all {
  justify-self: start;
  margin: 0 4px 8px;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  background: #e8eef4;
  color: #2b4a6f;
  font-size: 12.5px;
  font-weight: 600;
}
.upd-read-all:disabled {
  background: #eff0f1;
  color: #b0b6be;
  cursor: default;
}
.upd-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  border-radius: 8px;
}
.upd-row.unread {
  background: #f3faf6;
}
.upd-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border: none;
  background: transparent;
  text-align: left;
  color: #1a2533;
}
.upd-item:hover {
  background: rgba(43, 74, 111, 0.04);
}
.upd-notice {
  cursor: default;
}
.upd-notice:hover {
  background: transparent;
}
.upd-kind {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e8eef4;
  color: #2b4a6f;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 650;
}
.upd-row.unread .upd-kind {
  background: #d9f2e4;
  color: #1b7a4c;
}
.upd-body {
  min-width: 0;
}
.upd-title {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
.upd-meta {
  display: block;
  margin-top: 3px;
  color: #8b929c;
  font-family: var(--font-ui);
  font-size: 12px;
}
.upd-read {
  flex: 0 0 auto;
  margin: 8px 6px 0 0;
  padding: 2px 6px;
  border: none;
  background: transparent;
  color: #4b6585;
  font-size: 12px;
  white-space: nowrap;
}
.upd-read:hover {
  text-decoration: underline;
}
.upd-pane {
  padding: 28px 36px 48px;
}
.upd-pane h2 {
  margin: 0 0 16px;
  font-family: var(--font-song);
  font-size: 22px;
  font-weight: 700;
  color: #1a2533;
}
.upd-detail,
.upd-lock {
  font-family: var(--font-song);
  font-size: 16px;
  line-height: 1.75;
  color: #3a4451;
}
.upd-detail b {
  color: #1a2533;
}
.upd-summary {
  color: #686f7a;
}
.upd-lock {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: 36rem;
  padding: 22px;
  border: 1px solid #eadcbe;
  border-radius: 14px;
  background: #fbf7ef;
}
.upd-lock .row-lock {
  width: 28px;
  height: 28px;
}
.upd-lock .row-lock svg {
  width: 22px;
  height: 22px;
}
.upd-lock h3 {
  margin: 0;
  font-size: 18px;
  color: #1a2533;
}
.upd-lock p {
  margin: 0 0 6px;
}
