body { background: var(--cu-paper); }

/* ====================== HERO BAND ====================== */
.models-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(820px 460px at 82% -10%, rgba(41,167,240,0.28), transparent 60%),
    radial-gradient(680px 460px at 6% 120%, rgba(43,89,224,0.22), transparent 56%),
    linear-gradient(166deg, #1A2147 0%, #141A33 46%, #0A0E20 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.models-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(1000px 560px at 72% 14%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 560px at 72% 14%, #000 0%, transparent 78%);
}
.models-hero .container { position: relative; z-index: 2; padding-top: 66px; padding-bottom: 52px; }
.mh-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.models-hero h1 {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(34px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -0.025em;
  margin: 18px 0 0;
}
.models-hero h1 .accent {
  background: linear-gradient(96deg, #fff 0%, #8FD4FF 50%, #29A7F0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.models-hero .lede {
  font-size: var(--fs-18); line-height: 1.55; color: rgba(255,255,255,0.7);
  max-width: 540px; margin: 20px 0 0; font-weight: 400;
}
.mh-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-xl); overflow: hidden;
}
.mh-stat { background: rgba(10,14,32,0.42); padding: 22px 24px; }
.mh-stat .v { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-36); color: #fff; line-height: 1; letter-spacing: -0.02em; }
.mh-stat .v span { color: var(--cu-azure-300); }
.mh-stat .l { font-family: var(--font-mono); font-size: var(--fs-12); color: rgba(255,255,255,0.58); margin-top: 9px; letter-spacing: 0.03em; }

/* ====================== BODY LAYOUT ====================== */
.models-body { padding: 0 0 40px; }
.models-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 34px; align-items: start;
}

/* ---------- filter rail ---------- */
.filters {
  position: sticky; top: 82px; align-self: start;
  padding: 34px 0 40px;
}
.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.filters-head .ft { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-16); color: var(--cu-ink); }
.filters-head .reset {
  font-family: var(--font-mono); font-size: var(--fs-12); color: var(--cu-slate);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.filters-head .reset:hover { color: var(--cu-cobalt); }
.fgroup { padding: 15px 0; border-top: 1px solid var(--cu-mist); }
.fgroup:first-of-type { border-top: none; padding-top: 4px; }
.fgroup h6 {
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--cu-slate); margin: 0 0 13px;
}
/* checkbox rows */
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; user-select: none; }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fbox {
  width: 17px; height: 17px; border-radius: var(--r-xs); border: 1.5px solid var(--cu-silver);
  flex: none; display: flex; align-items: center; justify-content: center; background: #fff;
  transition: all var(--dur-fast) var(--ease-out);
}
.fbox svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.fopt input:checked + .fbox { background: var(--cu-cobalt); border-color: var(--cu-cobalt); }
.fopt input:checked + .fbox svg { opacity: 1; }
.fopt:hover .fbox { border-color: var(--cu-cobalt-300); }
.fopt .fl { font-size: var(--fs-14); color: var(--cu-graphite); display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.fopt input:checked ~ .fl { color: var(--cu-ink); font-weight: 500; }

.fopt .fl .pdot { width: 16px; height: 16px; border-radius: var(--r-xs); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 9px; }

/* chip toggles */
.fchips { display: flex; flex-wrap: wrap; gap: 7px; }
.fchip {
  font-family: var(--font-sans); font-size: var(--fs-13); color: var(--cu-graphite);
  background: #fff; border: 1px solid var(--cu-mist); border-radius: var(--r-pill);
  padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--dur-fast) var(--ease-out);
}
.fchip svg { width: 13px; height: 13px; }
.fchip:hover { border-color: var(--cu-cobalt-200); }
.fchip[aria-pressed="true"] { background: var(--cu-cobalt-050); border-color: var(--cu-cobalt-300); color: var(--cu-cobalt-600); font-weight: 500; }

/* select */
.fselect {
  width: 100%; font-family: var(--font-sans); font-size: var(--fs-14); color: var(--cu-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7390' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--cu-mist); border-radius: var(--r-md); padding: 9px 34px 9px 12px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.fselect:hover { border-color: var(--cu-cobalt-200); }

/* ---------- main column ---------- */
.models-main { min-width: 0; padding-top: 34px; }
.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 4px;
}
.searchbox {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px;
  background: #fff; border: 1px solid var(--cu-mist); border-radius: var(--r-md);
  padding: 0 14px; height: 44px; transition: all var(--dur-fast) var(--ease-out);
}
.searchbox:focus-within { border-color: var(--cu-cobalt-300); box-shadow: var(--shadow-glow); }
.searchbox svg { width: 17px; height: 17px; color: var(--cu-slate); flex: none; }
.searchbox input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font-family: var(--font-sans); font-size: var(--fs-15); color: var(--cu-ink);
}
.searchbox input::placeholder { color: var(--cu-slate); }
.tb-sort { display: flex; align-items: center; gap: 9px; }
.tb-sort label { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--cu-slate); text-transform: uppercase; letter-spacing: 0.05em; }
.tb-sort .fselect { width: auto; min-width: 168px; height: 44px; }

