/* Jetons de couleur de cette page : déclarés dans site.css (thème centralisé). */
.memo-crumb { font-size: .85rem; margin: 0 0 var(--s1); }
.memo-crumb a { color: var(--ink-soft); }
.memo-lede { color: var(--ink-soft); max-width: 46rem; }
.memo-small { font-size: .85rem; color: var(--ink-soft); }
.memo-count { font-size: .85rem; color: var(--ink-faint); margin: var(--s3) 0; }
.memo-note { background: var(--bg-alt); border-radius: var(--radius-sm); padding: var(--s3); }
.memo-h3 { margin: var(--s7) 0 var(--s3); scroll-margin-top: 5rem; }
.memo-panel { scroll-margin-top: 5rem; }
.memo-panel > h2 { margin-top: var(--s5); }
.memo-linkbtn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 0;
}

/* -------------------------------------------------------------- onglets */

/* Mobile : une grille de 2 × 4, tout est visible et se touche au pouce. */
.memo-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2);
  margin: var(--s5) 0 var(--s4); scroll-margin-top: 4.5rem;
}
@media (min-width: 720px) { .memo-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .memo-tabs { display: flex; flex-wrap: wrap; } }
.memo-tabs a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--tap); padding: .4rem .75rem; border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .92rem; line-height: 1.2;
}
.memo-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.memo-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.memo-toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin: var(--s4) 0; }
.memo-toolbar-search { align-items: stretch; flex-direction: column; }
.memo-search { display: block; max-width: 28rem; }
/* Puces de filtre plus hautes sur mobile : cibles tactiles de 44 px. */
.memo-page .chip { min-height: var(--tap); }
@media (min-width: 720px) { .memo-page .chip { min-height: 36px; } }

/* ------------------------------------------------- un verset par livre */

.memo-verse-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.memo-verse {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--grp);
  border-radius: var(--radius); padding: var(--s4); scroll-margin-top: 5rem;
  display: flex; flex-direction: column;
}
.memo-verse-book { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--grp); }
.memo-verse-ref { margin: 0 0 var(--s2); font-weight: 700; font-size: 1.05rem; }
.memo-verse-ref a { text-decoration: none; }
.memo-quote {
  margin: 0 0 var(--s3); font-family: var(--font-read); font-size: var(--read-size);
  line-height: var(--read-leading); color: var(--ink);
}
/* Verset lu dans la Bible de la langue : en attente de sa tranche, ou
   regroupé par la version avec un voisin (« (versets 4-6) »). */
.memo-quote.is-loading { color: var(--ink-soft); font-style: italic; }
.memo-verse-note { color: var(--ink-soft); font-size: .8em; white-space: nowrap; }
.memo-verse-why { color: var(--ink-soft); font-size: .9rem; margin-bottom: var(--s2); }
.memo-verse-more { margin: auto 0 0; font-size: .85rem; }

/* --------------------------------------------------------------- cartes */

.memo-learn { max-width: 40rem; scroll-margin-top: 5rem; }
.memo-setup { display: grid; gap: var(--s4); }
.memo-field { display: grid; gap: var(--s2); border: 0; padding: 0; margin: 0; min-width: 0; }
.memo-field > span, .memo-field > legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); padding: 0; margin-bottom: var(--s2); }
.memo-field[hidden] { display: none; }
.memo-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.memo-stat { display: grid; justify-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.memo-stat-bar {
  display: flex; align-items: flex-end; width: 100%; height: 3rem;
  background: var(--bg-alt); border-radius: var(--radius-sm); overflow: hidden;
}
.memo-stat-bar span { display: block; width: 100%; background: var(--accent); min-height: 2px; }
.memo-stat.is-new .memo-stat-bar span { background: var(--border-strong); }
.memo-stat small { font-size: .7rem; color: var(--ink-faint); text-align: center; line-height: 1.2; }
.memo-due { margin: 0; color: var(--ink-soft); }
.memo-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.memo-actions-wide { margin-top: var(--s4); }
.memo-actions-wide .btn { flex: 1 1 10rem; justify-content: center; min-height: 52px; font-size: 1rem; }

.memo-session { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); }
.memo-session-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.memo-session-head .memo-linkbtn { min-height: var(--tap); }
.memo-progress { height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; margin: var(--s2) 0 var(--s4); }
.memo-progress span { display: block; height: 100%; background: var(--accent); transition: width var(--slow) var(--ease); }
.memo-card { min-height: 14rem; display: flex; flex-direction: column; }
.memo-face { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: var(--s4) 0; }
.memo-face.is-back { text-align: left; justify-content: flex-start; }
.memo-card-ref { font-size: 1.5rem; font-weight: 700; margin: 0 0 var(--s1); color: var(--blue-ink); }
:root[data-theme="dark"] .memo-card-ref { color: var(--blue); }
.memo-card-hint { color: var(--ink-faint); font-size: .9rem; margin: 0 0 var(--s3); }
.memo-card-lead { font-family: var(--font-read); font-size: 1.35rem; margin: 0 0 var(--s3); }
.memo-summary { text-align: center; }
.memo-summary-score { font-size: 1.3rem; }
.memo-summary-score strong { font-size: 2.4rem; color: var(--accent); }

