/* Espace pro Equisoix : maquette de CRM aux couleurs du logo (bleu nuit, or, crème). */
:root {
  --bg: #f7f4ee;
  --side: #efe9dd;
  --card: #ffffff;
  --ink: #121a2b;
  --ink-2: #3b4254;
  --muted: #6b6f7b;
  --line: rgba(18, 26, 43, 0.1);
  --line-2: rgba(18, 26, 43, 0.16);
  --navy: #14244a;
  --navy-2: #1d3263;
  --gold: #d9a21b;
  --gold-soft: #f6e7bf;
  --gold-ink: #6b4b00;
  --green: #2f6b4f;
  --green-soft: #dcebe2;
  --red: #a3402b;
  --red-soft: #f3ddd6;
  --blue-soft: #dfe6f3;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 26, 43, 0.06), 0 4px 16px rgba(18, 26, 43, 0.06);
  --shadow-lg: 0 12px 48px rgba(18, 26, 43, 0.18);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Libre Franklin", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

/* ---------- coque ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; gap: 20px; }
.side__logo { display: block; padding: 4px 8px 0; }
.side__logo img { height: 58px; width: auto; display: block; }
.side__label { font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 10px; margin: 0 0 6px; }
.nav { display: grid; gap: 2px; }
.nav__btn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; border-radius: var(--r-sm); text-align: left; font-weight: 500; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.nav__btn svg { width: 18px; height: 18px; flex: none; }
.nav__btn .count { margin-left: auto; font-size: 12px; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); text-align: center; }
.nav__btn[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nav__btn[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .nav__btn:not([aria-current="page"]):hover { background: rgba(18, 26, 43, 0.05); color: var(--ink); } }
.side__foot { margin-top: auto; display: grid; gap: 10px; }
.user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.6); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 500; font-size: 13px; flex: none; }
.user b { display: block; font-weight: 500; font-size: 14px; }
.user span { font-size: 12px; color: var(--muted); }
.demo-note { font-size: 12px; color: var(--muted); padding: 0 10px; line-height: 1.45; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: rgba(247, 244, 238, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top h1 { font: 400 28px/1.1 var(--serif); letter-spacing: -0.02em; margin: 0; }
.top .sub { font-size: 13px; color: var(--muted); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input { width: 260px; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 14px; }
.search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.view { padding: 28px 32px 64px; display: grid; gap: 24px; align-content: start; }
.view[hidden] { display: none; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn--gold { background: var(--gold); color: #1b1300; }
.btn--wa { background: #1f8f4e; color: #fff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn--icon { width: 40px; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy-2); }
  .btn--ghost:hover { border-color: rgba(18, 26, 43, 0.3); }
  .btn--gold:hover { background: #e4ad25; }
  .btn--wa:hover { background: #1a7d44; }
}

/* ---------- cartes et tuiles ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.card__head h2 { font: 400 21px/1.2 var(--serif); letter-spacing: -0.01em; margin: 0; }
.card__head .btn { margin-left: auto; }
.card__body { padding: 16px 20px 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stat { padding: 18px 20px; display: grid; gap: 6px; }
.stat__label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat__label svg { width: 16px; height: 16px; }
.stat__value { font: 400 36px/1 var(--serif); letter-spacing: -0.02em; }
.stat__foot { font-size: 13px; color: var(--ink-2); }
.stat--gold { background: linear-gradient(180deg, #fffaf0, #fff); border-color: rgba(217, 162, 27, 0.35); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill--nouvelle { background: var(--gold-soft); color: var(--gold-ink); }
.pill--devis { background: var(--blue-soft); color: var(--navy); }
.pill--confirme { background: var(--green-soft); color: var(--green); }
.pill--route { background: #dfeaf0; color: #24536a; }
.pill--livre { background: #ece8e1; color: #5d5a52; }
.pill--plain::before { display: none; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(18, 26, 43, 0.06); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tag--intl { background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- prochain départ ---------- */
.trip-hero { padding: 20px; display: grid; gap: 18px; }
.route { display: flex; align-items: center; gap: 0; }
.route__stop { display: grid; gap: 4px; justify-items: start; flex: none; }
.route__stop b { font: 400 22px/1.1 var(--serif); letter-spacing: -0.01em; }
.route__stop span { font-size: 12px; color: var(--muted); }
.route__line { flex: 1; height: 2px; margin: 0 14px 18px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); position: relative; min-width: 28px; }
.route__line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--muted); border-right: 0; }
.seats { display: flex; gap: 8px; flex-wrap: wrap; }
.seat { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1.5px dashed var(--line-2); color: var(--muted); }
.seat svg { width: 24px; height: 24px; }
.seat--taken { border: 0; background: var(--navy); color: #fff; }
.trip-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); align-items: center; }

