/* ISHID — système visuel
   Brume froide, vert blouse profond, ambre pour l'attention. Une seule famille : Onest. */
:root {
  --mist: #F1F5F3;
  --paper: #FFFFFF;
  --sunk: #E7EEEB;
  --line: #D9E3DF;
  --line-strong: #BFCEC8;
  --ink: #102420;
  --ink-2: #33473F;
  --muted: #5F726B;
  --pine: #0F5C4D;
  --pine-2: #137561;
  --pine-deep: #0A3B32;
  --pine-tint: #DDEEE8;
  --amber: #D8901F;
  --amber-ink: #8A5A0C;
  --amber-tint: #FBEED6;
  --red: #BE3A31;
  --red-tint: #F8E2DF;
  --violet: #4F4CC9;
  --violet-tint: #E6E6FA;
  --focus: #2F6FED;
  --r-s: 8px; --r-m: 12px; --r-l: 20px; --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(16, 36, 32, .06);
  --shadow-2: 0 10px 30px -12px rgba(10, 59, 50, .28);
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--mist); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--pine); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; display: block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--r-m); border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--pine); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--pine-2); }
.btn.ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--line-strong); background: #FAFCFB; }
.btn.danger { background: var(--red); color: #fff; }
.btn.warn { background: var(--amber); color: #2A1A00; }
.btn.quiet { background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--sunk); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { min-height: 54px; padding: 0 22px; font-size: 16px; border-radius: 16px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--sunk); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-ok { background: var(--pine-tint); color: var(--pine); }
.t-warn { background: var(--amber-tint); color: var(--amber-ink); }
.t-bad { background: var(--red-tint); color: var(--red); }
.t-info { background: var(--violet-tint); color: var(--violet); }
.t-neutral { background: var(--sunk); color: var(--ink-2); }

.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--av) 14%, white); color: var(--av); font-weight: 700; letter-spacing: .02em; }

