/* Piste B — « Liste » : du texte posé sur une page, des filets de 1 px, un seul accent (orange, celui du micro). */
:root {
  --bg: #FAF7F0; --ink: #1B1A17; --ink2: #5C5850; --line: #E3DDD0; --tint: #F0EBDF;
  --acc: #C84A14; --acc-text: #B8420F; --red: #B3261E; --redbtn: #B3261E; --ok: #2F6B3A;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #161513; --ink: #EDE9E0; --ink2: #A8A296; --line: #2F2D29; --tint: #23211E; --acc: #DC5F28; --acc-text: #F28A57; --red: #F2918A; --ok: #7FC18B; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #161513; --ink: #EDE9E0; --ink2: #A8A296; --line: #2F2D29; --tint: #23211E; --acc: #DC5F28; --acc-text: #F28A57; --red: #F2918A; --ok: #7FC18B; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.ic { width: 22px; height: 22px; flex: none; }
h1, h2, h3, p { margin: 0; }
p { overflow-wrap: break-word; }

/* ── cadre ── */
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.app.m .pane-main { flex: 1; min-height: 0; width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; }
.page { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: fond .18s ease-out; }
@keyframes fond { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 6px 0 6px; flex: none; }
.tr { display: flex; align-items: center; gap: 2px; }
.tb-l { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 6px; color: var(--ink2); font-size: 15px; font-weight: 500; }
.tb-l .ic { width: 20px; }
.tb-i { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink2); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.col { padding: 0 20px 28px; max-width: 680px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.col > * { flex: none; }
.marge { flex: 1 1 auto !important; min-height: 56px; }
.temoin { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); padding-right: 6px; }
.temoin i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.temoin.off { color: var(--red); } .temoin.off i { background: var(--red); }
.tline { margin: 8px 0 2px; }

/* barre du bas */
.bar { flex: none; display: flex; align-items: center; gap: 6px; width: 100%; max-width: 640px; margin: 0 auto; padding: 6px 12px calc(env(safe-area-inset-bottom) + 16px) 6px; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); position: relative; z-index: 10; }
.bar nav { flex: 1; display: flex; }
.bar nav button { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; font-size: 12px; color: var(--ink2); text-align: center; }
.bar nav button[aria-current="page"], .rail button[aria-current="page"] { color: var(--ink); font-weight: 600; }
.bar nav [aria-current="page"] .ic, .rail [aria-current="page"] .ic { color: var(--acc-text); }
.micro { width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: #fff !important; display: grid !important; place-items: center; flex: none; box-shadow: 0 2px 10px rgba(200, 74, 20, .3); }
.micro .ic { width: 26px; height: 26px; }
.micro.rec { animation: pouls 1.2s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 8px rgba(200, 74, 20, .25); } }
.badge { position: absolute; top: 2px; right: calc(50% - 28px); background: var(--acc); color: #fff; border-radius: 999px; font: 600 11px/18px var(--sans); min-width: 18px; text-align: center; padding: 0 5px; font-style: normal; }
body.kb .app.m .bar { display: none; }

/* ── titres et sections ── */
.big { font: 600 42px/1.05 var(--serif); letter-spacing: -.015em; margin: 8px 0 4px; }
.big.sm { font-size: 32px; }
.date { color: var(--ink2); font-size: 16px; }
.sous { color: var(--ink2); margin-bottom: 8px; }
.sec { font: 600 22px/1.2 var(--serif); margin: 30px 0 4px; }
.sec .n { color: var(--ink2); font: 500 15px var(--sans); }
.gt { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin: 26px 0 6px; }
.gh { position: sticky; top: 0; z-index: 2; background: var(--bg); font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.jour { font: 600 13px var(--sans); color: var(--ink2); margin: 16px 0 0; }
.titrebar { display: flex; justify-content: space-between; align-items: flex-end; }
.lnk { min-height: 44px; padding: 0 4px; color: var(--acc-text); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.lnk.danger, .danger { color: var(--red); }
.big-lnk { margin-top: 2px; }
.big-lnk .ic { width: 16px; }
.calme { font: italic 400 24px/1.3 var(--serif); color: var(--ink2); margin: 36px 0; }
.vide { color: var(--ink2); padding: 14px 0; }
.note { color: var(--ink2); font-size: 14px; margin: 18px 0; }
.erreur { color: var(--red); min-height: 22px; font-size: 14px; }
.etat { font-size: 14px; color: var(--ink2); margin-top: 6px; }
.etat.off { color: var(--red); } .etat.ok { color: var(--ok); font-weight: 600; }
.sml { display: block; color: var(--ink2); font-size: 14px; }

/* ── ligne de tâche ── */
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: start; border-bottom: 1px solid var(--line); min-height: 52px; transition: opacity .2s; }
.row.avecheure { grid-template-columns: 50px 44px minmax(0, 1fr) 44px; }
.hcol { padding-top: 12px; font-variant-numeric: tabular-nums; color: var(--ink2); font-size: 14px; }
.chk { width: 44px; height: 44px; display: grid; place-items: center; }
.chk span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink2); display: grid; place-items: center; transition: background .15s; }
.chk .ic { width: 14px; height: 14px; opacity: 0; color: #fff; stroke-width: 2.4; }
.row.fait .chk span { background: var(--acc); border-color: var(--acc); }
.row.fait .chk .ic { opacity: 1; }
.rmain { display: block; padding: 11px 2px 10px; min-height: 44px; width: 100%; }
.rt { display: block; font-size: 16px; overflow-wrap: break-word; }
.row.fait .rt { text-decoration: line-through; color: var(--ink2); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--ink2); margin-top: 2px; }
.meta .proj { margin-left: auto; }
.puce { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.puce .ic { width: 13px; height: 13px; }
.puce.retard { color: var(--red); }
.star { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink2); }
.star .ic { width: 20px; height: 20px; stroke-width: 1.4; }
.star.on { color: var(--acc); } .star.on .ic { fill: currentColor; }
.sub { grid-column: 2 / -1; display: flex; gap: 6px; padding: 0 4px 4px; }
.arch .row { border-bottom: 0; } .arch { border-bottom: 1px solid var(--line); }

