/* Agenda BETB — mobile app shell: signage-blue bar, hour grid with one column per seller, report underneath, bottom tabs */
:root {
  --bg: #F1F4F7; --surface: #FFFFFF; --sunk: #E8EDF2; --field: #F7F9FB;
  --ink: #142031; --ink-2: #536074; --ink-3: #8793A4;
  --line: #D6DDE5; --line-soft: #E6EBF0; --line-faint: #F1F4F7;
  --bar: #16263B; --bar-fg: #EDF2F8; --bar-2: #9EB0C7; --bar-line: rgba(237, 242, 248, .22);
  --accent: #F4B400; --accent-ink: #1A1400; --now: #E39B00;
  --ok: #16714A; --ok-bg: #E1F1E8; --ok-bd: #9DCDB3;
  --r2: #2051A1; --r2-bg: #E2EAF7; --r2-bd: #A7BEE6;
  --cb: #955800; --cb-bg: #FAEEDA; --cb-bd: #E8C58A;
  --no: #8A3943; --no-bg: #F4E5E7; --no-bd: #DCB0B6;
  --wait-bd: #98A3B3;
  --danger: #B42318; --on-danger: #FFFFFF;
  --stop: #B42318; --stop-bg: #FDECEA; --stop-bd: #F0B4AE;
  --scrim: rgba(12, 20, 32, .45);
  --shadow: 0 10px 30px rgba(14, 24, 38, .18);
  --shadow-sm: 0 1px 3px rgba(14, 24, 38, .14);
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hour: 72px;
  --tabbar-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1520; --surface: #162030; --sunk: #1D293A; --field: #111A27;
    --ink: #E7ECF3; --ink-2: #A2AEC0; --ink-3: #6F7C90;
    --line: #2A374A; --line-soft: #212D3E; --line-faint: #1A2433;
    --bar: #09101A; --bar-fg: #EDF2F8; --bar-2: #8C9BB0; --bar-line: rgba(237, 242, 248, .16);
    --accent: #F6C232; --accent-ink: #1A1400; --now: #F6C232;
    --ok: #74D3A0; --ok-bg: #12301F; --ok-bd: #2B6146;
    --r2: #93B4F0; --r2-bg: #14243F; --r2-bd: #33518A;
    --cb: #F0BA66; --cb-bg: #35270F; --cb-bd: #6E5226;
    --no: #E8A1A9; --no-bg: #351D22; --no-bd: #6E3A43;
    --wait-bd: #5C6A80;
    --danger: #F07167; --on-danger: #1A0503;
    --stop: #FF8A80; --stop-bg: #3A1614; --stop-bd: #7A2D29;
    --scrim: rgba(3, 6, 12, .62);
    --shadow: 0 12px 34px rgba(0, 0, 0, .5);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bar); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
body.sheet-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* state tones shared by events, pills, chips, stats */
.st-signe { --tone: var(--ok); --tint: var(--ok-bg); --bd: var(--ok-bd); }
.st-r2 { --tone: var(--r2); --tint: var(--r2-bg); --bd: var(--r2-bd); }
.st-rappel { --tone: var(--cb); --tint: var(--cb-bg); --bd: var(--cb-bd); }
.st-non { --tone: var(--no); --tint: var(--no-bg); --bd: var(--no-bd); }
.st-attente { --tone: var(--ink-2); --tint: var(--surface); --bd: var(--wait-bd); }
.st-stop { --tone: var(--stop); --tint: var(--stop-bg); --bd: var(--stop-bd); }