.memo-cloze { font-family: var(--font-read); font-size: var(--read-size); line-height: 2.2; margin: 0 0 var(--s3); }
.memo-slot {
  display: inline-block; min-width: 4.5em; min-height: 36px; padding: 0 .4em; margin: 2px 0;
  border: 0; border-bottom: 2px solid var(--accent); background: var(--bg-alt);
  border-radius: 6px 6px 0 0; font: inherit; color: var(--ink); cursor: pointer; vertical-align: baseline;
}
.memo-slot.is-filled { background: var(--surface-2); font-weight: 600; }
.memo-bank, .memo-answer { display: flex; flex-wrap: wrap; gap: var(--s2); }
.memo-answer {
  min-height: 4.5rem; padding: var(--s2); margin-bottom: var(--s3); align-content: flex-start;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-alt);
}
.memo-answer-empty { color: var(--ink-faint); padding: var(--s2); }
.memo-word {
  min-height: var(--tap); padding: .45rem .8rem; border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font-family: var(--font-read); font-size: 1rem; cursor: pointer; text-align: left;
}
.memo-word:hover { border-color: var(--accent); }
.memo-word[disabled] { opacity: .35; cursor: default; }
.memo-word.is-placed { background: var(--surface-2); }
.memo-right { background: none; color: var(--memo-ok); font-weight: 700; border-bottom: 2px solid var(--memo-ok); }
.memo-wrong { background: none; color: var(--orange-ink); font-weight: 700; border-bottom: 2px solid var(--orange-ink); }
.memo-wrong s { font-weight: 400; color: var(--ink-faint); }
.memo-choices { display: grid; gap: var(--s2); }
@media (min-width: 520px) { .memo-choices { grid-template-columns: 1fr 1fr; } }
.memo-choice {
  min-height: 52px; padding: .6rem 1rem; border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.memo-choice:hover:not([disabled]) { border-color: var(--accent); }
.memo-choice.is-right { border: 2px solid var(--memo-ok); color: var(--memo-ok); }
.memo-choice.is-right::before { content: "✓ "; }
.memo-choice.is-wrong { border: 2px solid var(--orange-ink); color: var(--orange-ink); }
.memo-choice.is-wrong::before { content: "✗ "; }
.memo-choice[disabled] { cursor: default; }
.memo-verdict { margin-top: var(--s3); font-weight: 700; }
.memo-verdict.is-ok { color: var(--memo-ok); }
.memo-verdict.is-ko { color: var(--orange-ink); }

/* Schéma des boîtes de Leitner. */
.memo-figure { margin: var(--s5) 0; max-width: 46rem; }
.memo-figure svg { display: block; width: 100%; height: auto; }
.memo-study .memo-figure svg { max-width: 36rem; }
.memo-figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: var(--s2); }
.memo-leitner svg { max-width: 36rem; }
.lt-box rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.lt-num text { text-anchor: middle; font-weight: 700; font-size: 15px; fill: var(--ink); }
.lt-gap text { text-anchor: middle; font-size: 10px; fill: var(--ink-soft); }
.lt-ok path { fill: none; stroke: var(--memo-ok); stroke-width: 1.8; }
.lt-ok-fill { fill: var(--memo-ok); }
.lt-ko { fill: none; stroke: var(--orange-ink); stroke-width: 1.6; stroke-dasharray: 4 3; }
.lt-ko-fill { fill: var(--orange-ink); }
.lt-label { text-anchor: middle; font-size: 11px; }
.lt-ok-text { fill: var(--memo-ok); }
.lt-ko-text { fill: var(--orange-ink); }