/* ── propositions ── */
.prop { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.pt { font: 600 17px/1.3 var(--sans); }
.pb { margin-top: 4px; font-size: 15px; color: var(--ink2); }
.pa { display: flex; justify-content: flex-end; gap: 2px; margin-top: 2px; }
.pa button { min-height: 44px; min-width: 44px; padding: 0 14px; color: var(--ink2); font-weight: 500; text-align: center; }
.go { color: var(--acc-text) !important; font-weight: 700 !important; }
.muted { color: var(--ink2); }
.choix { list-style: none; margin: 8px 0 0; padding: 0; }
.choix li button { display: flex; align-items: center; gap: 12px; min-height: 48px; width: 100%; border-top: 1px solid var(--line); }
.cercle { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink2); flex: none; }
.cercle.on { border-color: var(--acc); background: radial-gradient(var(--acc) 45%, transparent 50%); }
.prop.sourdine { opacity: 1; color: var(--ink2); } .prop.sourdine .pt { font-weight: 500; }
.aranger { display: block; width: 100%; padding: 12px 0; min-height: 56px; border-bottom: 1px solid var(--line); }
.petitmenu { margin: 0 0 10px 10px; border-left: 2px solid var(--acc); }
.petitmenu button { display: block; width: 100%; min-height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.foldbox .fold { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; color: var(--ink2); border-bottom: 1px solid var(--line); font-size: 15px; }
.foldbox .fold .ic { width: 18px; }
.foldbox.retard .fold { color: var(--ink2); }
.detail p { margin-bottom: 12px; } .detail { margin-top: 10px; }
.detfoot { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 16px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--line); }
.detfoot button { min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; text-align: center; }