/* ---------- boot / auth ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bar); color: var(--bar-fg); z-index: 100; }
.auth-mark, .mark { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 23px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; text-decoration: none; }
.auth-mark i, .mark i { width: 24px; height: 14px; display: inline-block; background: repeating-linear-gradient(135deg, var(--accent) 0 5px, transparent 5px 9px); border-radius: 2px; }
.auth { min-height: 100vh; background: var(--bar); color: var(--bar-fg); display: grid; align-content: center; justify-items: center; gap: 22px; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.auth .auth-mark { font-size: 30px; }
.auth-card { width: min(420px, 100%); background: var(--surface); color: var(--ink); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.auth-card h1 { font-family: var(--f-display); font-weight: 700; font-size: 28px; margin: 0 0 10px; line-height: 1.05; }
.auth-lead { margin: 0 0 14px; color: var(--ink-2); }
.auth-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); text-align: center; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bar); color: var(--bar-fg); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.bar .mark { font-size: clamp(21px, 6vw, 25px); letter-spacing: .02em; white-space: nowrap; min-width: 0; }
.auth-mark, .mark { text-transform: none; letter-spacing: .02em; }
.bar .mark i { flex: none; }
.spacer { flex: 1; }
.bar-btn { color: var(--bar-fg); border: 1px solid var(--bar-line); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 14px; text-decoration: none; }
.me-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-weight: 700; font-size: 15px; text-decoration: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 16px; padding-block: 4px calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom, 0px)); }

/* ---------- bottom tabs ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar.has-stats { grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar-h); text-decoration: none; color: var(--ink-3); font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0; min-width: 0; }
.tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding-inline: 2px; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { stroke: var(--ink); }
.tabbar a[aria-current="page"]::after { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); margin-top: 1px; }

/* ---------- floating add button ---------- */
.fab { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 27; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 16px; padding: 12px 18px 12px 15px; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.fab .plus { font-size: 26px; line-height: .8; }

/* ---------- common ---------- */
.btn { border-radius: 10px; padding: 11px 16px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-lg { padding: 15px 18px; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.btn-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-primary:hover { border-color: var(--ink); }
.full { width: 100%; }
.is-busy { opacity: .6; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.hint { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.sub-label { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 6px; }
.back { display: inline-block; margin: 12px 0 0; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 22px 16px; color: var(--ink-2); display: grid; gap: 10px; justify-items: start; margin-top: 12px; }
.empty-state b { color: var(--ink); font-size: 16px; }
.av { width: 28px; height: 28px; border-radius: 8px; background: var(--sunk); color: var(--ink-2); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 13px; flex: none; }
.av-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 20px; }
.tag { font-family: var(--f-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent); padding: 1px 5px; border-radius: 4px; flex: none; }
.pill { font-family: var(--f-display); font-weight: 600; font-size: 13.5px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--tone); border: 1px solid var(--bd); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.st-attente { border-style: dashed; }
.link-danger { background: none; border: 0; color: var(--danger); font-weight: 600; font-size: 14px; padding: 6px 2px; }
.link-danger.armed { background: var(--danger); color: var(--on-danger); border-radius: 8px; padding: 6px 10px; }
.danger-zone { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; justify-items: start; }
.danger-zone small { color: var(--ink-2); }
.banner { background: var(--cb-bg); border: 1px solid var(--cb-bd); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 10px; }
.banner p { margin: 0; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- agenda: day header + week strip ---------- */
.dayhead { display: flex; align-items: flex-end; gap: 10px; padding-block: 14px 12px; }
.dh-text { flex: 1; min-width: 0; }
.dayhead h1, .pap-head h1 { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1; margin: 0; text-wrap: balance; }
.dayhead p, .pap-head p { margin: 5px 0 0; color: var(--ink-2); font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.week { display: grid; grid-template-columns: 30px repeat(7, minmax(0, 1fr)) 30px; gap: 3px; margin-bottom: 12px; }
.wk-nav { border: 0; background: transparent; color: var(--ink-2); font-size: 22px; border-radius: 8px; padding: 0; min-width: 30px; min-height: 36px; }
.wk-nav:hover { background: var(--sunk); }
.wd { border: 0; background: transparent; border-radius: 12px; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink); }
.wd:hover { background: var(--sunk); }
.wd small { font-family: var(--f-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.wd b { font-family: var(--f-display); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; padding: 0 4px; }
.wd.is-today b { box-shadow: inset 0 -3px 0 var(--accent); }
.wd[aria-current="date"] { background: var(--ink); color: var(--surface); }
.wd[aria-current="date"] small { color: var(--surface); opacity: .75; }
.wd .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; margin-top: 2px; }
.wd .dot.none { visibility: hidden; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ---------- agenda: grid ---------- */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.g-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-head, .g-body { display: grid; grid-template-columns: 46px repeat(var(--cols), minmax(var(--colmin), 1fr)); }
.g-head { border-bottom: 1px solid var(--line); }
.g-colhead { padding: 7px 10px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 8px; min-width: 0; }
.ch-text { display: grid; min-width: 0; }
.ch-text .nm { font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.g-corner, .g-times { position: sticky; left: 0; z-index: 4; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.g-body { position: relative; height: var(--h); }
.g-times span { position: absolute; right: 7px; transform: translateY(-50%); font-family: var(--f-display); font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.g-times span.first { transform: translateY(3px); }
.g-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(var(--line-faint) 1px, transparent 1px); background-size: 100% var(--hour), 100% calc(var(--hour) / 2); }
.g-col[data-add] { cursor: cell; }
.now { position: absolute; left: 46px; right: 0; height: 2px; background: var(--now); z-index: 3; pointer-events: none; }
.now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--now); }
.ev { position: absolute; z-index: 2; border-radius: 8px; border: 1px solid var(--bd); background: var(--tint); color: var(--ink); text-align: left; padding: 3px 7px; overflow: hidden; display: flex; flex-direction: column; gap: 0; line-height: 1.15; font-size: 13px; }
.ev.st-attente { border-style: dashed; }
.ev-time { font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--tone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-client { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-ville { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-res { margin-top: auto; font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--tone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.xs .ev-res, .ev.tiny .ev-res { display: none; }
.ev.xs { padding-block: 2px; }
.ev.tiny { flex-direction: row; align-items: center; gap: 6px; padding-block: 2px; }
.ev.tiny .ev-client { flex: 1 1 auto; min-width: 0; }
.ev.tiny .ev-ville { flex: 0 1 auto; min-width: 0; }

/* ---------- daily report ---------- */
.report { margin-top: 26px; display: grid; gap: 12px; }
.rep-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 18px; }
.report .rep-head { margin-top: 0; }
.rep-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.rep-head p { margin: 4px 0 0; color: var(--ink-2); }
.rep-head .btn { margin-left: auto; }
.team { background: var(--bar); color: var(--bar-fg); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 14px 12px; margin-top: 4px; }
.team div { display: grid; gap: 2px; min-width: 0; align-content: end; }
.team span { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--bar-2); }
.team b { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 6.4vw, 26px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team .t-ca { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--bar-line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.team .t-ca > div { display: grid; gap: 2px; }
.team .t-ca b { font-size: 42px; color: var(--accent); }
.team .t-got { text-align: right; }
.team .t-got b { font-size: 26px; color: var(--bar-fg); }
.rep-cards { display: grid; gap: 12px; }
.rep-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; min-width: 0; }
.rep-top { display: flex; align-items: center; gap: 10px; }
.rep-who { min-width: 0; flex: 1; }
.rep-who h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.rep-who p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.rep-ca { text-align: right; display: grid; }
.rep-ca b { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.rep-ca span { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.rep-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.rep-stats div { background: var(--tint); border: 1px solid var(--bd); border-radius: 9px; padding: 6px 8px; min-width: 0; }
.rep-stats div { display: grid; align-content: space-between; }
.rep-stats dt { font-family: var(--f-display); font-weight: 600; font-size: 11.5px; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere; }
.rep-stats dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--tone); font-variant-numeric: tabular-nums; }
.rep-warn { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--cb); }
.rep-sent { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.rep-hint { margin: -6px 0 0; font-size: 13px; color: var(--ink-2); }
.rep-note { margin: 0; font-size: 14px; background: var(--sunk); border-radius: 9px; padding: 8px 10px; }
.rep-sub { margin: 0 0 -6px; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.rep-empty { margin: 0; color: var(--ink-2); font-size: 14px; }
.rep-lines { list-style: none; margin: 0; padding: 0; }
.rep-line { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 10px 0; color: var(--ink); }
.rep-line time { font-family: var(--f-display); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cl { min-width: 0; display: grid; }
.cl b, .cl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl b { font-weight: 600; }
.cl small { font-size: 13px; color: var(--ink-2); }
.nt { grid-column: 2 / -1; color: var(--ink-2); font-size: 13.5px; }
.rep-actions { display: flex; gap: 8px; }
.rep-bottom { margin-top: 4px; }

/* ---------- forms and sheets ---------- */
.backdrop { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0 auto; max-width: 560px; max-height: 92%; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow); animation: rise .22s ease-out; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100% - 32px)); translate: -50% -50%; border-bottom: 1px solid var(--line); border-radius: 18px; max-height: 90%; }
}
@keyframes rise { from { transform: translateY(22px); opacity: 0; } }
.sheet-top { display: flex; align-items: center; gap: 10px; padding: 10px 0 14px; position: sticky; top: -8px; background: var(--surface); z-index: 2; }
.sheet-top h3 { font-family: var(--f-display); font-weight: 700; font-size: 25px; line-height: 1.05; margin: 0; flex: 1; }
.sheet-top h3:focus { outline: none; }
.x { background: var(--sunk); border: 0; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sheet-note { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }
.field { display: grid; gap: 5px; margin: 0 0 13px; border: 0; padding: 0; min-width: 0; position: relative; }
.field label, .field legend { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 6px; }
.field input, .field select, .field textarea, .copy-text { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--ink); min-width: 0; }
.field textarea, .copy-text { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-3); outline: none; box-shadow: 0 0 0 3px var(--line-soft); }
.field-help { color: var(--ink-2); font-size: 13px; }
.field-link { font-size: 14px; font-weight: 600; color: var(--r2); text-decoration: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; }
.inline .btn { flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); background: var(--surface); cursor: pointer; }
.seg input:checked + label { background: var(--tint, var(--sunk)); border-color: var(--tone, var(--ink)); color: var(--tone, var(--ink)); font-weight: 600; }
.seg input:checked + label.st-attente { background: var(--sunk); color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.montant input { font-family: var(--f-display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.form-err { margin: 0 0 12px; color: var(--danger); font-weight: 600; font-size: 14px; }
.sheet-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.sheet-foot .btn-primary { margin-left: auto; min-width: 140px; }
.btn-danger { background: transparent; border: 1px solid transparent; color: var(--danger); font-weight: 600; border-radius: 10px; padding: 11px 8px; }
.btn-danger.armed { background: var(--danger); color: var(--on-danger); padding-inline: 14px; }
.go { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; flex-wrap: wrap; }
.go-lbl { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-right: 2px; }
.go-btn { padding: 8px 14px; font-size: 14.5px; }
.dup { background: var(--cb-bg); border: 1px solid var(--cb-bd); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.dup p { margin: 0 0 10px; }
.dup-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* autocomplete */
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; max-height: 280px; overflow-y: auto; }
.ac-title { margin: 0; padding: 8px 12px 4px; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.ac-item { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 11px 12px; color: var(--ink); }
.ac-item:first-child, .ac-title + .ac-item { border-top: 0; }
.ac-item:hover, .ac-item:focus-visible { background: var(--sunk); }
.ac-item span { color: var(--ink-2); font-size: 13px; white-space: nowrap; }

/* report counters */
.counters { display: grid; gap: 8px; margin-bottom: 14px; }
.ctr { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 7px 7px 14px; background: var(--surface); }
.ctr.ctr-total { --tone: var(--ink); --tint: var(--sunk); --bd: var(--ink-3); }
.ctr.on { background: var(--tint); border-color: var(--bd); }
.ctr-lbl { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; line-height: 1.2; }
.ctr.on .ctr-lbl { color: var(--tone); }
.ctr-lbl small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.ctr-btn { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font-size: 24px; line-height: 1; display: grid; place-items: center; padding: 0; }
.ctr-btn:active { transform: scale(.94); }
.ctr input { flex: none; width: 48px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 26px; border: 0; background: transparent; color: var(--ink); padding: 0; font-variant-numeric: tabular-nums; }
.ctr input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ctr.on input { color: var(--tone); }
.r-ca { margin: 0 0 4px 14px; }

/* date picker */
.cal { display: grid; gap: 10px; }
.cal-head { display: grid; grid-template-columns: 40px 1fr 96px 40px; gap: 6px; align-items: center; }
.cal-head select { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 16px; font-weight: 600; min-width: 0; }
.cal-nav { height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 22px; color: var(--ink); padding: 0; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }
.cal-day { aspect-ratio: 1; max-width: 100%; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; padding: 0; }
.cal-day:hover { background: var(--sunk); }
.cal-day.out { color: var(--ink-3); opacity: .55; }
.cal-day.is-today { box-shadow: inset 0 -3px 0 var(--accent); }
.cal-day.is-sel { background: var(--ink); color: var(--surface); opacity: 1; }
.cal-today { justify-self: center; }

/* ---------- door to door ---------- */
.pap-head { padding-block: 14px 12px; }
.search { position: relative; margin-bottom: 14px; }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; font-size: 17px; padding: 13px 14px 13px 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--line-soft); }
.pap-results { display: grid; gap: 10px; }
.city { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.city summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px; }
.city summary::-webkit-details-marker { display: none; }
.city summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); rotate: 45deg; margin: 0 4px 4px; }
.city[open] summary::after { rotate: -135deg; margin: 4px 4px 0; }
.c-text { flex: 1; min-width: 0; }
.c-text h2, .notyet h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 25px; line-height: 1.05; }
.c-text h2 small, .notyet h2 small { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: .03em; }
.c-text p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.streets { list-style: none; margin: 0; padding: 0 14px; }
.street { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; align-items: center; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 10px 0; color: var(--ink); }
.s-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-meta { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.s-count { grid-row: 1 / span 2; grid-column: 2; font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-bd); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.city-foot { padding: 6px 14px 14px; }
.notyet { border: 1.5px dashed var(--cb-bd); background: var(--cb-bg); border-radius: 14px; padding: 18px 16px; display: grid; gap: 8px; justify-items: start; }
.notyet .lbl { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cb); }
.notyet h2 { font-size: 30px; line-height: 1; }
.notyet p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.notyet .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.commune-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px dashed var(--cb-bd); border-radius: 14px; padding: 12px 14px; }
.commune-row div { flex: 1; min-width: 0; display: grid; }
.commune-row b { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.1; }
.commune-row span { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--cb); }
.passages { list-style: none; margin: 0 0 16px; padding: 0; }
.psg { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.psg div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.psg span { font-size: 13.5px; color: var(--ink-2); }
.psg p { margin: 3px 0 0; font-size: 14px; }

/* ---------- clients ---------- */
.cl-list { display: grid; gap: 8px; }
.cl-row, .member { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); text-align: left; width: 100%; }
.cl-main { flex: 1; min-width: 0; display: grid; }
.cl-main b, .cl-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-main b small { font-weight: 400; color: var(--ink-2); }
.cl-main span { font-size: 13.5px; color: var(--ink-2); }
.cl-last { display: grid; justify-items: end; gap: 3px; flex: none; }
.cl-row { align-items: flex-start; }
.cl-row .av { margin-top: 2px; }
.cl-main .cl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; font-size: 15px; color: var(--ink); overflow: visible; }
.cl-main .cl-top .pill { color: var(--tone); font-size: 13.5px; }
.cl-main .cl-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-main .cl-top .pill { flex: none; }
.cl-main .cl-addr { font-size: 13.5px; color: var(--ink-2); }
.cl-main .cl-who, .cl-main .cl-next { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cl-main .cl-who b, .cl-main .cl-next b { color: var(--ink); font-weight: 600; }
.cl-main .cl-who { margin-top: 6px; background: var(--sunk); border-radius: 8px; padding: 4px 9px; justify-self: start; }
.cl-main .cl-who.is-none { background: transparent; padding: 0; }
.cl-main .cl-next { margin-top: 4px; padding-left: 9px; }
.who-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.who-card div { background: var(--surface); padding: 12px 14px; display: grid; gap: 1px; min-width: 0; }
.who-card span { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.who-card b { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-card small { color: var(--ink-2); font-size: 13.5px; }
.av-xs { width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; display: inline-grid; margin-right: 6px; vertical-align: -5px; }
.tl-who b { color: var(--ink); font-weight: 600; }
.tl-item.is-locked { cursor: default; }
.cl-last small { font-size: 12px; color: var(--ink-2); }
.file-head { display: flex; align-items: center; gap: 14px; padding-block: 12px 14px; }
.file-head h1 { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.05; margin: 0; }
.file-head p { margin: 3px 0 0; color: var(--ink-2); }
.file-card, .set-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; margin-bottom: 12px; }
.file-line { margin: 0; display: grid; gap: 1px; }
.file-line span { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.file-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.file-stats span { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.file-stats b { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.file-stats b.small { font-size: 15px; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.tl-item { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 12px 0; color: var(--ink); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); margin-top: 4px; border: 2px solid var(--tint); }
.st-attente.tl-dot { background: var(--surface); border: 2px dashed var(--wait-bd); }
.tl-main { display: grid; gap: 1px; min-width: 0; }
.tl-main span { font-size: 13.5px; color: var(--ink-2); }
.tl-note { color: var(--ink) !important; }

/* ---------- results (admin) ---------- */
.seg-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--sunk); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 10px; }
.seg-switch button { border: 0; background: transparent; border-radius: 9px; padding: 9px 10px; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.seg-switch button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.period { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.period b { flex: 1; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 14px; margin-top: 12px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 170px; align-items: end; }
.bars-month { gap: 2px; }
.dbar { height: 100%; display: grid; grid-template-rows: 18px 1fr 18px; justify-items: center; min-width: 0; }
.dbar i { align-self: end; width: 100%; max-width: 34px; background: var(--ok); border-radius: 4px 4px 0 0; min-height: 0; }
.dbar.is-today i { background: var(--accent); }
.dbar-v { font-family: var(--f-display); font-weight: 600; font-size: 11px; color: var(--ink-2); white-space: nowrap; align-self: end; }
.dbar small { font-family: var(--f-display); font-weight: 600; font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; }
.bars-month .dbar small { font-size: 9.5px; }
.rank { display: grid; gap: 8px; }
.rank-row { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.rank-n { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--ink-3); width: 20px; flex: none; line-height: 1.2; }
.rank-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; }
.rank-ca { font-family: var(--f-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.rank-bar { height: 8px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.rank-main p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.rank-rep.warn { color: var(--cb); font-weight: 600; }

/* ---------- team & settings ---------- */
.members { display: grid; gap: 8px; margin-bottom: 14px; }
.members.is-off .member { opacity: .6; }
.role-tag { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); flex: none; }
.role-tag.is-admin { background: var(--accent); color: var(--accent-ink); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; text-align: left; color: var(--ink); text-decoration: none; font-size: 20px; }
.set-row span:first-child, .switch-row span { display: grid; gap: 2px; font-size: 15px; }
.set-row small, .switch-row small { color: var(--ink-2); font-size: 13px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(20px); }
.device { border-top: 1px solid var(--line-soft); padding-top: 10px; display: grid; gap: 8px; }
.device p { margin: 0; font-size: 14px; color: var(--ink-2); }
.device.ok p { color: var(--ok); font-weight: 600; }
.device-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.device-actions:empty { display: none; }
.steps h4 { margin: 4px 0 6px; font-size: 15px; }
.steps ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.app-version { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 18px; }
#sign-out { margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 82px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 60; background: var(--ink); color: var(--surface); padding: 10px 15px; border-radius: 10px; font-size: 14px; font-weight: 500; width: max-content; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

@media (min-width: 720px) {
  .dayhead h1 { font-size: 38px; }
  .rep-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .switch, .switch::after { transition: none; } }

/* ---------- door-to-door rule per town ---------- */
.c-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.rule { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px 4px 9px; font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .03em; border: 1px solid var(--bd); background: var(--tint); color: var(--tone); cursor: pointer; }
.rule i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: none; }
.rule em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--cb); background: var(--surface); border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.rule-libre { --tone: var(--ok); --tint: var(--ok-bg); --bd: var(--ok-bd); }
.rule-limite { --tone: var(--cb); --tint: var(--cb-bg); --bd: var(--cb-bd); }
.rule-interdit { --tone: var(--stop); --tint: var(--stop-bg); --bd: var(--stop-bd); }
.rule-none { --tone: var(--ink); --tint: var(--sunk); --bd: var(--line); font-weight: 700; }
.rule-none svg { width: 14px; height: 14px; flex: none; }
.rule-none:hover { --bd: var(--ink-3); }
.rule-busy { --tone: var(--ink-2); --tint: var(--sunk); --bd: var(--line); cursor: progress; }
.rule .spin { width: 12px; height: 12px; border-radius: 50%; background: none; border: 2px solid var(--ink-3); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rule .spin { animation-duration: 2s; } }
.verify-all { margin: 0 0 4px; gap: 8px; }
.verify-all svg { width: 15px; height: 15px; }
.rule-card { display: grid; gap: 8px; justify-items: start; background: var(--tint); border: 1px solid var(--bd); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.rule-card p { margin: 0; color: var(--ink); font-size: 14.5px; }
.rule-card small { color: var(--ink-2); font-size: 13px; }
.rule-card small.is-stale { color: var(--cb); font-weight: 600; }
.rule-card .rule { cursor: default; }
#r-recheck { margin-bottom: 4px; }
.rule-note a { color: inherit; font-weight: 600; }

/* ---------- team code & sign-up ---------- */
.code-card { background: var(--bar); color: var(--bar-fg); border-radius: 16px; padding: 16px; display: grid; gap: 10px; margin: 4px 0 6px; }
.code-card .code-lbl { font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bar-2); }
.code-card .code-val { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 10vw, 44px); letter-spacing: .06em; line-height: 1; color: var(--accent); user-select: all; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.code-card .code-off { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.code-card p { margin: 0; font-size: 14px; color: var(--bar-fg); opacity: .85; }
.code-card small { font-size: 12.5px; color: var(--bar-2); }
.code-card .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.code-card .btn-sm { background: transparent; color: var(--bar-fg); border-color: var(--bar-line); }
.code-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.code-card .link-danger { color: #FF9C93; }
.code-card .link-danger.armed { color: var(--on-danger); }
#add-member { margin-top: 4px; }
.auth-switch { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: 14px; }
.auth-back { margin-top: 8px; }
.c-done { font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.rule-note { margin: 0 14px 4px; padding: 8px 10px; border-radius: 9px; background: var(--tint); color: var(--ink); font-size: 13.5px; border-left: 3px solid var(--tone); }
.rule-meta { margin: -6px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.rule-meta.is-stale { color: var(--cb); font-weight: 600; }
.rule-help { margin: -6px 0 12px; }
.rule-warn { margin: -4px 0 12px; padding: 9px 11px; border-radius: 10px; background: var(--tint); color: var(--tone); border: 1px solid var(--bd); font-weight: 600; font-size: 14px; }
.notyet .c-rule { margin-top: 0; }
.commune-row .c-rule { margin-top: 6px; }
.sheet .full + .field-help { margin: 6px 0 12px; }
