/* @author Radouane Drissi | @created 2026-11-21 | @updated 2026-11-25
 *
 * The Marketplace screens. One small design system: colour and spacing tokens, a page shell, cards, a grid, forms, badges, a calendar,
 * an upload area and a booking tracker. Classes only (the page's security policy blocks inline styles), system fonts only (it blocks
 * font files), and no image files (it allows images from this origin only). Light by default, dark when the person's system is dark.
 */

:root {
  --bg: #eef3f1; --surface: #ffffff; --surface-2: #f4f7f6; --fill: #e6edea; --fill-2: #d6e0dc;
  --side: #0f2a24; --side-ink: #c9dcd5; --side-muted: #8fb0a5; --side-hover: #1b4137; --side-line: #1f4a3f; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #cbd5e1;
  --brand: #059669; --brand-2: #047857; --brand-soft: #ecfdf5; --brand-ink: #065f46;
  --warn: #b45309; --warn-soft: #fffbeb; --bad: #be123c; --bad-soft: #fff1f2; --info: #1d4ed8; --info-soft: #eff6ff;
  --radius: 12px; --radius-s: 8px; --shadow: none; --shadow-l: 0 8px 24px rgba(15, 23, 42, .12);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1210; --surface: #111c19; --surface-2: #0e1816; --fill: #1d2b27; --fill-2: #2a3d37;
    --side: #07100d; --side-ink: #b4cac3; --side-muted: #7d9a90; --side-hover: #162822; --side-line: #1a2b26; --ink: #e5eaf3; --ink-2: #c3cddd; --muted: #93a1b8; --line: #243049; --line-2: #33415f;
    --brand: #10b981; --brand-2: #34d399; --brand-soft: #0d2a22; --brand-ink: #a7f3d0;
    --warn: #fbbf24; --warn-soft: #2b2110; --bad: #fb7185; --bad-soft: #2b1219; --info: #93c5fd; --info-soft: #11203d;
    --shadow: none; --shadow-l: 0 10px 30px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; word-break: break-all; }
.muted { color: var(--muted); } .sub { color: var(--muted); font-size: 12px; } .strong { font-weight: 700; }
.right { margin-left: auto; } .hidden { display: none !important; }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
svg.i-l { width: 1.4em; height: 1.4em; }

