@import url('/fonts/fonts.css');
/* Wamy — système visuel « Apple » : fond groupé, listes en encart, grands titres, barre d'onglets, feuilles, une couleur
   d'accent par société (comme la couleur système d'iOS). Polices système d'Apple sur iPhone / Mac, Inter ailleurs.
   Clair et sombre automatiques. Règle d'or : un seul endroit pour chercher et filtrer, une seule action principale. */
:root {
  --accent: #007aff; /* remplacée par la couleur de la société (app.js) */
  --bg: #f2f2f7; --surface: #ffffff; --surface-2: #f2f2f7; --surface-3: #e5e5ea; --hover: rgba(0,0,0,.04); --pressed: rgba(0,0,0,.08);
  --fill: rgba(118,118,128,.12); --fill-2: rgba(118,118,128,.2);
  --line: rgba(60,60,67,.18); --line-2: rgba(60,60,67,.29);
  --text: #000000; --muted: rgba(60,60,67,.72); --faint: rgba(60,60,67,.3);
  --ink: #000000; --on-ink: #ffffff; --primary: var(--accent); --on-primary: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent); --accent-text: var(--accent);
  --green: #34c759; --green-soft: rgba(52,199,89,.14); --red: #ff3b30; --red-soft: rgba(255,59,48,.12); --orange: #ff9500; --orange-soft: rgba(255,149,0,.14);
  --blue: #007aff; --blue-soft: rgba(0,122,255,.12); --yellow: #ffcc00; --purple: #af52de; --teal: #30b0c7; --indigo: #5856d6; --pink: #ff2d55; --gray: #8e8e93;
  --material: rgba(249,249,249,.78); --material-line: rgba(0,0,0,.12);
  --radius: 12px; --radius-sm: 10px; --radius-lg: 16px;
  --shadow: none; --shadow-lg: 0 12px 40px rgba(0,0,0,.16), 0 0 0 .5px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, "Inter", system-ui, sans-serif;
  --spring: cubic-bezier(.32, .72, 0, 1); --out: cubic-bezier(.22, 1, .36, 1); --glow: none;
  --nav-w: 88px; --top-h: 52px; --tab-h: 50px; --island-h: 50px; --island-gap: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --surface-3: #3a3a3c; --hover: rgba(255,255,255,.05); --pressed: rgba(255,255,255,.1);
  --fill: rgba(118,118,128,.24); --fill-2: rgba(118,118,128,.32); --line: rgba(84,84,88,.6); --line-2: rgba(84,84,88,.8);
  --text: #ffffff; --muted: rgba(235,235,245,.7); --faint: rgba(235,235,245,.3); --ink: #ffffff; --on-ink: #000000;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent); --accent-text: color-mix(in srgb, var(--accent) 70%, white);
  --green: #30d158; --green-soft: rgba(48,209,88,.18); --red: #ff453a; --red-soft: rgba(255,69,58,.18); --orange: #ff9f0a; --orange-soft: rgba(255,159,10,.18);
  --blue: #0a84ff; --blue-soft: rgba(10,132,255,.2); --yellow: #ffd60a; --purple: #bf5af2; --teal: #40c8e0; --indigo: #5e5ce6; --pink: #ff375f;
  --material: rgba(29,29,31,.78); --material-line: rgba(255,255,255,.12); --shadow-lg: 0 12px 40px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.08); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --surface-3: #3a3a3c; --hover: rgba(255,255,255,.05); --pressed: rgba(255,255,255,.1);
  --fill: rgba(118,118,128,.24); --fill-2: rgba(118,118,128,.32); --line: rgba(84,84,88,.6); --line-2: rgba(84,84,88,.8);
  --text: #ffffff; --muted: rgba(235,235,245,.7); --faint: rgba(235,235,245,.3); --ink: #ffffff; --on-ink: #000000;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent); --accent-text: color-mix(in srgb, var(--accent) 70%, white);
  --green: #30d158; --green-soft: rgba(48,209,88,.18); --red: #ff453a; --red-soft: rgba(255,69,58,.18); --orange: #ff9f0a; --orange-soft: rgba(255,159,10,.18);
  --blue: #0a84ff; --blue-soft: rgba(10,132,255,.2); --yellow: #ffd60a; --purple: #bf5af2; --teal: #40c8e0; --indigo: #5e5ce6; --pink: #ff375f;
  --material: rgba(29,29,31,.78); --material-line: rgba(255,255,255,.12); --shadow-lg: 0 12px 40px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.08); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.38; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
