/* 『아몬드』 Almond Review Room — 전용 스타일
 * 고급 양장본 · 클래식 서재 무드: 딥 포레스트 그린 바탕 + 무광 샴페인 골드 헤어라인 + 아이보리 텍스트.
 * 이 파일은 /books/almond/ 에서만 불러옵니다. (martyna/style.css 는 그대로 두고 덮어쓰기만 합니다)
 */

.almond-room {
  --bg: #0e221b;
  --surface: #132c23;
  --surface-soft: #17352a;
  --surface-deep: #0b1b15;
  --ink: #f5f3ee;
  --muted: #c6d0c7;
  --subtle: #93a598;
  --line: rgba(200, 164, 93, 0.22);
  --line-soft: rgba(200, 164, 93, 0.13);
  --line-strong: #c8a45d;
  --accent: #d6b672;
  --accent-dim: #b79355;
  --ok: #a9ccb0;
  --err: #e3a89e;

  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -12%, #1a3b2f 0%, #132c23 42%, #0e221b 72%, #0b1a14 100%);
  background-attachment: fixed;
  color: var(--ink);
}

.almond-room ::selection { background: rgba(214, 182, 114, 0.28); color: #fffdf7; }

.almond-room .container { max-width: 860px; }

/* ── 상단 바 ───────────────────────────────────────────── */
.almond-room .topbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  color: var(--subtle);
}
.almond-room .nav-links a {
  color: var(--subtle);
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.almond-room .nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.almond-room .nav-links a.active { color: var(--accent); border-bottom-color: var(--accent-dim); }

.almond-room .btn-auth {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 13px;
}
.almond-room .btn-auth:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ── 표제 ─────────────────────────────────────────────── */
.almond-room header {
  padding: 46px 0 30px;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.almond-room header::before {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 22px;
}
.almond-room .kicker {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.almond-room h1 {
  color: var(--ink);
  font-size: clamp(26px, 4.6vw, 36px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.32;
}
.almond-room h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(90deg, rgba(200, 164, 93, 0.55), rgba(200, 164, 93, 0.06));
}

/* ── 보기 전환 ─────────────────────────────────────── */
.almond-room .mode-bar {
  display: flex;
  width: fit-content;
  margin: 26px auto 0;
  border: 1px solid var(--line);
  background: rgba(11, 27, 21, 0.45);
}
.almond-room .mode-btn {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  cursor: pointer;
}
.almond-room .mode-btn:last-child { border-right: 0; }
.almond-room .mode-btn:hover { color: var(--accent); }
.almond-room .mode-btn.active {
  background: var(--accent);
  color: #10241c;
  font-weight: 600;
}

/* 학습 화면 안의 보기 방식 — 상단 모드 탭보다 한 단계 작은 세그먼트 */
.almond-room .view-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}
.almond-room .view-switch-label {
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.almond-room .view-seg { display: inline-flex; border: 1px solid var(--line-soft); }
.almond-room .view-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  cursor: pointer;
}
.almond-room .view-btn + .view-btn { border-left: 1px solid var(--line-soft); }
.almond-room .view-btn:hover { color: var(--accent); }
.almond-room .view-btn.active {
  background: rgba(214, 182, 114, 0.12);
  color: var(--accent);
  font-weight: 600;
}
.almond-room .view-switch + section { padding-top: 22px; }
.almond-room .view-switch + .sub-tabs { margin-top: 24px; }
.almond-room .view-switch + .toolbar { margin-top: 20px; }

/* ── 영역 탭 · 보조 도구 모음 — 폭을 고르게 나눠 좌우 균형 ── */
.almond-room .sub-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 8px;
  border: 1px solid var(--line);
  background: rgba(11, 27, 21, 0.35);
}
.almond-room .sub-tabs .btn-line {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 10px 8px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.almond-room .sub-tabs .btn-line:first-child { border-left: 0; }
.almond-room .sub-tabs .btn-line:hover { background: rgba(214, 182, 114, 0.06); }
.almond-room .sub-tabs .btn-line.active {
  background: rgba(214, 182, 114, 0.14);
  color: var(--accent);
  font-weight: 600;
}

/* 학습 화면의 플래시카드 / 퀴즈 / 전체 표 전환 */
.almond-room .seg-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 20px;
  border: 1px solid var(--line);
}
.almond-room .seg-toolbar .btn-line {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 9px 8px;
  text-align: center;
  font-size: 12.5px;
}
.almond-room .seg-toolbar .btn-line:first-child { border-left: 0; }
.almond-room .seg-toolbar .btn-line:hover { background: rgba(214, 182, 114, 0.06); }
.almond-room .seg-toolbar .btn-line.active {
  background: rgba(214, 182, 114, 0.14);
  color: var(--accent);
  font-weight: 600;
}

/* 챕터 화면 상단 — 뒤로 가기와 제목을 양끝으로 */
.almond-room #chapToolbar { justify-content: space-between; }

/* 표 보기 도구 줄 — 왼쪽 버튼 · 오른쪽 검색 */
.almond-room .table-toolbar { justify-content: space-between; margin-top: 0; }
.almond-room .table-toolbar .search-input { flex: 1 1 200px; max-width: 320px; }

/* 영역 탭 바로 아래 본문은 숨 쉴 틈만 남기고 붙입니다. */
.almond-room .sub-tabs + section { padding-top: 14px; }

/* ── 챕터별 접기/펼치기 아코디언 (Sort by Activity) ──────── */
.almond-room .acc-tools {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}
.almond-room .acc-tools-note {
  color: var(--subtle);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.almond-room .acc-tools-btns { display: inline-flex; align-items: baseline; gap: 8px; }
.almond-room .acc-all-btn {
  border: 0;
  background: transparent;
  color: var(--accent-dim);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.almond-room .acc-all-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }
.almond-room .acc-all-sep { color: var(--line-strong); font-size: 11px; }

.almond-room .acc-list { border-top: 0; }
.almond-room .acc-sec { border-bottom: 1px solid var(--line-soft); }
.almond-room .acc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  padding: 15px 10px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.almond-room .acc-head:hover { background: rgba(214, 182, 114, 0.055); }
.almond-room .acc-caret {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  font-size: 0;
  color: transparent;
}
.almond-room .acc-caret::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transform-origin: 60% 60%;
  transition: transform 0.18s ease;
}
.almond-room .acc-sec.collapsed .acc-caret::before { transform: rotate(-45deg); }
.almond-room .acc-tag {
  flex: none;
  width: 96px;
  color: var(--accent-dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.almond-room .acc-title {
  flex: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.almond-room .acc-range { color: var(--subtle); font-size: 12.5px; }
.almond-room .acc-count {
  margin-left: auto;
  flex: none;
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.almond-room .acc-body { padding: 2px 10px 26px; }
.almond-room .acc-sec.collapsed .acc-body { display: none; }
.almond-room .acc-body > h3:first-child { margin-top: 12px; }

/* Progress → Study 이동 시 잠깐 강조하는 위치 */
.almond-room .jump-target {
  scroll-margin-top: 18px;
  animation: almond-jump 2.4s ease-out 1;
}
@keyframes almond-jump {
  0% { box-shadow: inset 0 0 0 1px rgba(214, 182, 114, 0.85); background-color: rgba(214, 182, 114, 0.07); }
  100% { box-shadow: inset 0 0 0 1px rgba(214, 182, 114, 0); background-color: transparent; }
}

/* ── 소챕터 목록 ───────────────────────────────────────── */
.almond-room .auth-pill { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.almond-room .chapter-list { margin-top: 26px; border-top: 1px solid var(--line-strong); }
.almond-room .chapter-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}
.almond-room .chapter-row .row-go { margin-left: auto; flex: none; white-space: nowrap; }
.almond-room input[type="checkbox"] { accent-color: var(--accent); }
.almond-room .chapter-row:hover { background: rgba(214, 182, 114, 0.055); padding-left: 16px; }
.almond-room .chapter-row .row-tag {
  flex: none;
  width: 96px;
  color: var(--accent-dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.almond-room .chapter-row .row-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.almond-room .chapter-row .row-range { color: var(--subtle); font-size: 12.5px; }
.almond-room .chapter-row .row-go { color: var(--accent-dim); font-size: 11.5px; letter-spacing: 0.06em; }
.almond-room .chapter-row:hover .row-go { color: var(--accent); }

/* ── 구획 · 제목 ───────────────────────────────────────── */
.almond-room section { border-bottom: 1px solid var(--line-soft); padding: 36px 0; }
.almond-room h2 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.almond-room h2::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-6px);
}
.almond-room .h2-sub {
  color: var(--accent-dim);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 0;
}
.almond-room h3 {
  color: #eadfc6;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 28px 0 8px;
}
.almond-room h3 span { color: var(--subtle) !important; }
.almond-room .sec-intro { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* ── 버튼 · 입력 ───────────────────────────────────────── */
.almond-room .btn-line {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
}
.almond-room .btn-line:hover { border-color: var(--accent-dim); color: var(--accent); }
.almond-room .btn-line.active {
  border-color: var(--accent);
  background: rgba(214, 182, 114, 0.1);
  color: var(--accent);
  font-weight: 500;
}
.almond-room .btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #10241c;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 16px;
}
.almond-room .btn-primary:hover { background: #e0c489; border-color: #e0c489; }

.almond-room .search-input,
.almond-room .p-input,
.almond-room .p-select,
.almond-room .talk-memo {
  background: var(--surface-deep);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
}
.almond-room .search-input::placeholder,
.almond-room .p-input::placeholder,
.almond-room .talk-memo::placeholder { color: #7e9185; }
.almond-room .search-input:focus,
.almond-room .p-input:focus,
.almond-room .talk-memo:focus,
.almond-room .p-select:focus { outline: none; border-color: var(--accent); }

/* ── 어휘 표 ───────────────────────────────────────────── */
.almond-room table.simple-table th {
  color: var(--accent-dim);
  border-bottom: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 10px;
}
.almond-room table.simple-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 10px;
  color: var(--ink);
}
.almond-room table.simple-table tbody tr:hover { background: rgba(214, 182, 114, 0.045); }
.almond-room .col-word { color: #f7f2e6; font-weight: 500; font-size: 15px; }
.almond-room .col-mean { color: var(--muted); }
.almond-room .speak-btn { color: var(--accent-dim); }
.almond-room .speak-btn:hover { color: var(--accent); }
.almond-room .meaning-cell.masked {
  color: transparent;
  background: rgba(214, 182, 114, 0.1);
  box-shadow: inset 0 0 0 1px rgba(200, 164, 93, 0.16);
}
.almond-room .meaning-cell.masked::after { content: "눌러서 보기"; color: var(--accent-dim); }

/* ── 문법 ─────────────────────────────────────────────── */
.almond-room .grammar-list li { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.almond-room .g-head { color: var(--ink); font-size: 16px; font-weight: 500; }
.almond-room .g-meaning { color: var(--accent-dim); font-size: 12.5px; letter-spacing: 0.02em; }
.almond-room .g-desc { color: var(--muted); font-size: 13.5px; }
.almond-room .g-ex {
  color: #e8e1d2;
  border-left: 1px solid var(--accent-dim);
  background: rgba(214, 182, 114, 0.05);
  padding: 7px 14px;
  font-size: 14px;
}

/* ── 같이 나눈 이야기 ──────────────────────────────────── */
.almond-room .talk-list { padding-left: 0; list-style: none; counter-reset: talk; }
.almond-room .talk-list li {
  counter-increment: talk;
  position: relative;
  padding-left: 26px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.85;
}
.almond-room .talk-list li::before {
  content: counter(talk, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--accent-dim);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

/* ── 연습 문제 ─────────────────────────────────────────── */
.almond-room .practice-group { border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
.almond-room .p-title { color: #eadfc6; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.almond-room .p-row { color: var(--muted); font-size: 14.5px; line-height: 2.1; }
.almond-room .fb.ok { color: var(--ok); }
.almond-room .fb.err { color: var(--err); }
.almond-room .fb.ans { color: var(--accent); }

/* 모든 연습 세트 공통 액션 줄: 정답 확인 ↔ 정답 숨기기 + 채점 결과 */
.almond-room .practice-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.almond-room .practice-actions .btn-primary,
.almond-room .practice-actions .btn-line { margin-top: 0; cursor: pointer; }
.almond-room .practice-status { font-size: 12px; letter-spacing: 0.02em; color: var(--subtle); }
.almond-room .practice-status.ok { color: var(--ok); }
.almond-room .practice-status.warn { color: var(--err); }
.almond-room .p-row.is-ok .p-select { border-color: rgba(169, 204, 176, 0.55); }
.almond-room .p-row.is-err .p-select { border-color: rgba(227, 168, 158, 0.55); }

/* ── 저장 버튼이 있는 입력칸 (문법 · 이야기) ────────────── */
.almond-room .save-field { margin-top: 8px; }
.almond-room .save-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.almond-room .save-btn { padding: 5px 12px; font-size: 12px; cursor: pointer; }
.almond-room .save-btn:disabled { opacity: 0.55; cursor: default; }
.almond-room .save-btn:disabled:hover { border-color: var(--line); color: var(--muted); }
.almond-room .save-state { font-size: 11.5px; letter-spacing: 0.03em; color: var(--subtle); }
.almond-room .save-state.dirty { color: var(--accent); }
.almond-room .save-state.saved { color: var(--ok); }
.almond-room .save-state.err { color: var(--err); }

/* ── 플래시카드 ────────────────────────────────────────── */
.almond-room .flashcard-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #17352a 0%, #12291f 100%);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(200, 164, 93, 0.14);
  padding: 30px 28px;
  margin: 18px 0 26px;
}
.almond-room .fc-top { color: var(--subtle); font-size: 11.5px; letter-spacing: 0.04em; }
.almond-room .fc-card {
  border: 1px solid var(--line-soft);
  background: rgba(11, 27, 21, 0.5);
  min-height: 190px;
}
.almond-room .fc-card:hover { background: rgba(214, 182, 114, 0.05); }
.almond-room .fc-word { color: var(--ink); font-size: 30px; font-weight: 500; }
.almond-room .fc-hint { color: var(--subtle); font-size: 11.5px; letter-spacing: 0.04em; }
.almond-room .fc-back { border-top: 1px solid var(--line-soft); }
.almond-room .fc-meaning { color: var(--accent); font-size: 17px; font-weight: 500; }
.almond-room .fc-note { color: var(--muted); }
.almond-room .btn-ok {
  border: 1px solid rgba(169, 204, 176, 0.55);
  background: transparent;
  color: var(--ok);
}
.almond-room .btn-ok:hover { background: rgba(169, 204, 176, 0.12); }
.almond-room .btn-again {
  border: 1px solid rgba(227, 168, 158, 0.5);
  background: transparent;
  color: var(--err);
}
.almond-room .btn-again:hover { background: rgba(227, 168, 158, 0.1); }

/* ── 어휘 퀴즈 ─────────────────────────────────────────── */
.almond-room .mcq-box { border-top: 1px solid var(--line); }
.almond-room .mcq-q { border-bottom: 1px solid var(--line-soft); }
.almond-room .mcq-opt {
  border: 1px solid var(--line-soft);
  background: var(--surface-deep);
  color: var(--ink);
  font-size: 13.5px;
  padding: 9px 13px;
}
.almond-room .mcq-opt:hover { border-color: var(--accent-dim); color: var(--accent); }
.almond-room .mcq-opt.correct {
  border-color: rgba(169, 204, 176, 0.7);
  background: rgba(169, 204, 176, 0.13);
  color: #c2e0c7;
}
.almond-room .mcq-opt.wrong {
  border-color: rgba(227, 168, 158, 0.6);
  background: rgba(227, 168, 158, 0.1);
  color: #eeb8ae;
}

/* ── 안내 상자 · 게이트 ────────────────────────────────── */
.almond-room .note-box,
.almond-room .gate-box,
.almond-room .teacher-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.almond-room .gate-box h2 { justify-content: center; }
.almond-room .gate-box h2::before { display: none; }
.almond-room .rules-hint { color: var(--err); }
.almond-room .student-row { border-bottom: 1px solid var(--line-soft); }
.almond-room .chap-checks { color: var(--muted); }

/* ── 하단 ─────────────────────────────────────────────── */
.almond-room footer {
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding-top: 22px;
}

/* ── 진도 대시보드 ──────────────────────────────────── */
.almond-room .dash-wrap { padding-top: 34px; }
.almond-room .dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.almond-room .dash-who { color: var(--accent-dim); font-size: 11.5px; letter-spacing: 0.08em; }
.almond-room .dash-picker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 0 4px; padding: 12px 14px;
  border: 1px solid var(--line-soft); background: rgba(11, 27, 21, 0.45);
}
.almond-room .dash-picker label { font-size: 11px; letter-spacing: 0.1em; color: var(--accent-dim); }
.almond-room .dash-hint { font-size: 11.5px; color: var(--subtle); }

.almond-room .dash-hero {
  margin-top: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #17352a 0%, #12291f 100%);
  padding: 26px 28px;
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(200, 164, 93, 0.14);
}
.almond-room .dash-hero-grid {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 22px;
}
.almond-room .dash-score { display: flex; flex-direction: column; gap: 4px; }
.almond-room .dash-kicker { color: var(--accent-dim); font-size: 10.5px; letter-spacing: 0.18em; }
.almond-room .dash-pct {
  font-family: 'Noto Serif KR', serif; color: var(--ink);
  font-size: 56px; line-height: 1; letter-spacing: -0.01em;
}
.almond-room .dash-pct em { font-style: normal; font-size: 21px; color: var(--accent); margin-left: 5px; }
.almond-room .dash-sub { font-size: 11.5px; color: var(--subtle); }
.almond-room .dash-figures { display: flex; gap: 28px; flex-wrap: wrap; }
.almond-room .dash-figures div { display: flex; flex-direction: column; gap: 2px; }
.almond-room .dash-figures b {
  font-family: 'Noto Serif KR', serif; font-weight: 500; font-size: 19px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.almond-room .dash-figures span { font-size: 10.5px; letter-spacing: 0.08em; color: var(--subtle); }

.almond-room .dash-track { display: block; width: 100%; height: 3px; background: rgba(245, 243, 238, 0.1); overflow: hidden; }
.almond-room .dash-track.lg { height: 5px; margin: 2px 0 18px; }
.almond-room .dash-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.almond-room .dash-domain-row { display: flex; gap: 8px; flex-wrap: wrap; }
.almond-room .dash-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  border: 1px solid var(--line-soft); padding: 6px 10px;
  font-size: 11px; color: var(--muted);
}
.almond-room .dash-chip b { color: var(--accent); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.almond-room .dash-table { margin-top: 26px; table-layout: fixed; }
.almond-room .dash-table th:first-child { width: 23%; }
.almond-room .dash-table td { vertical-align: middle; }

/* 표의 영역 칸을 눌러 Study 의 해당 활동으로 이동합니다. */
.almond-room .dash-table td.dash-jump-td { padding: 0; }
.almond-room .dash-jump {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 9px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.almond-room .dash-jump:hover,
.almond-room .dash-jump:focus-visible {
  border-color: var(--accent-dim);
  background: rgba(214, 182, 114, 0.07);
  outline: none;
}
.almond-room .dash-jump:hover .dash-num::after { content: " →"; color: var(--accent); }
.almond-room .dash-jump:focus-visible { box-shadow: 0 0 0 1px var(--accent); }
.almond-room .dash-jump .dash-total { display: block; text-align: right; }
.almond-room .dash-jump-arrow { display: none; }
.almond-room .dash-jump-hint {
  margin: 14px 0 0;
  color: var(--accent-dim);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.almond-room .dash-chap { display: block; color: var(--ink); font-size: 14px; }
.almond-room .dash-chap-sub { display: block; font-size: 10.5px; color: var(--subtle); margin-top: 2px; line-height: 1.5; }
.almond-room .dash-cell { display: block; min-width: 0; }
.almond-room .dash-num {
  display: block; margin-bottom: 5px; color: var(--ink);
  font-size: 12px; font-variant-numeric: tabular-nums; text-align: left;
}
.almond-room .dash-detail { display: block; margin-top: 5px; font-size: 10px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.almond-room .dash-total { color: var(--accent); font-family: 'Noto Serif KR', serif; font-size: 15px; text-align: right; }
.almond-room .dash-note { margin-top: 14px; font-size: 11.5px; color: var(--subtle); line-height: 1.9; }

/* ── 라이트 모드 (금색·초록 반전: 종이 바탕 + 딥 그린 + 골드) ─────── */
.almond-room.theme-light {
  --bg: #f6f4ec;
  --surface: #fffdf7;
  --surface-soft: #f1efe4;
  --surface-deep: #fbf9f2;
  --ink: #12261e;
  --muted: #3f574b;
  --subtle: #6c8074;
  --line: rgba(18, 38, 30, 0.18);
  --line-soft: rgba(18, 38, 30, 0.1);
  --line-strong: #a8823f;
  --accent: #9a7433;
  --accent-dim: #7f5f28;
  --ok: #2f6b46;
  --err: #a33b31;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 50% -10%, #fffdf6 0%, #f7f4ea 45%, #f1ede1 100%);
}
.almond-room.theme-light .mode-btn.active { color: #fdfbf4; }
.almond-room.theme-light .mode-bar { background: rgba(255, 253, 247, 0.75); }
.almond-room.theme-light .mode-btn { color: #3f574b; }
.almond-room.theme-light .mode-btn:hover { color: var(--accent-dim); }
.almond-room.theme-light .p-title { color: #2c4638; }
.almond-room.theme-light .g-ex { color: #22392e; }
.almond-room.theme-light .dash-chap { color: #0f2019; }
.almond-room.theme-light .view-btn.active { background: rgba(154, 116, 51, 0.12); }
.almond-room.theme-light .btn-primary { color: #fdfbf4; }
.almond-room.theme-light .chapter-row:hover { background: rgba(154, 116, 51, 0.07); }
.almond-room.theme-light table.simple-table tbody tr:hover { background: rgba(154, 116, 51, 0.06); }
.almond-room.theme-light .col-word { color: #0f2019; }
.almond-room.theme-light .h3,
.almond-room.theme-light h3 { color: #2c4638; }
.almond-room.theme-light .flashcard-wrap {
  background: linear-gradient(180deg, #fffdf7 0%, #f5f1e6 100%);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(168, 130, 63, 0.25);
}
.almond-room.theme-light .fc-card { background: rgba(255, 253, 247, 0.85); }
.almond-room.theme-light .fc-card:hover { background: rgba(154, 116, 51, 0.07); }
.almond-room.theme-light .mcq-opt { background: var(--surface-deep); }
.almond-room.theme-light .mcq-opt.correct { color: #1f5232; background: rgba(47, 107, 70, 0.1); }
.almond-room.theme-light .mcq-opt.wrong { color: #8d2f27; background: rgba(163, 59, 49, 0.08); }
.almond-room.theme-light .btn-ok:hover { background: rgba(47, 107, 70, 0.1); }
.almond-room.theme-light .btn-again:hover { background: rgba(163, 59, 49, 0.08); }
.almond-room.theme-light .dash-hero {
  background: linear-gradient(180deg, #fffdf7 0%, #f4f0e4 100%);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(168, 130, 63, 0.25);
}
.almond-room.theme-light .dash-track { background: rgba(18, 38, 30, 0.12); }
.almond-room.theme-light .dash-picker { background: rgba(255, 253, 247, 0.7); }
.almond-room.theme-light .meaning-cell.masked { background: rgba(154, 116, 51, 0.12); color: transparent; }
.almond-room.theme-light .acc-head:hover { background: rgba(154, 116, 51, 0.07); }
.almond-room.theme-light .dash-jump:hover,
.almond-room.theme-light .dash-jump:focus-visible { background: rgba(154, 116, 51, 0.08); }
.almond-room.theme-light .sub-tabs { background: rgba(255, 253, 247, 0.7); }
.almond-room.theme-light .jump-target { animation-name: almond-jump-light; }
@keyframes almond-jump-light {
  0% { box-shadow: inset 0 0 0 1px rgba(168, 130, 63, 0.85); background-color: rgba(154, 116, 51, 0.06); }
  100% { box-shadow: inset 0 0 0 1px rgba(168, 130, 63, 0); background-color: transparent; }
}
.almond-room.theme-light ::selection { background: rgba(154, 116, 51, 0.22); }

@media (max-width: 640px) {
  .almond-room header { padding: 34px 0 26px; }
  .almond-room h2 { font-size: 19px; }
  .almond-room .chapter-row { padding: 14px 4px; align-items: flex-start; }
  .almond-room .chapter-row:hover { padding-left: 8px; }
  .almond-room .chapter-row .row-tag { width: auto; font-size: 10px; letter-spacing: 0.1em; }
  .almond-room .fc-word { font-size: 26px; }
  .almond-room .flashcard-wrap { padding: 22px 16px; }
  .almond-room .mode-btn { padding: 9px 12px; font-size: 12px; }
  .almond-room .mode-bar { max-width: 100%; flex-wrap: wrap; }

  /* 영역 탭은 2줄로 고르게 */
  .almond-room .sub-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .almond-room .sub-tabs .btn-line { border-left: 0; border-top: 1px solid var(--line); font-size: 12px; }
  .almond-room .sub-tabs .btn-line:nth-child(-n + 2) { border-top: 0; }
  .almond-room .sub-tabs .btn-line:nth-child(even) { border-left: 1px solid var(--line); }
  .almond-room .seg-toolbar .btn-line { padding: 9px 4px; font-size: 11.5px; }

  /* 아코디언 헤더는 두 줄로 */
  .almond-room .acc-tools { margin-top: 18px; }
  .almond-room .acc-head { flex-wrap: wrap; gap: 6px 12px; padding: 14px 4px; }
  .almond-room .acc-tag { width: auto; font-size: 10px; letter-spacing: 0.1em; }
  .almond-room .acc-title { font-size: 16px; }
  .almond-room .acc-count { order: 3; font-size: 10.5px; }
  .almond-room .acc-range { order: 4; flex-basis: 100%; }
  .almond-room .acc-body { padding: 2px 4px 22px; }

  .almond-room .dash-table td.dash-jump-td:first-child { padding-bottom: 8px; }
  .almond-room .dash-jump { padding: 6px 0; }
  .almond-room .dash-jump:hover .dash-num::after { content: ""; }

  .almond-room .dash-hero { padding: 20px 16px; }
  .almond-room .dash-pct { font-size: 44px; }
  .almond-room .dash-figures { gap: 18px; }
  .almond-room .dash-table thead { display: none; }
  .almond-room .dash-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .almond-room .dash-table tr td { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; padding: 5px 0; width: auto; }
  .almond-room .dash-table td::before { content: attr(data-label); color: var(--subtle); font-size: 11px; letter-spacing: 0.06em; }
  .almond-room .dash-table td:first-child { display: block; padding-bottom: 8px; }
  .almond-room .dash-table td:first-child::before { display: none; }
  .almond-room .dash-jump { padding: 4px 8px; }
  .almond-room .dash-cell { display: flex; flex-direction: column-reverse; min-width: 0; }
  .almond-room .dash-num { margin-bottom: 4px; }
  .almond-room .dash-detail { margin-top: 2px; }
  .almond-room .dash-total { justify-content: flex-end; }

  /* 상단 인사·버튼은 두 줄로 깔끔하게 */
  .almond-room .auth-pill { width: 100%; gap: 8px; }
  .almond-room #accountEl { flex: 1 0 100%; }
}


/* ── 학습 노트 인쇄 · PDF 저장 ──────────────────────────────────
 * 화면에서는 인쇄용 학습지를 숨기고, 인쇄할 때만 body.is-printing-notes 와 함께 보여 줍니다.
 * (학습지 본문은 app.js 의 printSheetHtml 이 저장된 답·메모로 만듭니다) */
.print-sheet { display: none; }

.almond-room .print-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.almond-room .print-hint { color: var(--subtle); font-size: 11.5px; line-height: 1.6; }
.almond-room .print-btn { cursor: pointer; white-space: nowrap; margin-top: 0; }

/* A4 한 장 기준 — 위 16mm, 좌우 14mm, 아래는 고정 푸터 자리를 비워 둡니다. */
@page {
  size: A4;
  margin: 16mm 14mm 18mm;
}

@media print {
  /* 1) 어떤 테마(다크 모드)에서도 흰 바탕 + 검은 글자로만 인쇄합니다. */
  html,
  body,
  body.almond-room {
    background: #fff !important;
    background-image: none !important;
    color: #111 !important;
  }
  body.almond-room * { box-shadow: none !important; text-shadow: none !important; }
  .almond-room ::selection { background: transparent !important; color: inherit !important; }

  /* 2) 웹에서만 필요한 조작 요소는 인쇄하지 않습니다. */
  .almond-room .topbar,
  .almond-room .mode-bar,
  .almond-room .view-switch,
  .almond-room .sub-tabs,
  .almond-room .seg-toolbar,
  .almond-room .table-toolbar,
  .almond-room .acc-tools,
  .almond-room .acc-caret,
  .almond-room .practice-actions,
  .almond-room .save-row,
  .almond-room .speak-btn,
  .almond-room .btn-auth,
  .almond-room .print-bar,
  .almond-room .print-btn,
  .almond-room .print-hint,
  .almond-room .teacher-panel,
  .almond-room #teacherPanel,
  .almond-room .dash-picker,
  .almond-room .dash-jump-hint,
  .almond-room .dash-note,
  .almond-room .flashcard-wrap,
  .almond-room .mcq-box,
  .almond-room .note-box,
  .almond-room .gate-box,
  .almond-room .row-go,
  .almond-room footer,
  .almond-room #notes-panel-root,
  .tln-root {
    display: none !important;
  }

  /* 3) 제목·본문·표 글자를 모두 검정으로 (금색·회색 계열 대신). */
  .almond-room .container { max-width: none; padding: 0; }
  .almond-room header { padding: 0 0 10mm; border-bottom: 1.5pt solid #111; }
  .almond-room header::before { background: #111; }
  /* 화면 테마(다크 그린 · 금색)와 상관없이 모든 글자를 검정으로 — 표의 td·th 처럼
   * 색을 따로 가진 요소까지 빠짐없이 덮습니다. 학습지 모드에서는 위 학습지 규칙을 씁니다. */
  body.almond-room:not(.is-printing-notes) * { color: #111 !important; }
  body.almond-room:not(.is-printing-notes) button:not(.acc-head) { display: none !important; }
  body.almond-room:not(.is-printing-notes) .acc-head { display: flex !important; }

  /* 4) 표·카드가 페이지 중간에서 어색하게 잘리지 않게 합니다. */
  .almond-room table.simple-table tr,
  .almond-room .grammar-list li,
  .almond-room .talk-list li,
  .almond-room .practice-group,
  .almond-room .p-row,
  .almond-room .acc-sec,
  .almond-room section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .almond-room h2,
  .almond-room h3,
  .almond-room .p-title {
    break-after: avoid;
    page-break-after: avoid;
  }
  .almond-room section { border-bottom: 0.5pt solid #ccc; padding: 7mm 0; }
  .almond-room table.simple-table th { color: #111 !important; border-bottom: 0.75pt solid #111; }
  .almond-room table.simple-table td { border-bottom: 0.4pt solid #ccc; }
  .almond-room table.simple-table tbody tr:nth-child(even) { background: #f6f6f6 !important; }
  .almond-room .g-ex { color: #111 !important; background: #f6f6f6 !important; border-left: 1.5pt solid #666; }
  .almond-room .acc-sec.collapsed .acc-body { display: block !important; }
  .almond-room .acc-body { padding: 0; }
  .almond-room input,
  .almond-room select,
  .almond-room textarea {
    background: #fff !important;
    color: #111 !important;
    border: 0 !important;
    border-bottom: 0.5pt solid #999 !important;
    padding: 0 1mm !important;
    font-size: 10pt !important;
  }

  /* 5) 학습지 모드 — 화면 UI 는 접고 학습지만 인쇄합니다. */
  body.almond-room.is-printing-notes > .container { display: none !important; }
  body.almond-room.is-printing-notes .print-sheet { display: block !important; }

  .print-sheet {
    display: none;
    color: #111;
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10pt;
    line-height: 1.55;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-sheet .aps-head { border-bottom: 1.5pt solid #111; padding-bottom: 6mm; margin-bottom: 7mm; }
  .print-sheet .aps-kicker {
    font-size: 7.5pt;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #555;
  }
  .print-sheet .aps-title {
    font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
    font-size: 21pt;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 2mm 0 4mm;
    color: #111;
  }
  .print-sheet .aps-meta { display: flex; flex-wrap: wrap; gap: 8mm; margin: 0; }
  .print-sheet .aps-meta div { display: flex; align-items: baseline; gap: 2.5mm; }
  .print-sheet .aps-meta dt {
    font-size: 7pt;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #666;
  }
  .print-sheet .aps-meta dd { margin: 0; font-size: 9.5pt; font-weight: 600; }

  .print-sheet .aps-chapter + .aps-chapter { break-before: page; page-break-before: always; }
  .print-sheet .aps-chapter-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3mm 4mm;
    border-bottom: 1pt solid #111;
    padding-bottom: 2mm;
    margin-bottom: 5mm;
    break-after: avoid;
    page-break-after: avoid;
  }
  .print-sheet .aps-chapter-tag {
    font-size: 7pt;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #666;
  }
  .print-sheet .aps-chapter-title {
    font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
    font-size: 15pt;
    font-weight: 700;
    margin: 0;
    color: #111;
  }
  .print-sheet .aps-chapter-range { font-size: 8.5pt; color: #555; }

  .print-sheet .aps-block { margin: 0 0 7mm; }
  .print-sheet .aps-block-title {
    display: flex;
    align-items: baseline;
    gap: 2.5mm;
    font-size: 11pt;
    font-weight: 700;
    margin: 0 0 2.5mm;
    padding-bottom: 1.2mm;
    border-bottom: 0.6pt solid #111;
    break-after: avoid;
    page-break-after: avoid;
  }
  .print-sheet .aps-num { font-size: 8pt; color: #888; font-variant-numeric: tabular-nums; }
  .print-sheet .aps-en { letter-spacing: 0.02em; }
  .print-sheet .aps-ko { font-size: 8.5pt; font-weight: 500; color: #666; }

  .print-sheet .aps-sub { font-size: 9.5pt; font-weight: 700; margin: 3mm 0 1.2mm; color: #111; }
  .print-sheet .aps-desc { font-size: 8pt; color: #555; margin: 0 0 1.5mm; }
  .print-sheet .aps-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .print-sheet .aps-table th {
    text-align: left;
    font-size: 7pt;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    border-bottom: 0.75pt solid #111;
    padding: 1.4mm 2mm;
  }
  .print-sheet .aps-table td {
    border-bottom: 0.4pt solid #ccc;
    padding: 1.5mm 2mm;
    vertical-align: top;
  }
  .print-sheet .aps-table tr { break-inside: avoid; page-break-inside: avoid; }
  .print-sheet .aps-table tbody tr:nth-child(even) td { background: #f6f6f6; }
  .print-sheet .aps-word { font-weight: 600; white-space: nowrap; }
  .print-sheet .aps-note { color: #333; }

  .print-sheet .aps-gram {
    border: 0.5pt solid #ccc;
    padding: 2.5mm 3.5mm;
    margin: 0 0 2.5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-sheet .aps-gram-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3mm; }
  .print-sheet .aps-pattern { font-size: 11pt; font-weight: 700; }
  .print-sheet .aps-gram-meaning { font-size: 8pt; letter-spacing: 0.04em; color: #666; }
  .print-sheet .aps-gram-desc { font-size: 8.5pt; margin: 1.2mm 0 0; color: #333; }
  .print-sheet .aps-gram-ex {
    font-size: 9pt;
    margin: 1.2mm 0 0;
    padding-left: 2.5mm;
    border-left: 1.5pt solid #bbb;
    color: #111;
  }
  .print-sheet .aps-own {
    display: flex;
    align-items: baseline;
    gap: 2.5mm;
    margin: 2mm 0 0;
    padding-top: 1.6mm;
    border-top: 0.4pt dashed #bbb;
    font-size: 9pt;
  }
  .print-sheet .aps-own-label,
  .print-sheet .aps-a-label {
    flex: none;
    font-size: 7pt;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
  }
  .print-sheet .aps-answer { font-weight: 500; }
  .print-sheet .aps-answer-block { display: block; margin-top: 1mm; }
  .print-sheet .aps-line {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 45mm;
    height: 1.1em;
    border-bottom: 0.4pt solid #999;
  }

  .print-sheet .aps-questions { list-style: none; margin: 0; padding: 0; counter-reset: aps-q; }
  .print-sheet .aps-q {
    counter-increment: aps-q;
    position: relative;
    margin: 0 0 3.5mm;
    padding-left: 7mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-sheet .aps-q::before {
    content: counter(aps-q, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 8pt;
    color: #888;
  }
  .print-sheet .aps-q-text { margin: 0; font-size: 9.5pt; font-weight: 600; }
  .print-sheet .aps-a { display: flex; align-items: baseline; gap: 2.5mm; margin: 1mm 0 0; font-size: 9pt; }
  .print-sheet .aps-a .aps-answer-block { flex: 1 1 auto; margin-top: 0; }

  .print-sheet .aps-practice {
    margin: 0 0 3.5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-sheet .aps-practice-title { font-size: 9.5pt; font-weight: 700; margin-bottom: 1.2mm; color: #222; }
  .print-sheet .aps-p-row { margin: 0 0 1.4mm; font-size: 9.5pt; line-height: 2; }
  .print-sheet .aps-fill {
    font-weight: 600;
    padding: 0 1.2mm;
    border-bottom: 0.75pt solid #111;
  }
  .print-sheet .aps-blank {
    display: inline-block;
    min-width: 22mm;
    height: 1em;
    border-bottom: 0.5pt solid #999;
  }
  .print-sheet .aps-opts { margin: 0.6mm 0 0; font-size: 8pt; color: #555; letter-spacing: 0.02em; }

  /* 사이트의 다크 테마 제목 색(크림·금색)이 학습지까지 새지 않게 고정합니다. */
  .print-sheet h1,
  .print-sheet h2,
  .print-sheet h3,
  .print-sheet h4,
  .print-sheet h3 span,
  .print-sheet .aps-title,
  .print-sheet .aps-chapter-title,
  .print-sheet .aps-block-title,
  .print-sheet .aps-sub,
  .print-sheet .aps-en,
  .print-sheet .aps-meta dd,
  .print-sheet .aps-gram-head,
  .print-sheet .aps-q-text { color: #111 !important; }
  .print-sheet .aps-ko,
  .print-sheet .aps-kicker,
  .print-sheet .aps-meta dt,
  .print-sheet .aps-chapter-range,
  .print-sheet .aps-desc,
  .print-sheet .aps-gram-meaning,
  .print-sheet .aps-own-label,
  .print-sheet .aps-a-label,
  .print-sheet .aps-opts { color: #555 !important; }
  .print-sheet .aps-num { color: #888 !important; }

  /* 학습지 안에서는 위쪽 화면용 구획 규칙(테두리·안쪽 여백·통째로 넘김)을 되돌립니다.
   * 그대로 두면 챕터 하나가 통째로 다음 장으로 밀려 첫 장이 비어 버립니다. */
  .print-sheet section,
  .print-sheet .aps-chapter,
  .print-sheet .aps-block,
  .print-sheet .aps-vocab-sec {
    break-inside: auto;
    page-break-inside: auto;
    border: 0;
    padding: 0;
  }
  .print-sheet h2::before { background: #111; }
  /* 고정 푸터 — 크롬은 인쇄할 때 모든 페이지 아래에 반복합니다. */
  .print-sheet .aps-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 1.5mm;
    border-top: 0.4pt solid #ccc;
    font-size: 7pt;
    letter-spacing: 0.08em;
    color: #666;
  }
}

@media (max-width: 640px) {
  .almond-room #chapToolbar { flex-wrap: wrap; gap: 8px; }
  .almond-room .print-bar { justify-content: flex-start; }
  .almond-room .print-hint { flex-basis: 100%; }
}
