/* Layout: sticky header with three tabs (新品 / 中古 / 中古車), a filter row, then a card grid; detail views replace the grid.
   Visual idea: Japanese shop price tags — red 値札 numerals, a yellow 最安 shelf tag, a "price ladder" dot strip per product. */
:root {
  --paper: #F3F5F8;
  --card: #FFFFFF;
  --ink: #161D2B;
  --ink-2: #4A5468;
  --ink-3: #737D90;
  --line: #E0E4EB;
  --line-2: #CDD3DD;
  --price: #C8102E;
  --price-soft: #FBE7EA;
  --tag: #FFD400;
  --tag-ink: #1B1B12;
  --used: #2F6F8F;
  --used-soft: #DCEAF1;
  --bar: #9AA5B8;
  --focus: #2457D6;
  --ad-link: #1A4FBF;
  --font-display: "Dela Gothic One", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-num: "Barlow Semi Condensed", "Zen Kaku Gothic New", "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E131B; --card: #161D28; --ink: #E8ECF2; --ink-2: #B0B9C8; --ink-3: #848EA0; --line: #263041; --line-2: #33405A;
    --price: #FF6B7D; --price-soft: #3A1C24; --tag: #FFD400; --tag-ink: #1B1B12; --used: #7DB8D6; --used-soft: #1C3240; --bar: #56637C; --focus: #8AB0FF; --ad-link: #8DB4FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E131B; --card: #161D28; --ink: #E8ECF2; --ink-2: #B0B9C8; --ink-3: #848EA0; --line: #263041; --line-2: #33405A;
  --price: #FF6B7D; --price-soft: #3A1C24; --tag: #FFD400; --tag-ink: #1B1B12; --used: #7DB8D6; --used-soft: #1C3240; --bar: #56637C; --focus: #8AB0FF; --ad-link: #8DB4FF;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--card); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0.02em; line-height: 1; }
.logo b span { color: var(--price); }
.tabs { display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 10px; }
.tabs a { text-decoration: none; padding: 6px 12px; border-radius: 7px; font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.search { flex: 1 1 260px; display: flex; min-width: 0; }
.search input { width: 100%; min-width: 0; border: 1px solid var(--line-2); background: var(--paper); border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.search input::placeholder { color: var(--ink-3); }

/* category row inside the sticky header: product kinds on 新品/中古, makers on 中古車 */
.cats-row { border-top: 1px solid var(--line); }
.cats { display: flex; flex-wrap: wrap; gap: 0 2px; }
@media (max-width: 760px) { .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; } }
.cats a { display: inline-flex; align-items: center; gap: 5px; padding: 9px 9px 7px; border-bottom: 3px solid transparent; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; flex: none; }
.cats a:hover { color: var(--ink); background: var(--paper); }
.cats a[aria-current="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--price); }
.cats a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cats a small { font-family: var(--font-num); font-size: 12px; color: var(--ink-3); font-weight: 500; }
.cats a[aria-current="true"] small { color: var(--price); }
.cats a.zero { opacity: 0.45; }
.cats-label { display: none; }
@media (max-width: 560px) { .cats a { padding: 8px 9px 6px; font-size: 13.5px; } }

/* intro strip */
.strip { padding-block: 14px 4px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: var(--ink-2); font-size: 13.5px; }
.strip strong { color: var(--ink); font-weight: 700; }
.stamp { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--used); }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: 12px; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chip small { color: inherit; opacity: 0.65; margin-left: 4px; font-family: var(--font-num); }
.spacer { flex: 1; }
.listh { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.listh small { font-family: var(--font-num); font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sel { border: 1px solid var(--line-2); background: var(--card); border-radius: 8px; padding: 5px 10px; font-size: 13.5px; }
.sel-label { font-size: 12.5px; color: var(--ink-3); }

/* grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; padding-bottom: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.eyebrow { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.card h3 { margin: 2px 0 0; font-size: 16.5px; line-height: 1.35; text-wrap: balance; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.catpill { font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; white-space: nowrap; flex: none; }
.pricebox { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; background: var(--tag); color: var(--tag-ink); font-weight: 700; font-size: 12px; padding: 2px 8px 2px 10px; border-radius: 3px 3px 3px 3px; position: relative; letter-spacing: 0.06em; align-self: center; }
.tag::before { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--card); }
.bigprice { color: var(--price); font-family: var(--font-num); font-weight: 700; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.bigprice .yen { font-size: 0.6em; margin-right: 1px; }
.pricenote { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.storelist { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; font-size: 13.5px; align-items: baseline; }
.storelist .s { color: var(--ink-2); white-space: nowrap; }
.storelist .p { text-align: right; font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.storelist .d { text-align: right; font-family: var(--font-num); color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.usedline { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; border-top: 1px dashed var(--line-2); padding-top: 8px; font-size: 13.5px; flex-wrap: wrap; }
.usedline b { color: var(--used); font-family: var(--font-num); font-size: 19px; font-variant-numeric: tabular-nums; }
.off { font-family: var(--font-num); font-weight: 700; color: var(--used); background: var(--used-soft); border-radius: 4px; padding: 0 6px; font-size: 13px; }
.more { align-self: flex-start; text-decoration: none; font-weight: 700; font-size: 13.5px; color: var(--ink); border-bottom: 2px solid var(--tag); }

/* price ladder (dot strip on one price axis) */
.ladder { position: relative; height: 46px; margin: 2px 4px 0; }
.ladder .axis { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); border-radius: 2px; }
.ladder .band { position: absolute; top: 16px; height: 14px; background: var(--used-soft); border: 1px solid var(--used); border-radius: 4px; }
.ladder .med { position: absolute; top: 12px; width: 2px; height: 22px; background: var(--used); margin-left: -1px; border-radius: 2px; }
.ladder .dot { position: absolute; top: 17px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bar); box-shadow: 0 0 0 2px var(--card); cursor: default; }
.ladder .dot.lo { background: var(--price); width: 14px; height: 14px; margin-left: -7px; top: 16px; z-index: 2; }
.ladder .lab { position: absolute; top: 33px; font-size: 11px; color: var(--ink-3); font-family: var(--font-num); white-space: nowrap; }
.ladder .lab.r { transform: translateX(-100%); }
.ladder .cap { position: absolute; top: -1px; font-size: 11px; white-space: nowrap; }
.ladder .cap.u { color: var(--used); }
.ladder .cap.n { color: var(--price); }
.ladder .hit { position: absolute; top: 8px; width: 22px; height: 30px; margin-left: -11px; z-index: 3; }

/* tooltip */
#tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--card); font-size: 12.5px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
#tip b { font-family: var(--font-num); font-size: 14px; }

/* detail */
.back { display: inline-block; margin-block: 14px 4px; font-size: 13.5px; text-decoration: none; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.dhead { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-end; justify-content: space-between; padding-bottom: 10px; }
.dhead h1 { font-family: var(--font-body); font-weight: 700; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.3; margin: 2px 0 0; text-wrap: balance; }
.dmeta { font-size: 13px; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-block: 8px 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 0; }
.tile .k { font-size: 12.5px; color: var(--ink-3); }
.tile .v { font-family: var(--font-num); font-weight: 700; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.tile.new .v { color: var(--price); }
.tile.used .v { color: var(--used); }
/* summary tiles that open a drill-down panel */
button.tile { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; display: block; --tile-accent: var(--ink); }
button.tile.new { --tile-accent: var(--price); }
button.tile.used { --tile-accent: var(--used); }
button.tile:hover { border-color: var(--line-2); }
button.tile[aria-expanded="true"] { border-color: var(--tile-accent); box-shadow: inset 0 -3px 0 var(--tile-accent); }
.tile .dk { float: right; font-size: 11.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px; line-height: 1.6; margin-top: 1px; }
.tile .dk::after { content: " ▾"; }
button.tile[aria-expanded="true"] .dk { color: var(--card); background: var(--tile-accent); border-color: var(--tile-accent); }
button.tile[aria-expanded="true"] .dk::after { content: " ▴"; }
.drill { margin: -8px 0 18px; border-color: var(--line-2); }
.drill-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drill-close { border: 1px solid var(--line-2); background: var(--card); border-radius: 8px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.drill .sub a { color: inherit; }
.tagmini { display: inline-block; background: var(--tag); color: var(--tag-ink); font-weight: 700; font-size: 11px; padding: 0 6px; border-radius: 3px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.panel h2 { font-size: 16px; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.panel h2 i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.panel .sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px; line-height: 1.5; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; border-bottom: 1px solid var(--line-2); padding: 4px 8px 6px; white-space: nowrap; }
table.t td { border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: top; }
table.t td.r, table.t th.r { text-align: right; }
table.t td.n { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
table.t tr.best td { background: color-mix(in srgb, var(--tag) 16%, transparent); }
table.t .ttl { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.t a.go { font-size: 12.5px; white-space: nowrap; }
.muted { color: var(--ink-3); }
details.all { margin-top: 10px; font-size: 13.5px; }
details.all summary { cursor: pointer; color: var(--ink-2); }

/* used range rows */
.rrows { display: flex; flex-direction: column; gap: 12px; }
.rrow { display: grid; grid-template-columns: 112px minmax(0, 1fr) 92px; gap: 10px; align-items: center; }
.rrow .nm { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.rrow .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.rrow .val { text-align: right; font-family: var(--font-num); font-weight: 700; font-size: 17px; color: var(--used); line-height: 1.2; font-variant-numeric: tabular-nums; }
.rrow .val small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-3); font-family: var(--font-body); }
.range { position: relative; height: 26px; }
.range .ax { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); }
.range .wh { position: absolute; top: 12px; height: 2px; background: var(--used); opacity: 0.55; }
.range .bx { position: absolute; top: 6px; height: 14px; background: var(--used-soft); border: 1px solid var(--used); border-radius: 4px; }
.range .md { position: absolute; top: 3px; width: 3px; height: 20px; margin-left: -1.5px; background: var(--used); border-radius: 2px; }
.range .ref { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 2px dashed var(--price); }
.rlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-3); margin-top: 10px; align-items: center; }
.rlegend span { display: inline-flex; align-items: center; gap: 5px; }
.sw-band { width: 18px; height: 10px; background: var(--used-soft); border: 1px solid var(--used); border-radius: 3px; }
.sw-med { width: 3px; height: 12px; background: var(--used); border-radius: 2px; }
.sw-ref { width: 0; height: 12px; border-left: 2px dashed var(--price); }
@media (max-width: 520px) { .rrow { grid-template-columns: 88px minmax(0, 1fr) 76px; gap: 8px; } .rrow .val { font-size: 15px; } }

.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { font-size: 13px; text-decoration: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; background: var(--card); white-space: nowrap; }
.links a:hover { border-color: var(--ink-2); }
.links a::after { content: " ↗"; color: var(--ink-3); font-size: 11px; }
.section { margin-block: 18px; }
.section > h2 { font-size: 16px; margin: 0 0 8px; }

/* used list */
.ulist { display: flex; flex-direction: column; gap: 8px; padding-bottom: 28px; }
.urow { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1.4fr) 110px 120px minmax(0, 2fr); gap: 6px 16px; align-items: center; text-decoration: none; }
.urow:hover { border-color: var(--line-2); }
.urow .nm { font-weight: 700; font-size: 14.5px; line-height: 1.35; min-width: 0; }
.urow .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.urow .k { font-size: 11.5px; color: var(--ink-3); display: block; line-height: 1.3; }
.urow .np { font-family: var(--font-num); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.urow .up { font-family: var(--font-num); font-weight: 700; font-size: 18px; color: var(--used); font-variant-numeric: tabular-nums; }
.mk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; font-size: 12px; }
.mk div { min-width: 0; }
.mk b { display: block; font-family: var(--font-num); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk .na { color: var(--ink-3); }
@media (max-width: 760px) { .urow { grid-template-columns: minmax(0, 1fr) auto auto; } .urow .mk { grid-column: 1 / -1; } }
@media (max-width: 440px) { .urow { grid-template-columns: minmax(0, 1fr) auto; } .urow .nm { grid-column: 1 / -1; } }

/* cars */
.rank { font-family: var(--font-num); font-weight: 700; font-size: 12px; background: var(--ink); color: var(--card); border-radius: 4px; padding: 0 7px; white-space: nowrap; }
.rank.ex { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.carstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.carstats .k { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.carstats .v { font-family: var(--font-num); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.carstats .v.u { color: var(--used); font-size: 22px; }
.ybars { display: flex; align-items: flex-end; gap: 2px; height: 74px; padding-top: 14px; position: relative; }
.ybars .yb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; position: relative; }
.ybars .yb i { display: block; width: 100%; max-width: 22px; background: var(--used); border-radius: 4px 4px 0 0; min-height: 2px; }
.ybars .yb i.open { background: repeating-linear-gradient(135deg, var(--used) 0 3px, var(--used-soft) 3px 6px); }
.ybars .yb span { font-size: 10px; color: var(--ink-3); font-family: var(--font-num); line-height: 1.2; margin-top: 3px; }
.ybars .yb.hot i { outline: 2px solid var(--ink); outline-offset: 1px; }
.ybars.big { height: 220px; gap: 6px; }
.ybars.big .yb i { max-width: 44px; }
.ybars.big .yb span { font-size: 12px; }
.ybars.big .yb em { font-style: normal; font-size: 11.5px; font-family: var(--font-num); color: var(--ink-2); margin-bottom: 3px; white-space: nowrap; }
.chart-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.hist { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.hist i { flex: 1; background: var(--bar); border-radius: 3px 3px 0 0; min-height: 1px; }
.hist i.md { background: var(--used); }
.hist-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-family: var(--font-num); margin-top: 3px; }

/* ad slots — always labeled PR / 広告 (景品表示法のステマ規制) */
.ad { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.adslot { margin-block: 6px 2px; }
.ad .adlab { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--ink-3); }
.ad .adlab b { font-weight: 700; font-size: 10.5px; letter-spacing: 0.08em; border: 1px solid var(--ink-3); border-radius: 3px; padding: 0 4px; color: var(--ink-2); }
.ad a.adt { font-weight: 700; font-size: 16.5px; color: var(--ad-link); text-decoration: none; line-height: 1.4; text-wrap: balance; }
.ad a.adt:hover { text-decoration: underline; }
.ad .adu { font-size: 12.5px; color: var(--used); overflow-wrap: anywhere; }
.ad p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.ad .aded { position: absolute; top: 9px; right: 12px; font-size: 12px; }
.ad.vacant { border-style: dashed; background: transparent; }
.ad.vacant p { font-size: 13px; color: var(--ink-3); }
.grid > .ad { padding: 14px 16px; }
.lead { font-size: 14px; color: var(--ink-2); max-width: 82ch; margin: -6px 0 16px; line-height: 1.75; }
.adform { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 12px; margin-top: 10px; }
.adform label { display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-3); }
.adform input[type="text"], .adform input[type="url"] { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; background: var(--paper); font-size: 14px; min-width: 0; }
.adform .row { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.adform .saved { color: var(--used); font-size: 13px; }
.slotlist { display: grid; gap: 14px; }
.slotlist .panel h2 { justify-content: space-between; }

/* misc */
.empty { padding: 28px 0; color: var(--ink-2); }
.searchall { background: var(--card); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.searchall p { margin: 0 0 8px; font-size: 13.5px; }
.req { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-block: 8px 24px; display: grid; gap: 8px; }
.req h2 { font-size: 15.5px; margin: 0; }
.req p { margin: 0; font-size: 13px; color: var(--ink-2); }
.req form { display: flex; flex-wrap: wrap; gap: 8px; }
.req textarea { flex: 1 1 280px; min-height: 44px; resize: vertical; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: var(--paper); font-size: 14px; }
.req button, .btn { border: 0; background: var(--ink); color: var(--card); font-weight: 700; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 14px; }
.req button:disabled { opacity: 0.5; cursor: default; }
.req .msg { font-size: 13px; color: var(--used); }
.req ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
footer.foot { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; padding-block: 18px 30px; line-height: 1.7; }
footer.foot h3 { font-size: 13px; color: var(--ink-2); margin: 0 0 4px; }
footer.foot p { margin: 0 0 10px; max-width: 80ch; }
@media (max-width: 560px) {
  .tabs { width: 100%; } .tabs a { flex: 1; text-align: center; padding: 6px 4px; font-size: 13px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .bigprice { font-size: 28px; }
}
@media (prefers-reduced-motion: no-preference) { .card, .urow { transition: border-color .15s; } }
