/* LOCAGA CRM — Swiss, dense back-office in the locaga.com palette (navy, sand, gold). */
:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #0d2231;
  --muted: #5b6872;
  --line: #e4ddd0;
  --line-2: #efe9df;
  --primary: #083652;
  --primary-2: #0b4a70;
  --primary-soft: #e6eef3;
  --gold: #b08a52;
  --gold-ink: #7d5f2f;
  --gold-soft: #f4ebdc;
  --ok: #1d7048;
  --ok-soft: #e3f2ea;
  --warn: #9a5508;
  --warn-soft: #fbefdc;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ring: #0b4a70;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 1px rgba(13, 34, 49, .04), 0 2px 6px rgba(13, 34, 49, .04), 0 12px 32px -12px rgba(13, 34, 49, .10);
  --shadow-hover: 0 1px 1px rgba(13, 34, 49, .05), 0 6px 14px rgba(13, 34, 49, .06), 0 24px 48px -16px rgba(13, 34, 49, .18);
  --ease: cubic-bezier(.22, .61, .24, 1);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--primary-2); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: radial-gradient(120% 60% at 0% 100%, rgba(176, 138, 82, .16), transparent 60%), linear-gradient(180deg, #061c2b 0%, var(--primary) 100%); color: #dfe8ee; padding: var(--sp-5) var(--sp-3); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--sp-1); }
.brand { display: flex; align-items: baseline; gap: var(--sp-2); padding: 0 var(--sp-3) var(--sp-5); color: #fff; text-decoration: none; }
.brand b { font: 600 26px/1 var(--serif); letter-spacing: .08em; }
.brand span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); opacity: .85; }
.nav a { display: flex; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-3); border-radius: var(--r-sm); color: inherit; text-decoration: none; font-weight: 500; min-height: 42px; transition: background .18s var(--ease), color .18s var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav .count { margin-left: auto; background: var(--gold); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; min-width: 22px; text-align: center; }
.side .me { margin-top: auto; padding: var(--sp-3); border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.side .me b { display: block; color: #fff; }
.side .me button { margin-top: var(--sp-2); background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: var(--r-sm); padding: 6px 10px; cursor: pointer; min-height: 36px; }
main { min-width: 0; padding: var(--sp-5) var(--sp-6) 96px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.top h1 { font: 600 clamp(30px, 3.2vw, 44px)/1.05 var(--serif); color: var(--primary); letter-spacing: -.01em; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.top p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.top .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; margin-bottom: var(--sp-2); }
.crumb:hover { color: var(--primary); }
.bottom, .mtop { display: none; }
.col { min-width: 0; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 40px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease); white-space: nowrap; }
.btn:hover { border-color: #cfc5b4; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.wa { background: #1c7c4a; border-color: #1c7c4a; color: #fff; }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.icon-btn { width: 40px; height: 40px; padding: 0; }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
label.f small { font-weight: 400; color: var(--muted); }
.in, select.in, textarea.in { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 8px 11px; font-size: 15px; font-weight: 400; transition: border-color .15s; }
.in:hover { border-color: #cfc5b4; }
.in:focus { border-color: var(--ring); outline: 2px solid rgba(11, 74, 112, .18); outline-offset: 0; }
textarea.in { min-height: 96px; resize: vertical; }
.grid { display: grid; gap: var(--sp-3) var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid .wide { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; min-height: 36px; background: var(--surface); }
.chk:has(input:checked) { background: var(--primary-soft); border-color: #b9cdd9; color: var(--primary); }
.chk input { accent-color: var(--primary); margin: 0; }
.switch { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 14px; font-weight: 500; cursor: pointer; min-height: 40px; }
.switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); align-items: center; }
.filters .in { width: auto; min-width: 150px; }
.filters .search { flex: 1 1 240px; position: relative; }
.filters .search .in { width: 100%; padding-left: 36px; }
.filters .search svg { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card > h2, .card .head { padding: var(--sp-4) var(--sp-4) 0; font: 700 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.card .body { padding: var(--sp-4); }
.cols { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
.cols > *, .stack > * { min-width: 0; }
.stack { display: grid; gap: var(--sp-4); }
.kpis { display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--sp-4); }
@media (min-width: 1240px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi b { font-size: 38px; } }
.kpi { padding: 18px var(--sp-4) var(--sp-4); text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.kpi::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 70%); opacity: .0; transition: opacity .25s var(--ease); }
a.kpi:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
a.kpi:hover::before, .kpi.hot::before { opacity: 1; }
.kpi b { display: block; font: 600 46px/1 var(--serif); color: var(--primary); font-variant-numeric: lining-nums tabular-nums; margin-bottom: 6px; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.kpi.hot { background: linear-gradient(160deg, #fffaf2, var(--surface) 60%); }
.kpi.hot b { color: var(--gold-ink); }
.empty { padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--muted); }
.empty svg { width: 32px; height: 32px; margin: 0 auto var(--sp-2); color: #b9ae9b; }

/* ---------- tables & rows ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { cursor: pointer; transition: background .12s; }
.t tbody tr:hover { background: var(--surface-2); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t .thumb { width: 64px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--line-2); }
.t .noimg { width: 64px; height: 46px; border-radius: 6px; background: var(--line-2); display: grid; place-items: center; color: #b9ae9b; }
.ttl { font-weight: 600; color: var(--ink); }
.sub { font-size: 13px; color: var(--muted); }
.ref { font: 600 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--gold-ink); letter-spacing: .02em; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: var(--sp-3); align-items: center; padding: 10px var(--sp-4); border-top: 1px solid var(--line-2); }
.rows li:first-child { border-top: 0; }
.rows a.row { display: flex; gap: var(--sp-3); align-items: center; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .grow > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--sp-4); margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* ---------- badges ---------- */
.b { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--muted); line-height: 1.6; }
.b.vente, .b.achat { background: var(--primary-soft); color: var(--primary); }
.b.location { background: var(--gold-soft); color: var(--gold-ink); }
.b.saisonnier { background: #ece7f6; color: #4f3c86; }
.b.ok, .b.disponible, .b.traite, .b.gagnee { background: var(--ok-soft); color: var(--ok); }
.b.warn, .b.nouveau, .b.nouvelle, .b.sous_offre, .b.offre { background: var(--warn-soft); color: var(--warn); }
.b.en_cours, .b.en_visite, .b.active { background: var(--primary-soft); color: var(--primary-2); }
.b.danger, .b.spam, .b.perdue { background: var(--danger-soft); color: var(--danger); }
.b.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.score { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 14px; flex: none; background: conic-gradient(var(--c, var(--ok)) calc(var(--v) * 1%), var(--line-2) 0); position: relative; font-variant-numeric: tabular-nums; }
.score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.score span { position: relative; }

/* ---------- property cards & photos ---------- */
.pgrid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pcard { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pcard .ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--line-2), #e9e1d3); position: relative; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .ph img { transform: scale(1.04); }
.pcard .ttl { font: 600 19px/1.2 var(--serif); }
.pcard .price { font-size: 16px; margin-top: 4px; }
.pcard .ph .b { position: absolute; top: 8px; left: 8px; }
.pcard .ph .pubflag { left: auto; right: 8px; background: rgba(255, 255, 255, .92); color: var(--ok); }
.pcard .in-c { padding: var(--sp-3); display: grid; gap: 2px; }
.pcard .price { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.photos { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.b.gold { background: var(--gold); color: #fff; }
.photo { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line-2); border: 2px solid transparent; }
.photo.drag { opacity: .4; }
.photo.over { border-color: var(--gold); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(4, 19, 30, .7)); }
.photo .tools button { width: 32px; height: 32px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.photo .tools svg { width: 16px; height: 16px; }
.photo .first { position: absolute; top: 6px; left: 6px; }
.photo .res { position: absolute; top: 6px; right: 6px; background: rgba(4, 19, 30, .72); color: #fff; }
.drop { border: 1.5px dashed #cfc5b4; border-radius: var(--r); padding: var(--sp-5); text-align: center; color: var(--muted); cursor: pointer; transition: background .15s, border-color .15s; display: grid; gap: 4px; place-items: center; }
.drop:hover, .drop.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
.drop svg { width: 28px; height: 28px; }

/* ---------- timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0 var(--sp-4) var(--sp-4); }
.tl li { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--sp-3); padding: 10px 0; border-top: 1px solid var(--line-2); align-items: start; }
.tl li:first-child { border-top: 0; }
.tl .k { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.tl .k svg { width: 15px; height: 15px; }
.tl .txt { white-space: pre-line; font-size: 14px; overflow-wrap: anywhere; }
.tl .meta { font-size: 12px; color: var(--muted); }
.tl li.done .txt { text-decoration: line-through; color: var(--muted); }
.note-form { display: grid; gap: var(--sp-2); padding: 0 var(--sp-4) var(--sp-4); }
.note-form .row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.note-form .row > * { flex: 1 1 140px; min-width: 0; }
.note-form .row > .btn { flex: 0 0 auto; }

/* ---------- leads inbox ---------- */
.inbox { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: var(--sp-4); align-items: start; }
.inbox .rows li { cursor: pointer; padding: 12px var(--sp-4); }
.inbox .rows li[aria-selected="true"] { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.inbox .rows li.unread .ttl::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 6px; vertical-align: middle; }
.bar { display: grid; grid-template-columns: 120px 1fr 36px; gap: var(--sp-2); align-items: center; font-size: 13px; padding: 4px 0; }
.bar i { display: block; height: 8px; border-radius: 4px; background: var(--primary-2); }
.bar .track { background: var(--line-2); border-radius: 4px; }
.code { font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; background: #0d2231; color: #e8eef2; border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); overflow-x: auto; white-space: pre; margin: 0; }
.keybox { font: 600 14px ui-monospace, Consolas, monospace; background: var(--gold-soft); border: 1px solid #e4d3b4; padding: var(--sp-3); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.wm-preview { aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: linear-gradient(135deg, #7a9bb0, #c9b28a); position: relative; overflow: hidden; }
.wm-preview span { position: absolute; font: 700 28px var(--serif); letter-spacing: .12em; color: #fff; }
.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--primary); border-color: var(--gold); }

/* ---------- dialog, toast, login ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 64px rgba(4, 19, 30, .3); color: var(--ink); }
dialog::backdrop { background: rgba(4, 19, 30, .45); }
dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
dialog header { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
dialog header h2 { font: 600 24px var(--serif); color: var(--primary); }
dialog .content { padding: var(--sp-5); overflow-y: auto; display: grid; gap: var(--sp-4); }
dialog footer { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line); background: var(--surface-2); }
.fieldset-title { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: var(--sp-2) 0 0; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1em; }
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: var(--sp-2); z-index: 50; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; animation: rise .22s var(--ease); max-width: 360px; }
.toast.bad { background: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: radial-gradient(90% 70% at 100% 100%, rgba(176, 138, 82, .22), transparent 60%), linear-gradient(160deg, #04131e, var(--primary)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art::before, .login .art::after { content: ""; position: absolute; border-radius: 999px 999px 0 0; border: 1px solid rgba(201, 163, 107, .38); border-bottom: 0; pointer-events: none; }
.login .art::after { width: 520px; height: 640px; right: -140px; bottom: -40px; }
.login .art::before { width: 380px; height: 500px; right: -70px; bottom: -40px; border-color: rgba(201, 163, 107, .2); }
.login .art > * { position: relative; z-index: 1; }
.login .art h1 { font: 500 clamp(44px, 5.4vw, 76px)/.98 var(--serif); max-width: 11ch; letter-spacing: -.02em; }
.login .art h1 em { color: var(--gold-l, #c9a36b); font-style: italic; }
.login .art p { color: #c7d5de; max-width: 40ch; }
.login .panel { display: grid; place-items: center; padding: var(--sp-5); }
.login form { width: min(380px, 100%); display: grid; gap: var(--sp-4); }
.login form h2 { font: 600 30px var(--serif); color: var(--primary); }
.skeleton { background: linear-gradient(90deg, var(--line-2), #f8f5f0, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--r-sm); height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .cols, .inbox { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mtop { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: linear-gradient(160deg, #04131e, var(--primary)); color: #fff; padding: 6px 8px 6px 16px; }
  .mtop .brand { padding: 0; }
  .mtop .brand b { font-size: 22px; }
  .mtop nav { display: flex; }
  .mtop .btn { color: #fff; width: 44px; height: 44px; }
  .mtop .btn:hover { background: rgba(255, 255, 255, .1); }
  main { padding: var(--sp-4) var(--sp-4) 96px; }
  .top h1 { font-size: 28px; }
  .bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); z-index: 20; }
  .bottom a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 2px; min-height: 52px; border-radius: 8px; position: relative; }
  .bottom a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
  .bottom .count { position: absolute; top: 2px; right: calc(50% - 22px); background: var(--gold); color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; }
  .mobile-only { display: inline-flex !important; }
  .t .hide-m { display: none; }
  .login { grid-template-columns: 1fr; }
  .login .art { padding: 32px 24px; min-height: 220px; }
  .login .art h1 { font-size: 36px; }
  #toasts { left: 16px; right: 16px; bottom: 76px; }
}
.mobile-only { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