/* ---------- listes ---------- */
.list { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; transition: background-color 150ms ease; }
.row:first-child { border-top: 0; }
@media (hover: hover) and (pointer: fine) { button.row:hover { background: rgba(18, 26, 43, 0.03); } }
.row__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(18, 26, 43, 0.06); color: var(--ink-2); }
.row__icon svg { width: 18px; height: 18px; }
.row__icon--gold { background: var(--gold-soft); color: var(--gold-ink); }
.row__icon--green { background: var(--green-soft); color: var(--green); }
.row__icon--red { background: var(--red-soft); color: var(--red); }
.row__main { min-width: 0; flex: 1; display: grid; gap: 1px; }
.row__main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__main span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; flex: none; padding: 0; transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.check svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.check:active { transform: scale(0.9); }
.check[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.check[aria-checked="true"] svg { opacity: 1; transform: scale(1); }

/* ---------- tableau de demandes (colonnes) ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(18, 26, 43, 0.06); gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 26, 43, 0.12); }
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: rgba(18, 26, 43, 0.035); border-radius: var(--r-lg); padding: 10px; display: grid; gap: 10px; align-content: start; min-height: 320px; transition: background-color 150ms ease, box-shadow 150ms ease; }
.col.is-over { background: rgba(217, 162, 27, 0.12); box-shadow: inset 0 0 0 1.5px rgba(217, 162, 27, 0.6); }
.col__head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; }
.col__head b { font-weight: 500; font-size: 14px; }
.col__head .n { font-size: 12px; color: var(--muted); }
.col__head .sum { margin-left: auto; font-size: 12px; color: var(--muted); }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: grid; gap: 8px; text-align: left; width: 100%; box-shadow: 0 1px 2px rgba(18, 26, 43, 0.05); transition: transform 160ms var(--ease-out), box-shadow 200ms ease, opacity 150ms ease; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.kcard:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .kcard:hover { box-shadow: 0 2px 4px rgba(18, 26, 43, 0.06), 0 8px 24px rgba(18, 26, 43, 0.08); } }
.kcard.is-dragging { opacity: 0.35; }
.kcard__top { display: flex; align-items: center; gap: 8px; }
.kcard__top b { font-weight: 500; font-size: 14px; }
.kcard__top .amt { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 500; }
.kcard__route { font: 400 17px/1.25 var(--serif); letter-spacing: -0.01em; }
.kcard__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.kcard__foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.kcard__foot svg { width: 14px; height: 14px; }
.ghost { position: fixed; z-index: 50; pointer-events: none; left: 0; top: 0; width: 240px; box-shadow: var(--shadow-lg); transform-origin: 20% 20%; will-change: transform; rotate: -1.5deg; }
.drop-hint { border: 1.5px dashed rgba(217, 162, 27, 0.7); border-radius: var(--r-md); height: 56px; }

/* ---------- départs ---------- */
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.trip { padding: 20px; display: grid; gap: 16px; }
.trip__head { display: flex; align-items: flex-start; gap: 12px; }
.trip__date { display: grid; place-items: center; width: 56px; padding: 6px 0; border-radius: 12px; background: var(--navy); color: #fff; flex: none; }
.trip__date b { font: 400 24px/1 var(--serif); }
.trip__date span { font-size: 11px; text-transform: lowercase; opacity: 0.8; }
.trip__title { display: grid; gap: 3px; }
.trip__title b { font: 400 19px/1.25 var(--serif); letter-spacing: -0.01em; }
.trip__title span { font-size: 13px; color: var(--muted); }
.trip__free { margin-left: auto; }
.bar { height: 8px; border-radius: 99px; background: rgba(18, 26, 43, 0.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--navy); transform-origin: left; transition: transform 400ms var(--ease-out); }
.trip__horses { display: grid; gap: 6px; }
.horse { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.horse svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.horse span { color: var(--muted); font-size: 13px; }
.trip__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 150ms ease; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .table tbody tr:hover { background: rgba(18, 26, 43, 0.025); } }
.table td b { font-weight: 500; }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 32px; height: 32px; font-size: 12px; background: var(--gold-soft); color: var(--gold-ink); }
.who small { display: block; font-size: 12px; color: var(--muted); }
.docs-cell { display: flex; gap: 6px; }
.progress { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.progress .bar { flex: 1; }
.progress .bar > i { background: var(--green); }
.table-wrap { overflow-x: auto; }

/* ---------- panneau latéral ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(18, 26, 43, 0.32); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 400ms var(--ease-drawer); visibility: hidden; }
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer__head h2 { margin: 0; font: 400 24px/1.2 var(--serif); letter-spacing: -0.015em; }
.drawer__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.drawer__close { margin-left: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px 32px; display: grid; gap: 22px; align-content: start; }
.drawer__foot { display: flex; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.block h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.status-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.status-steps button { border: 0; height: 36px; border-radius: 8px; background: rgba(18, 26, 43, 0.06); font-size: 12px; font-weight: 500; color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); padding: 0 4px; }
.status-steps button:active { transform: scale(0.96); }
.status-steps button.is-done { background: rgba(20, 36, 74, 0.14); color: var(--navy); }
.status-steps button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.doclist { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.doc b { font-weight: 500; font-size: 14px; }
.doc span { display: block; font-size: 12px; color: var(--muted); }
.note { width: 100%; min-height: 84px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 14px; }
.timeline { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14px; }
.timeline li::before { content: ""; width: 8px; height: 8px; margin: 7px 0 0 4px; border-radius: 50%; background: var(--gold); }
.timeline span { color: var(--muted); font-size: 12px; display: block; }

/* ---------- fenêtres ---------- */
.modal { position: fixed; z-index: 45; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--bg); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, -48%) scale(0.97); visibility: hidden; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s 240ms; }
.modal.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); visibility: visible; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); }
.modal__head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font: 400 22px/1.2 var(--serif); }
.modal__body { padding: 18px 22px; overflow-y: auto; display: grid; gap: 14px; }
.modal__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 15px; }
.field textarea { height: auto; min-height: 90px; padding: 10px 12px; }
.post { white-space: pre-wrap; font-size: 14px; line-height: 1.6; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); max-height: 52vh; overflow: auto; }