::selection { background: var(--accent-soft); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 28px; font-family: var(--display); } h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; } h3 { font-size: 15px; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; letter-spacing: inherit; }
input, select, textarea { font: inherit; font-size: 17px; letter-spacing: -.02em; color: var(--text); background: var(--fill); border: 0; border-radius: var(--radius-sm); padding: 11px 14px; min-height: 44px; width: 100%; transition: box-shadow .2s, background .15s; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); display: inline-grid; place-content: center; flex: none; cursor: pointer; }
input[type="checkbox"]:checked { background: var(--accent); box-shadow: none; }
input[type="checkbox"]:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
textarea { min-height: 90px; resize: vertical; line-height: 1.4; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
label.item { display: flex; color: var(--text); font-size: 17px; font-weight: 400; letter-spacing: -.02em; cursor: pointer; }
label.item .small { font-weight: 400; }
label.check { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 17px; font-weight: 400; min-height: 44px; letter-spacing: -.02em; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; } svg.i.lg { width: 26px; height: 26px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; letter-spacing: 0; } .tiny { font-size: 12px; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; } .strong { font-weight: 600; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 12px; } .col.tight { gap: 8px; }
.grow { flex: 1; min-width: 0; } .hide { display: none !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 12px; background: var(--fill); color: var(--accent-text); border: 0; font-weight: 600; font-size: 17px; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; user-select: none; -webkit-user-select: none; transition: opacity .15s, transform .2s var(--spring), background .15s; }
.btn:active { opacity: .8; }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.green { background: var(--green); color: #fff; } .btn.red { background: var(--red); color: #fff; }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; padding-left: 8px; padding-right: 8px; }
.btn.sm { min-height: 34px; padding: 6px 14px; font-size: 15px; border-radius: 999px; }
.btn.lg { min-height: 52px; font-size: 17px; padding: 12px 20px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 44px; border-radius: 50%; } .btn.icon.sm { width: 34px; min-height: 34px; }
.btn.on { background: var(--accent); color: #fff; }
.link { color: var(--accent-text); font-weight: 500; }
/* [GPT 2026-11-10] A touch has visible weight; pending work stays legible in light and dark. */
.btn.primary:not(:disabled),.btn.green:not(:disabled){box-shadow:0 1px 2px #10182824,inset 0 1px 0 #ffffff30;}
.btn[aria-busy=true]{opacity:1;}
.tap-confirmed:not(:disabled),button.mi:active,button.tbl:active,button.tf-table:not(.arranging *):active{filter:brightness(.87);}
.btn.tap-confirmed:not(:disabled){transform:scale(.97);}
.action-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.action-spinner{display:inline-block;flex:none;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .75s linear infinite;}
.app-top.route-pending::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,transparent,var(--accent),transparent) 0 0/45% 100% no-repeat;animation:route-sweep .8s ease-in-out infinite alternate;pointer-events:none;}
@keyframes route-sweep{to{background-position:100% 0;}}
@media(prefers-reduced-motion:reduce){.btn.tap-confirmed:not(:disabled){transform:none;}.action-spinner,.app-top.route-pending::after{animation:none;}}

/* ---------- listes en encart (comme Réglages d'iOS) ---------- */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.card.pad { padding: 16px; }
.card > .head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.card > .head h2 { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.card > .head h3 { flex: 1; }
.card > .body { padding: 8px 16px 16px; }
.section-title { font-size: 13px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; margin: 18px 16px 6px; }
.section-foot { font-size: 13px; color: var(--muted); margin: 6px 16px 0; letter-spacing: 0; }
.list > .item { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 44px; font-size: 17px; letter-spacing: -.02em; transition: background .15s; }
.list > .item:not(:last-child)::after { content: ""; position: absolute; left: var(--sep-left, 16px); right: 0; bottom: 0; height: .5px; background: var(--line-2); }
.list > .item:has(> .itile:first-child), .list > .item:has(> .av:first-child) { --sep-left: 58px; }
.list > button.item, .list > a.item { width: 100%; text-align: left; }
.list > button.item:active, .list > a.item:active { background: var(--pressed); }
@media (hover: hover) { .list > button.item:hover, .list > a.item:hover { background: var(--hover); } }
.chev { color: var(--faint); flex: none; }
.itile { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; background: var(--c, var(--gray)); }
.itile svg.i { width: 18px; height: 18px; stroke-width: 2; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill); color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.badge.green { background: var(--green-soft); color: var(--green); } .badge.red { background: var(--red-soft); color: var(--red); }
.badge.orange { background: var(--orange-soft); color: var(--orange); } .badge.blue { background: var(--blue-soft); color: var(--blue); } .badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.badge.count { background: var(--red); color: #fff; min-width: 20px; justify-content: center; padding: 1px 6px; }
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); font-size: 15px; background: var(--surface); letter-spacing: -.01em; }
.notice svg.i { color: var(--c, var(--muted)); }
.notice.orange { --c: var(--orange); } .notice.red { --c: var(--red); } .notice.green { --c: var(--green); } .notice.blue { --c: var(--blue); }
.notice .grow { color: var(--text); }
.empty { padding: 44px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; }
.empty svg.i { width: 44px; height: 44px; color: var(--faint); stroke-width: 1.4; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; color: var(--muted); font-weight: 400; font-size: 13px; padding: 10px 12px; border-bottom: .5px solid var(--line-2); white-space: nowrap; }
table.data td { padding: 11px 12px; border-bottom: .5px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; } table.data .r { text-align: right; }
.scroll-x { overflow-x: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border-radius: var(--radius-lg); padding: 14px 16px; }
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.kpi .v { font-family: var(--rounded); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* Contrôle segmenté (comme UISegmentedControl). */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; min-height: 30px; padding: 4px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--text); letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, box-shadow .2s; }
.seg button.on { background: var(--surface); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
:root[data-theme="dark"] .seg button.on { background: #636366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: #636366; } }
.seg.block { display: flex; width: 100%; }
/* Pastilles de choix (une seule rangée, dans la feuille de filtres). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 999px; background: var(--fill); font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.chip.on { background: var(--accent); color: #fff; }
.chip .x { opacity: .7; margin-right: -4px; }

/* Barre de recherche et de filtres : la SEULE place où l'on cherche et filtre. */
.toolbar { display: flex; flex-direction: column; gap: 10px; }
.searchbar { display: flex; align-items: center; gap: 8px; }
.search { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 36px; border-radius: 10px; background: var(--fill); color: var(--muted); }
.search input { border: 0; background: transparent; padding: 0; min-height: 36px; font-size: 17px; box-shadow: none !important; }
.filter-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--accent-text); font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.filter-btn.active { background: var(--accent); color: #fff; }
.tokens { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tokens::-webkit-scrollbar { display: none; }
.tokens .chip { min-height: 28px; padding: 3px 10px; font-size: 13px; background: var(--accent-soft); color: var(--accent-text); flex: none; }

/* ---------- coquille : barre latérale (iPad), barre de navigation, grand titre, barre d'onglets (iPhone) ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); background: var(--bg); border-right: .5px solid var(--line-2); display: flex; flex-direction: column; z-index: 30; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 0 20px; height: 60px; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--rounded); font-weight: 800; font-size: 16px; flex: none; }
.side .logo .wm { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.side nav { flex: 1; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.side nav .nav-h { font-size: 13px; font-weight: 600; color: var(--muted); padding: 16px 10px 6px; letter-spacing: 0; }
.side nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; font-size: 17px; font-weight: 400; letter-spacing: -.02em; color: var(--text); min-height: 40px; }
.side nav a svg.i { color: var(--accent-text); width: 22px; height: 22px; }
@media (hover: hover) { .side nav a:hover { background: var(--hover); } }
.side nav a.on { background: var(--accent); color: #fff; font-weight: 600; }
.side nav a.on svg.i { color: #fff; }
.side nav a .badge { margin-left: auto; }
.side nav a.on .badge { background: rgba(255,255,255,.25); color: #fff; }
.side .foot { padding: 10px 12px 14px; border-top: .5px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; width: 100%; text-align: left; }
@media (hover: hover) { .who:hover { background: var(--hover); } }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #a1a1aa, #71717a); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.kbd { font: 500 12px var(--font); color: var(--muted); border-radius: 5px; padding: 1px 6px; background: var(--fill); }
.main { margin-left: var(--nav-w); min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 20px; background: transparent; border-bottom: .5px solid transparent; transition: background .2s, border-color .2s; }
.top.scrolled { background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--material-line); }
.top h1 { font-size: 17px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; font-family: var(--font); letter-spacing: -.02em; }
.top.scrolled h1 { opacity: 1; transform: none; }
.top .btn.ghost, .top .btn.sm { font-size: 17px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 4px 8px; border-radius: 999px; letter-spacing: 0; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.live.off i { background: var(--orange); } .live.off { color: var(--orange); }
.ltitle { padding: 2px 20px 10px; max-width: 1320px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ltitle .lt-row { display: flex; align-items: flex-end; gap: 10px; }
.ltitle h1.lt { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; flex: 1; min-width: 0; font-family: var(--display); }
.ltitle .lt-sub { color: var(--muted); font-size: 15px; margin-top: -8px; letter-spacing: -.01em; }
.ltitle:empty { display: none; }
#lt-tools:empty { display: none; }
.content { padding: 4px 20px 32px; flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.content.enter > * { animation: rise .35s var(--out) both; }
.content.enter > *:nth-child(2) { animation-delay: .03s; } .content.enter > *:nth-child(3) { animation-delay: .06s; } .content.enter > *:nth-child(n+4) { animation-delay: .09s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.bottom { display: none; }
.hello { display: none; }
.skel { border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
/* [Claude 2026-11-06] Squelettes des écrans (ui.js skeleton() / loading()) : la forme du contenu qui arrive, aux mêmes largeurs
   et hauteurs que les vraies cellules, tuiles, cartes-chiffres et tableaux, pour que rien ne saute quand les données arrivent.
   Gris « fill » sur fond blanc, même reflet que .skel ; sans mouvement sous prefers-reduced-motion. .sk-mirror est la copie
   dessinée dans l'ancien #view pendant que le routeur prépare le nouveau. .sk-warm : une copie connue est affichée, le
   serveur est interrogé (fin trait animé sous le titre). */
.sk { border-radius: 8px; background: linear-gradient(100deg, var(--fill) 30%, var(--fill-2) 50%, var(--fill) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
.sk-block { pointer-events: none; user-select: none; }
.sk-line { height: 14px; width: 60%; } .sk-line.sm { height: 10px; width: 40%; margin-top: 7px; }
.sk-row { min-height: 58px; } .sk-tile { width: 30px; height: 30px; flex: none; } .sk-val { width: 48px; height: 14px; flex: none; }
.sk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.sl-split .sk-tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.sk-tile-card { background: var(--surface); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 14px; }
.sk-photo { width: 100%; aspect-ratio: 1; border-radius: 0; } .sk-tile-card .sk-line { margin: 12px 12px 0; } .sk-tile-card .sk-line.sm { margin-top: 8px; }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sk-card { display: flex; flex-direction: column; gap: 12px; min-height: 96px; justify-content: center; } .card .sk-card { background: var(--surface-2); border-radius: 14px; } .sk-card .sk-line.sm { margin: 0; } .sk-num { height: 26px; width: 55%; }
.sk-table { overflow: hidden; } .sk-tr { display: grid; grid-template-columns: 2fr repeat(var(--cols, 2), 1fr); gap: 16px; align-items: center; padding: 14px 16px; border-top: .5px solid var(--line-2); }
.sk-tr.sk-th { background: var(--surface-2); border-top: 0; padding: 9px 16px; } .sk-tr .sk-line { margin: 0; } .sk-tr > :not(:first-child) { justify-self: end; width: 55%; }
.sk-chips { display: flex; gap: 6px; overflow: hidden; } .sk-chip { height: 36px; border-radius: 999px; flex: none; }
.sk-bar { border-radius: var(--radius); }
.sk-mirror { display: contents; }
.content.sk-warm { position: relative; } .content.sk-warm::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; animation: sk-sweep 1.1s linear infinite; }
@keyframes sk-sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }
@media (prefers-reduced-motion: reduce) { .sk, .skel { animation: none; background: var(--fill); } .content.sk-warm::before { animation: none; background: var(--accent); opacity: .4; } }
.conn { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: var(--text); font-weight: 600; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow-lg); animation: drop .45s var(--spring) both; }
.conn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--fill-2); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -20px); } }

