/* Portail des applications : feuille de style principale.
   Les couleurs et la police viennent de /theme.css (réglées dans « Apparence »). */

:root {
  --primary: #1d4ed8; --on-primary: #fff; --secondary: #0f766e; --on-secondary: #fff;
  --bg: #f6f7f9; --text: #1f2937; --header: #fff; --on-header: #111827;
  --font: system-ui, sans-serif;
  --surface: #fff; --surface-2: #f1f3f6; --border: #e2e5ea; --muted: #5b6472;
  --ok: #15803d; --warn: #b45309; --danger: #b91c1c; --info: #1e40af;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0f1115; --text: #e5e7eb; --header: #161a21; --on-header: #e5e7eb;
  --surface: #171b22; --surface-2: #1f242d; --border: #2b313c; --muted: #9aa3b2;
  --ok: #4ade80; --warn: #fbbf24; --danger: #f87171; --info: #93c5fd;
  --shadow: none; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #0f1115; --text: #e5e7eb; --header: #161a21; --on-header: #e5e7eb;
    --surface: #171b22; --surface-2: #1f242d; --border: #2b313c; --muted: #9aa3b2;
    --ok: #4ade80; --warn: #fbbf24; --danger: #f87171; --info: #93c5fd;
    --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px;
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--primary); }
html[data-theme="dark"] :is(.container, .admin-content, .card) a:not(.btn):not(.stat):not(.tabs a) { color: color-mix(in srgb, var(--primary) 55%, white); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] :is(.container, .admin-content, .card) a:not(.btn):not(.stat):not(.tabs a) { color: color-mix(in srgb, var(--primary) 55%, white); } }
h1 { font-size: 1.6rem; margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 99; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* En-tête */
.topbar { background: var(--header); color: var(--on-header); display: flex; align-items: center; gap: 1.5rem;
  padding: .6rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 650; }
.logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; } html[data-theme="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .logo-light { display: none; } html[data-theme="system"] .logo-dark { display: inline; } }
.topnav { display: flex; gap: .25rem; }
.topnav a { color: inherit; text-decoration: none; padding: .45rem .75rem; border-radius: 8px; opacity: .85; }
.topnav a:hover { background: color-mix(in srgb, var(--on-header) 8%, transparent); opacity: 1; }
.topnav a.active { background: color-mix(in srgb, var(--primary) 14%, transparent); opacity: 1; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.bell { position: relative; color: inherit; display: inline-flex; padding: .35rem; border-radius: 8px; }
.badge-count { position: absolute; top: -2px; right: -4px; background: var(--danger); color: #fff; border-radius: 999px;
  font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.badge-count.inline { position: static; display: inline-grid; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.menu-panel { position: absolute; right: 0; top: 2.6rem; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 220px; padding: .4rem; display: flex; flex-direction: column; }
.menu-panel a, .menu-panel .linklike { padding: .55rem .75rem; border-radius: 6px; color: inherit; text-decoration: none; text-align: left; }
.menu-panel a:hover, .menu-panel .linklike:hover { background: var(--surface-2); }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; color: inherit; }

.container { max-width: 1180px; width: 100%; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
.footer { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; padding: 1.25rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
.footer a { color: var(--muted); }

/* Messages */
.messages { display: grid; gap: .5rem; margin-bottom: 1rem; }
.msg { padding: .75rem 1rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); border-left: 4px solid var(--info); }
.msg-success { border-left-color: var(--ok); } .msg-error { border-left-color: var(--danger); }
.msg-warning { border-left-color: var(--warn); } .msg ul { margin: .25rem 0 0; padding-left: 1.2rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn-small { padding: .35rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; }
a.btn-primary, a.btn-primary:visited { color: var(--on-primary); }

/* Cartes, grilles */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.narrow { max-width: 560px; margin: 2rem auto; }
.narrow-form { max-width: 640px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.empty { padding: 1.5rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.field label { font-weight: 550; font-size: .92rem; }
.field-check label { display: flex; gap: .5rem; align-items: center; font-weight: 450; }
.field ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .25rem .75rem; max-height: 220px; overflow: auto; }
.field ul label { font-weight: 400; display: flex; gap: .4rem; align-items: center; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=date], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; width: 100%; }
input[type=color] { width: 100%; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.help { color: var(--muted); font-size: .85rem; }
.error { color: var(--danger); }
.has-error input, .has-error select { border-color: var(--danger); }
.req { color: var(--danger); }
fieldset.card { border: 1px solid var(--border); }
fieldset legend { font-weight: 650; padding: 0 .35rem; }
.form-actions { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; margin-top: .5rem; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: .75rem 0; }
.spacer { flex: 1; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.filters input, .filters select { width: auto; min-width: 180px; }
.filters label { display: flex; align-items: center; gap: .35rem; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.card .table-wrap { border: 0; }

/* Pastilles de statut */
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.pill-ok, .pill-accepted, .pill-active, .pill-actif { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill-warn, .pill-maintenance, .pill-verrouille, .pill-review { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill-refused, .pill-desactive { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill-pending, .pill-wait, .pill-proposed, .pill-en-attente-dactivation { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.pill-new { background: var(--secondary); color: var(--on-secondary); }

/* Accueil */
.home-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.home-head h1 { margin: 0; }
.home-tools { display: flex; gap: .5rem; }
.home-tools input { min-width: 260px; }
.home-tools select { width: auto; }
h2 .count { color: var(--muted); font-weight: 500; font-size: .9rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tile { position: relative; display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, border-color .12s; }
.tile:not(.tile-locked):hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tile-link { position: absolute; inset: 0; border-radius: 14px; z-index: 1; }
.tile-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary); display: grid; place-items: center; font-weight: 750; font-size: 1.05rem; overflow: hidden; }
.tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.tile-title { font-weight: 650; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.tile-desc { margin: .2rem 0 .4rem; color: var(--muted); font-size: .88rem; }
.tile-cat { font-size: .75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .05rem .5rem; }
.tile-body { flex: 1; min-width: 0; }
.tile-locked { background: var(--surface-2); box-shadow: none; flex-wrap: wrap; }
.tile-locked .tile-icon { filter: grayscale(1); opacity: .6; }
.tile-locked .tile-title, .tile-locked .tile-desc { opacity: .75; }
.tile-action { width: 100%; display: flex; justify-content: flex-end; position: relative; z-index: 2; }
.tile-maint { opacity: .8; }
.layout-list { grid-template-columns: 1fr; gap: .5rem; }
.layout-list .tile { padding: .7rem 1rem; align-items: center; }
.layout-list .tile-locked .tile-action { width: auto; }

.others { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-top: 1rem; }
.others > summary { cursor: pointer; padding: 1rem 1.25rem; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; font-weight: 650; list-style: none; }
.others > summary::-webkit-details-marker { display: none; }
.others > summary::before { content: "›"; display: inline-block; transition: transform .15s; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.others[open] > summary::before { transform: rotate(90deg); }
.others > .tiles { padding: 0 1.25rem 1.25rem; margin: 0; }

/* Fenêtre de demande */
.dialog { border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; width: min(520px, calc(100vw - 2rem)); background: var(--surface); color: var(--text); }
.dialog::backdrop { background: rgba(15, 17, 21, .5); }
.dialog h2 { margin-top: 0; }
.dialog label { font-weight: 600; display: block; margin-bottom: .3rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }

/* Connexion */
.login-page { background: var(--bg) center / cover no-repeat; }
.login-wrap { display: grid; place-items: center; padding: 2rem 1rem; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; width: min(420px, 100%); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.login-card.wide { width: min(560px, 100%); }
.login-brand { text-align: center; margin-bottom: 1.25rem; }
.login-brand .logo { height: 48px; max-width: 220px; margin-bottom: .5rem; }
.login-brand h1 { font-size: 1.4rem; margin: 0; }
.btn-ms { width: 100%; }
.sep { text-align: center; color: var(--muted); margin: 1rem 0; font-size: .85rem; }
.forgot { margin-top: 1rem; font-size: .9rem; } .forgot summary { cursor: pointer; color: var(--primary); }
.notice { font-size: .8rem; color: var(--muted); margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.qr { background: #fff; padding: 10px; border-radius: 10px; width: 220px; margin: .75rem 0; }
.qr svg { width: 200px; height: 200px; display: block; }
.secret { word-break: break-all; }
.steps li { margin-bottom: .6rem; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; list-style: none; padding: 0; font-size: 1.1rem; }
.strength { margin: -.4rem 0 1rem; }
.strength-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.strength[data-level="2"] .strength-bar span { background: var(--warn); }
.strength[data-level="3"] .strength-bar span, .strength[data-level="4"] .strength-bar span { background: var(--ok); }
.w-0 { width: 0 !important; } .w-1 { width: 25% !important; } .w-2 { width: 50% !important; } .w-3 { width: 75% !important; } .w-4 { width: 100% !important; }

/* Administration */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; max-width: 1400px; width: 100%; margin: 0 auto; padding: 1.5rem; }
.sidenav { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 4.5rem; align-self: start; }
.sidenav a { padding: .5rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.sidenav a:hover { background: var(--surface-2); }
.sidenav a.active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.stat-num { font-size: 1.8rem; font-weight: 750; color: var(--primary); line-height: 1.1; }
a.stat:hover { border-color: var(--primary); }
.list { padding-left: 1.1rem; } .list li { margin-bottom: .4rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .35rem; align-items: center; }
.tabs a.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.danger-zone summary { cursor: pointer; color: var(--danger); padding: .55rem 0; }
.linkbox { border-left: 4px solid var(--ok); }
.copy-row { display: flex; gap: .5rem; } .copy-row input { font-family: ui-monospace, monospace; font-size: .85rem; }
.request blockquote { margin: .5rem 0 1rem; padding: .6rem .9rem; background: var(--surface-2); border-radius: 8px; }
.request-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.request .small { margin: 0; }
.decide label { font-weight: 600; font-size: .9rem; }
.decide-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-top: .6rem; }
.decide-row label { display: flex; flex-direction: column; gap: .2rem; font-weight: 500; }
.decide-row input, .decide-row select { width: auto; }
.matrix-wrap { max-height: 70vh; }
.matrix th.sticky { position: sticky; left: 0; background: var(--surface); z-index: 2; min-width: 180px; }
.matrix thead th { position: sticky; top: 0; z-index: 1; }
.matrix thead th.sticky { z-index: 3; background: var(--surface-2); }
.matrix .app-col { text-align: center; min-width: 120px; text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--text); }
.matrix td.cell { text-align: center; }
.matrix td.cell.on { background: color-mix(in srgb, var(--ok) 9%, transparent); }
.matrix td.cell input[type=checkbox] { width: 18px; height: 18px; }
.matrix td.cell:has(input[type=checkbox]:not(:checked)) select { display: none; }
.matrix td.cell select { width: auto; padding: .15rem .3rem; font-size: .8rem; margin-top: .25rem; display: block; margin-inline: auto; }
.notes { list-style: none; padding: 0; } .notes li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: .5rem; }
.notes li.unread { border-left: 4px solid var(--primary); font-weight: 550; }
.pager { display: flex; gap: 1rem; justify-content: center; }

/* Apparence */
.appearance { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; align-items: start; }
.preview-col { position: sticky; top: 4.5rem; }
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 1rem; }
.current-file { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.current-file .thumb { height: 28px; max-width: 80px; object-fit: contain; background: var(--surface-2); border-radius: 4px; }
label.inline { display: inline-flex; align-items: center; gap: .3rem; font-weight: 400; font-size: .85rem; }
.preview { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; --pv-primary: var(--primary); --pv-secondary: var(--secondary);
  --pv-bg: var(--bg); --pv-text: var(--text); --pv-header: var(--header); --pv-on-header: var(--on-header); --pv-on-primary: var(--on-primary); --pv-font: var(--font); font-family: var(--pv-font); }
.pv-header { background: var(--pv-header); color: var(--pv-on-header); padding: .6rem .8rem; display: flex; align-items: center; gap: .5rem; font-weight: 650; border-bottom: 1px solid rgba(0,0,0,.08); }
.pv-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--pv-primary); }
.pv-body { background: var(--pv-bg); color: var(--pv-text); padding: .9rem; }
.pv-title { font-weight: 650; margin-bottom: .5rem; }
.pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.pv-tile { background: #fff; color: #1f2937; border-radius: 8px; padding: .5rem; display: flex; gap: .4rem; align-items: center; font-size: .85rem; border: 1px solid rgba(0,0,0,.08); }
.pv-icon { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: .65rem; font-weight: 750; background: color-mix(in srgb, var(--pv-primary) 14%, white); color: var(--pv-primary); }
.pv-text { font-size: .88rem; } .pv-link { color: var(--pv-primary); text-decoration: underline; }
.pv-btn, .pv-btn2 { display: inline-block; padding: .35rem .7rem; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.pv-btn { background: var(--pv-primary); color: var(--pv-on-primary); }
.pv-btn2 { background: var(--pv-secondary); color: #fff; }
.versions { list-style: none; padding: 0; margin: 0 0 1rem; max-height: 320px; overflow: auto; }
.versions li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.contrast-bad { color: var(--danger); }

/* Mobile (à partir de 360 px) */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; padding: 1rem; }
  .sidenav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: .25rem; }
  .sidenav a { white-space: nowrap; }
  .appearance { grid-template-columns: 1fr; }
  .preview-col { position: static; }
}
@media (max-width: 640px) {
  .topbar { padding: .5rem 1rem; gap: .75rem; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; overflow-x: auto; }
  .menu-name { display: none; }
  .topnav a { white-space: nowrap; }
  .home-tools { flex-wrap: wrap; }
  .container { padding: 1.25rem 1rem 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .home-tools, .home-tools input { width: 100%; min-width: 0; }
  .filters input, .filters select { min-width: 0; width: 100%; }
  .tiles { grid-template-columns: 1fr; }
}
