/* TK EVA carrier cabinet. Style follows the live tkeva.ru: Montserrat, white header with the logo,
   orange menu bar, flat blocks, 2px corners, dark #17171D accents. Orange fills carry dark text (AA). */
:root {
  --ink: #17171d;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --line: #e2e4e8;
  --text: #2d2d2d;
  --head: #1b1e25;
  --muted: #5f6368;
  --accent: #fe6c17;
  --accent-hover: #ff8238;
  --on-accent: #1d1d1d;
  --accent-ink: #b8460b;
  --accent-soft: #fff1e8;
  --ok: #2d6a3e;
  --ok-soft: #e8f3eb;
  --err: #a8261d;
  --err-soft: #fbeceb;
  --field-line: #b9bec7;
  --focus: 0 0 0 3px rgba(254, 108, 23, 0.45);
  --r: 2px;
  --font: "Montserrat", system-ui, sans-serif;
  --top-h: 60px;
  --tab-h: 64px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 0.95rem/1.55 var(--font);
  min-height: 100dvh;
}
h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  color: var(--head);
  margin: 0;
}
h1 {
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.9rem);
}
h2 {
  font-size: 1.15rem;
}
h3 {
  font-size: 1rem;
}
p {
  margin: 0;
}
a {
  color: var(--accent-ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  border-radius: var(--r);
  z-index: 30;
}
.skip:focus {
  left: 8px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.boot {
  padding: 48px 16px;
  color: var(--muted);
  text-align: center;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.22em;
}

/* ---------- header (white, logo) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
}
.brand img {
  width: 126px;
  height: auto;
  display: block;
}
.contact {
  display: none;
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.contact a {
  display: block;
  color: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
@media (min-width: 768px) {
  .contact {
    display: block;
  }
  .brand img {
    width: 150px;
  }
  :root {
    --top-h: 72px;
  }
}

/* ---------- menu: bottom tab bar on phones, orange bar like the site on desktop ---------- */
.rail {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.menu-in {
  height: var(--tab-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  min-height: 44px;
  position: relative;
}
.rail a .icon {
  width: 24px;
  height: 24px;
}
.rail a[aria-current="page"] {
  color: var(--head);
}
.rail a[aria-current="page"] .icon {
  color: var(--accent);
}
.rail a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26%;
  right: 26%;
  height: 3px;
  background: var(--accent);
}
.rail .menu-demo {
  display: none;
}

@media (min-width: 1024px) {
  .rail {
    position: sticky;
    top: var(--top-h);
    inset: auto;
    height: auto;
    padding: 0 16px;
    background: var(--accent);
    border: 0;
  }
  .menu-in {
    max-width: 1200px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    gap: 0;
  }
  .rail a {
    flex-direction: row;
    gap: 8px;
    padding: 0 18px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--on-accent);
  }
  .rail a .icon {
    width: 20px;
    height: 20px;
  }
  .rail a:hover {
    background: rgba(0, 0, 0, 0.08);
  }
  .rail a[aria-current="page"] {
    background: rgba(0, 0, 0, 0.12);
    color: var(--on-accent);
  }
  .rail a[aria-current="page"] .icon {
    color: var(--on-accent);
  }
  .rail a[aria-current="page"]::before {
    display: none;
  }
  .rail .menu-demo {
    display: flex;
    margin-left: auto;
    font-size: 0.85rem;
    text-decoration: underline;
  }
}

/* ---------- layout ---------- */
.shell {
  min-height: 100dvh;
}
main {
  padding: 20px 16px calc(var(--tab-h) + 32px + env(safe-area-inset-bottom));
  max-width: 820px;
  margin: 0 auto;
  outline: none;
}
.shell.bare main {
  padding-bottom: 40px;
  max-width: 480px;
}
.shell.wide main {
  max-width: 1240px;
}
@media (min-width: 1024px) {
  main {
    padding: 36px 32px 64px;
  }
}

.auth-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 24px;
}
.auth-head img {
  width: 174px;
  height: auto;
}
.auth-head span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- page head ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-head p {
  color: var(--muted);
  margin-top: 6px;
  max-width: 34rem;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 14px;
  min-height: 32px;
}
.back:hover {
  color: var(--head);
}

/* ---------- panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.panel + .panel,
.panel + .stack,
.stack + .panel {
  margin-top: 16px;
}
.panel h2 + *,
.panel h3 + * {
  margin-top: 12px;
}
.stack > * + * {
  margin-top: 16px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field + .field,
.field + .row,
.row + .field,
.row + .row {
  margin-top: 16px;
}
.field > label,
.field > .label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--head);
}
.hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--r);
  transition: border-color 0.15s;
}
.input:hover {
  border-color: var(--muted);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
  outline: none;
}
.input[aria-invalid="true"] {
  border-color: var(--err);
}
textarea.input {
  min-height: 112px;
  resize: vertical;
}
.input.code {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
  max-width: 220px;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input-row .input {
  flex: 1;
  min-width: 0;
}
.row {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .row.two {
    grid-template-columns: 1fr 1fr;
  }
  .row.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}

/* segmented choice (radios) */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--field-line);
  border-radius: var(--r);
  overflow: hidden;
}
.seg label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.86rem;
  background: var(--surface);
}
.seg label + label {
  border-left: 1px solid var(--line);
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg label:has(input:checked) {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.seg label:has(input:focus-visible) {
  box-shadow: inset 0 0 0 3px var(--head);
}

/* ---------- buttons (site: flat, 2px, 16x24) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-dark:hover:not(:disabled) {
  background: #2b2b33;
}
.btn-ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--head);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--accent-soft);
}
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}
.btn-block {
  width: 100%;
}
.btn-icon {
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: var(--r);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  color: var(--err);
  background: var(--err-soft);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 639px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- notes ---------- */
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 0.9rem;
}
.note .icon {
  margin-top: 2px;
  color: var(--muted);
}
.note.demo {
  background: var(--accent-soft);
}
.note.demo .icon {
  color: var(--accent-ink);
}
.note.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.note.ok .icon {
  color: var(--ok);
}
.note.err {
  background: var(--err-soft);
  color: var(--err);
}
.note.err .icon {
  color: var(--err);
}
.note b {
  font-weight: 700;
}

/* ---------- read-only data list ---------- */
.dl {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}
.dl > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.dl > div:first-child {
  border-top: 0;
}
.dl dt {
  color: var(--muted);
  font-size: 0.86rem;
}
.dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--head);
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .dl.cols {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
  .dl.cols > div:nth-child(2) {
    border-top: 0;
  }
}
@media (max-width: 479px) {
  .dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- license plate ---------- */
.plate {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 2px solid #1d1d1d;
  border-radius: 4px;
  background: #fff;
  color: #1d1d1d;
  font: 600 1.05rem/1 var(--font);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.plate .p-main {
  display: flex;
  align-items: center;
  padding: 0 8px 0 9px;
}
.plate .p-main i {
  font-style: normal;
  font-size: 0.8em;
  padding: 0 1px;
}
.plate .p-reg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 2px solid #1d1d1d;
  padding: 0 6px;
  font-size: 0.78rem;
  line-height: 1;
}
.plate .p-reg small {
  font: 700 0.42rem/1 var(--font);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.plate.vin {
  font-size: 0.82rem;
}
.plate.vin .p-main {
  padding: 0 10px;
}
.plates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.plates .plus {
  color: var(--muted);
  font-weight: 700;
}

/* ---------- vehicles ---------- */
.vlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vitem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.vitem:first-child {
  border-top: 0;
  padding-top: 4px;
}
.vitem .model {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 8px;
}
.vitem .caps {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.9rem;
}
.vitem .caps b {
  font-weight: 700;
  color: var(--head);
}

/* ---------- cargo feed ---------- */
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.feed li + li {
  border-top: 1px solid var(--line);
}
.feed a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.feed a:hover {
  background: var(--surface-2);
  border-left-color: var(--accent);
}
.feed .num {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.feed .route {
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--head);
  overflow-wrap: anywhere;
}
.feed .rate {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--head);
  text-align: right;
  white-space: nowrap;
}
.feed .meta {
  color: var(--muted);
  font-size: 0.86rem;
}
.feed .vat {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r);
  background: var(--ok-soft);
  color: var(--ok);
}
.tag.new {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.feed-head {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0 18px 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- cargo card ---------- */
.route-big {
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
}
.route-big .arrow {
  color: var(--accent);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 20px;
}
.facts > div {
  background: var(--surface);
  padding: 14px 16px;
}
.facts dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.facts dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--head);
}
.facts .wide {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
  .facts .half {
    grid-column: span 2;
  }
}
.offer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.offer-total .sum {
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--head);
}
.offer-total .sum small {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 6px;
}

