/* Environnement Cete — styles issus du design system Figma (variables color/*, space/*, radius/*). */
:root {
  --bg: #0a0a0c;
  --bg-inverse: #f2eee8;
  --bg-hover: #232425;
  --text-primary: #f2eee8;
  --text-secondary: #aba49b;
  --text-tertiary: #5f5a55;
  --text-inverse: #0a0a0c;
  --glass: rgba(10, 10, 12, 0.46);
  --glass-strong: rgba(242, 238, 232, 0.1);
  --solid: rgba(17, 17, 19, 0.86);
  --border-subtle: rgba(242, 238, 232, 0.1);
  --border-strong: rgba(242, 238, 232, 0.2);
  --accent: #9a7f6b;
  --accent-soft: rgba(154, 127, 107, 0.3);
  --accent-line: #c7b3a0;
  --info: #3a4636;
  --info-soft: rgba(58, 70, 54, 0.55);
  --info-light: #94a68e;
  --neutral-light: #d8d0c6;
  --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --blur: blur(20px);
  --font: "Be Vietnam Pro", "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: dark; }
body {
  font: 400 13px/20px var(--font); color: var(--text-primary); background: radial-gradient(60% 70% at 62% 68%, #0a0a0c 30%, transparent 100%), radial-gradient(36% 50% at 2% 10%, rgba(33, 42, 30, .85), transparent 100%), radial-gradient(42% 70% at 112% 62%, rgba(111, 93, 78, .85), transparent 100%), radial-gradient(95% 62% at 50% -12%, #6f5d4e, transparent 100%), linear-gradient(#1e1712, #0c0b0b) fixed;
  background-attachment: fixed;
  min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
[hidden] { display: none !important; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.logo { width: 55px; height: 18px; fill: var(--text-primary); display: block; }

/* Typographie */
.h-l { font: 500 24px/32px var(--font); letter-spacing: -0.12px; }
.h-m { font: 500 18px/26px var(--font); }
.h-s { font: 500 15px/22px var(--font); }
.display-m { font: 300 32px/40px var(--font); letter-spacing: -0.32px; }
.overline { font: 500 10px/14px var(--font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-secondary); }
.label-m { font: 500 13px/18px var(--font); }
.label-s { font: 500 12px/16px var(--font); }
.caption { font: 400 11px/16px var(--font); letter-spacing: 0.22px; color: var(--text-secondary); }
.muted { color: var(--text-secondary); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Structure */
.shell { display: flex; align-items: flex-start; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; width: 240px; flex: none; display: flex; flex-direction: column; gap: 4px; padding: 24px 16px;
  background: var(--glass); border-right: 1px solid var(--border-subtle); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.sidebar .logo-wrap { padding: 8px 16px 32px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); color: var(--text-secondary); font: 500 13px/18px var(--font); transition: background .15s, color .15s; }
.nav-item:hover { color: var(--text-primary); background: rgba(242, 238, 232, 0.05); }
.nav-item[aria-current="page"] { color: var(--text-primary); background: var(--glass-strong); }
.sidebar .spacer { flex: 1; }
.user { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); background: var(--glass); }
.user .who { flex: 1; min-width: 0; }
.user .who p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full); color: var(--text-secondary); transition: background .15s, color .15s; }
.icon-btn:hover { color: var(--text-primary); background: var(--glass-strong); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 32px 40px 48px; max-width: 1400px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar .titles { display: flex; flex-direction: column; gap: 4px; }
.topbar .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 24px; align-items: flex-start; }
.row > .grow { flex: 1 1 0; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 24px; }

/* Composants */
.card { background: var(--glass); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); padding: 24px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); min-width: 0; }
.card.solid { background: var(--solid); border-color: var(--border-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.card-head .aside { font: 500 12px/16px var(--font); color: var(--text-secondary); white-space: nowrap; }
button.aside:hover, a.aside:hover { color: var(--text-primary); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--r-full); font: 500 13px/18px var(--font); white-space: nowrap; background: var(--bg-inverse); color: var(--text-inverse); border: 1px solid transparent; transition: opacity .15s, background .15s; }
.btn:hover { opacity: .88; }
.btn.secondary { background: var(--glass-strong); color: var(--text-primary); border-color: var(--border-strong); }
.btn.secondary:hover { opacity: 1; background: rgba(242, 238, 232, 0.16); }
.btn.ghost { background: none; color: var(--text-primary); }
.btn.small { padding: 8px 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.danger { background: none; color: var(--accent-line); border-color: var(--accent-soft); }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: var(--r-full); font: 500 12px/16px var(--font); white-space: nowrap; background: var(--glass-strong); color: var(--text-secondary); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.info { background: var(--info-soft); color: var(--info-light); }
.badge.light { background: var(--neutral-light); color: var(--text-inverse); }
button.badge:hover { color: var(--text-primary); }
button.badge.light:hover { color: var(--text-inverse); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--r-md); font: 500 12px/16px var(--font); background: var(--info); color: var(--text-primary); background-size: cover; background-position: center; overflow: hidden; }
.avatar.taupe { background-color: var(--accent); }
.avatar.light { background-color: var(--neutral-light); color: var(--text-inverse); }
.avatar.dark { background-color: var(--bg-hover); }
.avatar.lg { width: 58px; height: 58px; border-radius: var(--r-lg); font-size: 18px; }
.avatar.has-logo { color: transparent; background-color: var(--neutral-light); }
.kpi { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); width: 100%; }
button.list-row, a.list-row { transition: background .15s; border-radius: 0; }
button.list-row:hover, a.list-row:hover { background: rgba(242, 238, 232, 0.04); }
.list-row .stack { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.list-row .amount { width: 90px; text-align: right; font: 500 13px/18px var(--font); }
.list-row .gain { width: 120px; text-align: right; font: 500 13px/18px var(--font); color: var(--accent); }
.list-row .date { width: 70px; color: var(--text-secondary); white-space: nowrap; }
.rank { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--border-strong); border-radius: var(--r-full); font: 500 12px/16px var(--font); color: var(--text-secondary); }
.is-done .label-m { color: var(--text-tertiary); }
.check { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1px solid var(--border-strong); border-radius: var(--r-full); }
.check svg { width: 12px; height: 12px; stroke: var(--text-inverse); display: none; }
.check[aria-checked="true"] { background: var(--bg-inverse); border-color: var(--bg-inverse); }
.check[aria-checked="true"] svg { display: block; }
.toggle { position: relative; width: 38px; height: 22px; flex: none; border-radius: var(--r-full); background: var(--glass-strong); transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-secondary); transition: transform .2s, background .2s; }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(16px); background: var(--bg-inverse); }
.round { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--r-full); background: var(--glass-strong); color: var(--text-primary); }
.empty { padding: 20px 16px; color: var(--text-secondary); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font: 400 11px/16px var(--font); letter-spacing: 0.22px; color: var(--text-secondary); }
.input, select.input, textarea.input { width: 100%; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--border-subtle); background: var(--glass); font: 400 14px/22px var(--font); color: var(--text-primary); outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--accent-line); }
.input::placeholder { color: var(--text-tertiary); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23aba49b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
select.input option { background: #161617; color: var(--text-primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.error { color: var(--accent-line); font: 400 12px/16px var(--font); min-height: 16px; }

/* Connexion et installation */
.login { position: relative; overflow: hidden; display: flex; gap: 0; min-height: 100vh; padding: 16px; }
.login-photo { position: relative; z-index: 1; flex: 0 0 49.5%; min-height: 560px; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(60% 70% at 62% 68%, #0a0a0c 30%, transparent 100%), radial-gradient(95% 62% at 50% -12%, #ac9480, transparent 100%), #33271e; }
.tile { position: absolute; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 24px; border-radius: var(--r-xl); background: var(--glass-strong); border: 1px solid var(--border-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.tile.logo-tile { top: 32px; left: 32px; width: 120px; height: 120px; align-items: center; justify-content: center; }
.tile.t1 { left: 32px; bottom: 32px; height: 200px; width: calc(50% - 40px); }
.tile.t2 { right: 32px; bottom: 32px; height: 200px; width: calc(50% - 40px); }
.login-panel { position: relative; flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.halo { position: absolute; border-radius: 50%; pointer-events: none; }
.halo.h1 { width: 520px; height: 520px; right: -100px; top: -140px; background: var(--accent); filter: blur(220px); opacity: .35; }
.halo.h2 { width: 420px; height: 420px; left: 44%; bottom: -120px; background: var(--info); filter: blur(200px); opacity: .5; }
.login-card { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; padding: 40px; border-color: var(--border-strong); }
.login-card form { display: flex; flex-direction: column; gap: 24px; }
.login-card .fields { display: flex; flex-direction: column; gap: 16px; }
.login-card .line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); cursor: pointer; }
.remember input { accent-color: var(--accent); width: 14px; height: 14px; }
.link { font: 500 12px/16px var(--font); color: var(--text-primary); }
.link:hover { text-decoration: underline; }

/* Dashboard */
.hero { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.hero .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.display-xl { font: 500 72px/80px var(--font); letter-spacing: -1.44px; white-space: nowrap; }
.progress { height: 4px; border-radius: var(--r-full); background: var(--glass-strong); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 12px; padding-top: 16px; height: 160px; }
.bars .m { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.bars .m i { display: block; width: 100%; min-height: 4px; border-radius: 6px; background: var(--info); }
.bars .m.max i { background: var(--accent); }
.bars .m.now i { background: var(--accent-line); }
.kpis-side { width: 300px; flex: none; }

/* Clients */
.table-head { display: flex; align-items: center; gap: 16px; padding: 8px 16px; color: var(--text-tertiary); }
.table-head .overline { color: var(--text-tertiary); }
.c-ca, .c-enc { width: 100px; text-align: right; }
.c-st { width: 72px; display: flex; justify-content: flex-end; }
.client-row { border-radius: 0; }
.client-row[aria-selected="true"] { background: var(--glass-strong); border-radius: var(--r-md); border-bottom-color: transparent; }
.client-row .c-enc { color: var(--text-secondary); }
.detail { width: 380px; flex: none; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 32px; }
.detail .head { display: flex; align-items: center; gap: 16px; }
.detail .minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--glass); }
.mini b { font: 500 18px/26px var(--font); }
.detail .list-row { padding-left: 0; padding-right: 0; }
.detail .list-row .amount { width: auto; }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.kcol { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--r-xl); min-height: 160px; }
.kcol.over { border-color: var(--accent-line); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 4px; }
.kcol-head .count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-full); background: var(--glass-strong); color: var(--text-secondary); font: 500 12px/16px var(--font); }
.kcol-head .icon-btn { margin-left: auto; color: var(--text-primary); }
.kcard { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--solid); border: 1px solid var(--border-subtle); cursor: grab; width: 100%; }
.kcard:hover { border-color: var(--border-strong); }
.kcard.dragging { opacity: .4; }
.kcard .client { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font: 400 14px/22px var(--font); }
.kcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.kadd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; width: 100%; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-secondary); font: 500 13px/18px var(--font); }
.kadd:hover { color: var(--text-primary); }
.knew { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--solid); border: 1px solid var(--accent-line); }
.knew .acts { display: flex; gap: 8px; align-items: center; }