/* devis */
.quote { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 16px; font-size: 14px; }
.quote__head { display: flex; align-items: flex-start; gap: 12px; }
.quote__head img { height: 52px; width: auto; }
.quote__head div { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); }
.quote__head div b { display: block; font: 400 20px/1.2 var(--serif); color: var(--ink); }
.quote table { width: 100%; border-collapse: collapse; }
.quote td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.quote td:last-child { text-align: right; white-space: nowrap; }
.quote__total td { border-bottom: 0; font-weight: 500; font-size: 16px; padding-top: 12px; }

/* ---------- notifications ---------- */
.toasts { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform 400ms ease, opacity 400ms ease; pointer-events: auto; }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
@starting-style { .toast { transform: translateY(100%); opacity: 0; } }
.toast.is-out { transform: translateY(100%); opacity: 0; }

.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- barre du téléphone ---------- */
.tabbar { display: none; }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-dash { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .top h1 { font-size: 24px; }
  .top__brand { display: flex; align-items: center; gap: 10px; }
  .top__brand img { height: 36px; width: auto; }
  .top__right { width: 100%; margin: 0; }
  .search { flex: 1; }
  .search input { width: 100%; font-size: 16px; }
  .view { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); gap: 16px; }
  .board { grid-template-columns: repeat(5, 82%); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; }
  .col { scroll-snap-align: start; }
  .trips { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(247, 244, 238, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 10px; transition: color 150ms ease, transform 160ms var(--ease-out); }
  .tabbar button:active { transform: scale(0.94); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar button[aria-current="page"] { color: var(--navy); }
  .drawer { top: auto; left: 0; width: 100%; height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .drawer.is-open { transform: translateY(0); }
  .drawer__head { border-radius: 18px 18px 0 0; }
  .fields { grid-template-columns: 1fr; }
  .field input, .field select { font-size: 16px; }
  .kv { grid-template-columns: 110px 1fr; }
  .hide-sm { display: none; }
  .table td, .table th { padding: 10px 12px; }
}
@media (min-width: 861px) { .top__brand { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
  .scrim, .modal, .toast { transition: opacity 150ms ease !important; }
  .drawer { transition: opacity 150ms ease !important; }
}
