:root {
  --blue: #164E7A; --blue-2: #1F6AA5; --blue-soft: #E6EFF7;
  --coral: #E2603F; --coral-soft: #FDECE6;
  --sun: #FFC93C; --sun-soft: #FFF5D6;
  --teal: #2A9D8F; --teal-soft: #E1F3F0;
  --purple: #8E5BB5;
  --bg: #FFF8EF; --surface: #FFFFFF; --surface-2: #F7F2EA; --line: #ECE3D6;
  --text: #1E2A36; --muted: #66727F; --danger: #C8372D;
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(30,42,54,.06), 0 4px 16px rgba(30,42,54,.06);
  --shadow-l: 0 10px 40px rgba(30,42,54,.18);
  --nav-h: 64px; --top-h: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #6FA8DC; --blue-2: #8BBCE6; --blue-soft: #1B2B3B;
    --coral: #F08465; --coral-soft: #3A231D; --sun: #FFD460; --sun-soft: #3A3420; --teal: #4CC2B2; --teal-soft: #17322F;
    --bg: #11171D; --surface: #1A2129; --surface-2: #222B35; --line: #2C3642; --text: #E8EDF2; --muted: #9AA7B4; --danger: #FF7468;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-l: 0 10px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #6FA8DC; --blue-2: #8BBCE6; --blue-soft: #1B2B3B;
  --coral: #F08465; --coral-soft: #3A231D; --sun: #FFD460; --sun-soft: #3A3420; --teal: #4CC2B2; --teal-soft: #17322F;
  --bg: #11171D; --surface: #1A2129; --surface-2: #222B35; --line: #2C3642; --text: #E8EDF2; --muted: #9AA7B4; --danger: #FF7468;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-l: 0 10px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons & champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer;
  background: var(--blue); color: #fff; transition: transform .08s, filter .15s, background .15s; white-space: nowrap;
  min-height: 42px; text-decoration: none !important;
}
:root[data-theme="dark"] .btn, .btn { }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.coral { background: var(--coral); }
.btn.teal { background: var(--teal); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.soft { background: var(--blue-soft); color: var(--blue); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: .88rem; }
.btn.block { width: 100%; }
.icon-btn {
  border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--muted); position: relative; flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
svg.ic { width: 20px; height: 20px; flex: none; }
.icon-btn svg, .btn svg, .nav-item svg { width: 22px; height: 22px; }
.btn svg { width: 18px; height: 18px; }
.badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.coral { background: var(--coral-soft); color: var(--coral); }
.pill.sun { background: var(--sun-soft); color: #8A6200; }
:root[data-theme="dark"] .pill.sun { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.sun { color: var(--sun); } }
.pill.teal { background: var(--teal-soft); color: var(--teal); }
label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s; min-height: 44px; min-width: 0; max-width: 100%; color: inherit; font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-2) 18%, transparent); }
textarea { resize: vertical; min-height: 90px; }
.check { display: block; position: relative; padding-left: 32px; min-height: 22px; font-weight: 400; cursor: pointer; line-height: 1.4; }
.check input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.seg { display: flex; background: var(--surface-2); border-radius: 24px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; white-space: nowrap; border: 0; background: transparent; padding: 9px 12px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Mise en page ---------- */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 18px 14px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; background: var(--bg); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--text) !important; text-decoration: none !important; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand b { display: block; font-size: 1.02rem; line-height: 1.1; }
.brand span { font-size: .75rem; color: var(--muted); }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text) !important;
  font-weight: 650; text-decoration: none !important; position: relative;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.on { background: var(--blue-soft); color: var(--blue) !important; }