/* ---------- directions ---------- */
.dirs {
  display: grid;
  gap: 10px;
}
.dir {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
}
.dir:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.dir input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  grid-row: span 2;
}
.dir b {
  font-weight: 600;
  font-size: 1rem;
  color: var(--head);
}
.dir span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- trips / bonuses (dark block like the site footer) ---------- */
.bonus-hero {
  display: grid;
  gap: 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: 22px;
}
.bonus-hero .label {
  color: #b4b7bf;
  font-size: 0.9rem;
}
.bonus-hero .total {
  font-weight: 700;
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem);
  line-height: 1;
  color: var(--accent);
}
.bonus-hero .total small {
  font-size: 0.42em;
  font-weight: 500;
  color: #fff;
  margin-left: 6px;
}
.bonus-hero .hint {
  color: #b4b7bf;
}
@media (min-width: 768px) {
  .bonus-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.trips {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.trip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.trip:first-child {
  border-top: 0;
}
.trip .route {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--head);
}
.trip .meta {
  color: var(--muted);
  font-size: 0.86rem;
}
.trip .bonus {
  text-align: right;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--accent-ink);
  white-space: nowrap;
}
.trip .bonus small {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- empty state ---------- */
.empty {
  padding: 28px 22px;
  background: var(--surface);
  border: 1px dashed var(--field-line);
  border-radius: var(--r);
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
}
.empty h2 {
  margin-top: 12px;
}
.empty p {
  color: var(--muted);
  margin-top: 6px;
  max-width: 32rem;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  max-width: min(92vw, 440px);
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(23, 23, 29, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.toast.show {
  opacity: 1;
}
.toast.err {
  background: var(--err);
}
@media (min-width: 1024px) {
  .toast {
    bottom: 24px;
  }
}

/* ---------- demo bar and logist console ---------- */
.demo-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  background: var(--accent-soft);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.82rem;
}
.demo-bar .icon {
  color: var(--accent-ink);
}
.demo-bar a {
  grid-column: 2;
  color: var(--accent-ink);
}
@media (min-width: 768px) {
  .demo-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
}
.console {
  display: grid;
  gap: 16px;
  align-items: start;
}
@media (min-width: 1024px) {
  .console {
    grid-template-columns: 360px 1fr;
  }
  .console .outbox-col {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}
.rlist,
.olist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.rlist li,
.olist li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.rlist li:first-child,
.olist li:first-child {
  border-top: 0;
}
.rlist .top,
.olist .top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}
.olist pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 500 0.86rem/1.5 var(--font);
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: var(--r);
}
.chan {
  font-weight: 700;
  color: var(--head);
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filters button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.84rem;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* Montserrat runs wide: let segments shrink and long buttons wrap on phones. */
.seg { grid-auto-columns: minmax(0, 1fr); }
.seg label { padding: 8px 6px; overflow-wrap: anywhere; }
@media (max-width: 639px) { .actions .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 10px 16px; } }
