/* ==========================================================================
   Lajur Motor — design system
   Referensi: Mora (electronics inventory dashboard), Outvetch (retail POS).
   Lihat study-cases/used-car-showroom-website/design-system.md
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --font: "Urbanist", system-ui, sans-serif;

  --ink: #111315;        /* teks utama, rail, tab stok */
  --ink-2: #5f6468;      /* meta */
  --ink-3: #9a9fa3;
  --line: #e6e8e7;
  --line-2: #d3d6d5;
  --bg: #ffffff;
  --well: #eef0ef;       /* bidang foto, chip, field */
  --soft: #f6f7f6;
  --brand: #dd0302;      /* merah brand asli: aksi */
  --brand-dark: #b50201;
  --ok: #0f7a43;
  --warn: #b45f06;
  --hold: #2558c9;
  --lot: #17191b;        /* aspal papan lot */
  --lot-line: #4a4e52;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --w: 1320px;
  --gutter: 40px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 500 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.9; flex: none; }
.i-sm { width: 16px; height: 16px; }

/* Router layar (dipakai lapak.js) */
[data-screen] { display: none; }
[data-screen].is-active { display: block; }

.wrap { max-width: calc(var(--w) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Tipografi ---------- */
.t-h1 { font: 700 40px/1.12 var(--font); letter-spacing: -0.02em; }
.t-h2 { font: 700 28px/1.2 var(--font); letter-spacing: -0.015em; }
.t-h3 { font: 700 19px/1.3 var(--font); letter-spacing: -0.005em; }
.t-meta { font-size: 15px; color: var(--ink-2); }
.t-small { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .t-h1 { font-size: 30px; } .t-h2 { font-size: 23px; } }

/* ---------- Tombol ---------- */
.btn { height: 46px; padding: 0 20px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border: 1px solid var(--line-2); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header { height: 76px; display: flex; align-items: center; gap: 28px; }
.logo { font: 800 24px/1 var(--font); letter-spacing: -0.03em; white-space: nowrap; }
.nav { display: flex; gap: 22px; font-weight: 600; color: var(--ink-2); }
.nav a.is-active, .nav a:hover { color: var(--ink); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.stock-note { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.header--line { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .stock-note { display: none; } .header { gap: 16px; } .nav { gap: 14px; font-size: 15px; } }
@media (max-width: 520px) { .header { height: auto; padding: 12px 0; flex-wrap: wrap; } .header__right { margin-left: auto; } .nav { order: 3; width: 100%; } }

/* ---------- Kalimat cicilan (beranda) ---------- */
.budget { padding: 28px 0 24px; }
.budget__line { font: 700 46px/1.16 var(--font); letter-spacing: -0.022em; max-width: 1180px; }
.budget__line b { font-weight: 800; color: var(--brand); white-space: nowrap; }
.budget__dials { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 216px; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; }
.dial { background: #fff; border-radius: var(--r-md); padding: 12px 16px 14px; border: 1px solid var(--line); min-width: 0; }
.dial__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dial__top b { font-size: 18px; color: var(--ink); font-weight: 800; white-space: nowrap; }
.budget__result { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; }
.budget__result b { font-size: 28px; line-height: 1.1; font-weight: 800; }
.budget__result span { font-size: 14px; color: #c9cccf; }
@media (max-width: 1024px) { .budget__line { font-size: 34px; } .budget__dials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .budget__line { font-size: 27px; } .budget__dials { grid-template-columns: 1fr; } }

/* ---------- Slider ---------- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 6px 0 0; display: block; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--p), var(--line) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); margin-top: -8px; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }

/* ---------- Kartu unit (pola POS: bingkai ganda + tab stok) ---------- */
.lineup { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.grid-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .lineup { grid-auto-columns: 30%; } .grid-units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .lineup { grid-auto-columns: 46%; } .grid-units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lineup { grid-auto-columns: 76%; } .grid-units { grid-template-columns: 1fr; } }

.car { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; background: #fff; transition: border-color .15s, opacity .15s; min-width: 0; cursor: pointer; text-align: left; }
.car:hover { border-color: var(--ink-3); }
.car.is-over { opacity: .55; }
.car.is-booked .car__photo img { filter: grayscale(.8); }
.car__photo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--well); }
.car__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stocktab { position: absolute; top: 0; left: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px 5px 10px; border-bottom-right-radius: 12px; }
.car__body { padding: 12px 8px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.car__name { font: 700 18px/1.25 var(--font); }
.car__meta { font-size: 14px; color: var(--ink-2); }
.car__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 10px; }
.car__price { font: 800 19px/1.15 var(--font); }
.car__price small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.car__inst { font-size: 14px; font-weight: 600; text-align: right; color: var(--ink-2); line-height: 1.25; }
.car__inst b { display: block; color: var(--ink); font-size: 16px; font-weight: 800; white-space: nowrap; }
.car__inst.is-fit b { color: var(--ok); }
.car__inst.is-over b { color: var(--warn); }

/* ---------- Status unit ---------- */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.status svg { width: 15px; height: 15px; }
.status--warn { color: var(--warn); }
.status--hold { color: var(--hold); }
.status--booked { color: var(--brand); }
.status--sold { color: var(--ink-2); }

/* ---------- Pill filter dengan hitungan ---------- */
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.pills::-webkit-scrollbar { display: none; }
.pill { height: 42px; padding: 0 8px 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; flex: none; background: #fff; color: var(--ink-2); }
.pill i { font-style: normal; font-size: 13px; font-weight: 700; background: var(--well); color: var(--ink-2); border-radius: var(--r-pill); padding: 2px 8px; min-width: 26px; text-align: center; }
.pill.is-active { color: var(--ink); border-color: var(--ink); background: var(--soft); }
.pill.is-active i { background: var(--brand); color: #fff; }

/* ---------- Bar filter ---------- */
.filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) auto repeat(3, minmax(130px, 1fr)); gap: 12px; align-items: end; margin-top: 14px; padding: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field > label b, .field > span b { color: var(--ink); white-space: nowrap; }
.select, .input { height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; padding: 0 12px; font-weight: 600; width: 100%; outline: 0; }
.select:focus, .input:focus { border-color: var(--ink); }
.seg { display: flex; gap: 2px; background: var(--well); padding: 3px; border-radius: 12px; height: 44px; }
.seg button { padding: 0 13px; border-radius: 9px; font-weight: 700; font-size: 15px; color: var(--ink-2); white-space: nowrap; flex: 1; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.seg button:disabled { color: var(--ink-3); cursor: not-allowed; }
@media (max-width: 1100px) { .filters { grid-template-columns: 1fr 1fr; } .filters > :first-child { grid-column: 1 / -1; } .filters > :nth-child(2) { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } .filters > * { grid-column: auto !important; } }

.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---------- Bagian beranda ---------- */
.sec { padding: 56px 0 0; }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 24px; min-width: 0; }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 14px; }
.price-pair > div { background: var(--soft); border-radius: var(--r-md); padding: 14px 16px; }
.price-pair b { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; }
.steps { counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 8px; background: var(--well); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.steps b { color: var(--ink); display: block; font-weight: 700; font-size: 16px; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.rows { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 16px; align-items: center; padding: 16px 20px; }
.row + .row { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .row { grid-template-columns: minmax(0, 1fr) auto; } .row > :nth-child(2), .row > :nth-child(3) { display: none; } }

.band { margin-top: 56px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band p { color: #c9cccf; max-width: 640px; }

.footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 32px 0; }
.footer__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }

/* ---------- Detail unit ---------- */
.crumb { padding: 14px 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.unit { display: grid; grid-template-columns: minmax(0, 1fr) 404px; gap: 24px; align-items: start; padding-bottom: 64px; }
.unit__col { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1080px) {
  .unit { display: flex; flex-direction: column; }
  .unit__col { display: contents; }
  .unit__col > * { width: 100%; min-width: 0; order: 3; }
  .unit__col > :first-child { order: 1; }
  .cfg { order: 2; width: 100%; position: static; }
}
.unit__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.stage { position: relative; aspect-ratio: 16 / 8.2; border-radius: var(--r-lg); overflow: hidden; background: var(--well); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.thumb { width: 104px; flex: none; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; background: var(--well); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }
.specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.specs > div { padding: 12px 14px; min-width: 0; }
.specs > div + div { border-left: 1px solid var(--line); }
.specs span { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.specs b { font-weight: 700; font-size: 16px; display: block; }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .specs > div:nth-child(4) { border-left: 0; } .specs > div:nth-child(n+4) { border-top: 1px solid var(--line); } }

.check { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.check li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.check b { font-weight: 700; }
.check small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px 0; }
.hist li + li { border-top: 1px solid var(--line); }
@media (max-width: 620px) { .check { grid-template-columns: 1fr; } }

/* Panel kanan (pola Detail Transaction POS) */
.cfg { position: sticky; top: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.cfg__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.cfg__title { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; }
.pay { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pay b { font: 800 34px/1.1 var(--font); letter-spacing: -0.015em; white-space: nowrap; }
.pay span { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.bill { display: grid; gap: 6px; font-size: 15px; }
.bill div { display: flex; justify-content: space-between; gap: 12px; }
.bill span:first-child { color: var(--ink-2); }
.bill b { font-weight: 700; }
.pkg { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pkg button { height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--well); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.pkg button.is-active { background: var(--ink); color: #fff; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.day b { display: block; font-size: 17px; line-height: 1.1; color: var(--ink); font-weight: 800; }
.day.is-selected { background: var(--ink); border-color: var(--ink); color: #c9cccf; }
.day.is-selected b { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.slot { height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-weight: 700; font-size: 15px; }
.slot.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot.is-off { background: var(--well); border-color: var(--well); color: var(--ink-3); cursor: not-allowed; text-decoration: line-through; }
.done-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }

/* ---------- Papan lot (tablet showroom) ---------- */
.board { display: grid; grid-template-columns: 72px minmax(0, 1fr) 372px; min-height: 100vh; background: #fff; }
.rail { background: var(--ink); color: #9a9fa3; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; }
.rail a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.rail a.is-active { background: var(--brand); color: #fff; }
.rail__home { font: 800 11px/1.1 var(--font); color: #fff; text-align: center; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #33373a; }
.board__main { padding: 20px 24px 24px; min-width: 0; }
.board__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lane { display: grid; grid-template-columns: 34px minmax(0, 1fr); background: var(--lot); border-radius: var(--r-md); margin-top: 8px; overflow: hidden; }
.lane__name { color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 17px; border-right: 2px solid var(--lot-line); }
.lane__bays { display: grid; grid-template-columns: repeat(6, minmax(112px, 1fr)); overflow-x: auto; scrollbar-width: none; }
.bay { position: relative; padding: 8px; border-right: 2px dashed var(--lot-line); color: #fff; text-align: left; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bay:last-child { border-right: 0; }
.bay__ph { position: relative; aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden; background: #26292c; }
.bay__ph img { width: 100%; height: 100%; object-fit: cover; }
.bay__code { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; }
.bay__name { font-size: 14px; font-weight: 600; color: #d6d8da; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bay__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c, #fff); flex: none; align-self: center; }
.bay.is-picked { background: #2a2d30; box-shadow: inset 0 0 0 2px #fff; }
.bay.is-empty { color: #8a8f93; }
.bay.is-empty .bay__ph { display: grid; place-items: center; background: transparent; border: 1px dashed var(--lot-line); font-size: 13px; }
.todo { margin-top: 14px; }
.todo ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.todo li { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; }
.todo b { color: var(--ink); font-size: 15px; font-weight: 700; }
@media (max-width: 900px) { .todo ul { grid-template-columns: 1fr; } }
.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.legend span { height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-pill); background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.legend b { font-weight: 800; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.board__side { border-left: 1px solid var(--line); background: var(--soft); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; }
.stcard .car__body { padding: 12px 8px 6px; }
.stbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 8px 8px; }
.stbtn { height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.stbtn i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.stbtn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.today { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.today li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; border-top: 1px solid var(--line); }
.today li span:last-child { color: var(--ink-2); white-space: nowrap; }
.board__empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
@media (max-width: 1180px) { .board { grid-template-columns: 72px minmax(0, 1fr); } .board__side { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 720px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; justify-content: flex-start; padding: 8px 12px; }
  .rail__home { border: 0; padding: 0 10px 0 0; margin: 0; }
  .board__side { grid-column: auto; }
  .board__main { padding: 14px 12px; }
}