/* ── index ── */
.igroup { border-top: 1px solid var(--line); margin-bottom: 4px; }
.irow { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.irow.static { cursor: default; flex-wrap: wrap; padding: 4px 0; }
.irow.nul > span:first-child { color: var(--ink2); }
.irow .ii { vertical-align: -5px; margin-right: 4px; color: var(--acc-text); }
.ir { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 15px; }
.ir .ic { width: 18px; height: 18px; }
.cnt { font-variant-numeric: tabular-nums; color: var(--ink2); }
.cnt.acc { color: #fff; background: var(--acc); border-radius: 999px; padding: 0 9px; min-width: 24px; text-align: center; font-size: 14px; font-weight: 600; }
.gris { color: var(--ink2); }
.stn { display: inline-flex; align-items: center; gap: 2px; color: var(--ink2); font-size: 13px; }
.stn .ic { width: 12px; height: 12px; fill: var(--acc); color: var(--acc); }
.igroup.fin { margin-top: 26px; }
.igroup.prevu .irow { min-height: 44px; font-size: 15px; color: var(--ink2); }

/* ── listes en blocs ── */
.bloc { margin: 14px 0 26px; }
.bh { display: flex; justify-content: space-between; align-items: baseline; width: 100%; min-height: 48px; border-bottom: 1px solid var(--ink); }
.bh h3 { font: 500 26px/1.2 var(--serif); letter-spacing: -.01em; }
.bh .n { color: var(--ink2); font-size: 14px; font-variant-numeric: tabular-nums; }
.plus { display: block; min-height: 44px; color: var(--acc-text); font-weight: 600; font-size: 15px; width: 100%; }
.bloc.fini { margin: 6px 0; } .bloc.fini .bh { border-bottom: 1px solid var(--line); color: var(--ink2); font-size: 16px; min-height: 48px; align-items: center; }
.addhint { display: flex; align-items: center; gap: 8px; min-height: 48px; color: var(--ink2); width: 100%; }
.addhint .ic { width: 18px; }
.bloc.ouvert { margin-top: 6px; }
.temoin-l { display: block; width: 100%; min-height: 44px; color: var(--ink2); font: 500 19px var(--serif); border-bottom: 1px solid var(--line); }
.newliste { display: flex; align-items: center; gap: 8px; min-height: 52px; color: var(--acc-text); font-weight: 600; }
.newliste .ic { width: 18px; }
.edrow { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); gap: 4px; background: var(--bg); }
.grip { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink2); touch-action: none; cursor: grab; }
.en { flex: 1; font: 500 21px var(--serif); }
.pinb { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink2); }
.pinb.on { color: var(--acc); } .pinb.on .ic { fill: currentColor; }
.edrow.drag { background: var(--tint); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); position: relative; z-index: 3; }