/* ---------- shell: sidebar, header, content ---------- */
.skip { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--radius-s); text-decoration: none; font-weight: 700; }
.skip:focus { top: 8px; }
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; }
.sidebar .brand { color: #fff; padding: 2px 6px 6px; }
.sidebar .brand small { color: var(--side-muted); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-link { appearance: none; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--side-ink); font-weight: 600; text-align: left; cursor: pointer; }
.side-link svg.i { width: 1.2em; height: 1.2em; color: var(--side-muted); }
.side-link:hover { background: var(--side-hover); color: #fff; }
.side-link[aria-current="page"] { background: var(--brand); color: #fff; }
.side-link[aria-current="page"] svg.i { color: #fff; }
.sidebar :focus-visible { outline-color: #fff; }
.side-foot { margin-top: auto; border-top: 1px solid var(--side-line); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--side-hover); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.side-email { font-size: 12px; color: var(--side-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 24px; min-height: 56px; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); }
.crumb-org { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-page { font-weight: 800; color: var(--ink); }
.crumb-org + .crumb-page::before { content: "/"; color: var(--line-2); margin-right: 8px; font-weight: 400; }
.who { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.scope { width: auto; max-width: 280px; border-radius: 999px; }
.btn.menu-btn { display: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.brand small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: .02em; line-height: 1; margin-top: 2px; }
main { padding: 26px 24px 64px; width: 100%; max-width: 1180px; margin: 0 auto; }
main:focus { outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 62ch; }
.section-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.section-title:first-child { margin-top: 0; }

/* ---------- buttons (flat: solid fills, no outline, no shadow), badges ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-s); border: 0; background: var(--fill); color: var(--ink); font-weight: 650; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--fill-2); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--bad); background: var(--bad-soft); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--fill); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.icon { padding: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- cards and grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; } .card.pad-s { padding: 14px 16px; }
.card.lift { transition: border-color .15s ease, background .15s ease; }
.card.lift:hover { border-color: var(--brand); background: var(--surface-2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.split { margin-top: 20px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.sticky { position: sticky; top: 76px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 14px 0; }

.avatar { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 22px; background: hsl(var(--hue, 160) 70% 93%); color: hsl(var(--hue, 160) 55% 28%); }
.avatar.big { width: 64px; height: 64px; border-radius: 16px; font-size: 30px; }
@media (prefers-color-scheme: dark) { .avatar { background: hsl(var(--hue, 160) 40% 20%); color: hsl(var(--hue, 160) 70% 80%); } }
.bt-RESTAURANT { --hue: 14; } .bt-CAFE { --hue: 28; } .bt-RETAIL { --hue: 262; } .bt-MALL { --hue: 214; } .bt-GROCERY { --hue: 130; } .bt-FITNESS { --hue: 350; }
.bt-HEALTH { --hue: 174; } .bt-BEAUTY { --hue: 322; } .bt-HOTEL { --hue: 240; } .bt-EDUCATION { --hue: 48; } .bt-TRANSPORT { --hue: 196; } .bt-ENTERTAINMENT { --hue: 290; }
.bt-OFFICE { --hue: 220; } .bt-AUTOMOTIVE { --hue: 0; } .bt-OTHER { --hue: 200; }

.pcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; cursor: pointer; text-align: left; width: 100%; }
.pcard-top { display: flex; gap: 12px; align-items: center; }
.pcard h3 { font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.pcard .loc { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.pcard .desc { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.5em; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.price { font-weight: 800; font-size: 16px; letter-spacing: -.01em; } .price small { font-weight: 600; color: var(--muted); font-size: 12px; }

.tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tile .num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tile .lab { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tile.hot { border-color: var(--brand); background: var(--brand-soft); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--info-soft); color: var(--ink-2); border: 1px solid transparent; }
.notice.warn { background: var(--warn-soft); } .notice.ok { background: var(--brand-soft); } .notice.bad { background: var(--bad-soft); }
.notice svg.i { margin-top: 3px; color: var(--info); } .notice.warn svg.i { color: var(--warn); } .notice.ok svg.i { color: var(--brand); } .notice.bad svg.i { color: var(--bad); }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .art { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 28px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; min-height: 190px; border: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .card.lift { transition: none; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.field .help { font-size: 12px; color: var(--muted); } .field .err { font-size: 12px; color: var(--bad); font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-s); background: var(--fill); color: var(--ink); }
input:hover, select:hover, textarea:hover { background: var(--fill-2); }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--bad); background: var(--bad-soft); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.counter { text-align: right; font-size: 12px; color: var(--muted); }
.filters { display: grid; gap: 10px; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)); margin-bottom: 18px; padding: 10px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.filters select, .filters input { border-radius: 999px; }
.search { position: relative; } .search svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 38px; }
.filters select { padding-right: 28px; }

/* ---------- sign in ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--side); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.03em; max-width: 14ch; }
.login-art p { opacity: .9; max-width: 38ch; margin-top: 14px; font-size: 16px; }
.login-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.login-art li { display: flex; gap: 10px; align-items: center; opacity: .95; }
.login-art .brand-mark { background: rgba(255, 255, 255, .18); }
.login-form { display: grid; place-items: center; padding: 32px; }
.login-form form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 4px; }

/* ---------- detail ---------- */
.hero { padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.hero > div:last-child { flex: 1; min-width: 0; }
.hero p { margin-top: 10px; max-width: 70ch; }
.hero h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.hero .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin-top: 8px; align-items: center; }
.hero .meta span { display: inline-flex; gap: 6px; align-items: center; }
.pkg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius-s); background: var(--fill); cursor: pointer; width: 100%; text-align: left; }
.pkg:hover { background: var(--fill-2); }
.pkg[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.pkg .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; color: #fff; font-size: 11px; }
.pkg[aria-pressed="true"] .dot { background: var(--brand); border-color: var(--brand); }
.screen-card { padding: 18px; }
.screen-card h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }

.summary { display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* ---------- calendar ---------- */
.cal { display: grid; gap: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h4 { margin: 0; font-size: 14px; font-weight: 800; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .06em; padding-bottom: 2px; }
.cal-day { appearance: none; aspect-ratio: 1; border-radius: 9px; border: 1px solid transparent; background: var(--fill); font-weight: 650; font-size: 13px; cursor: pointer; padding: 0; color: var(--ink); }
.cal-day:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-ink); }
.cal-day:disabled { cursor: not-allowed; background: transparent; color: var(--muted); border-color: transparent; text-decoration: line-through; opacity: .65; }
.cal-day.in { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.cal-day.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.cal-day.blank { visibility: hidden; border: 0; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; border: 1px solid var(--line-2); vertical-align: -1px; }
.cal-legend .a::before { background: var(--surface); } .cal-legend .s::before { background: var(--brand); border-color: var(--brand); } .cal-legend .u::before { background: var(--surface-2); }

/* ---------- booking cards and tracker ---------- */
.bcard { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bcard-head { display: flex; gap: 12px; align-items: flex-start; }
.bcard h3 { font-size: 16px; letter-spacing: -.01em; line-height: 1.25; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.fact .k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-weight: 650; }
.tracker { display: flex; align-items: center; gap: 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; font-size: 12px; z-index: 1; color: #fff; }
.step.done { color: var(--ink-2); } .step.done::before { background: var(--brand); } .step.done .dot { background: var(--brand); border-color: var(--brand); }
.step.now { color: var(--brand-2); } .step.now .dot { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.step.bad .dot { background: var(--bad); border-color: var(--bad); } .step.bad { color: var(--bad); }

/* ---------- upload ---------- */
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; align-items: center; transition: border-color .15s ease, background .15s ease; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .art { font-size: 28px; color: var(--brand); }
.drop h4 { margin: 0; font-size: 15px; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); width: 100%; text-align: left; }
.agreement { white-space: pre-wrap; max-height: 16rem; overflow: auto; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); margin: 10px 0; }
details > summary { cursor: pointer; font-weight: 650; color: var(--brand-2); }

/* ---------- tables (operator and long lists) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 14px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.empty-cell { text-align: center; color: var(--muted); padding: 40px 14px; }
.row-title { font-weight: 700; }
.narrow { width: auto; min-width: 150px; max-width: 240px; padding: 7px 9px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 12px; font-weight: 650; border: 1px solid; box-shadow: var(--shadow-l); }
.toast.ok { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }
.toast.err { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .2s ease; }
  .app.menu-open .sidebar { transform: none; }
  .app.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 30; }
  .btn.menu-btn { display: inline-flex; } .topbar { padding: 8px 14px; }
  @media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
  .split { grid-template-columns: 1fr; } .sticky { position: static; }
  .filters { grid-template-columns: 1fr 1fr; } .filters .search { grid-column: 1 / -1; }
  .login { grid-template-columns: 1fr; } .login-art { padding: 28px; min-height: 0; } .login-art h1 { font-size: 26px; } .login-art ul { display: none; }
}
@media (max-width: 640px) {
  .hero { flex-wrap: wrap; }
  main { padding: 16px 14px 56px; } .scope { max-width: 150px; } .crumb-org { display: none; } .crumb-org + .crumb-page::before { content: none; }
  .grid, .grid.wide { grid-template-columns: 1fr; } .grid.tiles { grid-template-columns: 1fr 1fr; } .tile .num { font-size: 24px; } .form-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; } .page-head h1 { font-size: 21px; } .tracker .step { font-size: 10px; }
  table, tbody, tr, td { display: block; width: 100%; } thead { position: absolute; left: -9999px; }
  tr { border-bottom: 1px solid var(--line); padding: 6px 0; } tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 6px 14px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; text-align: right; }
  td[data-label]::before { content: attr(data-label); flex: none; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; padding-top: 2px; }
  td.empty-cell { display: block; text-align: center; } td.empty-cell::before { content: none; }
}