@media (max-width: 640px) {
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .top { padding: 0 12px; padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); }
  .ltitle { padding: 0 16px 8px; } .ltitle h1.lt { font-size: 32px; }
  .content { padding: 4px 16px 24px; gap: 14px; }
  /* Barre d'onglets d'iPhone. */
  .bottom { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--material-line); }
  .bottom .pill { display: none; }
  .bottom a, .bottom button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--gray); letter-spacing: .01em; }
  .bottom a svg.i, .bottom button svg.i { width: 26px; height: 26px; stroke-width: 1.7; }
  .bottom a.on, .bottom button.on { color: var(--accent-text); }
  .bottom a.on svg.i { stroke-width: 2.2; }
  .bottom .badge { position: absolute; top: 3px; left: calc(50% + 6px); padding: 0 5px; min-width: 18px; height: 18px; justify-content: center; background: var(--red); color: #fff; font-size: 12px; }
}

/* ---------- feuilles (UISheetPresentation) ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.36); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .25s var(--out); }
.overlay.closing { animation: fade-out .22s var(--out) forwards; pointer-events: none; }
.modal { position: relative; background: var(--bg); border-radius: 14px; width: min(560px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .35s var(--spring); overflow: hidden; }
.overlay.closing .modal { animation: pop-out .2s var(--out) forwards; }
.modal.wide { width: min(920px, 100%); }
.modal:focus { outline: none; }
.modal .grab { display: none; }
.modal header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px 12px 8px; min-height: 56px; }
.modal header h2 { grid-column: 2; font-size: 17px; font-weight: 600; text-align: center; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.modal header .hl { grid-column: 1; justify-self: start; } .modal header .hr { grid-column: 3; justify-self: end; }
.modal header .btn { background: transparent; color: var(--accent-text); font-weight: 400; padding: 6px 8px; min-height: 36px; }
.modal header .btn.strong { font-weight: 600; }
.modal header .btn.danger { color: var(--red); }
.modal header .btn.x { width: 30px; height: 30px; min-height: 0; border-radius: 50%; background: var(--fill); color: var(--muted); padding: 0; }
.modal .body { padding: 4px 16px 20px; overflow: auto; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
/* [Claude 2026-11-05] A list card taller than the screen (owner's profile on the 768 px POS) shrank and clipped « Se déconnecter »; it keeps its height and the sheet scrolls. */
.modal .body > .card { flex-shrink: 0; }
.modal footer { display: flex; gap: 10px; padding: 10px 16px 16px; flex-wrap: wrap; }
.modal footer .btn { flex: 1; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@keyframes pop-out { to { opacity: 0; transform: scale(.97); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; padding-top: calc(10px + env(safe-area-inset-top)); }
  .modal, .modal.wide { width: 100%; border-radius: 12px 12px 0 0; max-height: 100%; padding-bottom: env(safe-area-inset-bottom); animation: sheet-up .42s var(--spring); touch-action: pan-y; }
  .overlay.closing .modal { animation: none; transition: transform .25s var(--out); transform: translateY(105%) !important; }
  .modal .grab { display: block; position: absolute; top: 0; left: 0; right: 0; height: 18px; touch-action: none; z-index: 1; }
  .modal .grab::after { content: ""; position: absolute; top: 5px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--fill-2); }
  .modal header { padding-top: 16px; touch-action: none; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-full { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; animation: slide-in .38s var(--spring); }
.sheet-full > .top { position: static; background: var(--material); border-bottom-color: var(--material-line); }
.sheet-full > .top h1 { opacity: 1; transform: none; }
.sheet-full > .inner { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
@keyframes slide-in { from { transform: translateX(100%); } }

/* Bannières (notifications d'iOS). */
.toasts { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(420px, calc(100vw - 16px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; width: 100%; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); color: var(--text); padding: 12px 14px; border-radius: 18px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; box-shadow: var(--shadow-lg); animation: banner-in .5s var(--spring) both; cursor: pointer; }
.toast .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--accent); color: #fff; }
.toast.error .ic { background: var(--red); } .toast.ok .ic, .toast.ready .ic { background: var(--green); } .toast.qr .ic, .toast.call .ic { background: var(--orange); }
.toast.out { animation: banner-out .3s var(--out) forwards; }
@keyframes banner-in { from { opacity: 0; transform: translateY(-40px); } }
@keyframes banner-out { to { opacity: 0; transform: translateY(-30px); } }

/* Palette ⌘K */
.palette .body { padding: 0 0 8px; gap: 0; }
.palette .q { border-radius: 10px; margin: 0 12px 8px; width: calc(100% - 24px); }
.palette .opt { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; text-align: left; font-size: 17px; letter-spacing: -.02em; }
.palette .opt .k { margin-left: auto; color: var(--muted); font-size: 13px; }
.palette .opt.on { background: var(--accent); color: #fff; } .palette .opt.on .k { color: rgba(255,255,255,.75); }

/* ---------- pavés ---------- */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad button { min-height: 56px; font-size: 26px; font-weight: 400; border-radius: 12px; background: var(--surface); font-variant-numeric: tabular-nums; transition: background .1s; user-select: none; -webkit-user-select: none; }
.pad button:active { background: var(--surface-3); }
.pad button.hit { background: var(--accent); color: #fff; transform: scale(.94); } /* [Claude 2026-11-10] a key the sliding finger just typed */
.pin-dots { display: flex; justify-content: center; gap: 18px; margin: 10px 0 18px; min-height: 14px; }
.pin-dots span { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--text); transition: background .15s; }
.pin-dots span.on { background: var(--text); }
.pin-dots.ok span { background: var(--green); border-color: var(--green); }
.amount { font-family: var(--rounded); font-size: 40px; font-weight: 600; text-align: right; padding: 8px 16px; background: var(--surface); border-radius: 12px; font-variant-numeric: tabular-nums; min-height: 70px; display: flex; align-items: center; justify-content: flex-end; }
.stepper { display: grid; grid-template-columns: 50px 1fr 50px; gap: 8px; align-items: center; }
.stepper .v { text-align: center; font-size: 26px; font-weight: 600; font-family: var(--rounded); }
.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-8px); } }

/* ---------- connexion (écran de verrouillage) ---------- */
.login { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login .box { width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: center; animation: pop .45s var(--spring) both; }
.login .box.leave { animation: zoom-away .4s var(--out) forwards; }
@keyframes zoom-away { to { opacity: 0; transform: scale(1.05); } }
.login .mark { width: 64px; height: 64px; border-radius: 15px; font-size: 32px; margin: 0 auto 6px; }
.login h1 { font-size: 28px; }
.login .err { color: var(--red); font-weight: 500; min-height: 20px; font-size: 15px; }
.login .pad { gap: 16px 22px; justify-items: center; padding: 6px 10px 0; }
.login .pad button { width: 78px; height: 78px; min-height: 0; border-radius: 50%; font-size: 34px; font-weight: 300; background: var(--fill); }
.login .pad button:active { background: var(--fill-2); }
.login .pad button.ok { background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; }
.login .pad button.del, .login .pad button.lang { background: transparent; font-size: 17px; font-weight: 400; color: var(--text); }
.login .langs { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.login .langs .btn { justify-content: space-between; background: var(--surface); color: var(--text); font-weight: 500; min-height: 56px; border-radius: 14px; padding: 0 18px; }
@media (max-height: 760px) { .login .pad button { width: 68px; height: 68px; font-size: 30px; } .login .pad { gap: 12px 20px; } .login .mark { width: 52px; height: 52px; font-size: 26px; } }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 35; padding: 8px 12px; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--material-line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 48px; gap: 8px; }
.mobile-bar .btn { min-height: 48px; min-width: 0; overflow: hidden; padding-left: 10px; padding-right: 10px; }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (min-width: 900px) { .ltitle .seg.block { max-width: 640px; } .ltitle .toolbar .searchbar { max-width: 760px; } }
@media (min-width: 641px) { .mobile-bar { left: var(--nav-w); bottom: 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); } }
.top .btn.back { padding-left: 2px; gap: 2px; font-weight: 400; } .top .btn.back svg.i { width: 24px; height: 24px; }

/* Interrupteur iOS */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; z-index: 1; cursor: pointer; width: 100%; height: 100%; min-height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--fill-2); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .3s var(--spring); }
.switch input:checked + i { background: var(--green); } .switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .5; }