/* ── ajout ── */
.addbar { flex: none; border-top: 1px solid var(--line); padding: 4px 12px 6px; background: var(--bg); }
.addrow { display: flex; align-items: center; min-height: 52px; gap: 4px; }
.addrow:focus-within { box-shadow: inset 0 -2px var(--acc); }
.plusic .ic { width: 20px; color: var(--ink2); }
.addrow input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 6px; font-size: 16px; outline: 0; }
.addrow input::placeholder { color: var(--ink2); }
.addrow button { min-height: 44px; padding: 0 12px; font-weight: 700; color: var(--acc-text); }
.adderr { color: var(--red); font-size: 14px; padding: 4px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── fil ── */
.fil .col { padding-bottom: 12px; }
.sepjour { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); text-align: center; margin: 22px 0 8px; }
.msg { max-width: 88%; margin: 6px 0; display: flex; flex-direction: column; }
.msg.m { align-self: flex-end; align-items: flex-end; }
.msg.d { align-self: flex-start; }
.mb { padding: 9px 14px; border-radius: 14px; font-size: 16px; overflow-wrap: anywhere; }
.mb p + p { margin-top: 8px; }
.msg.m .mb { background: var(--tint); border-bottom-right-radius: 4px; }
.msg.d .mb { border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mb.clamp { max-height: 7.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.mm { font-size: 12px; color: var(--ink2); margin: 2px 6px 0; font-variant-numeric: tabular-nums; }
.msg.think .mb { color: var(--ink2); font-style: italic; background: var(--tint); border-color: transparent; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.boutons button { min-height: 44px; padding: 0 16px; border: 1px solid var(--acc-text); color: var(--acc-text); border-radius: 22px; font-weight: 600; }
.filfoot { flex: none; border-top: 1px solid var(--line); padding: 6px 12px 8px; background: var(--bg); }
.bandeau { background: var(--tint); color: var(--red); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 6px; }
.etat-ligne { min-height: 20px; font-size: 13px; color: var(--ink2); padding: 0 6px; }
.filform { display: flex; gap: 8px; align-items: flex-end; }
.filform textarea { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 22px; padding: 10px 16px; background: var(--tint); resize: none; min-height: 44px; max-height: 120px; font-size: 16px; }
.send { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--acc-text); flex: none; }
.dict { position: fixed; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); max-width: 616px; margin: 0 auto; z-index: 20; background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.dl { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dl i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); animation: pouls 1.2s infinite; }
.dtx { margin-top: 6px; min-height: 24px; font-size: 17px; }
.lecture { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: 40; min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--redbtn); color: #fff; font-weight: 600; text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.lecture[hidden] { display: none; }
#toasts { position: fixed; left: 0; right: 0; bottom: calc(100px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 4px 6px 4px 16px; display: flex; gap: 8px; align-items: center; max-width: 100%; font-size: 15px; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); animation: fond .18s; }
.toast button { min-height: 44px; padding: 0 12px; font-weight: 700; text-decoration: underline; color: var(--bg); }

/* ── fenêtres ── */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .38); z-index: 30; animation: voile .18s; }
@keyframes voile { from { opacity: 0; } }
.dlg { position: fixed; z-index: 31; background: var(--bg); color: var(--ink); outline: 0; }
.dlg.sheet { left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; border-radius: 18px 18px 0 0; padding: 6px 20px calc(env(safe-area-inset-bottom) + 18px); max-height: 86vh; max-height: 86dvh; overflow: auto; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); animation: monte .2s ease-out; }
@keyframes monte { from { transform: translateY(24px); opacity: 0; } }
.dlg.tall { height: 82dvh; }
.dlg.box { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 420px); border-radius: 16px; padding: 22px 20px 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 10px; }
.dlg.box .grab { display: none; }
.dt { font: 600 22px/1.25 var(--serif); }
.dmeta { color: var(--ink2); font-size: 14px; margin: 4px 0 8px; }
.dtexte { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--line); color: var(--ink2); font-size: 15px; }
.menu { border-top: 1px solid var(--line); margin-top: 8px; }
.scrollm { max-height: none; }
.mrow { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; gap: 10px; }
.mrow.danger { color: var(--red); }
.mr { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 15px; }
.mr .ic { width: 18px; }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--tint); position: relative; display: inline-block; border: 1px solid var(--ink2); transition: background .15s; flex: none; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink2); transition: transform .15s; }
.sw.on { background: var(--acc); border-color: var(--acc); } .sw.on i { transform: translateX(18px); background: #fff; }
.btns { display: flex; gap: 6px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.btns .sp { flex: 1; }
.btns button { min-height: 44px; padding: 0 14px; font-weight: 500; text-align: center; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; font-weight: 600; }
.btn.go { border-color: var(--acc-text); }
.dang { color: var(--red) !important; font-weight: 700 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.chips button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; }
.idee { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--acc-text); border: 1px solid var(--acc-text); border-radius: 6px; padding: 1px 6px; }
.champs { display: flex; gap: 12px; margin: 8px 0; }
.champs label, .lab { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink2); flex: 1; }
.champs input, .lab input { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); padding: 0 12px; font-size: 16px; }
.dicter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 600; color: var(--acc-text); }
.dicter .ic { width: 18px; }
.confirm-in .btns { justify-content: flex-end; }
.pas { color: var(--ink2); padding-left: 20px; } .pas li { margin: 6px 0; }