.result-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: var(--fs-14); color: var(--cu-slate); padding: 4px 2px 14px;
}
.result-line .count b { color: var(--cu-ink); font-weight: 600; }
.active-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.atag {
  font-family: var(--font-mono); font-size: var(--fs-12); color: var(--cu-cobalt-600);
  background: var(--cu-cobalt-050); border: 1px solid var(--cu-cobalt-100); border-radius: var(--r-pill);
  padding: 4px 9px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.atag svg { width: 11px; height: 11px; }
.atag:hover { background: var(--cu-cobalt-100); }

/* ---------- model list (table-style) ---------- */
.ml-list { background: #fff; border: 1px solid var(--cu-mist); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.ml-head, .ml-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px 92px 92px 132px 24px;
  align-items: center; gap: 16px;
}
.ml-head {
  padding: 12px 20px; background: var(--cu-paper); border-bottom: 1px solid var(--cu-mist);
}
.ml-head .h {
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--cu-slate);
}
.ml-head .num { text-align: right; }

.ml-row {
  padding: 14px 20px; border-bottom: 1px solid var(--cu-fog); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  text-align: left; width: 100%; background: #fff; border-left: none; border-right: none; border-top: none; font: inherit; color: inherit;
}
.ml-row:last-child { border-bottom: none; }
.ml-row:hover { background: var(--cu-cobalt-050); }
.ml-row:hover .ml-go { color: var(--cu-cobalt); transform: translateX(2px); }

.ml-identity { display: flex; gap: 12px; min-width: 0; align-items: flex-start; }
.ml-logo {
  width: 36px; height: 36px; border-radius: var(--r-md); flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}

/* ---------- brand avatar: glyph + uploaded-logo modes ---------- */
/* Glyph tile: a Lucide line icon (white stroke) on the brand color. The icon
   is scaled to ~half the tile via em sizing relative to the tile font-size. */
.pdot.pa-glyph, .ml-logo.pa-glyph { color: #fff; }
.pdot.pa-glyph svg, .ml-logo.pa-glyph svg { width: 62%; height: 62%; display: block; }
/* Upload tile: a same-origin logo image, cropped to a rounded square. */
.pdot.pa-upload, .ml-logo.pa-upload {
  background: var(--cu-fog); border: 1px solid var(--cu-mist);
  overflow: hidden; padding: 0;
}
.pdot.pa-upload img, .ml-logo.pa-upload img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit;
}
.ml-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ml-nameline { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.ml-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-16); color: var(--cu-ink); letter-spacing: -0.01em; white-space: nowrap; }
.ml-id { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--cu-slate); white-space: nowrap; }
/* Namespaced public id (#149): muted `ns/` prefix + emphasized model slug. */
.id-ns { color: var(--cu-slate); opacity: 0.7; }
.id-model { color: var(--cu-ink); font-weight: 600; }
.dw-id .id-ns { color: var(--cu-cobalt-600); opacity: 0.6; }
.dw-id .id-model { color: var(--cu-cobalt-600); font-weight: 600; }
.ml-new { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cu-cobalt-600); background: var(--cu-cobalt-050); border: 1px solid var(--cu-cobalt-100); border-radius: var(--r-pill); padding: 1px 7px; }
.ml-blurb { display: block; font-size: var(--fs-13); line-height: 1.5; color: var(--cu-graphite); margin: 4px 0 0; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ml-mod { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.03em; color: var(--cu-ink); background: var(--cu-fog); border: 1px solid var(--cu-mist); border-radius: var(--r-sm); padding: 2px 8px; }
.ml-cap { font-family: var(--font-mono); font-size: 11px; color: var(--cu-slate); border: 1px solid var(--cu-mist); border-radius: var(--r-sm); padding: 2px 8px; }

.ml-num { text-align: right; font-variant-numeric: tabular-nums; }
.ml-num .nv { font-family: var(--font-mono); font-size: var(--fs-15); font-weight: 600; color: var(--cu-ink); }
.ml-num .nv.muted { color: var(--cu-silver); font-weight: 500; }
.ml-num .nu { display: none; }

.ml-sov { display: flex; gap: 5px; flex-wrap: wrap; }
.sbadge {
  width: 24px; height: 24px; border-radius: var(--r-sm); flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
}
.sbadge svg { width: 13px; height: 13px; }
.sbadge.sh { background: var(--cu-success-bg); color: var(--cu-success); border-color: rgba(21,160,107,0.2); }
.sbadge.rp { background: var(--cu-cobalt-050); color: var(--cu-cobalt); border-color: var(--cu-cobalt-100); }
.sbadge.zr { background: var(--cu-azure-050); color: var(--cu-azure-600); border-color: var(--cu-azure-100); }

.ml-go { color: var(--cu-silver); display: flex; justify-content: flex-end; transition: all var(--dur-fast) var(--ease-out); }
.ml-go svg { width: 18px; height: 18px; }

.ml-empty { padding: 64px 24px; text-align: center; }
.ml-empty .t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-18); color: var(--cu-ink); }
.ml-empty .s { font-size: var(--fs-14); color: var(--cu-slate); margin-top: 8px; }