/* Photos des articles (js/media.js) */
.media-thumb { flex: none; border-radius: 10px; object-fit: cover; background: var(--fill-2); }
.media-tile { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--fill-2); }
.media-none { display: inline-grid; place-items: center; font-weight: 600; font-size: 15px; letter-spacing: 0; color: hsl(var(--hue) 45% 38%); background: hsl(var(--hue) 60% 92%); }
.media-tile.media-none { font-size: 28px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .media-none { color: hsl(var(--hue) 60% 78%); background: hsl(var(--hue) 30% 22%); } }
:root[data-theme="dark"] .media-none { color: hsl(var(--hue) 60% 78%); background: hsl(var(--hue) 30% 22%); }
.list > .item:has(> .media-thumb:first-child) { --sep-left: calc(28px + var(--thumb, 44px)); }
img.media-thumb, img.media-tile { -webkit-user-drag: none; user-select: none; }
/* Grande photo en tête d'une fiche (photoEditor) : comme la photo d'un contact iOS. */
.ph-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 6px; }
.ph-frame { position: relative; width: min(200px, 56vw); aspect-ratio: 1; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--fill); display: block; transition: transform .2s var(--spring); }
button.ph-frame:active { transform: scale(.97); }
.ph-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--accent-text); font-size: 15px; font-weight: 500; }
.ph-badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #fff; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6); }
.ph-spin { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.ph-edit.busy .ph-spin { display: block; } .ph-edit.busy .ph-img { filter: brightness(.6); }
.ph-link { background: none; border: 0; padding: 4px 8px; font-size: 15px; }
.ph-note { max-width: 300px; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 0; }

/* [GPT 2026-10-26] Fixed report placement survives page/subpage changes and existing sheets; screenshots are attached explicitly. */
.app-report{position:fixed;right:12px;bottom:calc(70px + env(safe-area-inset-bottom));z-index:90;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;border-radius:20px;background:var(--material);color:var(--accent-text);border:1px solid var(--line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);font-size:12px;font-weight:600}
.app-report[hidden]{display:none}
@media(max-width:760px){.app-report{bottom:calc(var(--tab-h) + 90px + env(safe-area-inset-bottom));right:10px;min-height:40px;padding:8px 10px;font-size:11px}}
@media print{.app-report{display:none!important}}

/* [GPT 2026-10-28] Tactile controls keep their label legible; focus and real waiting states stay distinct. */
.btn{position:relative;touch-action:manipulation;transition:background .16s,color .16s,transform .18s var(--spring),box-shadow .16s;}
.btn:not(.ghost):not(.icon){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 5%,transparent);}
.btn.primary{box-shadow:inset 0 1px 0 color-mix(in srgb,white 18%,transparent),inset 0 0 0 1px color-mix(in srgb,var(--text) 7%,transparent);}
@media(hover:hover) and (pointer:fine){
 .btn:not(:disabled):not(.busy):hover{background:var(--fill-2);transform:translateY(-1px);}
 .btn.primary:not(:disabled):not(.busy):hover{background:color-mix(in srgb,var(--accent) 90%,var(--text));}
 .btn.green:not(:disabled):hover{background:color-mix(in srgb,var(--green) 90%,var(--text));}
 .btn.red:not(:disabled):hover{background:color-mix(in srgb,var(--red) 90%,var(--text));}
}
.btn:not(:disabled):active{opacity:1;transform:translateY(1px) scale(.975);}
.btn:focus-visible{outline:3px solid var(--accent-text);outline-offset:3px;}
.btn.busy:disabled{opacity:1;cursor:progress;}
@media(prefers-reduced-motion:reduce){.btn{transition:none!important;}.btn:not(:disabled):hover,.btn:not(:disabled):active{transform:none!important;}}