/* ------------------------------------------------------------- procédés */

.memo-principles { padding-left: 1.2rem; max-width: 46rem; display: grid; gap: var(--s2); }
.memo-principles strong { display: block; }
.memo-boxes { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.memo-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); min-width: 0; scroll-margin-top: 5rem; }
.memo-box-wide { margin-bottom: var(--s3); }
.memo-box h4 { margin: 0 0 var(--s2); font-size: 1.02rem; }
.memo-box > p { color: var(--ink-soft); font-size: .92rem; }
.memo-keyed { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s2); }
.memo-keyed li { display: grid; grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr); gap: var(--s3); align-items: baseline; }
.memo-keyed li > a:first-child { font-weight: 600; white-space: nowrap; }
.memo-keyed li > span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 400px) { .memo-keyed li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.memo-acro { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.memo-acro li { display: flex; gap: var(--s3); align-items: baseline; }
.memo-acro-letter {
  flex: 0 0 auto; min-width: 2.2rem; text-align: center; font-weight: 800; font-size: 1.05rem;
  color: var(--accent); letter-spacing: .06em;
}
.memo-order { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin: var(--s3) 0; }
.memo-order-key { margin: 0; background: var(--bg-alt); border-radius: var(--radius); padding: var(--s4); }
.memo-order-key span { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.memo-order-key small { color: var(--ink-soft); font-size: .88rem; }
.memo-shelf { display: grid; gap: var(--s2); margin: var(--s3) 0; }
.memo-shelf-row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--s3); align-items: center; }
@media (max-width: 560px) { .memo-shelf-row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); } }
.memo-shelf-name { font-size: .85rem; font-weight: 600; color: var(--grp); }
.memo-shelf-name small { color: var(--ink-faint); font-weight: 400; }
.memo-shelf-books { display: flex; flex-wrap: wrap; gap: 3px; }
.memo-shelf-books a {
  display: inline-grid; place-items: center; min-width: 2.6rem; min-height: 2rem; padding: 0 .3rem;
  border-radius: 4px; border: 1px solid var(--grp); border-left-width: 4px;
  color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none; background: var(--surface);
}
.memo-shelf-books a:hover { background: var(--surface-2); }

.memo-palace-svg { max-width: 34rem; }
.pl-house path, .pl-house ellipse { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-linejoin: round; }
.pl-house .pl-thin { stroke-width: 1; stroke-dasharray: 3 3; }
.pl-house .pl-stair { stroke-width: 1.5; stroke-dasharray: 2 2; }
.pl-house .pl-pond { fill: var(--bg-alt); }
.pl-floor text { font-size: 11px; fill: var(--ink-faint); text-anchor: end; }
.pl-path { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .8; }
.pl-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.8; }
.pl-num { text-anchor: middle; font-size: 12.5px; font-weight: 700; fill: var(--ink); }
a:hover .pl-dot, a:focus .pl-dot { fill: var(--accent); }
a:hover .pl-num, a:focus .pl-num { fill: var(--accent-ink); }
.memo-palace { padding-left: 1.8rem; display: grid; gap: var(--s2); max-width: 46rem; }
.memo-palace li { scroll-margin-top: 5rem; padding: var(--s1) var(--s2); border-radius: var(--radius-sm); }
.memo-palace li:target { background: var(--bg-alt); }
.memo-palace-key { display: block; font-size: .85rem; color: var(--ink-soft); }

/* -------------------------------------------------------- chapitres-clés */

