/* Fiche cuvée multilingue — démo Forge Labs. S'appuie sur ../_shared/demo.css (charte du site). */

:root {
  --wine-950: #1f0810;
  --wine-900: #2b0c15;
  --wine-800: #3d1220;
  --wine-700: #5b1a2b;
  --wine-600: #74253a;
  --wine-200: #e8cdd2;
  --wine-100: #f5e8ea;
  --stone-50: #fbf9f4;
  --stone-100: #f1ece2;
  --stone-200: #e3dacb;
  --stone-300: #cfc3ae;
  --ink-wine: #231a18;
  --muted-wine: #625855;
  --ok: #2f6a35;
  --ok-bg: #e5f0df;
  --warn: #9a4a06;
  --warn-bg: #fdebd3;
  --warn-line: #e39a3b;
  --pending: #6b5d3a;
  --pending-bg: #f3ecd9;

  --accent: var(--wine-700);
  --accent-hover: var(--wine-600);
  --text: var(--ink-wine);
  --text-muted: var(--muted-wine);
  --line: rgba(35, 26, 24, .13);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "P052", "URW Palladio L", Georgia, "Noto Serif", serif;
  --serif-ja: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", "Source Han Serif JP", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", serif;
  --mono-note: ui-monospace, "SFMono-Regular", "Cascadia Mono", "DejaVu Sans Mono", Menlo, monospace;
}

body { background: var(--stone-100); font-size: 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { color: var(--wine-700); }

/* ---------- Barre haute (modèle des démos) ---------- */
.topbar { background: var(--wine-900); color: var(--stone-50); position: sticky; top: 0; z-index: 40; }
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); min-height: 60px; display: flex; align-items: center; gap: 16px; }
.back { color: var(--stone-50); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; padding: 10px 0; }
.back:hover { text-decoration: underline; }
.topbar-title { margin: 0 auto; font: 600 .95rem/1.2 var(--font-display); display: flex; align-items: center; gap: 10px; color: rgba(251, 249, 244, .9); }
.topbar .btn-primary { background: var(--stone-50); color: var(--wine-800); }
.topbar .btn-primary:hover { background: #fff; }
.btn-cta { min-height: 42px; padding: .65em 1.2em; font-size: .92rem; white-space: nowrap; }
.demo-banner { margin: 0; }
@media (max-width: 760px) {
  .topbar-title { display: none; }
  .topbar-in { justify-content: space-between; gap: 10px; }
  .back { font-size: .9rem; }
  .btn-cta { font-size: .86rem; padding: .6em 1em; min-height: 40px; }
}

/* ---------- Mise en page ---------- */
.fc { max-width: 1440px; margin: 0 auto; padding: 28px var(--gutter) 48px; }
.fc h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 22em; margin: 10px 0 10px; }
.fc .lead { font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 52rem; margin-bottom: 16px; }
.intro { margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; font-weight: 600; color: var(--wine-800); }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wine-700); color: #fff; font-size: .78rem; }

.stage { display: grid; gap: 22px; align-items: start; grid-template-columns: minmax(290px, 330px) minmax(0, 1fr) minmax(270px, 310px); grid-template-areas: "notes sheet ctrl"; }
.notes { grid-area: notes; }
.sheet-col { grid-area: sheet; min-width: 0; }
.ctrl { grid-area: ctrl; }
@media (max-width: 1300px) {
  .stage { grid-template-columns: minmax(290px, 360px) minmax(0, 1fr); grid-template-areas: "notes sheet" "ctrl sheet"; }
}
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "notes" "sheet" "ctrl"; }
}
@media (min-width: 1301px) {
  .notes, .ctrl { position: sticky; top: 76px; }
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(43, 12, 21, .05), 0 10px 28px -16px rgba(43, 12, 21, .25); min-width: 0; }
.panel-head h2 { font-size: 1.12rem; margin: 0 0 4px; letter-spacing: -.01em; }
.panel-head p { margin: 0 0 14px; }

