/* ============================================================
   ULM Storm — thème v5
   Encre marine + ciel, cartes sans bordure, barre d'onglets flottante
   ============================================================ */
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --field: #f1f4f9;
  --text: #0e1b30;
  --muted: #6a778c;
  --line: #e6eaf1;
  --ink: #10233f;            /* boutons principaux */
  --on-ink: #ffffff;
  --accent: #1f5fd1;         /* liens, éléments actifs */
  --accent-soft: #e8f0fe;
  --sky-1: #1b4e9b;
  --sky-2: #0e2a52;
  --ok: #12804a;
  --ok-soft: #e0f5ea;
  --warn: #a45a05;
  --warn-soft: #fdf1d7;
  --err: #c0271f;
  --err-soft: #fde8e6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 35, 63, .04), 0 6px 20px rgba(16, 35, 63, .06);
  --shadow-up: 0 8px 30px rgba(16, 35, 63, .16);
  --glass: rgba(255, 255, 255, .82);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a101b; --card: #141c2b; --field: #1b2536; --text: #e8edf6; --muted: #8e9bb0; --line: #232e42;
    --ink: #e8edf6; --on-ink: #0a101b;
    --accent: #7db0ff; --accent-soft: #172a4a; --sky-1: #1c4a8f; --sky-2: #0b1d3a;
    --ok: #4fd18b; --ok-soft: #10301f; --warn: #f5bd4f; --warn-soft: #33260a; --err: #ff8078; --err-soft: #3a1614;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .04);
    --shadow-up: 0 8px 30px rgba(0, 0, 0, .5);
    --glass: rgba(20, 28, 43, .82);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 .9rem; letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .7rem; letter-spacing: -.01em; }
h3 { font-size: .78rem; font-weight: 700; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 .6rem; }
small, .muted { color: var(--muted); }
h1 small, h2 small { font-weight: 500; font-size: .8em; }
.num { font-variant-numeric: tabular-nums; }
main.wrap > p:first-child > a { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- En-tête */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.topbar .in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { color: var(--text); font-weight: 800; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem;
  background: linear-gradient(145deg, #2f7be6, var(--sky-2));
}
.brand small { color: var(--muted); font-weight: 600; font-size: .8rem; background: var(--field); padding: 2px 8px; border-radius: 999px; }
.topnav { margin-left: auto; display: none; gap: 2px; }
.topnav a { color: var(--muted); padding: 7px 12px; border-radius: 999px; font-size: .93rem; font-weight: 600; }
.topnav a:hover { color: var(--text); text-decoration: none; background: var(--field); }
.topnav a.on { background: var(--ink); color: var(--on-ink); }
.topnav svg { display: none; }

/* ---------- Barre d'onglets flottante (mobile) */
.tabbar {
  position: fixed; z-index: 10; display: flex; gap: 2px;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto; padding: 6px;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-up);
}
.tabbar a {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 0 5px; color: var(--muted); font-size: .68rem; font-weight: 600; border-radius: 18px;
}
.tabbar a:hover { text-decoration: none; }
.tabbar a.on { color: var(--accent); background: var(--accent-soft); }
.tabbar svg { width: 23px; height: 23px; }
.topnav a { position: relative; }
.pill {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e5362c; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--card);
}
.topnav .pill { position: static; display: inline-block; margin-left: 6px; box-shadow: none; }
@media (min-width: 760px) {
  body { padding-bottom: 40px; }
  .tabbar { display: none; }
  .topnav { display: flex; }
}

main.wrap { max-width: 980px; margin: 0 auto; padding: 18px 16px; }
@media (min-width: 760px) { main.wrap { padding-top: 28px; } }