/* ── réglages ── */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { min-height: 44px; min-width: 56px; padding: 0 12px; text-align: center; font-size: 15px; }
.seg .on { background: var(--ink); color: var(--bg); }
.vrow { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.vchoix { flex: 1; display: flex; gap: 12px; align-items: center; min-height: 58px; }
.play { width: 44px; height: 44px; display: grid; place-items: center; color: var(--acc-text); }
.play .ic { width: 18px; }
.vit { display: inline-flex; align-items: center; gap: 10px; }
.vit input { width: 140px; accent-color: var(--acc); }
.vit output { font-variant-numeric: tabular-nums; min-width: 44px; }
.porte { display: grid; place-items: center; height: 100dvh; text-align: center; }
.porte-in { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo { width: 76px; height: 76px; border-radius: 20px; background: var(--acc); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.logo .ic { width: 38px; height: 38px; }

/* ── heures : des tableaux ── */
.tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 8px 0; }
.tab th { font-weight: 400; text-align: left; padding: 12px 8px 12px 0; }
.tab thead th { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.tab td { text-align: right; padding: 12px 0 12px 12px; font-weight: 600; }
.tab thead th:not(:first-child) { text-align: right; }
.tab tr { border-bottom: 1px solid var(--line); }
.tab tr.ret th { padding-left: 18px; color: var(--ink2); } .tab tr.ret td { font-weight: 400; color: var(--ink2); }
.tab.resume th { font: 500 20px var(--serif); } .tab.resume td { font: 600 22px var(--serif); }
.ia { color: var(--ink2); font-size: 14px; margin: 6px 0 4px; }
.fraich { color: var(--ink2); font-size: 13px; margin: 2px 0 8px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 14px 0 6px; }
.tabs button { flex: 1; min-height: 44px; text-align: center; color: var(--ink2); font-size: 14px; }
.tabs .on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px var(--ink); }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; padding: 12px 0 10px; border-bottom: 1px solid var(--line); row-gap: 6px; column-gap: 12px; min-height: 64px; }
.hn { font-size: 17px; } .hv { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; font-size: 17px; }
.mbar { grid-column: 1 / -1; height: 3px; background: var(--line); display: block; border-radius: 2px; overflow: hidden; }
.mbar b { display: block; height: 3px; background: var(--ink); }
.hs { grid-column: 1 / -1; font-size: 13px; color: var(--ink2); }
.hrow.nul .hn, .hrow.nul .hv { color: var(--ink2); font-weight: 400; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0; }
.grille div { padding: 12px 0; } .grille div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.grille span { display: block; font-size: 13px; color: var(--ink2); } .grille b { font: 600 22px var(--serif); font-variant-numeric: tabular-nums; }

/* ── PC : rail, index, liste, inspecteur ── */
.app.pc { display: grid; grid-template-columns: 76px minmax(0, 1fr); height: 100vh; }
.app.pc.hasidx { grid-template-columns: 76px 300px minmax(0, 1fr); }
.app.pc.hasinsp { grid-template-columns: 76px minmax(0, 1fr) 360px; }
.app.pc.hasidx.hasinsp { grid-template-columns: 76px 300px minmax(0, 1fr) 360px; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 46px; border-right: 1px solid var(--line); }
.rail button { position: relative; width: 66px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink2); text-align: center; border-radius: 10px; }
.rail button:hover { background: var(--tint); }
.rail .sp { flex: 1; }
.rail .micro { width: 54px; height: 54px; min-height: 54px; margin-bottom: 8px; }
.rail .micro:hover { background: var(--acc); }
.rail .badge { right: 6px; }
.pane-index { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.pane-index .col { padding: 0 16px 24px; }
.pane-index .big { font-size: 30px; padding-top: 14px; }
.app.pc .pane-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.app.pc .pane-main .page { padding-top: 6px; }
.pane-insp { border-left: 1px solid var(--line); overflow: auto; min-height: 0; display: flex; flex-direction: column; }
.pane-insp .dlg.insp { position: static; flex: 1; border-radius: 0; box-shadow: none; max-width: none; max-height: none; margin: 0; animation: none; padding: 18px 20px; overflow: auto; }
.pane-insp .dlg.insp .grab { display: none; }
.pane-insp .page { flex: 1; }
.app.pc .dlg.sheet:not(.insp) { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 480px; max-width: 92vw; border-radius: 16px; max-height: 80vh; height: auto; margin: 0; }
.app.pc .dict { left: 76px; bottom: 24px; }
.app.pc ~ #toasts, body:has(.app.pc) #toasts { bottom: 24px; }
.app.pc .row:hover, .app.pc .irow:hover, .app.pc .mrow:hover { background: color-mix(in srgb, var(--tint) 70%, transparent); }
.hint .vide { margin: 40px 20px; }

@media (max-width: 999px) { .tb-l span { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
