/* La Brygade — style « Étal illustré » */
:root {
  --bg: #FBF7EF;
  --surface: #FFFFFF;
  --sand: #F3EADB;
  --ink: #2B2A26;
  --ink-soft: #5C574D;
  --muted: #6B6559;
  --line: #DCD2C0;
  --line-soft: #ECE4D6;
  --accent: #C8492F;
  --accent-dark: #A63A24;
  --on-accent: #FFFFFF;
  --success-soft: #E4EFD9;
  --info-soft: #EEF1D6;
  --error-soft: #F8E0DC;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(43 42 38 / 6%), 0 6px 20px rgb(43 42 38 / 6%);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font-body); background: var(--bg); color: var(--ink); }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-bottom: .5rem; }
img { display: block; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* En-tête */
.topbar { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding: .9rem 2rem; }
.brand { display: flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-decoration: none; }
.topbar nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; }
.topbar nav a { padding: .5rem .9rem; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.topbar nav a.active { background: var(--ink); color: var(--bg); }
.topbar nav a:not(.active):hover { background: var(--sand); color: var(--ink); }
.userbox { display: flex; align-items: center; gap: .5rem; margin: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.username { font-weight: 500; }
@media (max-width: 640px) {
  .topbar { padding: .75rem 1rem; }
  .username { display: none; }
  .topbar nav { order: 3; flex-basis: 100%; }
}

.container { max-width: 1160px; margin: 0 auto; padding: .5rem 1.5rem 8rem; }
@media (max-width: 640px) { .container { padding: .25rem 1rem 8rem; } }

/* Boutons & liens */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-secondary, .btn-small { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover, .btn-small:hover { background: var(--sand); color: var(--ink); }
.btn-small { min-height: 36px; padding: .3rem .9rem; font-size: .85rem; }
.btn-slack { background: #4A154B; color: #FFFFFF; min-height: 52px; padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-slack:hover { background: #3A0F3B; color: #FFFFFF; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent); }
.link.danger { color: var(--accent); }

/* Messages */
.flash { padding: .8rem 1.1rem; border-radius: var(--radius-sm); margin: .5rem 0 1.25rem; background: var(--info-soft); }
.flash-success { background: var(--success-soft); }
.flash-error { background: var(--error-soft); }

/* Panneaux génériques */
.panel { background: var(--surface); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.panel-head h2 { margin: 0; }
.stack { display: grid; gap: 1.25rem; }
.pill { display: inline-block; font-family: var(--font-body); font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--sand); color: var(--muted); vertical-align: middle; }
.pill-open { background: var(--success-soft); color: #2F6B3A; }
.opt { font-size: .78rem; font-weight: 600; background: var(--sand); padding: .1rem .5rem; border-radius: 999px; margin-left: .25rem; }

/* Connexion / état vide */
.login { display: grid; place-items: center; min-height: 70vh; }
.login-card { text-align: center; max-width: 400px; width: 100%; display: grid; gap: 1rem; justify-items: center; }
.login-card .flash { text-align: left; width: 100%; }
.login-card h1 { font-size: 3rem; }
.login-visual, .empty-visual { display: flex; align-items: flex-end; justify-content: center; }
.dev-login { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; }
.dev-login p { flex-basis: 100%; margin: 0; }
.dev-login input[name=name] { width: 160px; }
.empty { text-align: center; padding: 4rem 1rem; display: grid; gap: .75rem; justify-items: center; }

/* Bandeau */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: 2.25rem 2.5rem 1.75rem; border-radius: 28px; background: var(--sand); margin-bottom: 2rem;
}
.hero-text { flex: 1 1 420px; display: grid; gap: .6rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.02; }
.eyebrow { margin: 0; font-size: .9rem; font-weight: 600; color: var(--accent); }
.countdown.urgent .countdown-value { color: var(--accent-dark); }
.hero-sub { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }
.hero-message { margin: 0; white-space: pre-line; }
.hero-closed .eyebrow { color: var(--muted); }
.hero-visual { display: flex; align-items: flex-end; }
.hero-visual img { width: 110px; height: 110px; }
.hero-visual img.hero-main { width: 170px; height: 170px; }
.month-strip { flex-basis: 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.month-strip li { display: grid; gap: 4px; justify-items: center; }
.month-strip .bar { width: 100%; height: 8px; border-radius: 4px; background: #EBE3D4; }
.month-strip .past .bar { background: var(--line); }
.month-strip .current .bar { background: var(--accent); }
.month-strip .label { font-size: .75rem; color: var(--muted); }
.month-strip .current .label { color: var(--accent); font-weight: 600; }

/* Barre de recherche + filtres */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .5rem;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 2rem;
}
.search { flex: 1 1 320px; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.1rem; border-radius: 999px; background: var(--sand); color: var(--ink-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 0; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-count { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.chips { display: flex; gap: .4rem; padding-right: .25rem; }
.chip { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.chip:hover { background: var(--sand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .toolbar { border-radius: var(--radius); padding: .5rem; background: transparent; box-shadow: none; gap: .6rem; }
  .search { flex-basis: 100%; background: var(--surface); box-shadow: var(--shadow); min-height: 50px; }
  .chips { padding: 0; }
  .chip { min-height: 40px; }
  .search-count { display: none; }
}

/* Sections & grille */
.section { margin-bottom: 2.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.section-head p { margin: 0; font-size: .9rem; }
.section-title-soft { font-weight: 500 !important; font-style: italic; color: var(--ink-soft); font-size: 1.6rem !important; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.no-results { text-align: center; color: var(--muted); padding: 1rem; }

/* Carte produit */
.product {
  display: flex; flex-direction: column; gap: .75rem; padding: 1rem;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.product.selected { box-shadow: 0 0 0 2px var(--ink); }
.product-visual {
  position: relative; height: 150px; border-radius: 18px; background: var(--tint, var(--sand));
  display: flex; align-items: center; justify-content: center; flex: none;
}
.product-visual img { width: 116px; height: 116px; transition: transform .2s; }
.product:hover .product-visual img { transform: rotate(-4deg) scale(1.04); }
.qty-badge {
  position: absolute; top: 10px; right: 10px; min-width: 34px; height: 34px; padding: 0 .5rem;
  border-radius: 999px; background: var(--ink); color: #FFFFFF; font-weight: 600;
  display: none; align-items: center; justify-content: center;
}
.product.selected .qty-badge { display: flex; }
.product-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .7rem; }
.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.product-head .name { font-size: 1.45rem; }
.unit { font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* Préférences en pastilles (radios) */
.options { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.opt-pill { position: relative; cursor: pointer; }
.opt-pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-pill span {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 .75rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .82rem; font-weight: 500; transition: background .1s;
}
.opt-pill:hover span { background: var(--sand); }
.opt-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.opt-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.options:disabled .opt-pill { cursor: default; opacity: .6; }

/* Stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 3px; border-radius: 999px; background: var(--sand); }
.stepper input {
  flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; text-align: center;
  font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--ink); appearance: textfield; -moz-appearance: textfield;
}
.stepper input::placeholder { color: var(--ink); font-weight: 600; font-size: .95rem; opacity: 1; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { flex: 0 0 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; font-size: 1.35rem; line-height: 1; color: var(--ink); cursor: pointer; }
.step:hover:not(:disabled) { background: rgb(43 42 38 / 8%); }
.step-add { background: var(--accent); color: #FFFFFF; }
.step-add:hover:not(:disabled) { background: var(--accent-dark); }
.step:disabled { opacity: .4; cursor: not-allowed; }
.product:not(.selected) .step[data-step="-1"] { visibility: hidden; }

/* Variante compacte (hors saison) */
.grid-compact { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem; }
.grid-compact .product { flex-direction: row; align-items: center; gap: .75rem; padding: .5rem .6rem .5rem .5rem; border-radius: 20px; }
.grid-compact .product-visual { width: 60px; height: 60px; border-radius: 50%; }
.grid-compact .product-visual img { width: 44px; height: 44px; }
.grid-compact .qty-badge { display: none !important; }
.grid-compact .product-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
.grid-compact .product-head { flex: 1 1 100px; flex-direction: column; gap: 0; }
.grid-compact .product-head .name { font-size: 1.1rem; }
.grid-compact .options { flex-basis: 100%; order: 3; }
.grid-compact .product:not(.selected) .options { display: none; }
.grid-compact .stepper { margin: 0; flex: 0 0 150px; }

/* Mobile : 2 colonnes ; un produit à préférences s'élargit quand il est choisi */
@media (max-width: 640px) {
  .hero { padding: 1.25rem 1.1rem 1rem; border-radius: var(--radius); position: relative; overflow: hidden; gap: .75rem; margin-bottom: 1.25rem; }
  .hero-text { flex-basis: 100%; padding-right: 96px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: .92rem; }
  .hero-visual { position: absolute; top: 10px; right: -16px; }
  .hero-visual img { width: 56px; height: 56px; }
  .hero-visual img.hero-main { width: 92px; height: 92px; }
  .month-strip .label { font-size: 0; }
  .month-strip .label::first-letter { font-size: .68rem; }
  .grid:not(.grid-compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: .65rem; }
  .grid:not(.grid-compact) .product { padding: .6rem; gap: .5rem; border-radius: 20px; }
  .grid:not(.grid-compact) .product-visual { height: 96px; border-radius: 14px; }
  .grid:not(.grid-compact) .product-visual img { width: 72px; height: 72px; }
  .grid:not(.grid-compact) .product-head .name { font-size: 1.1rem; }
  .grid:not(.grid-compact) .product:not(.selected) .options { display: none; }
  .grid:not(.grid-compact) .product.has-options.selected { grid-column: span 2; flex-direction: row; }
  .grid:not(.grid-compact) .product.has-options.selected .product-visual { width: 108px; height: auto; min-height: 124px; }
  .grid-compact { grid-template-columns: minmax(0, 1fr); }
  .grid-compact .stepper { flex-basis: 140px; }
  .step { flex-basis: 40px; height: 40px; }
  .stepper input { height: 40px; }
}

.comment-panel { display: grid; gap: .5rem; }
.comment-panel label { font-size: 1rem; }

/* Panier flottant */
.cartbar { position: fixed; left: 0; right: 0; bottom: 20px; z-index: 20; padding: 0 1.5rem; pointer-events: none; }
.cartbar-inner {
  pointer-events: auto; max-width: 1112px; margin: 0 auto; display: flex; align-items: center; gap: 1rem;
  padding: .55rem .55rem .55rem .75rem; border-radius: 999px; background: var(--ink); color: var(--bg);
  box-shadow: 0 12px 32px rgb(43 42 38 / 25%);
}
.cart-thumbs { display: flex; align-items: center; }
.cart-thumbs:empty { display: none; }
.cart-thumb {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--tint, var(--sand));
  display: flex; align-items: center; justify-content: center;
}
.cart-thumb + .cart-thumb { margin-left: -12px; }
.cart-thumb img { width: 32px; height: 32px; }
.cart-thumb-more { background: var(--sand); color: var(--ink); font-size: .8rem; font-weight: 600; }
.cart-summary { flex: 1; min-width: 0; padding-left: .25rem; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-light { color: var(--bg); font-size: .9rem; white-space: nowrap; }
.link-light:hover { color: #F6C9BD; }
.cartbar .btn-primary { min-height: 50px; padding: 0 1.6rem; }
.cartbar.dirty .btn-primary { box-shadow: 0 0 0 3px rgb(200 73 47 / 40%); }
@media (max-width: 640px) {
  .cartbar { bottom: 12px; padding: 0 .6rem; }
  .cartbar-inner { gap: .6rem; }
  .cart-thumb { width: 40px; height: 40px; }
  .cart-thumb img { width: 28px; height: 28px; }
  .cartbar .link-light { display: none; }
  .cartbar .btn-primary { min-height: 46px; padding: 0 1.2rem; }
}

/* Formulaires */
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; width: 100%;
}
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.row .narrow { max-width: 90px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.inline-form { display: flex; gap: .5rem; }
.inline-form input { width: auto; }

/* Lignes de commande (historique, commande close) */
.order-lines { list-style: none; padding: 0; margin: .5rem 0; }
.order-lines li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.order-lines li:last-child { border-bottom: 0; }
.line-label { display: flex; align-items: center; gap: .6rem; }
.line-thumb { width: 36px; height: 36px; border-radius: 50%; background: var(--tint, var(--sand)); display: flex; align-items: center; justify-content: center; flex: none; }
.note { margin: .5rem 0 0; color: var(--ink-soft); }
.note-label { display: inline-block; margin-right: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.line-thumb img { width: 26px; height: 26px; }

/* Admin */
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.25rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 400px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.campaign-list { list-style: none; padding: 0; margin: 0; }
.campaign-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .6rem; border-bottom: 1px solid var(--line-soft); text-decoration: none; border-radius: 10px; }
.campaign-list a:hover { background: var(--bg); color: var(--ink); }
.campaign-list a > span:first-child { display: grid; }
.list-right { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.stats { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border-radius: var(--radius-sm); padding: .8rem 1.4rem; box-shadow: var(--shadow); }
.stat-value { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .85rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .5rem .4rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.table th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.people { display: grid; gap: .5rem; }
.person { display: grid; gap: .15rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.person:last-child { border-bottom: 0; }
.person-name { display: flex; align-items: center; gap: .5rem; }
.person-items { font-size: .92rem; }
.danger-zone { text-align: right; margin-top: 2rem; }
.months { display: flex; flex-wrap: wrap; gap: .3rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; }
.months legend { font-weight: 600; font-size: .9rem; padding: 0 .25rem; }
.form .month { display: flex; align-items: center; gap: .3rem; font-weight: 500; }
.season-table .m { width: 22px; padding: .45rem 0; text-align: center; }
.season-table td.m.on::after { content: "●"; color: var(--accent); font-size: .7rem; }
.season-table tr.inactive td { opacity: .45; }
.product-cell { display: flex; align-items: center; gap: .6rem; }
.row-actions { display: flex; gap: .75rem; justify-content: flex-end; white-space: nowrap; }
.row-actions form { margin: 0; }
.illustration-picker { display: flex; flex-wrap: wrap; gap: .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; }
.illustration-picker legend { font-weight: 600; font-size: .9rem; padding: 0 .25rem; }
.illustration-picker .opt-pill span { gap: .35rem; min-height: 40px; padding: 0 .7rem 0 .35rem; }
.illustration-picker img { width: 28px; height: 28px; }

/* Propositions d'illustrations */
.hero-compact { padding-bottom: 2rem; }
.hero-compact .hero-visual img { width: 90px; height: 90px; }
.hero-compact .hero-visual img.hero-main { width: 130px; height: 130px; }
.propose-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; margin-bottom: 2rem; }
.propose-form { flex: 999 1 520px; min-width: 0; margin: 0; }
.propose-tips { flex: 1 1 280px; margin: 0; background: var(--sand); box-shadow: none; }
.tips { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; color: var(--ink-soft); }
.tips code { font-size: .85em; background: var(--surface); padding: .05rem .3rem; border-radius: 6px; }
.compare { display: flex; gap: 1rem; flex-wrap: wrap; }
.compare figure { margin: 0; flex: 1 1 140px; display: grid; align-content: start; gap: .4rem; text-align: center; font-size: .85rem; color: var(--muted); }
.compare-small { flex: 0 0 72px !important; }
.compare-small .compare-tile { height: 72px; }
.compare-small .compare-tile img { width: 30px; height: 30px; }
.compare-tile { height: 170px; border-radius: 18px; background: var(--tint, var(--sand)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.compare-tile img { width: 130px; height: 130px; object-fit: contain; }
.compare-empty { border: 2px dashed var(--line); background: var(--bg); color: var(--muted); }
.dropzone { position: relative; display: grid !important; justify-items: center; gap: .2rem; padding: 1.1rem; border: 2px dashed var(--line); border-radius: var(--radius-sm); text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: var(--bg); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-title { font-family: var(--font-display); font-size: 1.1rem; }
.proposal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.proposal-card { background: var(--surface); border-radius: 20px; padding: .6rem; box-shadow: var(--shadow); display: grid; gap: .4rem; }
.proposal-card .compare-tile { height: 120px; }
.proposal-card .compare-tile img { width: 90px; height: 90px; }
.proposal-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.status { font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--sand); color: var(--muted); white-space: nowrap; }
.status-accepted, .status-live { background: var(--success-soft); color: #2F6B3A; }
.status-rejected { background: var(--error-soft); color: var(--accent-dark); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.catalog-tile { position: relative; display: grid; justify-items: center; gap: .3rem; padding: .75rem .5rem .6rem; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.catalog-visual { width: 100%; height: 90px; border-radius: 14px; background: var(--tint, var(--sand)); display: flex; align-items: center; justify-content: center; }
.catalog-visual img { width: 64px; height: 64px; }
.catalog-name { font-family: var(--font-display); font-weight: 700; text-align: center; line-height: 1.2; }
.catalog-cta { font-size: .8rem; color: var(--accent); font-weight: 600; }
.catalog-tile:hover { box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }
.catalog-pending { position: absolute; top: .5rem; right: .5rem; font-size: .68rem; font-weight: 600; background: var(--ink); color: #FFFFFF; padding: .1rem .45rem; border-radius: 999px; }
.review-list { display: grid; gap: 1rem; }
.review-card { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }
.review-card .compare { flex: 1 1 380px; }
.review-body { flex: 1 1 260px; display: grid; gap: .5rem; align-content: start; }
.review-body h3 { font-size: 1.5rem; }
.count-badge { display: inline-flex; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: .75rem; align-items: center; justify-content: center; }
.custom-illustration { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--success-soft); font-weight: 400; }