.memo-chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.memo-chapters li {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 11rem) minmax(0, 1fr);
  gap: var(--s1) var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
@media (max-width: 760px) { .memo-chapters li { grid-template-columns: minmax(0, 1fr) auto; } .memo-chap-desc { grid-column: 1 / -1; } }
.memo-chap-theme { font-weight: 650; }
.memo-chap-theme small { display: block; font-weight: 400; font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.memo-chap-ref { font-weight: 600; white-space: nowrap; }
.memo-chap-desc { color: var(--ink-soft); font-size: .92rem; }
.memo-chapters .empty { display: block; }

/* ------------------------------------------------------------- parcours */

.memo-routes { display: grid; gap: var(--s2); }
.memo-route, .memo-question {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  scroll-margin-top: 5rem;
}
.memo-route summary, .memo-question summary {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: baseline; justify-content: space-between;
  padding: var(--s3) var(--s4); min-height: var(--tap); cursor: pointer; list-style: none;
}
.memo-route summary::-webkit-details-marker, .memo-question summary::-webkit-details-marker { display: none; }
.memo-route summary::before, .memo-question summary::before {
  content: "+"; flex: 0 0 auto; width: 1.2rem; font-weight: 700; color: var(--accent);
}
.memo-route[open] summary::before, .memo-question[open] summary::before { content: "−"; }
.memo-route-title { flex: 1 1 12rem; font-weight: 650; }
.memo-route-meta { font-size: .8rem; color: var(--ink-faint); }
.memo-route-body { padding: 0 var(--s4) var(--s4); }
.memo-route-intro { color: var(--ink-soft); }
.memo-steps { padding-left: 1.4rem; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.memo-steps li > a { font-weight: 600; white-space: nowrap; font-size: .9rem; }
.memo-step-k { margin-right: var(--s1); }
.memo-step-text {
  display: block; margin-top: var(--s1); padding-left: var(--s3); border-left: 2px solid var(--border-strong);
  font-family: var(--font-read); color: var(--ink-soft); font-size: .98rem;
}
.memo-step-text[hidden] { display: none; }

/* ----------------------------------------------------- études illustrées */

.memo-study { max-width: 48rem; margin-bottom: var(--s7); scroll-margin-top: 5rem; }
.memo-study > h3 { font-size: 1.35rem; }
.memo-study-part { margin-top: var(--s4); }
.memo-study-part h4 { display: flex; gap: var(--s2); align-items: baseline; margin: 0 0 var(--s1); }
.memo-study-num {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: 0 0 auto;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem;
}
.memo-study-q { font-style: italic; color: var(--ink-soft); margin-bottom: var(--s1); }

.rm-zone { stroke: var(--surface); stroke-width: 1; }
.rm-prologue { fill: var(--border-strong); }
.rm-zone-num { text-anchor: middle; font-size: 13px; font-weight: 700; fill: var(--plan-ink); }
.rm-tick { stroke: var(--ink-faint); stroke-width: 1; }
.rm-ch { text-anchor: middle; font-size: 10px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.rm-mark { stroke: var(--ink); stroke-width: 1; }
.rm-pin { fill: var(--ink); }
.rm-mark-text { text-anchor: middle; font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.rm-mark-ref { font-weight: 400; fill: var(--ink-soft); }
.rm-legend { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s1); font-size: .88rem; }
.rm-legend small { color: var(--ink-faint); }
.rm-swatch {
  display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: var(--s2);
  border-radius: 4px; color: var(--plan-ink); font-weight: 700; font-size: .78rem;
}

.lk-dot { fill: var(--border-strong); }
.lk-lost { fill: var(--orange); }
.lk-son { fill: var(--border-strong); }
.lk-son.is-lost { fill: var(--orange); }
.lk-head { text-anchor: middle; font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.lk-cap { text-anchor: middle; font-size: 12px; fill: var(--ink-soft); }
.lk-route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }
.lk-father { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.lk-home path { fill: var(--bg-alt); stroke: var(--ink-soft); stroke-width: 1.5; }
.lk-stop { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.lk-meet { fill: var(--orange); }
.lk-label { text-anchor: middle; font-size: 11.5px; fill: var(--ink); }
.lk-feast { font-weight: 700; fill: var(--orange-ink); }
.lk-small { text-anchor: start; fill: var(--ink-soft); }

.rv-spine { stroke: var(--border-strong); stroke-width: 2; }
.rv-node circle { fill: var(--surface); stroke-width: 2; }
.rv-node.is-general circle { stroke: var(--ink-soft); }
.rv-node.is-special circle { stroke: var(--accent); }
.rv-icon path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rv-title { font-size: 14px; font-weight: 700; fill: var(--ink); }
.rv-ref { font-size: 11px; fill: var(--ink-soft); }
.rv-brace { fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.rv-brace.is-special { stroke: var(--accent); }
.rv-group { text-anchor: middle; font-size: 10px; fill: var(--ink-soft); letter-spacing: .06em; }
.rv-out { fill: none; stroke: var(--accent); stroke-width: 2; }
.rv-arrow { fill: var(--accent); }

/* ------------------------------------------------------------ questions */

.memo-questions { display: grid; gap: var(--s2); max-width: 48rem; }
.memo-question summary { font-weight: 650; justify-content: flex-start; flex-wrap: nowrap; }
.memo-question > div { padding: 0 var(--s4) var(--s3); }
.memo-question-refs { margin-bottom: var(--s2); }

/* ------------------------------------------------------------- méthodes */

.memo-method { max-width: 52rem; margin-bottom: var(--s6); scroll-margin-top: 5rem; }
.memo-method > h3 { font-size: 1.2rem; }
.memo-method-steps { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.memo-method-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.memo-method-step h5, .memo-example h5 { font-size: .95rem; margin: 0 0 var(--s2); }
.memo-method-step ul, .memo-example ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s1); font-size: .92rem; }
.memo-example { margin-top: var(--s3); background: var(--bg-alt); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.memo-example .memo-keyed { padding: 0; }

.memo-annot { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); max-width: 52rem; }
.memo-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); font-size: .92rem; }
.memo-legend li { display: flex; gap: var(--s3); align-items: flex-start; }
.an-swatch { flex: 0 0 auto; width: 2rem; height: 1.2rem; border-radius: 3px; margin-top: .15rem; border: 1px solid var(--border-strong); }
.an-dieu { background: var(--mark-dieu); fill: var(--mark-dieu); }
.an-promesse { background: var(--mark-promesse); fill: var(--mark-promesse); }
.an-appel { background: var(--mark-appel); fill: var(--mark-appel); }
.an-alerte { background: var(--mark-alerte); fill: var(--mark-alerte); }
.an-icon { flex: 0 0 auto; width: 2rem; height: 2rem; }
.an-box { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.an-wave { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.an-sign { fill: none; stroke: var(--orange-ink); stroke-width: 2; stroke-linecap: round; }
.an-glyph { text-anchor: middle; font-size: 22px; font-weight: 800; fill: var(--orange-ink); }
#annotSvg { max-width: 34rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.an-text { font-family: var(--font-read); font-size: 17px; fill: var(--ink); }
.an-hl { stroke: none; }
.an-rule { stroke: var(--border-strong); stroke-width: 1; }
.an-margin { font-size: 13px; font-weight: 700; fill: var(--orange-ink); }
.memo-tips { max-width: 46rem; padding-left: 1.2rem; }

.memo-table-wrap { overflow-x: auto; max-width: 52rem; border: 1px solid var(--border); border-radius: var(--radius); }
.memo-plan { width: 100%; border-collapse: collapse; font-size: .92rem; }
.memo-plan th, .memo-plan td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.memo-plan thead th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.memo-plan tbody th { font-variant-numeric: tabular-nums; color: var(--ink-faint); width: 3.5rem; }
.memo-plan td small { color: var(--ink-faint); white-space: nowrap; }
.memo-plan td:last-child { width: 3rem; text-align: center; }
.memo-plan tr:has(input:checked) td:nth-child(2) { color: var(--ink-faint); }
.memo-check { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); cursor: pointer; }
.memo-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
#planChips { margin-bottom: var(--s3); }