.nav-item .badge { position: static; margin-left: auto; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 1.15rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .brand-m { display: none; }
.content { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
.content.wide { max-width: 1100px; }
.bottomnav { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar .brand-m { display: block; width: 34px; height: 34px; border-radius: 10px; }
  .content { padding: 14px 12px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottomnav a, .bottomnav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .7rem; font-weight: 700;
    color: var(--muted); text-decoration: none !important; border: 0; background: none; position: relative; cursor: pointer;
  }
  .bottomnav svg { width: 24px; height: 24px; }
  .bottomnav .on { color: var(--blue); }
  .bottomnav .badge { top: 6px; right: calc(50% - 22px); }
}

/* ---------- Cartes ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card + .card { margin-top: 14px; }
.card.flat { box-shadow: none; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.hero {
  border-radius: var(--radius); padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #164E7A 0%, #1F6AA5 55%, #2A9D8F 100%); margin-bottom: 16px;
}
.hero::after { content: ""; position: absolute; right: -50px; top: -60px; width: 130px; height: 130px; border-radius: 50%; background: #FFC93C; opacity: .55; }
.hero > * { position: relative; z-index: 1; }
.hero h2 { font-size: 1.3rem; max-width: 78%; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.hero p { opacity: .92; max-width: 560px; }
.hero .btn { background: #fff; color: #164E7A; }
.hero .btn.coral { background: var(--coral); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 0; }
.stat { background: rgba(255,255,255,.15); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { font-size: .78rem; opacity: .9; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grid2 > .card + .card { margin-top: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { flex: none; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: none !important; font-size: .9rem; }
.tabs .on { background: var(--text); color: var(--bg); box-shadow: none; }
/* Sur ordinateur (souris), la barre défilante cachée n'est pas atteignable : les onglets passent à la ligne. */
@media (min-width: 700px) and (hover: hover) and (pointer: fine) { .tabs { flex-wrap: wrap; overflow-x: visible; } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.empty p { margin: 22px 0 0; }

/* ---------- Avatar ---------- */
.av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; font-size: .95rem;
  position: relative; text-decoration: none !important; letter-spacing: .02em;
}
.av.s { width: 32px; height: 32px; font-size: .75rem; }
.av.l { width: 84px; height: 84px; font-size: 1.8rem; }
.av .dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #2DBE60; border: 2px solid var(--surface); }
.who b { font-weight: 750; }
.who .sub { font-size: .8rem; color: var(--muted); }

/* ---------- Fil ---------- */
.composer textarea { border: 0; padding: 4px 0; min-height: 60px; box-shadow: none !important; background: transparent; }
.composer .tools { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; flex-wrap: wrap; }
.composer .kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.kind-chip { border: 0; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.kind-chip.on { background: var(--blue-soft); color: var(--blue); }
.kind-chip.on.idea { background: var(--sun-soft); color: #8A6200; }
.kind-chip.on.announcement { background: var(--coral-soft); color: var(--coral); }
.files-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.files-preview .chip { background: var(--surface-2); border-radius: 10px; padding: 4px 10px; font-size: .82rem; display: flex; gap: 6px; align-items: center; }
.post { position: relative; }
.post.pinned { box-shadow: inset 0 0 0 2px var(--sun), var(--shadow); }
.post.k-announcement { box-shadow: inset 4px 0 0 var(--coral), var(--shadow); }
.post.k-idea { box-shadow: inset 4px 0 0 var(--sun), var(--shadow); }
.post-head { display: flex; gap: 10px; align-items: flex-start; }
.post-body { margin: 10px 0 4px; word-wrap: break-word; overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 0; }
.post-actions { display: flex; gap: 4px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.post-actions button { flex: 1; white-space: nowrap; min-width: 0; border: 0; background: transparent; border-radius: 10px; padding: 8px; font-weight: 700; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .9rem; }
.post-actions button:hover { background: var(--surface-2); }
.post-actions button.on { color: var(--coral); }
.post-actions svg { width: 20px; height: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-top: 10px; }
.gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: var(--surface-2); }
.gallery.one { grid-template-columns: 1fr; }
.gallery.one img { height: auto; max-height: 460px; object-fit: contain; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-top: 8px; color: var(--text) !important; text-decoration: none !important; }
.file-chip .ext { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: .66rem; font-weight: 900; color: #fff; background: var(--blue); flex: none; text-transform: uppercase; }
.comments { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.comment { display: flex; gap: 8px; margin-bottom: 10px; }
.comment .bubble { background: var(--surface-2); border-radius: 14px; padding: 8px 12px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { min-height: 44px; height: 44px; border-radius: 22px; padding: 10px 16px; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: 100%; z-index: 40; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-l);
  min-width: 200px; padding: 6px; border: 1px solid var(--line);
}
.menu button, .menu a { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text); font-weight: 600; text-decoration: none !important; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu .danger { color: var(--danger); }

/* ---------- Sondages ---------- */
.poll-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-top: 8px; cursor: pointer; overflow: hidden; border: 1.5px solid transparent; }
.poll-opt .bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--blue-2) 18%, transparent); border-radius: 12px; transition: width .4s; }
.poll-opt.mine { border-color: var(--blue-2); }
.poll-opt.mine .bar { background: color-mix(in srgb, var(--blue-2) 30%, transparent); }
.poll-opt > *:not(.bar) { position: relative; }
.poll-opt .pct { margin-left: auto; font-weight: 800; }
.poll-opt input { accent-color: var(--blue); width: 18px; height: 18px; }
.poll-voters { font-size: .76rem; color: var(--muted); margin: 2px 4px 0; }

/* ---------- Agenda ---------- */
.event { display: flex; gap: 14px; }
.datebox { width: 62px; flex: none; text-align: center; border-radius: 14px; background: var(--coral-soft); color: var(--coral); padding: 8px 0; height: fit-content; }
.datebox b { display: block; font-size: 1.5rem; line-height: 1; }
.datebox span { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.rsvp { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rsvp button { border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: .85rem; }
.rsvp button.on.yes { background: var(--teal); color: #fff; }
.rsvp button.on.maybe { background: var(--sun); color: #4A3500; }
.rsvp button.on.no { background: var(--line); color: var(--text); }

/* ---------- Messagerie ---------- */
.chat-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - var(--top-h)); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg); }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; align-items: center; color: var(--text) !important; text-decoration: none !important; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.chat-item:hover { background: var(--surface-2); }
.chat-item.on { background: var(--blue-soft); }
.chat-item .unread { background: var(--coral); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 1px 7px; }
.emoji-av { width: 42px; height: 42px; border-radius: 14px; background: var(--sun-soft); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 8px; max-width: 80%; align-items: flex-end; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bub { background: var(--surface); border-radius: 18px 18px 18px 6px; padding: 8px 12px; box-shadow: var(--shadow); overflow-wrap: anywhere; min-width: 0; }
.msg.me .bub { background: var(--blue); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg.me .bub a { color: #fff; text-decoration: underline; }
.msg .meta { font-size: .7rem; color: var(--muted); margin: 0 4px; white-space: nowrap; }
.msg.me .meta { text-align: right; }
.msg .name { font-size: .74rem; font-weight: 800; margin-bottom: 2px; }
.msg.deleted .bub { font-style: italic; opacity: .6; }
.msg + .msg.cont { margin-top: -0px; }
.msg-gap { height: 10px; }
.day-sep { align-self: center; font-size: .74rem; font-weight: 800; color: var(--muted); background: var(--surface-2); padding: 3px 12px; border-radius: 999px; margin: 10px 0; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); align-items: flex-end; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.chat-input textarea { min-height: 44px; max-height: 160px; height: 44px; border-radius: 22px; padding: 10px 16px; }
.msg .del { opacity: 0; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px; }
.msg:hover .del { opacity: 1; }
@media (max-width: 900px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--top-h) - var(--nav-h) - env(safe-area-inset-bottom)); }
  .chat-layout.has-conv .chat-list { display: none; }
  .chat-layout:not(.has-conv) .chat { display: none; }
  .chat-layout.has-conv { height: 100vh; height: 100dvh; }
  body.in-chat .bottomnav { display: none; }
  .msg { max-width: 88%; }
  .msg .del { opacity: .6; }
}

/* ---------- Documents ---------- */
.crumbs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-weight: 700; margin-bottom: 12px; }
.crumbs a { padding: 4px 8px; border-radius: 8px; }
.crumbs a:hover { background: var(--surface-2); text-decoration: none; }
.flist { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fitem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text) !important; text-decoration: none !important; }
.fitem:last-child { border-bottom: 0; }
.fitem:hover { background: var(--surface-2); }
.ficon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.ficon.folder { background: var(--sun-soft); }
.ficon.file { background: var(--blue-soft); color: var(--blue); font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--muted); margin-top: 14px; transition: .15s; }
.dropzone.over { border-color: var(--blue-2); background: var(--blue-soft); color: var(--blue); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-2); border: 2px solid var(--surface); }
.timeline li:last-child { border-left-color: transparent; }
.progress { height: 14px; background: rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress > div { height: 100%; background: var(--sun); border-radius: 999px; transition: width .6s; }
.card .progress { background: var(--surface-2); }

/* ---------- Auth & pages publiques ---------- */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: linear-gradient(160deg, #164E7A 0%, #1F6AA5 50%, #2A9D8F 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: #FFC93C; right: -80px; top: -80px; }
.auth-art::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 180px; background: #FFF8EF; opacity: .12; border-radius: 50% 50% 0 0; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h1 { font-size: 2.4rem; max-width: 480px; }
.auth-art .big { font-size: 1.1rem; opacity: .92; max-width: 460px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box .logo { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 10px; }
.counter { display: flex; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.counter div { background: rgba(255,255,255,.14); border-radius: 16px; padding: 12px 16px; }
.counter b { font-size: 1.6rem; display: block; }
.alert { padding: 10px 14px; border-radius: 12px; background: var(--coral-soft); color: var(--danger); font-weight: 600; margin-bottom: 12px; font-size: .92rem; }
.alert.ok { background: var(--teal-soft); color: var(--teal); }
.alert.info { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 20px 36px; }
  .auth-art h1 { font-size: 1.7rem; }
  .auth-art .hide-m { display: none; }
}
.public-page { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.sig-list { list-style: none; padding: 0; margin: 0; }
.sig-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Dialogues, toasts, bannières ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 22, 30, .5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.dialog { background: var(--surface); border-radius: 22px; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; padding: 20px; box-shadow: var(--shadow-l); animation: pop .18s; }
.dialog .dhead { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dialog .dhead h2 { flex: 1; margin: 0; }
.dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .overlay { align-items: flex-end; padding: 0; }
  .dialog { border-radius: 22px 22px 0 0; max-height: 94dvh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: up .2s; }
}
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
@media (min-width: 901px) { #toasts { bottom: 24px; } }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-l); animation: up .2s; pointer-events: auto; cursor: pointer; width: 100%; }
.toast.err { background: var(--danger); color: #fff; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--sun-soft); margin-bottom: 14px; }
.banner .grow { font-size: .92rem; }
.fab { position: fixed; right: 18px; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); z-index: 25; width: 58px; height: 58px; border-radius: 20px; border: 0; background: var(--coral); color: #fff; box-shadow: var(--shadow-l); display: none; place-items: center; cursor: pointer; }
.fab svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .fab { display: grid; } }
.notif { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text) !important; text-decoration: none !important; }
.notif.unread { background: var(--blue-soft); }
.notif-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.notif-row.unread { background: var(--blue-soft); }
.notif-row .notif { flex: 1; min-width: 0; border-bottom: 0; background: none; }
.notif-row .icon-btn { flex: none; margin-right: 6px; }
.notif-clear { text-align: center; margin-top: 16px; }
.notif .ico { font-size: 1.3rem; width: 32px; text-align: center; flex: none; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-grid a, .more-grid button { border: 0; font-family: inherit; cursor: pointer; background: var(--surface); border-radius: 18px; padding: 16px 8px; text-align: center; box-shadow: var(--shadow); color: var(--text) !important; text-decoration: none !important; font-weight: 700; font-size: .86rem; position: relative; }
.more-grid a .e, .more-grid button .e { font-size: 1.7rem; display: block; margin-bottom: 4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .tbl { min-width: 560px; }
.tbl .who { min-width: 130px; }
.md h2 { font-size: 1.2rem; margin-top: 1em; } .md h3 { margin-top: 1em; }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 .8em; }
.md li { margin-bottom: 4px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue-2); animation: spin .8s linear infinite; margin: 30px auto; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; height: 120px; margin-bottom: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

#c-send { margin-left: auto; }
@media (max-width: 420px) { .post-actions button { font-size: .82rem; gap: 4px; padding: 8px 4px; } }

/* ---------- Qui fait quoi ---------- */
.task-title { font-size: 1rem; line-height: 1.3; padding-top: 3px; }
.task .pill { flex: none; margin-top: 2px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); }
.task-meta .late { color: var(--coral); font-weight: 700; }
.task-desc { margin-top: 8px; }
.task-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.task-vols { display: flex; align-items: center; gap: 4px; flex: 1 1 160px; min-width: 0; }
.task-vols .av { margin-right: -10px; border: 2px solid var(--surface); }
.task-vols .av + span, .task-vols .av:last-of-type + span { margin-left: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.is-done { opacity: .75; }
.task.is-done .task-title { text-decoration: line-through; }

/* ---------- Partage ---------- */
.share-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.share-bar .sh { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 12px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; color: #fff; white-space: nowrap; }
.share-bar .sh svg.ic { width: 20px; height: 20px; }
.share-bar .wa { background: #128C4A; }
.share-bar .fb { background: #1668D6; }
.share-bar .sms { background: #2A7F75; }
.share-bar .cp, .share-bar .more { background: var(--surface-2); color: var(--text); }
.share-bar .sh:active { transform: scale(.97); }
@media (min-width: 620px) { .share-bar { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.break { overflow-wrap: anywhere; }
/* ---------- Page publique ---------- */
.pub-hero h1 { font-size: 1.7rem; line-height: 1.15; margin: 10px 0 4px; max-width: 85%; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.pub-hero .pub-sub { margin: 0 0 14px; }
.pub-hero .btn.block { font-size: 1.05rem; min-height: 50px; display: flex; align-items: center; justify-content: center; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.figures div { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.figures b { display: block; font-size: 1.5rem; color: var(--blue); overflow-wrap: anywhere; }
.figures span { font-size: .88rem; color: var(--muted); }
.press-list { list-style: none; padding: 0; margin: 0; }
.press-list li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.press-list li:first-child { border-top: 0; padding-top: 0; }
.press-list a { font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 620px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pub-hero h1 { font-size: 2.1rem; } }

/* ---------- Veille juridique ---------- */
.section-h { font-size: 1rem; margin: 6px 0 10px; }
.legal-e { font-size: 1.4rem; line-height: 1.2; flex: none; }
.legal-title { overflow-wrap: anywhere; }
.legal-item.is-done { opacity: .7; }
.legal-notes { margin-top: 6px; overflow-wrap: anywhere; }
.legal-item .soon { color: var(--coral); font-weight: 700; }
.legal-item .late { color: var(--danger); font-weight: 700; }
.legal-md a { overflow-wrap: anywhere; }

/* Revue de presse : veille automatique */
.press-watch { border: 1px dashed var(--line); }
.press-watch .sug { padding: 10px 0; border-top: 1px solid var(--line); }
.press-watch .sug-title { font-weight: 700; display: block; margin-top: 2px; overflow-wrap: anywhere; }
/* Galerie photo */
.pending-card { color: inherit !important; text-decoration: none !important; gap: 10px; margin-bottom: 14px; }
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
.album { display: flex; flex-direction: column; gap: 2px; color: var(--text) !important; text-decoration: none !important; min-width: 0; }
.album b { overflow-wrap: anywhere; line-height: 1.25; margin-top: 6px; }
.album-cover { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 2rem; box-shadow: var(--shadow); }
.album-cover img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
.photo-grid .ph { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.ph-wait { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 99px; }
.pviewer { position: fixed; inset: 0; z-index: 120; background: #000; color: #fff; display: flex; flex-direction: column; }
.pviewer .icon-btn { color: #fff; }
.pv-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
.pv-img { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.pv-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; } .pv-nav.next .ic { transform: scaleX(-1); }
.pv-info { padding: 10px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); display: grid; gap: 4px; }
.pv-info .tiny { color: rgba(255,255,255,.7); }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pv-actions .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.card.pend img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; background: var(--surface-2); }
.press-watch .pw-h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.press-watch .pw-h .pill { white-space: nowrap; }
.press-watch .pw-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Modèles de courriers */
.letter-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.letter-head .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.letter-head .ic { transform: rotate(-90deg); transition: transform .15s; flex: none; }
.letter.open .letter-head .ic { transform: rotate(90deg); }
.letter-body { width: 100%; box-sizing: border-box; font: inherit; font-size: .9rem; line-height: 1.5; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); resize: vertical; }
.letter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.letter-actions .icon-btn { margin-left: auto; }
/* Élus */
.elu-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.elu-count { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.elu-count b { font-size: 1.3rem; }
.elu-count .pill { font-size: .68rem; white-space: normal; text-align: center; line-height: 1.2; }
.elu-count.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.elu-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Témoignages */
.testi { margin: 0; padding: 4px 0 4px 14px; border-left: 4px solid var(--coral, #E2603F); }
.testi p { margin: 0 0 6px; white-space: pre-line; font-style: italic; line-height: 1.5; overflow-wrap: anywhere; }
.testi cite { font-style: normal; font-weight: 700; font-size: .88rem; }
.testi cite::before { content: '— '; }
.testi-list { display: grid; gap: 16px; }

/* Journal des contacts élus */
.elu-foot { gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.elu-log { padding: 10px 0; border-top: 1px solid var(--line); }
.elu-log:first-child { border-top: 0; }

/* Dossier pour la mairie (/dossier) : toujours en clair, pensé pour l'impression A4 */
.dossier { background: #e9eef3; min-height: 100vh; padding: 12px 12px 40px; color: #0f2a44; }
.dossier-bar { max-width: 210mm; margin: 0 auto 8px; display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.dossier-bar .btn.ghost { background: #fff; color: #0f2a44; border-color: #c9d5e1; }
.dossier-hint { max-width: 210mm; margin: 0 auto 10px; font-size: .8rem; color: #4a6076; }
.dossier-sheet { max-width: 210mm; margin: 0 auto; background: #fff; color: #0f2a44; padding: 28px 22px; border-radius: 6px; box-shadow: 0 4px 24px rgba(0,0,0,.12); font-size: 15px; line-height: 1.5; }
.dossier-head { display: flex; gap: 14px; align-items: center; border-bottom: 4px solid #FFC93C; padding-bottom: 14px; margin-bottom: 6px; }
.dossier-head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.dossier-kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #E2603F; font-size: .75rem; }
.dossier-head h1 { margin: 2px 0; font-size: 1.5rem; line-height: 1.15; color: #0f2a44; }
.dossier-date { font-size: .85rem; color: #4a6076; }
.dossier section { margin-top: 18px; break-inside: avoid-page; }
.dossier h2 { font-size: 1.05rem; color: #164E7A; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid #dfe6ee; }
.dossier-ask { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.dossier-md h1, .dossier-md h2, .dossier-md h3 { font-size: 1.05rem; color: #164E7A; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #dfe6ee; }
.dossier-md > :first-child { margin-top: 0; }
.dossier-md p { margin: 0 0 .6em; } .dossier-md a { color: #164E7A; }
.dossier-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.dossier-figs div { border: 1px solid #dfe6ee; border-radius: 10px; padding: 10px; text-align: center; }
.dossier-figs b { display: block; font-size: 1.5rem; color: #E2603F; }
.dossier-figs span { font-size: .8rem; }
.dossier-small { font-size: .8rem; color: #4a6076; margin: 8px 0 0; }
.dossier blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid #2A9D8F; background: #f4f8f7; break-inside: avoid; }
.dossier blockquote p { margin: 0 0 4px; white-space: pre-line; }
.dossier blockquote cite { font-size: .85rem; color: #4a6076; font-style: normal; font-weight: 600; }
.dossier-press { margin: 0; padding-left: 18px; } .dossier-press li { margin-bottom: 8px; font-size: .9rem; break-inside: avoid; }
.dossier-press span { color: #4a6076; font-size: .8rem; }
.dossier-url { word-break: break-all; }
.dossier-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dossier-foot p { margin: 0 0 4px; font-size: .9rem; word-break: break-word; }
.dossier-qr { display: flex; gap: 10px; align-items: center; font-size: .8rem; font-weight: 700; }
.dossier-qr img { width: 96px; height: 96px; }
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; }
  .dossier { background: #fff; padding: 0; min-height: 0; }
  .dossier-bar, .dossier-hint { display: none; }
  .dossier-sheet { box-shadow: none; padding: 0; max-width: none; border-radius: 0; font-size: 11pt; }
}

/* Pétition déjà signée : bandeau compact */
.pet-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 14px; }
.pet-mini .progress { height: 6px; margin: 8px 0 0; background: var(--line); }
.pet-ok { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pet-text summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.pet-text summary::-webkit-details-marker { display: none; }
.pet-text[open] summary { margin-bottom: 10px; }

/* Scan OCR des feuilles de pétition */
.ocr-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ocr-cta > .grow { flex: 1 1 300px; }
@media (max-width: 600px) { .ocr-cta .btn { width: 100%; justify-content: center; } }
.ocr-cta h3 { margin-bottom: 4px; }
.ocr-cta p { margin: 0; }
.ocr-pick { display: flex; justify-content: center; width: 100%; margin-top: 10px; cursor: pointer; }
.ocr-wait { text-align: center; padding: 26px 0; }
.ocr-wait .spinner { width: 34px; height: 34px; margin: 0 auto 10px; border: 3px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: ocrspin .9s linear infinite; }
@keyframes ocrspin { to { transform: rotate(360deg); } }
.ocr-warn { background: #fff4d6; color: #5c4300; border: 1px solid #f0cf73; border-radius: 12px; padding: 10px 12px; font-size: .92rem; line-height: 1.4; margin-bottom: 12px; }
.ocr-photo { margin-bottom: 10px; }
.ocr-photo summary { cursor: pointer; margin-bottom: 6px; }
.ocr-photo img { display: block; width: 100%; max-height: 32vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.ocr-tools { margin-bottom: 8px; align-items: center; }
.ocr-tools select { width: auto; display: inline-block; padding: 4px 8px; margin-left: 4px; }
.ocr-list { display: flex; flex-direction: column; gap: 8px; }
.ocr-row { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); }
.ocr-row.off { opacity: .55; }
.ocr-chk { flex: none; padding-top: 8px; }
.ocr-chk input { width: 20px; height: 20px; }
.ocr-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ocr-fields input { min-width: 0; width: 100%; }
.ocr-fields input[data-f="city"], .ocr-raw, .ocr-dup { grid-column: 1 / -1; }
.ocr-raw { overflow-wrap: anywhere; }
.ocr-dup { color: #b3261e; font-weight: 700; }
.ocr-more { margin-top: 10px; gap: 8px; }
.ocr-foot { position: sticky; bottom: -16px; background: var(--surface); padding: 10px 0; margin-top: 6px; }
.ocr-foot .btn { width: 100%; justify-content: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ocr-warn { background: #3a2f10; color: #ffe49a; border-color: #6b5413; } }
:root[data-theme="dark"] .ocr-warn { background: #3a2f10; color: #ffe49a; border-color: #6b5413; }