/* ---------- champs ---------- */
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper); font-weight: 400; font-size: 15px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-tint); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.err { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: var(--shadow-1); }
.switch input:checked + .track { background: var(--pine); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; padding: 3px; background: var(--sunk); border-radius: 12px; gap: 2px; }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- toasts & modales ---------- */
#toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); font-weight: 500; animation: tin .25s ease-out; }
.toast.t-ok .ic { color: #7FD8BE; } .toast.t-warn .ic { color: #F5C66E; } .toast.t-bad .ic { color: #FF9C93; } .toast.t-info .ic { color: #B7B5FF; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

.modal-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(10, 30, 26, .42); display: grid; place-items: center; padding: 16px; animation: fin .18s; }
.modal-wrap.out { opacity: 0; transition: .18s; }
@keyframes fin { from { opacity: 0; } }
.modal { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-2); animation: min .22s cubic-bezier(.2,.8,.2,1); }
.modal.wide { width: min(720px, 100%); }
@keyframes min { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 6px 22px; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 8px 22px 18px; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .modal-wrap { place-items: end stretch; padding: 0; }
  .modal { width: 100%; border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .modal-foot .btn { flex: 1; }
}

/* ---------- bandeau démo ---------- */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 7px 16px; background: var(--pine-deep); color: #CFE6DE; font-size: 13px; }
.demo-bar a, .demo-bar button { color: #fff; background: none; border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: 13px; }

/* ========== ACCUEIL ========== */
.home { min-height: 100dvh; display: flex; flex-direction: column; }
.home-main { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 48px 28px 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--pine); display: grid; place-items: center; }
.brand small { font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.home h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; margin: 30px 0 18px; max-width: 13ch; }
.home .lede { font-size: 18px; color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.role-group { font-size: 13px; font-weight: 600; color: var(--muted); margin: 28px 0 10px; letter-spacing: 0; }
.roles { margin-top: 0; display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.role { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; background: var(--paper); text-decoration: none; color: var(--ink); transition: background .15s; }
.role:hover { background: #F8FBFA; }
.role:hover .go { color: var(--pine); transform: translateX(3px); }
.role .ri { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pine-tint); color: var(--pine); }
.role strong { display: block; font-size: 15.5px; }
.role span { font-size: 13.5px; color: var(--muted); }
.role .go { color: var(--line-strong); transition: .15s; }
.home-visual { position: relative; display: grid; place-items: center; }
.home-visual .dial-wrap { width: min(440px, 100%); }
.home-foot { width: min(1180px, 100%); margin: 0 auto; padding: 18px 28px 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.home-foot b { color: var(--ink-2); font-weight: 600; }
.legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 6px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
@media (max-width: 920px) {
  .home-main { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .home-visual { order: -1; }
  .home-visual .dial-wrap { width: min(300px, 80vw); }
  .home h1 { margin-top: 8px; }
}

/* ========== CADRAN DE POINTAGE (élément signature) ========== */
.dial-wrap { position: relative; aspect-ratio: 1; width: 100%; }
.dial-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.dial-center .time { font-size: clamp(34px, 9vw, 54px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.dial-center .sub { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.dial-center .state { margin-top: 12px; }
.dial-track { stroke: var(--sunk); }
.dial-tick { stroke: var(--line-strong); }
.dial-shift { stroke: var(--pine); }
.dial-tol { stroke: var(--amber); }
.dial-now { fill: var(--ink); }
.dial-hold { stroke: var(--pine-deep); transition: stroke-dashoffset .05s linear; }
.dial-intro .dial-shift, .dial-intro .dial-tol { animation: draw 1.4s cubic-bezier(.6,.05,.2,1) both; }
.dial-intro .dial-tol { animation-delay: .9s; }
@keyframes draw { from { stroke-dashoffset: var(--len); } }

.hold-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px;
  border: 0; border-radius: 18px; background: var(--pine); color: #fff; font-weight: 700; font-size: 17px; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.hold-btn .fill { position: absolute; inset: 0; background: var(--pine-deep); transform-origin: left; transform: scaleX(0); }
.hold-btn > span, .hold-btn > svg { position: relative; }
.hold-btn.depart { background: var(--ink); }
.hold-btn.depart .fill { background: #000; }
.hold-btn:disabled { background: var(--line-strong); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}

/* ========== ESPACE AGENT (PWA mobile) ========== */
.agent-stage { min-height: calc(100dvh - 34px); display: grid; grid-template-columns: 1fr minmax(0, 400px) 1fr; gap: 40px; align-items: center; padding: 32px 24px; }
.stage-note { max-width: 300px; justify-self: end; display: grid; gap: 14px; }
.stage-note h2 { font-size: 22px; }
.stage-note p { color: var(--ink-2); }
.stage-note .tips { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 0; margin: 0; list-style: none; }
.stage-note .tips li { display: flex; gap: 10px; }
.stage-note .tips .ic { color: var(--pine); margin-top: 2px; }
.stage-side { justify-self: start; max-width: 320px; display: grid; gap: 12px; }
.phone { position: relative; width: 100%; height: min(820px, calc(100dvh - 100px)); min-height: 640px; background: var(--mist); border-radius: 44px; border: 10px solid #15201D; box-shadow: 0 40px 80px -30px rgba(10,40,34,.45); overflow: hidden; display: flex; flex-direction: column; }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #15201D; border-radius: 99px; z-index: 5; }
@media (max-width: 1000px) {
  .agent-stage { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .stage-note, .stage-side { display: none; }
  .phone { height: calc(100dvh - 34px); min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .phone::before { display: none; }
}
.app-top { padding: 46px 20px 10px; display: flex; align-items: center; gap: 12px; }
@media (max-width: 1000px) { .app-top { padding-top: 16px; } }
.app-top .who { flex: 1; min-width: 0; }
.app-top .who strong { display: block; font-size: 15.5px; }
.app-top .who span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--pine); }
.net.off { color: var(--violet); border-color: #C9C8F3; background: var(--violet-tint); }
.app-body { flex: 1; overflow-y: auto; padding: 6px 20px 24px; }
.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--paper); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
.app-tabs button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; font-size: 11.5px; font-weight: 600; color: var(--muted); border-radius: 10px; }
.app-tabs button[aria-current="page"] { color: var(--pine); }
.app-tabs button[aria-current="page"] .ic { stroke-width: 2.4; }

.shift-card { background: var(--paper); border-radius: var(--r-xl); padding: 18px 18px 20px; border: 1px solid var(--line); }
.shift-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shift-meta h3 { font-size: 15px; }
.shift-meta .span { font-size: 13.5px; color: var(--muted); }
.agent-dial { width: min(290px, 88%); margin: 4px auto 10px; }
.agent-dial .time { font-size: 38px; }
.agent-dial .sub { font-size: 12.5px; margin-top: 6px; }
.hold-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--sunk); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.chip.ok { background: var(--pine-tint); color: var(--pine); }
.chip.bad { background: var(--red-tint); color: var(--red); }
.chip.info { background: var(--violet-tint); color: var(--violet); }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile-btn { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-align: left; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.tile-btn .ic { color: var(--pine); }
.tile-btn:hover { border-color: var(--line-strong); }
.section-h { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 10px; }
.section-h h3 { font-size: 15px; }
.list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .grow strong { display: block; font-size: 14.5px; font-weight: 600; }
.li .grow span { display: block; font-size: 12.5px; color: var(--muted); }
.li .tm { font-weight: 700; font-size: 15px; }
.pending-banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--violet-tint); color: #2E2C8F; border-radius: 14px; font-size: 13.5px; margin-bottom: 12px; }
.pending-banner .btn { margin-left: auto; }

.week { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.day.today { border-color: var(--pine); box-shadow: inset 4px 0 0 var(--pine); }
.day .d { text-align: center; line-height: 1.1; }
.day .d b { display: block; font-size: 20px; }
.day .d span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.day.rest { background: transparent; border-style: dashed; }
.bar-h { height: 8px; border-radius: 4px; background: var(--sunk); position: relative; margin-top: 6px; }
.bar-h i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--pine); }

/* séquences plein écran dans le téléphone (PIN, géoloc, confirmation) */
.sheet { position: absolute; inset: 0; z-index: 10; background: var(--mist); display: flex; flex-direction: column; animation: sup .28s cubic-bezier(.2,.8,.2,1); }
@keyframes sup { from { transform: translateY(24px); opacity: 0; } }
.sheet-top { padding: 46px 16px 8px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) { .sheet-top { padding-top: 14px; } }
.sheet-top h2 { font-size: 17px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 8px 22px 24px; display: flex; flex-direction: column; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 8px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); transition: .12s; }
.pin-dots i.on { background: var(--pine); border-color: var(--pine); transform: scale(1.08); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.keypad button { height: 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); font-size: 24px; font-weight: 600; display: grid; place-items: center; }
.keypad button:active { background: var(--sunk); }
.keypad button.k-alt { background: transparent; border-color: transparent; color: var(--pine); font-size: 14px; }
.step-list { display: grid; gap: 10px; margin: 18px 0; }
.step { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.step .si { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); flex: none; }
.step.done .si { background: var(--pine-tint); color: var(--pine); }
.step.warn .si { background: var(--amber-tint); color: var(--amber-ink); }
.step.bad .si { background: var(--red-tint); color: var(--red); }
.step.run .si { color: var(--pine); }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-result { text-align: center; padding: 20px 0 8px; display: grid; justify-items: center; gap: 10px; }
.big-result .ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--pine-tint); color: var(--pine); animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
.big-result .ring.warn { background: var(--amber-tint); color: var(--amber-ink); }
.big-result .ring.info { background: var(--violet-tint); color: var(--violet); }
.big-result .ring.bad { background: var(--red-tint); color: var(--red); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.big-result h3 { font-size: 22px; }
.receipt { width: 100%; margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; text-align: left; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.receipt div:first-child { border-top: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; }
.pick { display: grid; gap: 8px; }
.pick button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-align: left; }
.pick button:hover, .pick button:focus-visible { border-color: var(--pine); }
.pick button strong { display: block; font-size: 14.5px; }
.pick button span { font-size: 12.5px; color: var(--muted); }

/* ========== KIOSQUE ========== */
.kiosk { min-height: calc(100dvh - 34px); background: var(--pine-deep); color: #fff; display: flex; flex-direction: column; }
.kiosk-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; }
.kiosk-top .brand { color: #fff; }
.kiosk-top .brand small { color: #9FC7BA; }
.kiosk-clock { text-align: right; }
.kiosk-clock b { display: block; font-size: 30px; letter-spacing: -.03em; }
.kiosk-clock span { color: #9FC7BA; font-size: 14px; text-transform: capitalize; }
.kiosk-main { flex: 1; display: grid; place-items: center; padding: 8px 24px 32px; }
.kiosk-panel { width: min(880px, 100%); background: var(--paper); color: var(--ink); border-radius: 32px; padding: 32px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); animation: sup .3s cubic-bezier(.2,.8,.2,1); }
.kiosk-panel h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.kiosk-panel > p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.k-search { margin: 22px 0 16px; position: relative; }
.k-search input { width: 100%; height: 60px; border-radius: 18px; border: 2px solid var(--line); padding: 0 18px 0 52px; font-size: 18px; }
.k-search input:focus { outline: none; border-color: var(--pine); }
.k-search .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.k-person { color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); text-align: left; min-height: 72px; }
.k-person:hover, .k-person:focus-visible { border-color: var(--pine); background: #F7FBF9; }
.k-person strong { display: block; font-size: 15px; line-height: 1.25; }
.k-person span { font-size: 12.5px; color: var(--muted); }
.k-split { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: center; }
.k-split .keypad button { height: 70px; font-size: 26px; }
.k-who { display: flex; align-items: center; gap: 16px; }
.k-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.k-choice button { display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: 22px; border: 2px solid var(--line); background: var(--paper); text-align: left; }
.k-choice button:hover, .k-choice button:focus-visible { border-color: var(--pine); }
.k-choice button .ic { color: var(--pine); }
.k-choice strong { font-size: 20px; }
.k-choice span { color: var(--muted); font-size: 14px; }
.cam { aspect-ratio: 4/3; border-radius: 22px; background: #0E1A17; display: grid; place-items: center; position: relative; overflow: hidden; color: #8FB5A9; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .frame { position: absolute; inset: 14% 24%; border: 3px solid rgba(255,255,255,.5); border-radius: 50%; }
.k-countdown { margin-top: 18px; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.k-countdown i { display: block; height: 100%; background: var(--pine); transform-origin: left; animation: cd 6s linear forwards; }
@keyframes cd { to { transform: scaleX(0); } }
@media (max-width: 760px) {
  .kiosk-top { padding: 16px 18px; }
  .kiosk-panel { padding: 22px; border-radius: 24px; }
  .k-split { grid-template-columns: 1fr; gap: 20px; }
  .k-choice { grid-template-columns: 1fr; }
}

/* ========== CONSOLES (superviseur / direction / superadmin) ========== */
.console { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100dvh - 34px); }
.side { background: var(--paper); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: calc(100dvh - 34px); }
/* menu long : la barre défile seule (téléphone, tablette, petits écrans), sans faire défiler la page derrière */
.side { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.side > * { flex-shrink: 0; }
.side-foot { padding-bottom: env(safe-area-inset-bottom, 0); }
.side .brand { padding: 0 8px; }
.fosa-pill { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--mist); }
.fosa-pill .ic { color: var(--pine); }
.fosa-pill strong { display: block; font-size: 13.5px; line-height: 1.25; }
.fosa-pill span { font-size: 12px; color: var(--muted); }
.nav { display: grid; gap: 2px; }
.nav a, .nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 14.5px; border: 0; background: none; text-align: left; width: 100%; }
.nav a:hover, .nav button:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--pine-tint); color: var(--pine); font-weight: 650; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--amber); color: #2A1A00; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; }
.me strong { display: block; font-size: 13.5px; }
.me span { font-size: 12px; color: var(--muted); }
.main { min-width: 0; padding: 28px 32px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-top { display: none; }
@media (max-width: 960px) {
  .console { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; height: 100dvh; z-index: 60; transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow-2); }
  .side.open { transform: none; }
  .side { max-height: 100dvh; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  body.side-lock { overflow: hidden; }
  .scrim { position: fixed; inset: 0; background: rgba(10,30,26,.35); z-index: 55; }
  .mobile-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .main { padding: 20px 16px 40px; }
  .page-head h1 { font-size: 22px; }
}

/* indicateurs : une ligne de chiffres sobres, pas de cartes décoratives */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.kpi { padding: 16px 18px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.kpi.ok .v { color: var(--pine); } .kpi.warn .v { color: var(--amber-ink); } .kpi.bad .v { color: var(--red); } .kpi.info .v { color: var(--violet); }
@media (max-width: 600px) { .kpi { border-left: 0; border-top: 1px solid var(--line); } .kpi:first-child { border-top: 0; } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; }
.panel-head p { font-size: 13px; color: var(--muted); }
.panel-body { padding: 16px 18px; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 1180px) { .cols, .cols.even { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFCFB; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #FAFCFB; }
.t .person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.t .person strong { display: block; font-weight: 600; }
.t .person span { display: block; font-size: 12.5px; color: var(--muted); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }

/* tableau de présence par service : la barre montre présents / retards / sans pointage */
.svc { display: grid; grid-template-columns: 150px 1fr 70px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; }
.svc b { font-weight: 600; font-size: 14px; }
.stackbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--sunk); gap: 2px; }
.stackbar i { display: block; height: 100%; }
.stackbar .p { background: var(--pine); } .stackbar .l { background: var(--amber); } .stackbar .a { background: var(--red); } .stackbar .e { background: var(--line-strong); }
.svc .n { text-align: right; font-size: 13.5px; color: var(--muted); }
.svc-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.svc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.exc { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.exc:first-child { border-top: 0; }
.exc .why { font-size: 13px; color: var(--ink-2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.exc .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .exc { grid-template-columns: auto 1fr; } .exc .acts { grid-column: 1 / -1; justify-content: stretch; } .exc .acts .btn { flex: 1; } }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.empty .ic { color: var(--pine); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.filters .input { min-height: 38px; width: auto; padding: 6px 10px; font-size: 14px; }
.filters .search { position: relative; flex: 1; min-width: 180px; }
.filters .search .input { width: 100%; padding-left: 36px; }
.filters .search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.tpl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: center; }
.tpl:first-child { border-top: 0; }
.tpl h3 { font-size: 15px; }
.tpl .days { display: flex; gap: 4px; margin-top: 6px; }
.tpl .days i { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--sunk); color: var(--muted); }
.tpl .days i.on { background: var(--pine-tint); color: var(--pine); }
.timeline { grid-column: 1 / -1; position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--sunk) 0 calc(100%/24 - 1px), var(--paper) calc(100%/24 - 1px) calc(100%/24)); }
.timeline i { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--pine); }
.timeline i.tol { background: var(--amber); }
.tl-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -4px; }

.mod-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.mod-row:first-child { border-top: 0; }
.mod-row .mi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sunk); color: var(--muted); }
.mod-row.on .mi { background: var(--pine-tint); color: var(--pine); }
.mod-row h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-row p { font-size: 13px; color: var(--muted); }

.split-bar { display: flex; height: 38px; border-radius: 12px; overflow: hidden; font-weight: 700; font-size: 13.5px; }
.split-bar .f { background: var(--pine); color: #fff; display: flex; align-items: center; padding: 0 12px; transition: width .2s; }
.split-bar .i { background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; transition: width .2s; }
.split-bar.bad { outline: 2px solid var(--red); outline-offset: 2px; }
.model-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.model-pick label { position: relative; display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.model-pick input { position: absolute; opacity: 0; }
.model-pick label:has(input:checked) { border-color: var(--pine); background: #F6FBF9; }
.model-pick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.model-pick strong { font-size: 14.5px; }
.model-pick span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .model-pick { grid-template-columns: 1fr; } }
.calc { background: var(--mist); border-radius: 14px; padding: 14px 16px; font-size: 14px; display: grid; gap: 8px; }
.calc .row { display: flex; justify-content: space-between; gap: 12px; }
.calc .row.total { border-top: 1px solid var(--line-strong); padding-top: 8px; font-weight: 700; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: 13.5px; color: var(--ink-2); }
.note .ic { color: var(--pine); margin-top: 1px; }
.note.warn { background: var(--amber-tint); color: #5C3C06; }
.note.warn .ic { color: var(--amber-ink); }
.locked { position: relative; }
.locked-cover { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 32px 20px; }
.locked-cover .ic { color: var(--muted); }
.audit-old { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }

@media (max-width: 600px) { .demo-bar { gap: 12px; font-size: 12px; } .demo-bar > span { display: none; } }

/* ========== MODULE CLINIQUE ========== */
.care-li { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.care-li:first-child { border-top: 0; }
button.care-li:hover { background: #F8FBFA; }
.bed-tag { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--sunk); color: var(--muted); flex: none; }
.bed-tag.on { background: var(--pine-tint); color: var(--pine); }
.mini-card { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--pine-deep); background: var(--paper); flex: none; }
.viewfinder { position: relative; aspect-ratio: 1; width: min(230px, 70%); margin: 6px auto 0; border-radius: 26px; background: #0E1A17; display: grid; place-items: center; color: rgba(255,255,255,.18); overflow: hidden; }
.vf-corner { position: absolute; width: 34px; height: 34px; border: 4px solid #7FD8BE; }
.vf-corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.vf-corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.vf-corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.vf-corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.vf-line { position: absolute; left: 30px; right: 30px; height: 2px; background: #7FD8BE; box-shadow: 0 0 12px #7FD8BE; top: 30px; animation: scanline 2.2s ease-in-out infinite alternate; }
@keyframes scanline { to { top: calc(100% - 32px); } }
.beds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.bedcell { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--paper); }
.bedcell.free { border-style: dashed; background: transparent; }
.bc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.bc-who strong { display: block; font-size: 15px; }
.bc-who span { font-size: 12.5px; color: var(--muted); }
.bc-card { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.bc-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.bc-acts .btn { flex: 1; }
.tok { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--sunk); padding: 2px 6px; border-radius: 6px; }
.pcard { width: min(340px, 100%); margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--paper); box-shadow: var(--shadow-2); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--pine); color: #CFE6DE; font-size: 12px; }
.pcard-brand { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 14px; }
.pcard-body { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px; }
.pcard-qr { width: 132px; height: 132px; display: grid; place-items: center; }
.pcard-qr img, .pcard-qr canvas { display: block; }
.pcard-bed { font-size: 20px; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.pcard-code { margin-top: 10px; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--pine); }
.pcard-svc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pcard-foot { padding: 10px 14px; border-top: 1px dashed var(--line-strong); font-size: 11.5px; color: var(--muted); }

.t .num { white-space: nowrap; }
.beds { align-items: start; }
.app-body .kpis { grid-template-columns: repeat(3, 1fr); }
.app-body .kpi { padding: 12px 12px; border-left: 1px solid var(--line); border-top: 0; }
.app-body .kpi:first-child { border-left: 0; }
.app-body .kpi .v { font-size: 24px; }

/* ========== v3 : exigences, définitions, alertes, connexion ========== */
.req { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; vertical-align: middle; background: var(--paper); white-space: nowrap; }
.tip { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 700; font-style: italic; display: inline-grid; place-items: center; padding: 0; margin-left: 4px; vertical-align: 1px; cursor: help; }
.tip-pop { position: absolute; z-index: 95; max-width: 300px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-2); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.alert-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.alert-row:first-child { border-top: 0; }
.alert-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-tint); color: var(--amber-ink); }
.alert-ic.bad { background: var(--red-tint); color: var(--red); }
.alert-ic.info { background: var(--violet-tint); color: var(--violet); }
.alert-row .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--amber-tint); color: #5C3C06; font-size: 13.5px; margin-bottom: 12px; }
.banner .ic { color: var(--amber-ink); margin-top: 1px; }
.banner.bad { background: var(--red-tint); color: #6E1F19; }
.banner.bad .ic { color: var(--red); }
.status-line { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.trail { display: grid; gap: 8px; margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 13px; }
.trail div b { font-weight: 600; }
.login-box { display: grid; gap: 14px; margin-top: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); text-align: left; width: 100%; }
.method:hover, .method:focus-visible { border-color: var(--pine); }
.method .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pine-tint); color: var(--pine); flex: none; }
.method strong { display: block; font-size: 15px; }
.method span { font-size: 12.5px; color: var(--muted); }
.slotgrid { display: grid; gap: 4px; }
.slotrow { display: grid; grid-template-columns: 170px repeat(var(--n), minmax(64px, 1fr)); gap: 4px; align-items: stretch; }
.slotrow > .h { font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 2px; }
.slotrow > .bedh { font-size: 13.5px; font-weight: 600; padding: 8px 4px; display: flex; flex-direction: column; justify-content: center; }
.slotrow > .bedh span { font-size: 12px; color: var(--muted); font-weight: 400; }
.slot { min-height: 44px; border-radius: 8px; background: var(--mist); display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; align-content: flex-start; }
.pill { border: 0; border-radius: 6px; padding: 3px 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.2; font-family: inherit; }
.pill.ok { background: var(--pine-tint); color: var(--pine); } .pill.warn { background: var(--amber-tint); color: var(--amber-ink); }
.pill.bad { background: var(--red-tint); color: var(--red); } .pill.info { background: var(--violet-tint); color: var(--violet); }
.pill.neutral { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.mx { overflow-x: auto; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.yes { color: var(--pine); font-weight: 700; } .no { color: var(--line-strong); } .part { color: var(--amber-ink); font-weight: 700; }
.bars { display: grid; gap: 10px; }
.barrow { display: grid; grid-template-columns: 150px 1fr 54px; gap: 12px; align-items: center; font-size: 13.5px; }
.barrow .track { height: 10px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.barrow .track i { display: block; height: 100%; border-radius: 5px; background: var(--pine); }
.barrow .v { text-align: right; font-weight: 600; }
.ro-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--sunk); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.pick label.tile-btn { cursor: pointer; }

/* ========== v4 : revenus et assistance ========== */
:root { --viz-ishid: #2a78d6; --viz-fosa: #1baf7a; }
.chart { display: grid; gap: 10px; }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-ishid { background: var(--viz-ishid); } .sw-fosa { background: var(--viz-fosa); }
.chart-plot { display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.chart-y { height: var(--h); display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; transform: translateY(-6px); }
.chart-area { position: relative; height: calc(var(--h) + 22px); }
.chart-area .gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.chart-area .gl:first-child { background: var(--line-strong); }
.chart-bars { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.bcol { position: relative; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; cursor: default; font: inherit; color: inherit; }
.bstack { width: min(34px, 70%); display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; min-height: 0; }
.bstack i { display: block; min-height: 2px; }
.bstack i:first-child { border-radius: 4px 4px 0 0; }
.seg-ishid { background: var(--viz-ishid); } .seg-fosa { background: var(--viz-fosa); }
.bstack i.partial { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.45) 0 3px, transparent 3px 7px); }
.bx { position: absolute; bottom: 0; font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.bcol:hover .bstack, .bcol:focus-visible .bstack { filter: brightness(1.08); }
.btip { position: absolute; bottom: calc(100% - 10px); left: 50%; transform: translateX(-50%); z-index: 5; display: none; flex-direction: column; gap: 4px; min-width: 210px; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); font-size: 12.5px; text-align: left; white-space: nowrap; }
.bcol:hover .btip, .bcol:focus-visible .btip { display: flex; }
.bcol:first-child .btip, .bcol:nth-child(2) .btip { left: 0; transform: none; }
.bcol:last-child .btip, .bcol:nth-last-child(2) .btip { left: auto; right: 0; transform: none; }
.delta { font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.delta.up { color: var(--pine); } .delta.down { color: var(--red); }
.spark { display: block; }
.row-link { cursor: pointer; }
.row-link:hover td { background: #F6FAF8 !important; }

.assist-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; font-size: 13.5px; font-weight: 500; position: sticky; top: 0; z-index: 70; }
.assist-bar.observe { background: var(--violet); color: #fff; }
.assist-bar.intervene { background: var(--red); color: #fff; }
.assist-bar b { font-weight: 700; }
.assist-bar button { border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 600; font-size: 13px; }
.assist-bar button:hover { background: rgba(255,255,255,.22); }
body.assist-observe .phone, body.assist-observe .main, body.assist-observe .kiosk-panel { outline: 3px solid var(--violet); outline-offset: -3px; }
body.assist-intervene .phone, body.assist-intervene .main, body.assist-intervene .kiosk-panel { outline: 3px solid var(--red); outline-offset: -3px; }
.space-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 16px 18px; }
.space-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.space-card strong { font-size: 14.5px; }
.space-card .acts { display: flex; gap: 6px; }
.space-card .acts .btn { flex: 1; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-pick label { position: relative; display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick label:has(input:checked) { border-color: var(--pine); background: #F6FBF9; }
.mode-pick label:has(input[value=intervene]:checked) { border-color: var(--red); background: #FDF5F4; }
.mode-pick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.mode-pick strong { font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.mode-pick span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .mode-pick { grid-template-columns: 1fr; } }

.bars.share .barrow { grid-template-columns: minmax(110px, 160px) 1fr auto; }
.bars.share .barrow .v { white-space: nowrap; }
.kpi .v.money { font-size: 26px; }

/* ========== v5 : studio de cartes et impression ========== */
.pc { position: relative; overflow: hidden; border-radius: 3mm; box-shadow: 0 0 0 1px rgba(16,36,32,.18); flex: none; }
.pf { position: absolute; box-sizing: border-box; }
.pf-empty { display: grid; place-items: center; width: 100%; height: 100%; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 7pt; }
.studio { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1280px) { .studio { grid-template-columns: minmax(0, 1fr) 300px; } .studio .st-models { grid-column: 1 / -1; } }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }
.st-stage { background: repeating-conic-gradient(var(--sunk) 0 25%, var(--paper) 0 50%) 0 0 / 18px 18px; border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; display: grid; place-items: center; min-height: 360px; overflow: auto; }
.st-scale { transform-origin: center; }
.pc[data-edit] .pf { cursor: move; }
.pc[data-edit] .pf:hover { outline: 1px dashed rgba(47,111,237,.6); }
.pc[data-edit] .pf.sel { outline: 2px solid #2F6FED; z-index: 3; }
.pc[data-edit] .pf:focus-visible { outline: 2px solid #2F6FED; }
.rh { position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; background: #2F6FED; border: 2px solid #fff; border-radius: 2px; cursor: nwse-resize; }
.field-list { display: grid; gap: 4px; }
.field-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: none; text-align: left; font-size: 13.5px; }
.field-list button:hover { background: var(--mist); }
.field-list button[aria-current="true"] { background: var(--pine-tint); border-color: #B9DCCF; font-weight: 600; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line-strong); padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px #2F6FED; }
.model-item { display: grid; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-align: left; width: 100%; }
.model-item[aria-current="true"] { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.model-item .thumb { height: 74px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--mist); }
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.color-input { display: flex; align-items: center; gap: 8px; }
.color-input input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.card-preview-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 18px; background: var(--mist); border-radius: 14px; }

/* document d'impression : planches A4, cartes à taille réelle, traits de coupe */
.print-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.print-bar .grow { flex: 1; min-width: 200px; }
.sheets { display: grid; gap: 24px; justify-items: center; padding: 24px 12px 60px; background: #DDE3E1; }
.sheet-a4 { width: 210mm; height: 297mm; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.18); position: relative; display: flex; flex-direction: column; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 6mm 10mm 0; font-size: 8pt; color: #555; font-family: var(--font); }
.sheet-grid { flex: 1; display: grid; justify-content: center; align-content: center; gap: 0; }
.cut { position: relative; padding: 2mm; }
.cut::before, .cut::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(#000, #000) left 0 top 2mm / 1.6mm .2mm no-repeat, linear-gradient(#000, #000) right 0 top 2mm / 1.6mm .2mm no-repeat,
  linear-gradient(#000, #000) left 0 bottom 2mm / 1.6mm .2mm no-repeat, linear-gradient(#000, #000) right 0 bottom 2mm / 1.6mm .2mm no-repeat; }
.cut::after { background:
  linear-gradient(#000, #000) left 2mm top 0 / .2mm 1.6mm no-repeat, linear-gradient(#000, #000) right 2mm top 0 / .2mm 1.6mm no-repeat,
  linear-gradient(#000, #000) left 2mm bottom 0 / .2mm 1.6mm no-repeat, linear-gradient(#000, #000) right 2mm bottom 0 / .2mm 1.6mm no-repeat; }
.cut .pc { box-shadow: none; border-radius: 0; }
.sheet-foot { padding: 0 10mm 5mm; font-size: 7pt; color: #777; font-family: var(--font); display: flex; justify-content: space-between; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  body > #app > *:not(.print-root), .demo-bar, .assist-bar, .print-bar, #toasts { display: none !important; }
  .print-root .sheets { padding: 0; gap: 0; background: #fff; }
  .sheet-a4 { box-shadow: none; break-after: page; }
  .pc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print { .print-root > .note { display: none !important; } }
/* zones dynamiques : étiquette visible en édition uniquement */
.pc[data-edit] .pf[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 0; transform: translateY(-100%); padding: 1px 5px; font: 600 9px/1.4 var(--font); color: #fff; background: rgba(47,111,237,.85); border-radius: 3px 3px 3px 0; white-space: nowrap; pointer-events: none; opacity: 0; }
.pc[data-edit] .pf[data-label]:hover::before, .pc[data-edit] .pf.sel::before { opacity: 1; }
.pc[data-edit] .pf[data-label] { outline: 1px dashed rgba(47,111,237,.45); outline-offset: 0; }
.st-stage.drawing .pc { cursor: crosshair; }
.st-stage.drawing .pf { pointer-events: none; }
.draw-ghost { position: absolute; z-index: 5; border: 2px dashed #2F6FED; background: rgba(47,111,237,.12); pointer-events: none; }

/* v7 : chambres et lits */
.room-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.room-name { display: grid; gap: 2px; }
.bedchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bedchip { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; width: 66px; height: 58px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.bedchip:hover { border-color: var(--pine); transform: translateY(-1px); }
.bedchip b { font-size: 17px; line-height: 1; }
.bedchip span { font-size: 11px; color: var(--muted); }
.bedchip.busy { background: var(--pine-tint); border-color: transparent; }
.bedchip.busy span { color: var(--pine); font-weight: 600; }
.bedchip.maint { background: var(--amber-tint, #fdf3dd); border-color: transparent; }
.bedchip.maint span { color: var(--amber-ink); font-weight: 600; }
.bedchip i { position: absolute; top: 5px; right: 5px; display: grid; color: var(--line-strong); }
.bedchip i.on { color: var(--pine); }
.bedchip.add { border-style: dashed; color: var(--muted); }
.bedchip.add:hover { color: var(--pine); }
@media (max-width: 640px) { .room-row { grid-template-columns: 1fr auto; } .room-row .bedchips { grid-column: 1 / -1; grid-row: 2; } }
.lits-legend .lg { display: inline-flex; vertical-align: -2px; color: var(--line-strong); }
.lits-legend .lg.on { color: var(--pine); }
.lits-legend { display: block; text-align: left; }
.login-dial { width: min(230px, 70%); margin: 22px auto 0; }
.login-dial .dial-center .time { font-size: 34px; }
.login-dial .dial-center .sub { font-size: 12px; max-width: 110px; margin-inline: auto; }
/* v8 : gardes versionnées */
.tpl .tpl-actions { display: flex; gap: 6px; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; }
.tpl.off { opacity: .72; }
.tpl.off .timeline i { background: var(--line-strong); }
.tpl-pending { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--amber-tint); color: var(--amber-ink); font-size: 13.5px; }
.tpl-pending span { flex: 1; }
.tpl-hist { grid-column: 1 / -1; font-size: 13px; }
.tpl-hist summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.tpl-hist ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* v9 : pilotage responsive */
.nav-group { margin: 12px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mobile-top .mt-section { flex: 1; min-width: 0; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 960px) {
  .main { padding: 16px 14px 40px; }
  .page-head { align-items: stretch; margin-bottom: 16px; }
  .page-head .tools { width: 100%; }
  .page-head .tools .btn { flex: 1 1 auto; justify-content: center; }
  .panel-head, .panel-body { padding: 14px; }
  .filters { padding: 12px 14px; }
  .filters .input, .filters select { flex: 1 1 140px; width: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-left: 0; border-top: 1px solid var(--line); padding: 14px; }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .kpi .v { font-size: 24px; }
  .modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
}
@media (max-width: 720px) {
  .table-wrap { overflow: visible; }
  table.t[data-labeled], table.t[data-labeled] tbody, table.t[data-labeled] tfoot, table.t[data-labeled] tr, table.t[data-labeled] td { display: block; width: 100%; }
  table.t[data-labeled] thead { display: none; }
  table.t[data-labeled] tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.t[data-labeled] tr:last-child { border-bottom: 0; }
  table.t[data-labeled] td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 5px 0; border: 0; text-align: right; }
  table.t[data-labeled] td > * { text-align: right; }
  table.t[data-labeled] td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); }
  table.t[data-labeled] td:not([data-label])::before, table.t[data-labeled] td[data-label=""]::before { content: none; }
  table.t[data-labeled] td:first-child { justify-content: flex-start; text-align: left; font-size: 15px; }
  table.t[data-labeled] td:first-child::before { content: none; }
  table.t[data-labeled] td:first-child > * { text-align: left; }
  table.t[data-labeled] td[colspan] { justify-content: center; }
  table.t[data-labeled] td .person { text-align: left; }
  table.t[data-labeled] td select.input { max-width: 60%; }
}

/* v9 : accueil en étapes */
.home-title { font-size: clamp(30px, 3.6vw, 46px) !important; max-width: 16ch !important; margin: 26px 0 18px !important; }
.steps-line { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 12px; flex-wrap: wrap; }
.steps-line li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--sunk); }
.steps-line li b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 11.5px; color: var(--muted); }
.steps-line li.cur { background: var(--pine-tint); color: var(--pine); }
.steps-line li.cur b { background: var(--pine); color: #fff; }
.steps-line li.done b { background: var(--pine); color: #fff; }
.entry-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow-1); }
.entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.entry-head h2 { font-size: 19px; }
.linkish { background: none; border: 0; padding: 0; color: var(--pine); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.svc { text-align: left; display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.svc:hover, .svc:focus-visible { border-color: var(--pine); background: var(--pine-tint); }
.svc strong { font-size: 15px; }
.svc span { font-size: 12.5px; color: var(--muted); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.quick-btn { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); }
.quick-btn > .ic, .quick-btn > svg { flex: none; color: var(--pine); margin-top: 2px; }
.quick-btn strong { display: block; font-size: 15px; }
.quick-btn span span { font-size: 12.5px; color: var(--muted); }
.quick-btn.urgent { border-color: #F2C4BE; background: #FFF6F4; }
.quick-btn.urgent > svg { color: var(--red); }
.quick-btn:hover { border-color: var(--pine); }
.pilotage { margin-top: 18px; }
.pilotage summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; list-style: none; }
.pilotage summary::-webkit-details-marker { display: none; }
.pilotage[open] summary { margin-bottom: 10px; color: var(--ink); }
.login-ctx { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.login-ctx span { display: inline-flex; align-items: center; gap: 5px; }
.login-ctx a { color: var(--pine); font-weight: 600; }
.back-home { flex: none; }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr; } .entry-card { padding: 16px; } }
.svc { display: flex; flex-direction: column; align-items: flex-start; }
.svc small { font-size: 12.5px; color: var(--muted); }
.home-mbrand { display: none; }
@media (max-width: 920px) {
  .home-mbrand { display: block; order: -2; }
  .home-dbrand { display: none; }
  .home-main { gap: 18px; }
  .home-visual .dial-wrap { width: min(230px, 64vw); }
  .home-title { font-size: 24px !important; margin: 4px 0 14px !important; }
  .home .legend { display: none; }
}
.panel-body.mx { overflow-x: auto; }
@media (max-width: 720px) { .table-wrap:has(table.keep) { overflow-x: auto; } table.keep { font-size: 13px; } table.keep th, table.keep td { padding: 8px 10px; } }
.console > div { min-width: 0; }
.seg button { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) { table.t[data-labeled] td > .tdv { min-width: 0; } table.t[data-labeled] td > .tdv > * { margin-left: auto; } table.t[data-labeled] td:first-child > .tdv { text-align: left; } }

/* v10 : application réelle — pages d'authentification */
.auth-page { min-height: 100dvh; display: grid; place-items: start center; padding: 28px 16px 40px; }
.auth-card { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.auth-top { margin-bottom: 14px; }
.auth-title { font-size: 26px; letter-spacing: -.02em; margin-top: 4px; }
.who-row { display: flex; align-items: center; gap: 12px; }
.who-row strong { display: block; font-size: 17px; }
.who-row span { font-size: 13.5px; color: var(--muted); }
.method[disabled] { opacity: .55; cursor: not-allowed; }
.secret-val { font: 700 22px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--pine); user-select: all; }
.loading { padding: 40px; color: var(--muted); }
.sel-sm { min-height: 34px; width: auto; font-size: 13px; }
.note .btn { margin-left: auto; flex: none; }
@media (max-width: 480px) { .auth-page { padding: 0; } .auth-card { border-radius: 0; border: 0; min-height: 100dvh; box-shadow: none; } }

/* v11 : application mobile du personnel */
.mapp { position: relative; max-width: 480px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; background: var(--mist); overflow: hidden; }
@media (min-width: 520px) { .mapp { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.mapp .app-top { padding-top: 14px; }
.mapp .sheet-top { padding-top: 14px; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.big-result .ring.ok { background: var(--pine-tint); color: var(--pine); }
.k-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.k-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .k-split { grid-template-columns: 1fr; } }
.kiosk { min-height: 100dvh; }
.kiosk-clock span { text-transform: none; }

/* ----- lot 3 : soins au chevet, scan, cartes ----- */
.app-tabs.five { grid-template-columns: repeat(5, 1fr); }
.app-tabs.five button { font-size: 11px; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .vf-corner, .viewfinder .vf-line { z-index: 1; }
.urgent-btn { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--red-tint, #F6D5D2); background: #FFF5F4; color: #9B2C22; text-decoration: none; font: inherit; cursor: pointer; text-align: left; }
.urgent-btn strong { display: block; font-size: 15px; }
.urgent-btn span span { display: block; font-size: 12.5px; color: #8A4A43; }
.urgent-flag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #FFF0EE; color: #9B2C22; font-size: 12.5px; font-weight: 700; }
.pf-empty { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; color: rgba(0,0,0,.35); font-size: 9pt; }

/* ----- lot 4 : facture et reçu patient ----- */
.receipt-doc { width: 148mm; min-height: 190mm; margin: 0 auto; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 12mm; display: flex; flex-direction: column; gap: 8mm; font-size: 10pt; color: #1b2a26; }
.rd-head { display: grid; grid-template-columns: auto 1fr auto; gap: 4mm; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 4mm; }
.rd-head img { width: 16mm; height: 16mm; object-fit: contain; }
.rd-head strong { display: block; font-size: 12pt; }
.rd-head span { display: block; font-size: 8.5pt; color: #5f726b; }
.rd-title { text-align: right; }
.rd-title b { display: block; font-size: 14pt; letter-spacing: .08em; color: var(--brand); }
.rd-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 6mm; margin: 0; }
.rd-info dt { font-size: 8pt; color: #5f726b; } .rd-info dd { margin: 0; font-weight: 600; }
.rd-lines { width: 100%; border-collapse: collapse; }
.rd-lines th { text-align: left; font-size: 8.5pt; color: #5f726b; border-bottom: 1px solid #d8e0dd; padding: 2mm 0; }
.rd-lines td { padding: 3mm 0; border-bottom: 1px solid #eef2f0; }
.rd-lines .num { text-align: right; white-space: nowrap; padding-left: 3mm; }
.rd-lines tfoot td { font-weight: 800; font-size: 12pt; border: 0; padding-top: 4mm; }
.rd-note { margin: 0; font-size: 9pt; color: #3a4a45; }
.rd-foot { margin-top: auto; font-size: 8pt; color: #7a8a85; border-top: 1px solid #eef2f0; padding-top: 3mm; }
@media print { .receipt-doc { box-shadow: none; margin: 0; } @page { margin: 0; } }
@media (max-width: 640px) { .receipt-doc { width: auto; min-height: 0; padding: 18px; margin: 0 12px; } .rd-info { grid-template-columns: 1fr; } }

/* Tutoriels vidéo */
.tuto-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--pine-tint); color: var(--ink); margin-bottom: 8px; font-size: 14px; }
.tuto-intro svg { flex: none; color: var(--pine); margin-top: 1px; }
.tuto-sec h2 { font-size: 17px; margin: 22px 0 12px; }
.tuto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tuto { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; cursor: pointer; font: inherit; color: var(--ink); }
.tuto:hover, .tuto:focus-visible { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px var(--pine-tint); }
.tuto strong { padding: 0 14px; font-size: 14.5px; line-height: 1.35; }
.tuto-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--pine-deep); }
.tuto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tuto-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: #E8A23A; color: var(--pine-deep); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.tuto-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(10,59,50,.88); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.tuto-more { margin-top: 26px; }
.tuto-more summary { cursor: pointer; font-weight: 600; color: var(--pine); }
.tuto-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.modal.wide:has(.tuto-video) { width: min(980px, 100%); }
.tuto-page { min-height: 100dvh; background: var(--mist); }
.tuto-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px max(16px, env(safe-area-inset-left)); background: var(--paper); border-bottom: 1px solid var(--line); }
.tuto-main { max-width: 1100px; margin: 0 auto; padding: 22px 16px 48px; }
.tuto-main h1 { font-size: 26px; margin: 0 0 14px; }
.tuto-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; }
.tuto-chips button { flex: none; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.tuto-chips button span { color: var(--muted); font-weight: 400; margin-left: 3px; }
.tuto-chips button[aria-current="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.tuto-chips button[aria-current="true"] span { color: var(--pine-tint); }

/* Diagnostic et soin détaillé, observations, problèmes signalés */
.care-info { display: grid; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.care-info b { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--pine); }
.care-info p { margin: 3px 0 0; font-size: 14px; white-space: pre-wrap; }
.note.bad { background: var(--red-tint); color: #5E1A14; }
.note.bad .ic, .note.bad svg { color: var(--red); }
.obs-box { display: grid; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--mist); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); }

/* ----- équipes de garde ----- */
.team-svc { padding: 14px 18px 4px; border-top: 1px solid var(--line); }
.team-svc h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-bottom: 12px; }
.team-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: var(--paper); }
.team-top { display: grid; gap: 10px; }
.team-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
.team-top h3 { margin: 0; font-size: 16px; }
.team-members { display: flex; flex-wrap: wrap; gap: 6px; }
.team-plan { display: grid; gap: 6px; font-size: 13px; }
.team-plan > div { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.team-plan > div.on { color: var(--pine); }
.team-plan > div svg { flex: none; margin-top: 2px; }
.check-list { display: grid; gap: 4px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.check-row:hover { background: var(--sunk); }
.check-row input { width: 18px; height: 18px; accent-color: var(--pine); flex: none; }
.team-plan-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; }
.team-plan-box legend { padding: 0 6px; font-weight: 600; }

/* ----- planning de garde imprimable : A4 paysage ----- */
.plan-sheet { width: 297mm; height: 210mm; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 9mm 10mm 6mm; display: flex; flex-direction: column; gap: 3mm; font-family: var(--font); color: #14231F; page: planning; overflow: hidden; }
.plan-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8mm; }
.pl-id { display: flex; gap: 4mm; align-items: center; min-width: 0; }
.pl-logo { width: 17mm; height: 17mm; border-radius: 4mm; display: grid; place-items: center; overflow: hidden; flex: none; border: .3mm solid #E2E8E5; }
.pl-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pl-logo span { color: #fff; font-weight: 800; font-size: 15pt; letter-spacing: .5pt; }
.pl-id h1 { margin: 0; font-size: 15pt; line-height: 1.15; font-weight: 800; }
.pl-id p { margin: .6mm 0 0; font-size: 7.5pt; color: #5F726B; }
.pl-id .pl-slogan { font-style: italic; color: var(--pp); }
.pl-title { text-align: right; display: grid; justify-items: end; gap: 1mm; }
.pl-kicker { font-size: 7.5pt; font-weight: 700; letter-spacing: 1.6pt; text-transform: uppercase; color: var(--pp); }
.pl-title h2 { margin: 0; font-size: 19pt; font-weight: 800; line-height: 1.05; }
.pl-period { font-size: 8pt; font-weight: 600; padding: 1.2mm 3.5mm; border-radius: 99px; background: color-mix(in srgb, var(--pp) 10%, #fff); color: var(--pp); }
.pl-bar { height: 1.4mm; border-radius: 1mm; background: linear-gradient(90deg, var(--pp) 0 70%, var(--ps) 70% 100%); }
.pl-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 7pt; }
.pl-table col.c-name { width: 56mm; } .pl-table col.c-tot { width: 11mm; }
.pl-table th, .pl-table td { border-bottom: .2mm solid #E4EAE7; padding: 0; text-align: center; vertical-align: middle; }
.pl-months th { font-size: 6.8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .8pt; color: var(--pp); padding: 0 0 1mm; border: 0; text-align: left; }
.pl-days th { background: var(--pp); color: #fff; height: 9mm; font-weight: 600; }
.pl-days th.pn { text-align: left; padding-left: 3mm; border-radius: 2mm 0 0 0; font-size: 7.5pt; letter-spacing: .4pt; }
.pl-days th.pt { border-radius: 0 2mm 0 0; font-size: 7pt; }
.pl-days th.pd span { display: block; font-size: 6pt; opacity: .8; } .pl-days th.pd b { display: block; font-size: 8pt; }
.pl-days th.we { background: color-mix(in srgb, var(--pp) 78%, #000); }
.pl-table td.pn { text-align: left; padding: .45mm 2mm .45mm 3mm; height: 5.4mm; line-height: 1.08; }
.pl-table td.pn b { font-size: 7.6pt; } .pl-table td.pn small { display: block; font-size: 6pt; color: #6A7C75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-table td.pn em { font-style: normal; font-size: 5.6pt; font-weight: 700; border: .25mm solid; border-radius: 99px; padding: 0 1.4mm; margin-left: 1.5mm; vertical-align: 1px; text-transform: uppercase; letter-spacing: .3pt; }
.pl-table td.pd { border-left: .2mm solid #EEF2F0; }
.pl-table td.we { background: #F6F3EA; }
.pl-table td.pd i { display: inline-grid; place-items: center; width: 82%; max-width: 6.2mm; height: 4.4mm; border-radius: 1.2mm; font-style: normal; font-weight: 800; font-size: 7pt; }
.pl-table td.pt { font-weight: 800; font-size: 8pt; color: var(--pp); background: color-mix(in srgb, var(--pp) 6%, #fff); }
.pl-table tbody tr:nth-child(even):not(.pl-team):not(.pl-svc) td.pn { background: #FAFBFA; }
.pl-team td { text-align: left !important; font-size: 6.4pt; font-weight: 700; text-transform: uppercase; letter-spacing: .9pt; color: #5F726B; padding: 1.1mm 3mm .4mm !important; background: #F1F5F3; }
.pl-svc td { text-align: left !important; font-size: 8.5pt; font-weight: 800; padding: 2mm 0 1mm !important; border-bottom: .4mm solid var(--pp) !important; }
.pl-svc td span { display: inline-block; width: 2.2mm; height: 2.2mm; border-radius: .6mm; margin: 0 2mm 0 1mm; }
.pl-svc td i { font-weight: 500; color: #6A7C75; }
.pl-empty { padding: 8mm !important; color: #6A7C75; font-size: 8pt; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 2mm 5mm; align-items: center; font-size: 7pt; color: #3E4F49; margin-top: auto; padding-top: 1mm; }
.pl-legend span { display: inline-flex; align-items: center; gap: 1.5mm; }
.pl-legend i { display: inline-grid; place-items: center; width: 5.5mm; height: 4.2mm; border-radius: 1.2mm; font-style: normal; font-weight: 800; font-size: 7pt; }
.pl-legend i.rest { background: #fff; border: .25mm dashed #B8C6C0; }
.pl-legend .we-key i { background: #F6F3EA; border: .2mm solid #E4DCC5; }
.pl-sign { display: grid; gap: 5mm; }
.pl-sbox { border: .3mm solid #D9E3DF; border-radius: 2.5mm; padding: 2.2mm 3.5mm; display: grid; grid-template-rows: auto auto 1fr auto; height: 27mm; }
.pl-sbox h3 { margin: 0; font-size: 8pt; font-weight: 800; color: var(--pp); text-transform: uppercase; letter-spacing: .5pt; }
.pl-sname { margin: .8mm 0 0; font-size: 7.8pt; font-weight: 600; } .pl-sname span { color: #8A9A94; font-weight: 400; }
.pl-sarea { font-size: 6pt; color: #A5B3AE; text-align: right; align-self: end; border-bottom: .25mm dotted #B8C6C0; padding-bottom: .5mm; }
.pl-sdate { margin: 1mm 0 0; font-size: 6.6pt; color: #6A7C75; }
.pl-foot { display: flex; justify-content: space-between; font-size: 6.2pt; color: #8A9A94; border-top: .2mm solid #E4EAE7; padding-top: 1.3mm; }
@page planning { size: A4 landscape; margin: 0; }
@media print { .plan-sheet { box-shadow: none; break-after: page; } }

/* ----- installation de l'application ----- */
.install-btn { margin-bottom: 8px; color: var(--pine); border-color: color-mix(in srgb, var(--pine) 35%, var(--line)); }
button.quick-btn { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.install-quick { margin-top: 10px; }
.ins-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ins-steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.ins-steps li svg { vertical-align: -4px; }
.ins-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font-weight: 700; font-size: 14px; }
.ins-code { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--pine-tint); display: grid; gap: 6px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.ins-code b { font-size: 30px; letter-spacing: 6px; color: var(--pine-deep); }
.ins-code small { color: var(--muted); }
.resume-card { min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0 0 16px; padding: 14px; border-radius: 16px; background: var(--pine-tint); display: grid; gap: 10px; }
.resume-card strong { display: block; } .resume-card span { font-size: 13.5px; color: var(--ink-2); }
.resume-row { display: flex; gap: 8px; min-width: 0; } .resume-row input { flex: 1; min-width: 0; width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 14px; font: 600 20px/1 var(--font); letter-spacing: 4px; text-align: center; }
.mt-install { color: var(--pine); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----- attente d'une position GPS précise (moins de 10 m) ----- */
.gps-wait { position: fixed; inset: 0; z-index: 90; background: rgba(10, 30, 26, .55); display: grid; place-items: center; padding: 16px; }
.gps-card { width: min(420px, 100%); background: var(--paper); border-radius: 24px; padding: 22px 20px 16px; text-align: center; display: grid; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: calc(100vh - 32px); overflow: auto; }
.gps-card h2 { margin: 0; font-size: 20px; }
.gps-card > p { margin: 0; }
.gps-gauge { position: relative; width: 190px; height: 190px; margin: 4px auto; }
.gps-gauge > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gg-icon svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }
.gps-card { box-sizing: border-box; min-width: 0; }
.gps-card * { max-width: 100%; }
.gg-bg { fill: none; stroke: var(--sunk); stroke-width: 10; }
.gg-fg { fill: none; stroke: var(--amber); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .6s ease, stroke .3s; }
.gps-wait.ok .gg-fg { stroke: var(--pine); }
.gg-mid { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.gg-mid b { font-size: 30px; font-variant-numeric: tabular-nums; }
.gg-mid small { color: var(--muted); font-size: 12px; max-width: 110px; margin: 0 auto; line-height: 1.25; }
.gg-icon { color: var(--amber-ink); } .gps-wait.ok .gg-icon { color: var(--pine); }
.gg-icon svg { animation: gps-pulse 1.4s ease-in-out infinite; } .gps-wait.ok .gg-icon svg { animation: none; }
@keyframes gps-pulse { 50% { transform: translateY(-3px); opacity: .6; } }
.gps-state { font-weight: 600; } .gps-wait.ok .gps-state { color: var(--pine); }
.gps-tips { text-align: left; margin: 0; padding: 10px 12px 10px 28px; background: var(--amber-tint); border-radius: 12px; font-size: 13px; display: grid; gap: 4px; color: var(--ink-2); }
.gps-actions { display: grid; gap: 8px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .gg-icon svg { animation: none; } .gg-fg { transition: none; } }

/* ----- cartes en lot ----- */
.batch-hero { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 20px 22px; background: linear-gradient(120deg, var(--pine-tint), var(--paper) 70%); }
.batch-hero h2 { margin: 0 0 6px; font-size: 18px; }
.batch-hero p { margin: 0 0 12px; color: var(--ink-2); max-width: 560px; }
.bh-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.bh-stats b { color: var(--ink); font-size: 18px; margin-right: 4px; }
.bh-card { display: grid; place-items: center; }
.bh-card .pc, .card-preview-row .pc { border-radius: 3mm; box-shadow: 0 10px 30px rgba(10, 40, 34, .18); overflow: hidden; }
@media (max-width: 760px) { .batch-hero { grid-template-columns: 1fr; } .bh-card { overflow: hidden; } }
.room-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 220px; overflow: auto; }
.room-pick { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.room-pick:has(input:checked) { border-color: var(--pine); background: var(--pine-tint); }
.room-pick input { width: 17px; height: 17px; accent-color: var(--pine); flex: none; }
.room-pick small { display: block; color: var(--muted); font-size: 11.5px; }

/* ----- planification : plusieurs soins, autre soin, périodicité personnalisée ----- */
.care-pick legend { margin-bottom: 8px; font-weight: 600; }
.care-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--muted); margin-bottom: 8px; }
.care-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.care-list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px 10px; }
.care-grp h4 { margin: 10px 0 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.care-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.care-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; cursor: pointer; background: var(--paper); }
.care-chip input { width: 15px; height: 15px; accent-color: var(--pine); margin: 0; }
.care-chip:has(input:checked) { border-color: var(--pine); background: var(--pine-tint); color: var(--pine-deep); font-weight: 600; }
.care-sel { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.care-sel .chip button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 2px; color: inherit; }
.other-care { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; margin-bottom: 8px; background: var(--mist); }
.oc-head { display: flex; justify-content: space-between; align-items: center; }
.custom-in { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.custom-in input { width: 70px; min-width: 0; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font: inherit; }
.care-pick .care-chip input { padding: 0; border: 0; box-shadow: none; min-height: 0; width: 15px; height: 15px; }
.care-pick .care-search input { padding: 0; border: 0; height: auto; box-shadow: none !important; }
.care-pick { font-weight: 400; }
.cover-gaps { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.cover-gaps h2 { display: flex; align-items: center; gap: 8px; color: var(--amber-ink); }
.gap-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