/* Configuration */
.settings { display: flex; gap: 24px; align-items: flex-start; }
.subnav { width: 220px; flex: none; display: flex; flex-direction: column; gap: 4px; padding: 12px; position: sticky; top: 32px; }
.subnav a { padding: 12px 16px; border-radius: var(--r-md); color: var(--text-secondary); font: 500 13px/18px var(--font); }
.subnav a:hover, .subnav a.on { color: var(--text-primary); background: var(--glass-strong); }
.settings .card h2 { padding-bottom: 12px; }
.pref { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.pref .stack { flex: 1; min-width: 0; }
.note { font: 400 12px/18px var(--font); color: var(--text-secondary); padding-top: 12px; }

/* Fenêtres et messages */
.modal-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(5, 5, 6, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.modal { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 20px; padding: 32px; background: #131314; border-color: var(--border-strong); }
.modal .acts { display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.modal .acts .left { margin-right: auto; }
#toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { padding: 14px 18px; border-radius: var(--r-lg); background: #161617; border: 1px solid var(--border-strong); font: 400 13px/20px var(--font); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.toast.err { border-color: var(--accent); }

@media (max-width: 1180px) {
  .row { flex-wrap: wrap; }
  .row > .grow { flex-basis: 100%; }
  .kpis-side, .detail { width: 100%; position: static; }
  .kpis-side { flex-direction: row; flex-wrap: wrap; }
  .kpis-side > * { flex: 1 1 200px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings { flex-direction: column; }
  .subnav { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .display-xl { font-size: 52px; line-height: 60px; }
}
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .sidebar .logo-wrap { padding: 8px 12px; }
  .sidebar .spacer, .nav-item span, .user .who { display: none; }
  .user { margin-left: auto; padding: 6px; }
  .main { padding: 20px 16px 40px; }
  .login { flex-direction: column; }
  .login-photo { flex: none; min-height: 300px; }
  .tile.t1, .tile.t2 { height: 120px; }
  .board, .form-grid { grid-template-columns: 1fr; }
  .list-row .date { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Ajustements de mise en page */
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.row[data-filters] { gap: 8px; padding-bottom: 8px; }
.subs { width: 420px; flex: none; }
.subs .kadd { margin-top: 12px; }
.table-head .stack { flex: 1; }
.login-card > div { display: flex; flex-direction: column; gap: 8px; }
.list-row > button.stack { align-items: flex-start; }
.topbar select.input { width: auto; padding: 11px 40px 11px 20px; border-radius: var(--r-full); background-color: var(--glass-strong); border-color: var(--border-strong); font: 500 13px/18px var(--font); }
@media (max-width: 1180px) { .subs { width: 100%; } }

.stack { display: flex; flex-direction: column; min-width: 0; }
.detail .head .stack { flex: 1; gap: 4px; align-items: flex-start; }
.error:empty { display: none; }
.user .icon-btn { width: 24px; height: 24px; }
.user .icon-btn svg { width: 18px; height: 18px; }
.pref .stack { flex: 1; }
@media (max-width: 760px) { .tile.t1, .tile.t2 { display: none; } .login-photo { min-height: 180px; } }

/* Fond animé (assets/bg.js) : le canvas recouvre le dégradé CSS de repli. */
#bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.login-photo > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Chiffre d'affaires masqué par défaut */
.hero-tools { display: inline-flex; align-items: center; gap: 8px; }

.kadd.more { margin-top: 12px; justify-content: center; }

/* Application installée (fenêtre autonome) : la barre latérale laisse la place aux boutons de fenêtre de macOS. */
@media (display-mode: standalone) { .sidebar { padding-top: 28px; } }

textarea.input { resize: vertical; min-height: 110px; line-height: 20px; font-size: 13px; }

/* Coffre d'accès */
.cred { align-items: flex-start; padding-left: 0; padding-right: 0; }
.cred > .stack { flex: 1; align-items: flex-start; text-align: left; }
.cred-pass { margin-top: 4px; font: 400 13px/18px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text-primary); word-break: break-all; }
.cred-pass .masked { letter-spacing: 2px; color: var(--text-secondary); }
.cred-tools { display: flex; gap: 2px; }

/* Fiche client : raccourcis, factures défilantes */
.shortcuts { display: flex; align-items: center; gap: 8px; }
.shortcut { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: var(--r-lg); background: var(--glass); color: var(--text-primary); font: 500 12px/16px var(--font); text-decoration: none; transition: background .15s, opacity .15s; }
.shortcut:hover { background: var(--glass-strong); }
.shortcut.empty-link { opacity: .45; }
.shortcut.empty-link:hover { opacity: .8; }
.shortcuts .icon-btn .ic { width: 16px; height: 16px; }
.inv-scroll { max-height: 264px; overflow-y: auto; overscroll-behavior: contain; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; }
.inv-scroll:focus-visible { outline: 2px solid var(--text-secondary); outline-offset: 2px; border-radius: var(--r-md, 8px); }

/* Base clients : recherche */
.search { position: relative; display: block; margin-bottom: 8px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-secondary); pointer-events: none; }
.search .input { width: 100%; padding-left: 40px; }
.search .input::-webkit-search-cancel-button { cursor: pointer; }
.client-row[hidden], .search-empty[hidden] { display: none; }
.contact { align-items: center; padding-left: 0; padding-right: 0; }
.contact > .stack { flex: 1; align-items: flex-start; text-align: left; gap: 2px; min-width: 0; }
.contact .caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.side-col { display: flex; flex-direction: column; gap: 24px; width: 420px; flex: none; }
.side-col .subs { width: auto; }
.side-col .minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.side-col .mini .caption { margin-top: -4px; }
@media (max-width: 1180px) { .side-col { width: 100%; } }