.ml-foot { font-size: var(--fs-13); color: var(--cu-slate); display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 0 2px; }
.ml-foot svg { width: 16px; height: 16px; color: var(--cu-cobalt); flex: none; }
.ml-foot a { color: var(--cu-cobalt); font-weight: 500; }
.ml-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ====================== DETAIL DRAWER ====================== */
.scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,15,46,0.55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: 560px; max-width: 94vw;
  background: var(--cu-paper); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out);
}
.scrim.open .drawer { transform: translateX(0); }
.dw-head {
  display: flex; align-items: flex-start; gap: 15px; padding: 26px 28px 22px;
  background: #fff; border-bottom: 1px solid var(--cu-mist);
}
.dw-head .ml-logo { width: 48px; height: 48px; font-size: 19px; }
.dw-htext { min-width: 0; flex: 1; }
.dw-htext .nm { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); color: var(--cu-ink); letter-spacing: -0.02em; }
.dw-htext .pv { font-size: var(--fs-13); color: var(--cu-slate); margin-top: 3px; }
.dw-id {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 11px;
  font-family: var(--font-mono); font-size: var(--fs-13); color: var(--cu-cobalt-600);
  background: var(--cu-cobalt-050); border: 1px solid var(--cu-cobalt-100); border-radius: var(--r-sm);
  padding: 5px 10px; cursor: pointer;
}
.dw-id svg { width: 13px; height: 13px; }
.dw-id:hover { background: var(--cu-cobalt-100); }
.dw-close {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--cu-fog); border: 1px solid var(--cu-mist); color: var(--cu-graphite);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.dw-close:hover { background: var(--cu-mist); color: var(--cu-ink); }
.dw-close svg { width: 17px; height: 17px; }

.dw-body { flex: 1; overflow-y: auto; padding: 26px 28px 40px; }
.dw-body p.intro { font-size: var(--fs-15); line-height: 1.6; color: var(--cu-graphite); margin: 0 0 24px; }

.dw-sec { margin-top: 26px; }
.dw-sec:first-child { margin-top: 0; }
.dw-sec > h4 {
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cu-slate); margin: 0 0 13px;
}