/* ---------- Cartes & mise en page */
.card {
  background: var(--card); border: 0; border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.card.tight { padding: 0; overflow: hidden; }
.card[style*="border-color"] { border: 1.5px solid; }
.card > h2:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* ---------- Bandeau « semaine » */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px 20px 22px; margin-bottom: 14px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--hc, #1b4e9b) 55%, #fff 0%) 0%, transparent 60%),
    linear-gradient(140deg, color-mix(in srgb, var(--hc, #1b4e9b) 80%, #0e2a52), #0b1e3d);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--hc, #1b4e9b) 30%, transparent);
}
.hero::after {
  content: ''; position: absolute; right: -18px; bottom: -26px; width: 170px; height: 170px; opacity: .13; pointer-events: none;
  transform: rotate(-18deg);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M240 106h32l10 120 170 40v34l-170-14-6 90 52 30v26l-72-16-72 16v-26l52-30-6-90-170 14v-34l170-40z'/%3E%3C/svg%3E");
}
.hero .l { font-size: .75rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hero .v { font-size: 1.75rem; font-weight: 800; margin: 4px 0 2px; letter-spacing: -.02em; line-height: 1.15; }
.hero .s { opacity: .88; font-size: .92rem; max-width: 30ch; }

/* ---------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--ink); color: var(--on-ink); border: 0; border-radius: 14px;
  padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 46px;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { background: var(--err-soft); color: var(--err); }
@media (prefers-color-scheme: dark) { .btn.ok { color: #06140c; } }
.btn.small { padding: 6px 13px; min-height: 34px; font-size: .86rem; border-radius: 999px; }
.btn.block { width: 100%; min-height: 52px; font-size: 1.02rem; border-radius: 16px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline { display: inline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 0; }
.linklike.danger { color: var(--err); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.mute { background: var(--field); color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #999); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #999) 18%, transparent); }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.flash { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--err-soft); color: var(--err); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: .92rem; }
.notice.warn { background: var(--warn-soft); }

/* ---------- Listes */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.card.tight > h2 { padding: 18px 18px 2px !important; }
.card.tight > h2 + p { padding: 0 18px !important; }
.list .main { flex: 1; min-width: 0; }
.list .main .t { font-weight: 650; }
.list .main .t a { color: var(--text); }
.list .main .d { font-size: .85rem; color: var(--muted); }
.list .amt, .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.neutral { color: var(--text); }
.list a.li-link { color: inherit; display: contents; }
.empty { padding: 20px; color: var(--muted); text-align: center; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-top: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- Formulaires */
label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 6px; }
label small { font-weight: 500; }
.field { margin-bottom: 14px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 11px 13px; min-height: 48px;
  transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); background: var(--card); }
input[type=color] { padding: 4px; width: 56px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; margin: 0 10px 0 2px; flex: none; accent-color: var(--accent); }
label.check { display: flex; align-items: center; font-weight: 550; padding: 7px 0; font-size: .95rem; }
textarea { min-height: 76px; resize: vertical; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.big-input input { font-size: 1.9rem; font-weight: 800; text-align: center; min-height: 68px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; border-radius: 16px; }
.calc { font-size: 1.02rem; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); margin-bottom: 14px; text-align: center; }
.calc strong { font-size: 1.3rem; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.seg button {
  border: 1.5px solid transparent; background: var(--field); color: var(--text); border-radius: 14px; padding: 12px 6px;
  font: inherit; font-weight: 700; cursor: pointer; min-height: 64px; transition: all .12s;
}
.seg button small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; margin-top: 1px; }
.seg button.on { background: var(--ink); color: var(--on-ink); }
.seg button.on small { color: inherit; opacity: .75; }

details summary { cursor: pointer; font-weight: 600; }
details.more { margin-bottom: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.more > summary { color: var(--accent); font-weight: 650; font-size: .92rem; list-style: none; padding: 2px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '＋ '; }
details.more[open] > summary::before { content: '－ '; }
details.more[open] > summary { margin-bottom: 12px; }

.auth { max-width: 390px; margin: 7vh auto 0; }
.auth .logo {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem; color: #fff;
  background: linear-gradient(145deg, #2f7be6, var(--sky-2)); box-shadow: 0 10px 30px rgba(27, 78, 155, .35);
}
.auth h1 { text-align: center; }

/* ---------- Accueil */
.due {
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; background: var(--card); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.due .v { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.02em; }
.due .l { font-size: .82rem; color: var(--muted); font-weight: 600; }
.due.ok { background: var(--ok-soft); box-shadow: none; }
.due.ok .v { font-size: 1rem; color: var(--ok); letter-spacing: 0; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mini > * { background: var(--card); border-radius: 16px; padding: 12px 14px; color: var(--text); box-shadow: var(--shadow); }
.mini a:hover { text-decoration: none; transform: translateY(-1px); }
.mini .l { font-size: .68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mini .v { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.08rem; white-space: nowrap; letter-spacing: -.01em; }

/* ---------- Planning */
.weeknav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.weeknav h1 { margin: 0; flex: 1; font-size: 1.3rem; text-align: center; }
.weeknav .btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px 12px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a {
  flex: none; min-width: 86px; border-radius: 14px; padding: 8px 12px; background: var(--card); box-shadow: var(--shadow);
  color: var(--text); font-size: .76rem; position: relative;
}
.strip a::before { content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--c); opacity: .9; }
.strip a { padding-bottom: 13px; }
.strip a:hover { text-decoration: none; }
.strip a.on { background: var(--ink); color: var(--on-ink); }
.strip a.on .muted { color: inherit; opacity: .7; }
.strip a b { display: block; font-size: .88rem; }
.strip a .free { color: var(--ok); font-weight: 700; }
.days { display: grid; gap: 8px; }
@media (min-width: 900px) { .days { grid-template-columns: repeat(7, 1fr); } .day { min-height: 200px; } }
.day { background: var(--card); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.day.today { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.day.past { opacity: .55; box-shadow: none; }
.day .dh { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .92rem; text-transform: capitalize; }
.day .dh a.daylink { display: flex; justify-content: space-between; align-items: center; flex: 1; color: var(--text); padding: 4px 0; margin: -4px 0; min-height: 38px; }
.day .dh a.daylink:hover { text-decoration: none; color: var(--accent); }
.day .dh .plus { color: var(--accent); font-size: .8rem; font-weight: 650; text-transform: none; background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
@media (min-width: 900px) { .day .dh .plus span { display: none; } .day .dh .plus { padding: 2px 8px; } }
.slot {
  display: block; border-radius: 12px; padding: 8px 10px; font-size: .84rem; color: var(--text);
  background: color-mix(in srgb, var(--c) 16%, var(--card)); border-left: 4px solid var(--c);
}
.slot:hover { text-decoration: none; filter: brightness(.97); }
.slot.pending { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--c) 14%, var(--card)) 0 6px, var(--card) 6px 12px); }
.slot b { display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 12px; }

.bar { height: 8px; border-radius: 4px; background: var(--field); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--accent)); }

.balance-pos { color: var(--err); }
.balance-neg { color: var(--ok); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code.copy { display: block; word-break: break-all; padding: 10px 12px; background: var(--field); border-radius: 10px; font-size: .8rem; }

/* ---------- Lignes et sections repliables */
details.rowd { border-top: 1px solid var(--line); }
details.rowd:first-of-type { border-top: 0; }
details.rowd > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; list-style: none; }
details.rowd > summary::-webkit-details-marker { display: none; }
details.rowd > summary .main { flex: 1; font-weight: 650; }
details.rowd > summary::after { content: '›'; color: var(--muted); font-size: 1.2rem; transition: transform .15s; }
details.rowd[open] > summary::after { transform: rotate(90deg); }
details.rowd .body { padding: 0 18px 14px 40px; font-size: .9rem; color: var(--muted); }
details.rowd .body .row { justify-content: space-between; padding: 2px 0; }
details.rowd .body .row:last-child { color: var(--text); }
details.section { padding: 0; }
details.section > summary { padding: 18px; font-size: 1.05rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::after { content: '›'; color: var(--muted); transition: transform .15s; }
details.section[open] > summary::after { transform: rotate(90deg); }
details.section > .in { padding: 0 18px 18px; }
details.section details.rowd > summary { padding-left: 0; padding-right: 0; }
.order-list { list-style: none; margin: 0 0 14px; padding: 0; }
.order-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; margin-bottom: 6px; background: var(--field); }
.order-list li .n { color: var(--muted); font-weight: 800; width: 1.2em; }
.order-list li .main { flex: 1; font-weight: 650; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- v6 : avatar & icônes d'en-tête */
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 760px) { .tools { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); } }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.iconbtn svg { width: 21px; height: 21px; }
.iconbtn:hover { background: var(--field); color: var(--text); }
.iconbtn.on { background: var(--ink); color: var(--on-ink); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; object-fit: cover;
  background: var(--c, var(--muted)); color: #fff; font-weight: 800; font-size: .95rem; vertical-align: middle;
}
.avatar.xl { width: 84px; height: 84px; font-size: 2.1rem; }
.me { display: block; border-radius: 50%; line-height: 0; transition: box-shadow .15s; }
.me:hover, .me.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); text-decoration: none; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-head .photo { position: relative; cursor: pointer; margin: 0; line-height: 0; }
.profile-head .photo .edit {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink);
  font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.3; box-shadow: 0 0 0 2px var(--bg);
}
.tabbar a { flex: 1; }
@media (min-width: 760px) { .only-mobile { display: none; } }

/* ---------- v7 : avion (fiche, documents), budget */
.card .mini > * { background: var(--field); box-shadow: none; }
.spec-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.spec-grid .card { margin: 0; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.spec:first-of-type { border-top: 0; }
.spec .k { color: var(--muted); }
.spec .val { font-weight: 650; text-align: right; }
.spec .val.none { color: var(--muted); font-weight: 400; }
.spec-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.spec-edit input { min-height: 42px; padding: 8px 11px; }
.doc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-size: .68rem; font-weight: 800; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; color: var(--muted); cursor: pointer; margin-bottom: 12px; }
.dropzone.has { border-style: solid; border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.budget-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.budget-row:first-of-type { border-top: 0; }
.budget-row label { margin: 0; font-weight: 550; }
.budget-row input { min-height: 42px; padding: 8px 11px; text-align: right; }

/* ---------- v12 : bascule Moi / Tous */
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--field); border-radius: 14px; margin-bottom: 14px; }
.toggle a { text-align: center; padding: 9px 8px; border-radius: 11px; font-weight: 700; font-size: .92rem; color: var(--muted); }
.toggle a:hover { text-decoration: none; color: var(--text); }
.toggle a.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.amt.plus { color: var(--text); } .amt.minus { color: var(--ok); }