/* [Claude 2026-10-29] The header local-sends button disappears while nothing waits. */
.transmission-button[hidden]{display:none!important}

/* [Claude 2026-10-29] Search and state filter share one line on the deliveries list. */
.stk-delivery-find{display:flex;gap:8px;align-items:center}.stk-delivery-find>input{flex:1;min-width:0}.stk-delivery-find>select{flex:none;width:auto;max-width:46%}
/* [Claude 2026-11-02] Name + PIN login and second-factor sheets. */
.login-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 14px 0 6px; max-height: 46vh; overflow: auto; }
.login-people button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); font: 600 14px/1.25 system-ui; min-height: 88px; }
.login-people .avatar { width: 40px; height: 40px; font-size: 17px; }
.login-name, .mfa-code { width: 100%; box-sizing: border-box; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 18px; }
.mfa-code { text-align: center; font-size: 26px; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.mfa-panel { gap: 12px; margin-top: 12px; } .mfa-steps { margin: 4px 0; padding-left: 20px; color: var(--muted); }
.mfa-qr { width: 200px; height: 200px; margin: 6px auto; background: #fff; padding: 8px; border-radius: 12px; display: block; }
.mfa-recovery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: var(--surface); border-radius: 12px; font-size: 15px; text-align: center; user-select: all; }

/* [Claude 2026-11-05] On-screen keyboard: overlays and sheets follow the visible viewport (--vvh/--vvt set by core.js);
   the header keeps the cancel/primary actions and the form footer (big primary button) stays outside the scrolling body. */
.overlay { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100dvh); }
.modal { max-height: calc(var(--vvh, 100dvh) - 40px); }
html.kb-short .overlay { padding: 6px; align-items: flex-start; }
html.kb-short .modal, html.kb-short .modal.wide { max-height: calc(var(--vvh, 100dvh) - 12px); }
html.kb-short .modal header { min-height: 44px; padding: 6px 10px 4px; }
html.kb-short .modal .body { padding: 2px 12px 10px; gap: 8px; }
html.kb-short .modal footer { padding: 6px 12px 8px; }
@media (max-width: 640px) { .modal, .modal.wide { max-height: 100%; } }