.dw-specs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.spec { background: #fff; border: 1px solid var(--cu-mist); border-radius: var(--r-md); padding: 14px 15px; }
.spec .sv { font-family: var(--font-mono); font-size: var(--fs-18); font-weight: 600; color: var(--cu-ink); }
.spec .sl { font-size: var(--fs-12); color: var(--cu-slate); margin-top: 4px; }

.dw-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-cap {
  font-family: var(--font-mono); font-size: var(--fs-13); color: var(--cu-graphite);
  background: #fff; border: 1px solid var(--cu-mist); border-radius: var(--r-pill); padding: 6px 13px;
  display: inline-flex; align-items: center; gap: 7px;
}
.dw-cap svg { width: 14px; height: 14px; color: var(--cu-cobalt); }

.dw-sov { display: flex; flex-direction: column; gap: 1px; background: var(--cu-mist); border: 1px solid var(--cu-mist); border-radius: var(--r-md); overflow: hidden; }
.sovrow { display: flex; align-items: center; gap: 13px; padding: 14px 16px; background: #fff; }
.sovrow.off { background: var(--cu-paper); }
.sovrow .si { width: 30px; height: 30px; border-radius: var(--r-sm); flex: none; display: flex; align-items: center; justify-content: center; }
.sovrow .si svg { width: 16px; height: 16px; }
.sovrow.sh .si { background: var(--cu-success-bg); color: var(--cu-success); }
.sovrow.rp .si { background: var(--cu-cobalt-050); color: var(--cu-cobalt); }
.sovrow.zr .si { background: var(--cu-azure-050); color: var(--cu-azure-600); }
.sovrow.off .si { background: var(--cu-fog); color: var(--cu-silver); }
.sovrow .st { flex: 1; min-width: 0; }
.sovrow .st .a { font-size: var(--fs-14); font-weight: 600; color: var(--cu-ink); }
.sovrow .st .b { font-size: var(--fs-13); color: var(--cu-slate); line-height: 1.45; margin-top: 2px; }
.sovrow .yn { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; }
.sovrow .yn.y { color: var(--cu-success); }
.sovrow .yn.n { color: var(--cu-silver); }

.dw-endpoints { display: flex; flex-direction: column; gap: 9px; }
.endpoint {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  background: #fff; border: 1px solid var(--cu-mist); border-radius: var(--r-md);
}
.endpoint .ed { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--cu-success); box-shadow: 0 0 0 3px rgba(21,160,107,0.16); }
.endpoint .en { flex: 1; min-width: 0; }
.endpoint .en .a { font-size: var(--fs-14); font-weight: 600; color: var(--cu-ink); }
.endpoint .en .b { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--cu-slate); margin-top: 2px; }
.endpoint .ep { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--cu-graphite); text-align: right; white-space: nowrap; }

.dw-code { background: #0C1024; border: 1px solid var(--cu-ink-400); border-radius: var(--r-md); overflow: hidden; }
.dw-code .bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dw-code .bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dw-code .bar .fn { margin-left: 8px; font-family: var(--font-mono); font-size: var(--fs-12); color: rgba(255,255,255,0.46); }
.dw-code pre { margin: 0; padding: 18px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #C9D4F5; }
.dw-code .tk-com { color: #5C6486; } .dw-code .tk-key { color: #29A7F0; } .dw-code .tk-str { color: #7FD6A0; } .dw-code .tk-fn { color: #7E9BF6; } .dw-code .tk-hl { color: #fff; background: rgba(43,89,224,0.28); border-radius: 3px; padding: 0 3px; }

/* pricing & caching */
.cache-note {
  font-size: var(--fs-13); line-height: 1.55; color: var(--cu-graphite);
  background: var(--cu-cobalt-050); border: 1px solid var(--cu-cobalt-100);
  border-radius: var(--r-md); padding: 13px 15px; margin-bottom: 13px;
}
.cache-note b { color: var(--cu-ink); font-weight: 600; }

.dw-foot {
  display: flex; gap: 12px; padding: 18px 28px;
  background: #fff; border-top: 1px solid var(--cu-mist);
}
.dw-foot .btn { flex: 1; justify-content: center; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1080px) {
  .mh-grid { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .mh-stats { max-width: 520px; }
}
@media (max-width: 980px) {
  .models-wrap { grid-template-columns: 1fr; padding: 0 24px; gap: 0; }
  .models-hero .container { padding-left: 24px; padding-right: 24px; }
  .filters {
    position: static; max-height: none; overflow: visible;
    padding: 22px 0 6px; border-bottom: 1px solid var(--cu-mist); margin-bottom: 6px;
  }
  .filters-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .fgroup.span2 { grid-column: 1 / -1; }
  .models-main { padding-top: 22px; }
}
/* hide context column (pri-mid) */
@media (max-width: 860px) {
  .ml-head, .ml-row { grid-template-columns: minmax(0,1fr) 92px 92px 132px 24px; }
  .pri-mid { display: none !important; }
}
/* stacked card rows */
@media (max-width: 720px) {
  .ml-head { display: none; }
  .ml-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .ml-blurb { white-space: normal; }
  .ml-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
  .pri-mid { display: flex !important; }
  .ml-num {
    text-align: left; background: var(--cu-paper); border: 1px solid var(--cu-mist);
    border-radius: var(--r-sm); padding: 8px 12px; min-width: 92px;
  }
  .ml-num .nu { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cu-slate); margin-bottom: 3px; }
  .ml-go { display: none; }
  .dw-specs { grid-template-columns: 1fr 1fr; }
  .filters-inner { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .mh-stats { grid-template-columns: 1fr; }
  .toolbar { gap: 10px; }
  .tb-sort { width: 100%; }
  .tb-sort .fselect { flex: 1; }
  .dw-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .scrim { transition: none; }
}
@media (pointer: coarse) {
  .fopt { padding: 9px 0; }
  .fchip { padding: 9px 14px; }
}