/* ---------- Segmentés ---------- */
.seg { border: 0; padding: 3px; margin: 0; display: flex; background: var(--stone-50); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; flex: 1 1 0; min-width: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 6px 8px; border-radius: 11px; font-size: .9rem; font-weight: 700; color: var(--wine-800); cursor: pointer; text-align: center; line-height: 1.1; transition: background .15s, color .15s; }
.seg span small { font-weight: 500; font-size: .74rem; color: var(--muted-wine); }
.seg input:checked + span { background: var(--wine-700); color: #fff; }
.seg input:checked + span small { color: rgba(255, 255, 255, .82); }
.seg input:focus-visible + span { outline: 3px solid var(--sun-400); outline-offset: 1px; }
.seg label:hover input:not(:checked) + span { background: var(--wine-100); }
.seg-cuvee span { flex-direction: column; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.dot-blanc { background: #e9d98a; }
.dot-rouge { background: #7b1f33; }
.seg input:checked + span .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* ---------- Notes (carnet de cave) ---------- */
.pad { margin: 14px 0; border-radius: 12px; background: #fdfcf6; border: 1px solid var(--stone-200); padding: 12px 12px 10px 14px; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgba(91, 26, 43, .06) 27px, rgba(91, 26, 43, .06) 28px); }
.pad-meta { margin: 0 0 6px; color: var(--muted-wine); font-family: var(--mono-note); font-size: .74rem; }
.lines { list-style: none; margin: 0; padding: 0; counter-reset: ln; }
.ln { position: relative; padding: 5px 6px 5px 24px; margin: 0 -6px; border-radius: 6px; font-family: var(--mono-note); font-size: .8rem; line-height: 1.45; color: #2f2622; transition: background .2s, color .2s, opacity .2s; overflow-wrap: anywhere; }
.ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 4px; top: 6px; font-size: .66rem; color: #a89a92; width: 16px; text-align: right; }
.ln-tag { display: block; font: 600 .7rem/1.3 var(--font-body); color: var(--wine-600); margin-top: 2px; }
.ln-tag:empty { display: none; }
.ln.reading { background: var(--wine-100); box-shadow: inset 3px 0 0 var(--wine-700); }
.ln.used .ln-t { color: #2f2622; }
.ln.skip .ln-t { text-decoration: line-through; text-decoration-color: rgba(154, 74, 6, .6); color: #8a7f79; }
.ln.skip .ln-tag { color: var(--warn); }

.btn-gen { width: 100%; min-height: 52px; font-size: 1.02rem; }
.btn-gen:disabled { opacity: .7; cursor: progress; }
.gen-status { margin: 10px 0 0; min-height: 1.4em; color: var(--muted-wine); }

/* ---------- Barre d'outils de la fiche ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.seg-lang { flex: 1 1 360px; max-width: 520px; background: #fff; }
.seg-lang span { min-height: 46px; }
.seg-lang span b { font-size: .92rem; letter-spacing: .04em; }
.seg-lang span small { font-size: .68rem; }
.seg-lang [lang="ja"] small { font-family: var(--serif-ja); }
.tool-actions { display: flex; gap: 8px; margin-left: auto; }
.btn-soft { min-height: 46px; font-size: .92rem; background: #fff; color: var(--wine-800); border-color: var(--line); }
.btn-soft:hover { border-color: var(--wine-700); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 42px; padding: .6em 1em; font-size: .88rem; }
.btn-ghost { color: var(--wine-800); }
.btn-ghost:hover { background: var(--wine-100); }

.tr-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--pending-bg); color: #4d3f17; font-size: .88rem; line-height: 1.45; border: 1px solid #e4d6ad; }
.tr-note[hidden], .print-warn[hidden], .flag[hidden] { display: none; }
.tr-note svg { flex: none; margin-top: 2px; }
.print-warn { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: #6d3404; font-size: .9rem; border: 1px solid var(--warn-line); }

/* ---------- La fiche (A4) ---------- */
.sheet-frame { container-type: inline-size; padding: clamp(0px, 2vw, 22px); border-radius: 18px; background: linear-gradient(160deg, #e9e2d4, #ddd3c1); }
.sheet {
  --sh-ink: #261c1a;
  --sh-muted: #6e625c;
  position: relative; overflow: hidden; overflow: clip; margin: 0 auto; max-width: 720px; width: 100%;
  min-height: calc(min(100cqw, 720px) * 1.4142);
  background: #fffdf8;
  background-image: radial-gradient(120% 70% at 100% 0%, rgba(207, 195, 174, .22), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(207, 195, 174, .18), transparent 60%);
  color: var(--sh-ink); font-family: var(--serif); font-size: 13.4px; line-height: 1.5;
  padding: 44px 50px 34px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 22px 48px -22px rgba(43, 12, 21, .45);
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}
.sheet:lang(ja) { font-family: var(--serif-ja); font-size: 12.6px; line-height: 1.7; }
.sheet.swap-out { opacity: 0; transform: translateY(6px); filter: blur(2px); }
.sheet.is-empty { display: grid; place-items: center; text-align: center; color: var(--sh-muted); font-family: var(--font-body); }
.empty { max-width: 30em; }
.empty p { font-size: .95rem; line-height: 1.5; }
.empty strong { color: var(--wine-800); }
.empty-lines { display: grid; gap: 10px; margin: 0 auto 22px; width: 70%; }
.empty-lines i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #efe8db, #f7f2e8, #efe8db); }
.empty-lines i.s { width: 62%; }

.sh-band { position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--wine-700); }
.sh-contour { position: absolute; right: -40px; bottom: -30px; width: 70%; color: rgba(91, 26, 43, .07); pointer-events: none; }
.sh-head { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(91, 26, 43, .25); }
.sh-mark { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--wine-700); color: var(--wine-700); display: grid; place-items: center; font: 600 .82rem/1 var(--serif); letter-spacing: .08em; }
.sh-house { min-width: 0; }
.sh-domain { margin: 0; font-size: 1.02em; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--wine-800); }
.sheet:lang(ja) .sh-domain { letter-spacing: .08em; }
.sh-fict { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .86em; color: var(--sh-muted); }
.sh-region { margin: 2px 0 0; font-size: .86em; color: var(--sh-muted); letter-spacing: .02em; }
.sh-kind { margin: 0 0 0 auto; font-size: .78em; letter-spacing: .16em; text-transform: uppercase; color: var(--wine-700); text-align: right; font-weight: 600; }
.sheet:lang(ja) .sh-kind { letter-spacing: .1em; }

.sh-title { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 22px 0 14px; }
.sh-title-main { min-width: 0; }
.sh-name { font-family: inherit; font-weight: 400; font-size: 2.5em; line-height: 1.05; letter-spacing: -.01em; margin: 0; color: #1d1312; font-variation-settings: normal; }
.sheet:lang(ja) .sh-name { font-family: var(--serif); }
.sh-kana { margin: 4px 0 0; font-size: .96em; color: var(--sh-muted); }
.sh-app { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.04em; color: var(--wine-800); }
.sh-vint { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sh-vint-l { font-size: .74em; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-muted); }
.sh-vint-y { font-family: var(--serif); font-size: 2.3em; line-height: 1; color: var(--wine-700); min-height: 1em; }
.sh-color { margin-top: 6px; font-family: var(--font-body); font-size: .72em; font-weight: 700; letter-spacing: .06em; padding: .3em .7em; border-radius: 999px; }
.sheet:lang(ja) .sh-color { font-family: var(--serif-ja); }
.sh-color:empty { display: none; }
.sh-color-blanc { background: #f6efcf; color: #5b4a07; }
.sh-color-rouge { background: var(--wine-100); color: var(--wine-800); }

.sh-pres { position: relative; margin: 0 0 16px; font-size: 1.08em; line-height: 1.55; font-style: italic; color: #3a2d29; min-height: 3em; }
.sheet:lang(ja) .sh-pres { font-style: normal; }
.sh-pres .bad { font-style: normal; background: var(--warn-bg); box-shadow: 0 0 0 2px var(--warn-bg), inset 0 -2px 0 var(--warn-line); color: #6d3404; border-radius: 3px; }
.sh-pres .bad.is-fixed { background: transparent; box-shadow: none; color: inherit; font-style: inherit; }
.sh-pres .bad.flash { animation: flash 1.1s ease 2; }
.sh-pres .bad.flash-ok { animation: flashok 1.4s ease; }
@keyframes flash { 50% { background: #f9cf93; } }
@keyframes flashok { 0% { background: var(--ok-bg); } 100% { background: transparent; } }

.sh-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin: 0; }
.sh-f { padding: 7px 0 8px; border-top: 1px solid rgba(91, 26, 43, .14); min-width: 0; transition: background .2s; }
.sh-f.wide { grid-column: 1 / -1; }
.sh-f dt { font-family: var(--font-body); font-size: .68em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine-700); margin-bottom: 2px; }
.sheet:lang(ja) .sh-f dt { font-family: var(--serif-ja); letter-spacing: .06em; font-size: .78em; }
.sh-f dd { margin: 0; min-height: 1.4em; overflow-wrap: break-word; hyphens: auto; }
.sheet:lang(ja) .sh-f dd { hyphens: none; line-break: strict; }
.sh-f.live { background: linear-gradient(90deg, rgba(245, 232, 234, .8), transparent); }
.typing::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -.12em; background: var(--wine-700); animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.sh-foot { position: relative; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(91, 26, 43, .25); font-size: .86em; line-height: 1.45; }
.sh-foot p { margin: 0 0 3px; }
.sh-sulf { font-weight: 600; }
.sh-health { font-weight: 600; color: #1d1312; font-family: var(--serif); }
.sh-health-tr { color: var(--sh-muted); font-size: .94em; }
.sh-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; margin-top: 8px; }
.sh-fictive { color: var(--sh-muted); font-style: italic; margin: 0 !important; }
.sheet:lang(ja) .sh-fictive { font-style: normal; }
.sh-stamp { margin: 0 !important; font-family: var(--font-body); font-size: .82em; font-weight: 700; padding: .3em .75em; border-radius: 999px; }
.sheet:lang(ja) .sh-stamp { font-family: var(--serif-ja); }
.sh-stamp:empty { display: none; }
.sh-stamp.draft { color: var(--pending); border: 1px dashed #b9a66d; }
.sh-stamp.ok { color: var(--ok); border: 1px solid #9cc293; background: var(--ok-bg); }
.pop { animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(3px); } }

@media (max-width: 640px) {
  .sheet-frame { padding: 0; background: none; }
  .sheet { min-height: 0; padding: 30px 20px 22px; font-size: 13px; }
  .sheet:lang(ja) { font-size: 12.5px; }
  .sh-head { flex-wrap: wrap; }
  .sh-kind { flex-basis: 100%; text-align: left; margin: 2px 0 0; }
  .sh-title { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; }
  .sh-vint { flex-direction: row; align-items: baseline; gap: 10px; }
  .sh-vint-y { font-size: 1.9em; }
  .sh-name { font-size: 2em; }
  .sh-grid { grid-template-columns: 1fr; }
  .sh-contour { width: 120%; }
}
@media (max-width: 640px) { .sheet.is-empty { min-height: 280px; } }

/* ---------- Contrôle ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ck { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: var(--stone-50); border: 1px solid transparent; transition: background .25s, border-color .25s; }
.ck-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; background: #e7e1d6; }
.ck-ic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b5aa9c; }
.ck-b { min-width: 0; display: grid; gap: 2px; }
.ck-l { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.ck-d { font-size: .78rem; color: var(--muted-wine); line-height: 1.35; overflow-wrap: anywhere; }
.ck-ok { background: var(--ok-bg); }
.ck-ok .ck-ic { background: var(--ok); }
.ck-ok .ck-ic::before { width: 10px; height: 5px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.ck-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.ck-warn .ck-ic { background: var(--warn-line); }
.ck-warn .ck-ic::before { content: "!"; width: auto; height: auto; background: none; color: #fff; font: 800 .8rem/1 var(--font-body); }
.ck-warn .ck-d { color: #6d3404; }
.ck-pending { background: var(--pending-bg); }
.ck-pending .ck-ic { background: #fff; box-shadow: inset 0 0 0 2px #b9a66d; }
.ck-pending .ck-ic::before { background: #b9a66d; }
.ck-ok, .ck-warn { animation: pop .35s ease; }
.sum { font-weight: 600; }
.sum-ok { color: var(--ok); }
.sum-warn { color: var(--warn); }
.sum-pending { color: var(--pending); }

.confirm { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--stone-300); font-size: .88rem; line-height: 1.4; cursor: pointer; }
.confirm input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--wine-700); }
.confirm:has(input:disabled) { opacity: .55; cursor: not-allowed; }

.test { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.test p { margin: 0 0 8px; }
.btn-test { width: 100%; min-height: 46px; font-size: .94rem; border-color: var(--warn-line); color: #6d3404; }
.btn-test:hover:not(:disabled) { background: var(--warn-bg); }

.flag { margin-top: 12px; padding: 14px; border-radius: 12px; background: #fff8ee; border: 1px solid var(--warn-line); font-size: .88rem; line-height: 1.45; animation: pop .35s ease; }
.flag p { margin: 0 0 8px; }
.flag-t { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--warn); }
.flag-q { font-family: var(--serif); font-style: italic; font-size: 1rem; color: #6d3404; text-decoration: line-through; text-decoration-color: rgba(154, 74, 6, .55); }
.flag-q:lang(ja), .flag-r:lang(ja) { font-family: var(--serif-ja); font-style: normal; }
.flag-sub { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); margin-top: 10px !important; }
.flag-r { font-family: var(--serif); font-size: 1rem; padding: 8px 10px; background: var(--ok-bg); border-radius: 8px; color: #1f3d22; }
.flag-fr { color: var(--muted-wine); }
.flag-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.skipped { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .86rem; }
.skipped summary { cursor: pointer; font-weight: 600; min-height: 32px; display: list-item; }
.skipped ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.skipped li { display: grid; gap: 2px; }
.skipped q { font-family: var(--mono-note); font-size: .78rem; color: #6f645e; quotes: "« " " »"; }
.skipped li span { font-size: .78rem; color: var(--warn); font-weight: 600; }
.legal { margin: 14px 0 0; color: var(--muted-wine); line-height: 1.45; }

/* ---------- Fin ---------- */
.cta-end { margin-top: 40px; background: var(--wine-900); color: var(--stone-50); border-radius: 20px; padding: clamp(26px, 4vw, 44px); }
.cta-end h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-end p { color: rgba(251, 249, 244, .82); max-width: 46rem; }
.cta-end .btn-primary { background: var(--stone-50); color: var(--wine-800); }
.cta-end .btn-primary:hover { background: #fff; }
.cta-end .btn-ghost { color: var(--stone-50); }
.cta-end .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.foot { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 32px; color: var(--muted-wine); }
.noscript { padding: 16px; text-align: center; }

@media (max-width: 480px) {
  .seg-lang span small { display: none; }
  .tool-actions, .tool-actions .btn { width: 100%; margin-left: 0; }
  .panel { padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet.swap-out { transition: none; transform: none; filter: none; }
  .typing::after { display: none; }
}

/* ---------- Impression : la fiche seule, en A4 ---------- */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body * { visibility: hidden; }
  .topbar, .demo-banner, .intro, .notes, .ctrl, .toolbar, .tr-note, .print-warn, .cta-end, .foot, .skip { display: none !important; }
  .fc, .stage, .sheet-col, .sheet-frame { display: block !important; padding: 0 !important; margin: 0 !important; background: none !important; max-width: none !important; }
  .sheet, .sheet * { visibility: visible; }
  .sheet { position: absolute; left: 0; top: 0; width: 210mm; height: 297mm; min-height: 0; max-width: none; overflow: hidden; margin: 0; padding: 18mm 18mm 14mm; box-shadow: none; font-size: 10.6pt; background: #fffdf8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; transform: none !important; opacity: 1 !important; filter: none !important; }
  .sheet:lang(ja) { font-size: 10pt; }
  .sh-grid { grid-template-columns: 1fr 1fr !important; }
  .sh-title { flex-direction: row !important; align-items: flex-end !important; }
  .sh-vint { flex-direction: column !important; align-items: flex-end !important; }
  .sh-name { font-size: 2.5em !important; }
  .typing::after { display: none; }
}