/* [Claude 2026-11-06] FE-15: on touch screens (Samsung tablet, phones, the 1024×600 POS) every tappable control is at least
   44 px tall — segments, chips, small buttons, header sort buttons, the select-all checkbox — the padding stays small so the
   bars keep their shape. Pointer: fine (a mouse) keeps the compact sizes. */
@media (pointer: coarse) {
  .seg button { min-height: 44px; }
  .chip, .tokens .chip, .fs-sugg .chip, .pay-chips .chip { min-height: 44px; }
  .btn.sm { min-height: 44px; }
  .btn.icon.sm { min-height: 44px; width: 44px; }
  .filter-btn, .search, .search input { min-height: 44px; }
  input[type="checkbox"] { position: relative; }
  input[type="checkbox"]::before { content: ""; position: absolute; inset: -11px; border-radius: 50%; }
}
/* [Claude 2026-11-06] FE-16: the POS (1024×600) and other short screens: the whole PIN pad fits without scrolling. */
@media (max-height: 640px) {
  .login { padding: 12px 24px; }
  .login .box { gap: 6px; }
  .login .mark { width: 44px; height: 44px; font-size: 22px; border-radius: 11px; margin-bottom: 2px; }
  .login h1 { font-size: 22px; }
  .login .box > .muted.small { display: none; }
  .login .pin-dots { margin: 6px 0 8px; }
  .login .pad { gap: 6px 18px; padding: 2px 10px 0; }
  .login .pad button { width: 56px; height: 56px; font-size: 26px; }
  .login .box > .btn.lg { min-height: 44px; margin-top: 4px !important; }
  .login .box > .btn.ghost.block { min-height: 40px; }
  .login-people { max-height: 38vh; }
}
/* [Claude 2026-11-07] UX w0: shop POS login — today's scheduled people as big tiles, everyone else behind « Autre personne ». */
.login-today-box { gap: 8px; margin-top: 12px; }
.login-today { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); max-height: none; margin: 0 0 4px; }
.login-today button { min-height: 120px; font-size: 17px; border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.login-today .avatar { width: 56px; height: 56px; font-size: 24px; }
.login-other { min-height: 48px; }
/* [Claude 2026-11-07] UX w0: authenticator key readable, with copy / open-app on the same phone */
.mfa-key { font-size: 18px; letter-spacing: 1px; font-weight: 600; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.mfa-key-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mfa-key-actions .btn { min-height: 44px; }

/* [GPT 2026-11-11] Fit the WRM wordmark in the compact app and sign-in marks. */
.wrm-mark { font-size: 10px; letter-spacing: -.03em; }
.login .wrm-mark, .login.alive .la-hero.group .wrm-mark { font-size: 19px; }
