@font-face {
  font-family: Roboto;
  src: url('assets/roboto.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f4f4;
  --white: #fff;
  --ink: #222c32;
  --muted: #58626a;
  --line: #dce1e4;
  --accent: #ce294d;
  --accent-hover: #ad1c3e;
  --navy: #1c2e40;
  --round: 8px;
  --popup-radius: 24px;
  --popup-surface: rgb(255 255 255 / 84%);
  --popup-notice: rgb(30 47 60 / 92%);
  --weight-heading: 650;
  --weight-label: 600;
  font-family: Roboto, system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #0976a3; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1200px, 85%); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 4; padding: .75rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { background: #fff; color: var(--ink); }
.header-inner, .header-utilities { display: flex; align-items: center; justify-content: space-between; }
.site-footer button { background: none; color: inherit; font: inherit; padding: 0; border: 0; }
.site-footer a:hover, .site-footer button:hover { text-decoration: underline; }
.header-inner { min-height: 87px; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .67rem; color: var(--ink); }
.brand img { display: block; width: 43px; height: 43px; }
.brand-words { display: grid; gap: .1rem; }
.brand-words strong { font-size: 1.55rem; letter-spacing: -.045em; line-height: 1.05; }
.brand-words b { color: #0875a5; }
.brand-words small { font-size: .8rem; color: var(--muted); }
.header-utilities { justify-content: end; gap: 1.4rem; }
.header-tool { display: flex; align-items: center; gap: .75rem; padding: .3rem 0; color: var(--ink); background: none; border: 0; text-align: left; }
.header-tool + .header-tool { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.ui-icon { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; width: 26px; height: 26px; flex: none; color: var(--accent); }
.header-tool strong, .header-tool small { display: block; }
.header-tool strong { font-size: .97rem; font-weight: 620; }
.header-tool small { color: var(--muted); font-size: .84rem; margin-top: .17rem; }
.header-tool:hover strong { color: var(--accent-hover); }
.nav-band { background: #252f36; color: #fff; }
.main-nav { display: flex; align-items: stretch; flex-wrap: wrap; }
.main-nav a { display: flex; align-items: center; padding-inline: clamp(.65rem, 1.25vw, 1.4rem); min-height: 50px; border-left: 1px solid #ffffff12; font-size: .86rem; font-weight: 600; letter-spacing: .015em; text-transform: uppercase; }
.main-nav a:last-child { border-right: 1px solid #ffffff12; }
.main-nav a:hover, .main-nav a[aria-current] { background: #38444c; box-shadow: inset 0 -3px var(--accent); }
.button, .card-action { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; padding: .7rem 1.26rem; border: 1px solid transparent; border-radius: 2px; font-size: .95rem; font-weight: 550; line-height: 1.35; text-align: center; cursor: pointer; transition: background .16s, border-color .16s; }
.primary, .card-action { background: var(--accent); color: #fff; }
.primary:hover, .card-action:hover { background: var(--accent-hover); }
.outline { background: #fff; color: var(--ink); border-color: #afb8be; }
.outline:hover { background: #f3f4f4; border-color: #717a81; }
.text-button { color: #a21e3c; background: transparent; padding-inline: .3rem; }
.text-button:hover, .back-home:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero { position: relative; color: white; background: #463a2e; }
.hero-slide { position: relative; isolation: isolate; overflow: hidden; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% 54%; }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #211d18cb 0%, #251d148a 32%, #201b152f 62%, #17151317 100%); }
.hero-layout { width: min(1340px,88%); margin-inline: auto; min-height: clamp(450px, 43vw, 640px); display: grid; align-items: center; }
.hero-copy { max-width: min(480px, 53%); padding-block: 3rem; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(2.5rem, 4.4vw, 4.5rem); font-weight: 800; text-transform: uppercase; line-height: 1.04; letter-spacing: -.028em; }
.hero-subtitle { font-size: clamp(1.55rem, 2.3vw, 2.45rem); font-weight: 500; line-height: 1.2; margin-top: .48rem; }
.hero-intro { max-width: 440px; margin-top: 1rem; font-size: 1.04rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.55rem; }
.hero-secondary { background: #fff; color: #222; }
.hero-secondary:hover { background: #e9e9e9; }
.hero-controls { position: absolute; inset: 50% 0 auto; height: 0; display: flex; align-items: center; justify-content: space-between; padding-inline: .55rem; pointer-events: none; }
.hero-controls button { width: 35px; height: 40px; display: grid; place-items: center; border: 0; color: #fff; background: #17171785; pointer-events: auto; }
.hero-controls button:hover { background: #202020dc; }
.hero-controls button::before { content: ''; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; }
.slide-next::before { transform: rotate(-45deg); }
.slide-prev::before { transform: rotate(135deg); }
.message-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: linear-gradient(148deg, #426bd5, #453d9c); }
.message-icon::before { content: ''; width: 13px; height: 11px; border: 2px solid #fff; border-radius: 5px 5px 5px 1px; }

.section { padding-block: clamp(3rem, 5vw, 5.5rem); }
.section-title, .source-layout h2 { color: var(--ink); font-size: clamp(1.55rem, 2.35vw, 2.15rem); line-height: 1.12; text-transform: uppercase; letter-spacing: -.025em; font-weight: 760; }
.workflow-section { background: #fff; }
.workflow-section .section { padding-block: clamp(1.9rem, 3.6vw, 3.7rem); }
.service-grid, .feature-grid, .source-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px, 2.2vw, 32px); }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e2e2; box-shadow: 0 2px 5px #20202016; }
.service-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.78; object-fit: cover; }
.service-copy { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 1.45rem clamp(1rem, 1.55vw, 1.7rem) 1.25rem; }
.service-copy h3, .feature-grid h3 { font-size: clamp(1.02rem, 1.4vw, 1.3rem); font-weight: 730; text-transform: uppercase; line-height: 1.22; }
.service-copy p { margin: .85rem 0 1.3rem; color: var(--muted); line-height: 1.55; }
.service-copy > .card-action, .criteria { margin-top: auto; }
.card-action { min-height: 39px; padding: .53rem .92rem; width: fit-content; font-size: .88rem; }
.criteria { width: 100%; }
.criteria summary { list-style: none; }
.criteria summary::-webkit-details-marker { display: none; }
.criteria summary::after { content: '+'; margin-left: .6rem; font-size: 1rem; }
.criteria[open] summary::after { content: '−'; }
.criteria dl { margin: .8rem 0 0; border-top: 1px solid var(--line); padding-top: .4rem; font-size: .9rem; }
.criteria dl div { display: flex; flex-wrap: wrap; gap: .2rem .6rem; justify-content: space-between; padding-block: .2rem; }
.criteria dt, .example-stats dt { color: var(--muted); }
.criteria dd { margin: 0; }
.criteria-band { background: #efefef; }
.feature-grid, .source-list { list-style: none; margin: 1.7rem 0 0; padding: 0; }
.feature-grid { row-gap: 1rem; }
.feature-grid li { padding: 1.35rem; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.feature-grid h3 { font-size: 1rem; }
.feature-grid p { color: var(--muted); line-height: 1.45; margin-top: .35rem; }
.feature-grid .ui-icon { width: 36px; height: 36px; }
.example-band { background: #fff; }
.example-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 6vw, 95px); padding-block: clamp(3rem, 5.5vw, 5.8rem); }
.example-layout p { margin-top: 1rem; color: var(--muted); line-height: 1.6; max-width: 490px; }
.route-figure { margin: 0; }
.route-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.example-stats { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 1.1rem 0 1.2rem; }
.example-stats dt { font-size: .86rem; }
.example-stats dd { margin: .27rem 0 0; font-weight: 660; font-size: 1.17rem; font-variant-numeric: tabular-nums; }
.plans-section { color: #fff; border-block: 5px solid #73777a; background: linear-gradient(95deg,#161c22dc,#131a2190), url('assets/fleet.jpg') center 52% / cover; }
.plan-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; }
.plan-callout h2 { max-width: 690px; font-size: clamp(1.6rem, 2.5vw, 2.55rem); font-weight: 690; line-height: 1.15; text-transform: uppercase; }
.plan-callout p { margin-top: .8rem; color: #f1f2f3; line-height: 1.55; }
.plan-callout .button { flex: none; }
.sources-section { background: white; }
.source-layout { padding-block: clamp(2.5rem, 4vw, 4rem); }
.source-list li { border: 1px solid #d9dcdf; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.3rem .75rem; gap: .85rem; }
.source-list img { display: block; height: 36px; max-width: 100%; object-fit: contain; }
.source-list .brand-pyat { width: 165px; }
.source-list .brand-ozon { width: 116px; }
.selta-lockup { display: flex; align-items: center; gap: .6rem; height: 36px; font-size: 1.5rem; font-weight: 650; }
.source-status { font-size: .875rem; color: #555e64; display: flex; align-items: center; gap: .4rem; }
.source-status::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; }
.source-status.current::before { background: #387352; }
.source-status.planned::before { border: 1px solid #78818a; }
.footer-band { background: var(--navy); color: #fff; }
.site-footer { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-block: clamp(2rem, 4vw, 4rem); border-bottom: 8px solid #152737; }
.site-footer h2 { margin-bottom: .55rem; font-size: .95rem; text-transform: uppercase; }
.site-footer p, .site-footer nav a, .site-footer button { color: #ccd3d9; font-size: .92rem; line-height: 1.65; }
.site-footer nav a, .site-footer button { display: block; width: fit-content; }
.site-footer .carrier-links :is(a,button) { text-align:start; }
.site-footer p { margin-top: .65rem; }
.footer-brand, .footer-brand .brand-words small { color: white; }
.footer-brand .brand-words b { color: #5ab6dd; }
.workspace { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.2rem); padding-block: 3rem 4rem; align-items: start; }
.sidebar { display: grid; gap: 1.55rem; }
.company-label { min-width: 0; display: flex; align-items: center; gap: .7rem; padding-block: .65rem 1.15rem; border-bottom: 1px solid var(--line); }
.company-mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 2px; background: #0875a5; color: #fff; font-weight: var(--weight-heading); }
.company-label strong { display: block; font-weight: var(--weight-heading); overflow-wrap: anywhere; }
.company-label small { display: block; color: var(--muted); font-size: .83rem; }
.workspace-nav { display: grid; gap: .3rem; }
.workspace-nav button { border: 0; padding: .72rem .8rem; border-radius: 2px; text-align: left; background: transparent; color: #435166; min-height: 43px; font-weight: var(--weight-label); }
.workspace-nav button:hover, .workspace-nav button[aria-current] { color: #8b1c37; background: #f9e8ed; }
.back-home { color: var(--muted); font-size: .88rem; padding-left: .8rem; }
.demo-info { color: #566277; font-size: .84rem; margin-bottom: .8rem; }
.dashboard-head { display: flex; gap: .9rem; align-items: center; justify-content: space-between; margin: 0 0 1.5rem; }
.dashboard-head h1[tabindex="-1"]:focus { outline: none; }
.dashboard-head h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: var(--weight-heading); letter-spacing: -.041em; line-height: 1.12; }
.dashboard-head p { color: var(--muted); margin-top: .3rem; line-height: 1.5; }
.dashboard-head > button { flex: none; }
.fleet-max-prompt { border-radius: var(--popup-radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin-bottom: 1.25rem; padding: 1rem; border-inline-start: 3px solid var(--accent); background: #fcf4f5; }
.fleet-max-prompt p { flex: 1 1 16rem; }
.fleet-tools { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: 1.2rem; }
.fleet-tools button { min-height: 37px; border-radius: 2px; border: 1px solid #cdd6e1; background: transparent; color: var(--muted); font-weight: var(--weight-label); padding: .35rem .75rem; font-size: .88rem; }
.fleet-tools button:hover, .fleet-tools button[aria-pressed="true"] { background: #29343c; color: var(--white); border-color: #29343c; }
.fleet-heading, .fleet-row { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.55fr) 6rem 10.75rem; column-gap: 1rem; align-items: center; }
.fleet-heading { border-inline: 1px solid transparent; padding: .3rem 1rem .55rem; font-size: .9rem; font-weight: var(--weight-label); color: var(--muted); }
.fleet-row { padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--popup-radius); margin-bottom: .35rem; }
.fleet-row strong { display: block; font-weight: var(--weight-label); overflow-wrap: anywhere; }
.fleet-row small { display: block; font-size: .89rem; color: var(--muted); line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fleet-row .button { min-height: 38px; padding: .4rem .65rem; font-size: .84rem; }
.status { width: fit-content; padding: .3rem .55rem; border-radius: 7px; font-size: .84rem; font-weight: var(--weight-label); color: #32556b; background: #edf1f5; }
.status.active { color: #235740; background: #e4f3e9; }
.empty-state { padding: 2rem; background: #fff; border: 1px dashed #bac3cf; border-radius: var(--popup-radius); color: var(--muted); }
.empty-state strong { color: var(--ink); display: block; margin-bottom: .4rem; }
.max-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--popup-radius); padding: 1rem; }
.max-settings h2 { font-size: 1.15rem; }
.max-settings p { color: var(--muted); line-height: 1.5; }
.max-settings .button { margin-inline-start: auto; }
.max-workspace-actions { margin-top: 1rem; }

dialog {
  width: min(470px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: var(--popup-radius);
  padding: 1.55rem;
  background: var(--popup-surface);
  color: var(--ink);
  box-shadow: 0 24px 72px rgb(12 29 43 / 28%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
dialog::backdrop { background: rgb(12 25 43 / 40%); }
.dialog-close { position: absolute; top: .72rem; right: .72rem; display: grid; place-items: center; width: 36px; height: 36px; background: transparent; border: 0; border-radius: 4px; color: var(--muted); font-size: 1.35rem; line-height: 1; }
.dialog-close:hover { color: var(--ink); background: rgb(0 0 0 / 5%); }
.dialog-close:focus-visible { outline: 2px solid currentColor; outline-offset: 0; }
#dialog-content > p { margin-top: .6rem; color: var(--muted); line-height: 1.5; }
.preview-truck-choice { display: grid; gap: .3rem; margin-top: 1rem; font-weight: var(--weight-label); }
form { display: grid; gap: .75rem; margin-top: 1rem; }
form label { display: grid; gap: .28rem; min-width: 0; font-size: .9rem; font-weight: var(--weight-label); }
input:not([type="checkbox"]), textarea, select { min-width: 0; min-height: 42px; width: 100%; border: 1px solid #bfc9d7; border-radius: 3px; padding: .52rem .6rem; color: var(--ink); background: #fff; font-weight: 450; font-size: 1rem; }
input::placeholder { color: #667487; }
select { appearance: none; background: #fff conic-gradient(from 315deg at 50% 69%, transparent 0deg 270deg, var(--muted) 270deg 360deg) right .65rem center / 7px 10px no-repeat; padding-inline-end: 1.65rem; }
.form-twin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
form .checkbox { display: flex; align-items: center; gap: .42rem; align-self: start; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.form-note { line-height: 1.45; color: var(--muted); font-size: .83rem; }
form .text-button { min-height: 35px; }
.chat { background: #e8edf7; border-radius: 17px; border: 1px solid #d4dfef; margin-top: 1rem; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: .65rem; padding: .63rem .8rem; border-bottom: 1px solid #d0daeb; background: #f7f9fe; font-size: .88rem; }
.chat-header > span:last-child { display: grid; }
.chat-header small { color: var(--muted); font-size: .8rem; }
.message { margin: .75rem; padding: .9rem .95rem; border-radius: 4px 13px 13px; background: #fff; box-shadow: 0 1px 2px #29417018; }
.message-label { display: flex; gap: .45rem; font-size: .82rem; color: #35546e; font-weight: var(--weight-label); }
.message-label span { background: #e8f0f8; padding: .16rem .45rem; border-radius: 6px; overflow-wrap: anywhere; }
.message h3 { margin-top: .4rem; font-size: 1.16rem; font-weight: var(--weight-heading); letter-spacing: -.02em; }
.message-price { font-size: 1.38rem; font-weight: 680; letter-spacing: -.025em; margin-top: .38rem; }
.message-price small { font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.message-detail { margin: .6rem 0; padding-top: .5rem; border-top: 1px solid #e0e6ee; font-size: .88rem; font-variant-numeric: tabular-nums; }
.message-detail div { display: flex; justify-content: space-between; gap: .55rem; margin-bottom: .25rem; }
.message-detail dd { margin: 0; text-align: right; }
.message-detail dt { color: var(--muted); }
.message-button { width: 100%; padding: .47rem .65rem; border: 0; border-radius: 7px; color: #173c77; background: #e6eefb; font-weight: var(--weight-label); min-height: 37px; font-size: .88rem; }
.message-button:hover { background: #d2e1fa; }
.message-button.subtle { margin-top: .35rem; background: #f2f5fb; }
.message-button.subtle:hover { background: #e6eefb; }
.message-feedback { padding-top: .4rem; font-size: .84rem; color: #3c5271; line-height: 1.45; }
#feedback:not(:empty) { z-index: 5; position: fixed; inset: auto 1rem 1rem auto; max-width: min(380px, calc(100% - 2rem)); border-radius: var(--popup-radius); color: #fff; background: var(--popup-notice); padding: .7rem 1rem; font-size: .92rem; box-shadow: 0 6px 24px #1728403b; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 52px); }
  .hero-layout { width: 86%; }
  .workspace { grid-template-columns: 185px minmax(0, 1fr); }
  .fleet-heading, .fleet-row { grid-template-columns: minmax(0,.65fr) minmax(0,1.5fr) 5.5rem 6rem; gap: .6rem; }
  .main-nav a { padding-inline: .7rem; font-size: .81rem; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; }
  .brand img { width: 35px; height: 35px; }
  .brand-words strong { font-size: 1.23rem; }
  .brand-words small { font-size: .76rem; }
  .header-utilities .contact-link { display: none; }
  .header-tool + .header-tool { border: 0; padding-left: 0; }
  .header-tool { gap: .35rem; }
  .header-tool strong { font-size: .88rem; }
  .header-tool small { display: none; }
  .header-tool .ui-icon { width: 21px; }
  .main-nav { justify-content: space-between; flex-wrap: nowrap; }
  .main-nav a { min-height: 43px; padding-inline: .25rem; border: 0; }
  .main-nav a:last-child { border: 0; }
  .main-nav a[href="#home"], .main-nav a[href="#criteria"], .main-nav a[href="#example"] { display: none; }
  .hero-layout { width: calc(100% - 36px); min-height: 430px; align-items: end; }
  .hero-image { object-position: 73% 40%; }
  .hero-slide::before { background: linear-gradient(0deg, #1b1815ef 0%, #1b1815ce 34%, #261e1360 72%, #261e1315); }
  .hero-copy { max-width: 100%; padding: 9rem 0 2.2rem; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(2rem, 8vw, 3.1rem); }
  .hero-subtitle { font-size: 1.35rem; }
  .hero-intro { margin-top: .7rem; font-size: 1rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-controls { inset: 14px 11px auto auto; height: auto; gap: 3px; padding: 0; }
  .hero-controls button { width: 33px; height: 34px; }
  .service-grid, .example-layout, .workspace { grid-template-columns: 1fr; }
  .service-photo { max-height: 265px; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .feature-grid li { align-items: start; flex-direction: column-reverse; justify-content: start; padding: .95rem; gap: .65rem; }
  .feature-grid .ui-icon { width: 26px; height: 26px; }
  .feature-grid p { font-size: .93rem; }
  .plan-callout { align-items: start; flex-direction: column; }
  .source-list { grid-template-columns: 1fr; gap: .5rem; }
  .source-list li { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding: .9rem; align-items: center; }
  .source-list img { height: 30px; object-position: left center; }
  .site-footer { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
  .site-footer > :first-child { grid-column: 1/-1; }
  .workspace { padding-top: 1rem; }
  .sidebar { gap: .45rem; }
  .workspace-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
  .back-home { display: none; }
  .dashboard-head { margin-bottom: 1rem; flex-wrap: wrap; }
  .fleet-heading { display: none; }
  .fleet-row { grid-template-columns: minmax(0,1fr) auto; row-gap: .65rem; }
  .fleet-route { grid-column: 1 / -1; grid-row: 2; }
  .fleet-row .truck-controls { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
  .wrap, .hero-layout { width: calc(100% - 28px); }
  .hero-actions .button { padding-inline: .8rem; }
  dialog { padding: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.truck-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}.truck-controls .text-button{color:#973744}
#access-message{border-radius:var(--popup-radius);border-left:3px solid #ce3550;padding: .8rem 1rem;background:#f6f7f8;line-height:1.5}
#dialog-content [hidden]{display:none}
.demo-info button,.back-home[data-action]{cursor:pointer;color:inherit;text-decoration:underline;background:transparent;border:0;font:inherit}
.manager-account{padding:1rem 0;border-bottom:1px solid #d9dfe5}.manager-account p{margin:.35rem 0}
.organization-details { max-width: 44rem; margin: 0 0 1.25rem; padding-inline: 1rem; background: white; border: 1px solid var(--line); border-radius: var(--popup-radius); }
.organization-details > div { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr); gap: .75rem; padding-block: .85rem; }
.organization-details > div + div { border-top: 1px solid var(--line); }
.organization-details dt { color: var(--muted); }
.organization-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .organization-details > div { grid-template-columns: 1fr; gap: .25rem; }
}
.freight-statistics{padding-block:clamp(3rem,7vw,6rem)}.freight-statistics p{max-width:72ch;line-height:1.6}.freight-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:2rem;margin:2rem 0}.freight-stats>div{border-left:3px solid #c73450;padding-inline-start:1rem;display:flex;flex-direction:column-reverse}.freight-stats dd{font-size:clamp(2.7rem,5vw,4rem);font-weight:750;margin:0}

dialog form label, dialog form legend { font-size: .9rem; font-weight: 500; }
#support-form textarea{resize:vertical;min-height:5rem}
dialog .button { font-size: .95rem; font-weight: 500; }
#support-result:empty{display:none}
.support-links { display: grid; gap: .75rem; margin-top: 1rem; }

.freight-days { margin-top: 1.5rem; max-width: 48rem; border-top: 1px solid #d8dfe3; }
.freight-days summary { padding: 1rem 0; cursor: pointer; font-weight: 600; }
.freight-days table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.freight-days caption { text-align: left; font-weight: 600; padding: 1rem 0 .5rem; }
.freight-days th, .freight-days td { text-align: left; padding: .5rem; border-bottom: 1px solid #d8dfe3; }
.freight-days thead { background: #f1f4f6; }
.freight-days tbody th { font-weight: 500; }
@media (max-width: 36rem) {
  .freight-days table { font-size: .875rem; }
  .freight-days th, .freight-days td { padding: .5rem .2rem; overflow-wrap: anywhere; }
}
.access-toast { position: sticky; bottom: 0; margin-top: 1rem; padding: .8rem 1rem; background: var(--popup-notice); color: white; border-radius: var(--popup-radius); box-shadow: 0 3px 14px #17284032; font-size: 1rem; }
.account-delete-confirm { padding: 1rem; border: 1px solid #d7b8bb; border-radius: var(--popup-radius); }
.account-delete-confirm .button { margin: .35rem .4rem 0 0; }
.release-location { border-radius:var(--popup-radius); display: grid; gap: .65rem; min-width: 0; padding: .8rem; border: 1px solid #d3d6d8; }
.release-location legend { padding: 0 .3rem; }
.release-location .map-feedback:empty { display: none; }
.release-location p { font-size: .925rem; }
.release-map { height: 260px; margin: .5rem 0; }
.release-map[hidden], .release-location button[hidden] { display: none; }

.release-pin { display:block; width:18px; height:18px; border-radius:50%; background:#bd274d; border:2px solid white; box-shadow:0 0 0 1px #781732; pointer-events:none; }

.cabinet-links { display:grid; justify-items:start; gap:.35rem; padding:.8rem 0; border-top:1px solid var(--line) }
.cabinet-links :is(a,button) { background:none; border:0; font:inherit; font-size:.94rem; font-weight:450; color:#435166; padding:.4rem .8rem; text-decoration:none; cursor:pointer }
.cabinet-links :is(a,button):hover { color:var(--ink); text-decoration:underline }
.workspace .dashboard-head h1 { font-size:clamp(1.5rem,2vw,1.85rem); font-weight:600; letter-spacing:-.025em }
.matching-control { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:.8rem; border:1px solid var(--line); border-radius:var(--popup-radius); background:var(--white); padding:1rem; margin-bottom:1rem }
.matching-control strong,.matching-control span { display:block }
.matching-control span { color:var(--muted); margin-top:.15rem; font-size:.94rem }
dialog:has(#truck-form, #register-form) { width:min(940px,calc(100% - 24px)) }
@media(min-width:740px){
  :is(#truck-form, #register-form) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 1.35rem; align-items:start }
  :is(#truck-form, #register-form) :is(fieldset,small,.form-twin,.vehicle-specs,button[type=submit]) { grid-column:1/-1 }
  :is(#truck-form, #register-form) button[type=submit] { justify-self:end; min-width:12rem }
}
#register-form textarea { resize: vertical; }
[data-org-field="vehicleSpecs"] { white-space: pre-line; }
@media(max-width:739px){ .cabinet-links { display:flex; flex-wrap:wrap } }

.place-search { position:relative; min-width:0; }
.place-search > input { width:100%; margin-top:.28rem; }
.place-results {
  position:absolute; top:calc(100% + 4px); inset-inline:0; z-index:5;
  max-height:min(15rem,35vh); overflow-y:auto; overscroll-behavior:contain;
  padding:.35rem; border:1px solid #d4dce0; border-radius:16px;
  background:rgb(255 255 255 / 96%); box-shadow:0 5px 15px rgb(25 43 55 / 12%);
}
.place-option { display:grid; gap:2px; padding:.5rem .68rem; border-radius:10px; cursor:pointer; line-height:1.25; }
.place-name { font-size:1rem; color:#202b32; font-weight:450; }
.place-name strong { font-weight:650; }
.place-region { color:#5b6871; font-size:.875rem; font-weight:400; }
.place-option:hover,.place-option[aria-selected=true] { background:#edf3f5; }
@media(min-width:740px){ .place-search { align-self:start; } }

.auth-methods{display:flex;gap:.25rem;margin:1rem 0;padding:.25rem;border-radius:.5rem;background:#edf1f4}
.auth-methods button{flex:1;padding:.65rem;border:0;border-radius:.35rem;background:transparent;color:#304758;font:inherit;cursor:pointer}
.auth-methods button[aria-pressed="true"]{background:white;color:#182f40;box-shadow:0 1px 3px #18324022}
.auth-methods button:disabled{color:#65727d;cursor:default}

@media (prefers-reduced-transparency: reduce) {
  :root { --popup-surface: white; --popup-notice: #1e2f3c; }
  dialog { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .place-results { background: white; }
}

.login-brand { display: none; }
dialog h2 {
  font: 500 1.25rem/1.3 Roboto, Arial, sans-serif;
  letter-spacing: normal;
  text-align: center;
  padding-inline: 1.5rem;
}
dialog {
  font: 400 1rem/1.45 Roboto, Arial, sans-serif;
  margin: auto;
  padding: clamp(24px, 3vw, 44px);
}
dialog :is(input:not([type="checkbox"]), textarea, select):focus {
  outline: none;
  border-color: #60666b;
  box-shadow: inset 0 0 0 1px #60666b;
}
@media (forced-colors: active) {
  dialog :is(input:not([type="checkbox"]), textarea, select):focus { outline: 2px solid Highlight; }
}
dialog:has(.branded-dialog-title)::backdrop {
  background: linear-gradient(90deg, rgb(13 27 38 / 38%), rgb(13 27 38 / 8%)),
              url("assets/highway.jpg") 72% center / cover no-repeat #37434a;
}
dialog:has(.branded-dialog-title) .login-brand { display: inline-flex; margin-bottom: 1.5rem; }
@media (max-width: 700px) {
  dialog:has(.branded-dialog-title)::backdrop { background-position: center, 67% center; }
}

.policy-page a { text-decoration: underline; text-underline-offset: .2em; }
.policy-page { background: #fff; }
.policy-page main { max-width: 50rem; margin: 0 auto; padding: 2rem clamp(1.25rem, 5vw, 3rem) 4rem; line-height: 1.6; }
.policy-page header { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.policy-page h1 { margin: 1.4rem 0 .35rem; font-size: clamp(1.65rem, 4vw, 2.4rem); line-height: 1.16; }
.policy-page h2 { margin: 1.65rem 0 .35rem; font-size: 1.2rem; line-height: 1.4; }
.policy-page p + p { margin-top: .55rem; }
.policy-page dt { margin-top: .8rem; font-weight: 600; }
.policy-page dd { margin: .1rem 0 0; }

/* Carrier workspace on the loading-dock photograph. */
body:has(#workspace:not([hidden])) { min-height:100vh; isolation:isolate; background:#23313a; }
body:has(#workspace:not([hidden]))::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg, rgb(16 28 35 / 6%) 22%, rgb(14 24 32 / 20%) 43%, rgb(14 24 32 / 65%) 70%),
             linear-gradient(0deg, rgb(11 23 33 / 44%), transparent 60%),
             url("assets/dock.jpg") 37% 59% / cover no-repeat;
}
body:has(#workspace:not([hidden])) .site-header { background:#172936f5; color:#fff; }
body:has(#workspace:not([hidden])) .site-header :is(.brand,.header-tool,.brand small) { color:#fff; }
body:has(#workspace:not([hidden])) .site-header :is(.brand b,.ui-icon) { color:#76c7e4; }
body:has(#workspace:not([hidden])) .header-tool small { color:#d0dce4; }
body:has(#workspace:not([hidden])) .nav-band { display:none; }

#workspace { width:min(94%, 92rem); grid-template-columns:clamp(13.5rem,21vw,19rem) minmax(0,1fr); column-gap:1.5cm; padding-block:clamp(1.5rem,4vh,3rem) 3rem; }
#workspace .sidebar { gap:.9rem; background:rgb(255 255 255 / 96%); padding:1.05rem; border:1px solid #dbe1e5; border-radius:18px; box-shadow:0 8px 28px #101d291a; }
#workspace .workspace-nav button { border-radius:.55rem; }
#workspace .workspace-main { min-width:0; }
#workspace:has(#fleet-panel:not([hidden])) .sidebar { align-self:stretch; align-content:start; }
#workspace .demo-info, #workspace .fleet-intro :is(h1,p), #workspace .fleet-heading {
  color:#fff; text-shadow:0 1px 4px #101820e0;
}
#workspace .demo-info button { color:inherit; text-underline-offset:.16em; }
#workspace .fleet-intro { display:grid; justify-items:start; justify-content:start; gap:.8rem; margin-bottom:1.3rem; }
#workspace .fleet-intro h1 { font-size:clamp(1.75rem,2.3vw,2.15rem); }
#workspace .fleet-intro p { margin-top:.35rem; }
#workspace .fleet-intro .primary { border-radius:.55rem; }
#workspace :is(.matching-control,.fleet-max-prompt,.fleet-row) { background:rgb(255 255 255 / 97%); border:1px solid #d9e0e5; border-radius:20px; box-shadow:0 3px 16px rgb(15 26 34 / 10%); }
#workspace :is(.matching-control,.fleet-max-prompt) { margin-bottom:.75rem; padding:.85rem 1.1rem; }
#workspace .fleet-max-prompt p { color:var(--muted); font-size:.94rem; margin-top:.15rem; }
#workspace .fleet-tools { gap:.4rem; padding:1.25rem 0 .25rem; }
#workspace .fleet-tools button { border-radius:999px; background:#fff; color:#394b59; padding:.45rem 1rem; }
#workspace .fleet-tools button:is([aria-pressed="true"],:hover) { background:#263641; color:#fff; }
#workspace :is(.fleet-row,.fleet-heading) { grid-template-columns:minmax(0,1fr) minmax(0,2.4fr) minmax(5.25rem,.85fr) 10.75rem; column-gap:.75rem; }
#workspace .fleet-row:not(:last-child) { margin-bottom:.5rem; }
#workspace .fleet-row:last-child { margin-bottom:0; }
#workspace .truck-controls { display:flex; flex-wrap:nowrap; justify-content:end; gap:.35rem; white-space:nowrap; }
#workspace .fleet-row .status { border-radius:999px; white-space:nowrap; }
#workspace :is(#history-panel,#organization-panel,#max-panel) { padding:clamp(1rem,2vw,1.6rem); background:#fafbfaf5; border-radius:20px; }
/* Share the add-button row with the company panel, including when the heading wraps. */
@media (min-width:740px) {
  #workspace:has(#fleet-panel:not([hidden])) {
    grid-template-rows:auto auto auto 1fr;
    row-gap:0;
  }
  #workspace:has(#fleet-panel:not([hidden])) .sidebar {
    grid-column:1;
    grid-row:3 / 5;
  }
  #workspace:has(#fleet-panel:not([hidden])) .workspace-main {
    display:grid;
    grid-column:2;
    grid-row:1 / 5;
    grid-template-rows:subgrid;
    align-self:stretch;
  }
  #workspace #fleet-panel:not([hidden]) {
    display:grid;
    grid-row:2 / 5;
    grid-template-rows:subgrid;
  }
  #workspace .fleet-intro {
    grid-row:1 / 3;
    grid-template-rows:subgrid;
    row-gap:0;
    margin-bottom:0;
  }
  #workspace .fleet-intro > div { margin-bottom:.8rem; }
  #workspace .fleet-intro .primary { align-self:start; margin-bottom:1.3rem; }
  #workspace .fleet-body {
    grid-row:3;
    display:flex;
    flex-direction:column;
  }
  #workspace .fleet-tools { margin-top:auto; }
}
@media (min-width:1001px) {
  #workspace :is(.fleet-heading,.fleet-row) > :nth-child(-n+3) { text-align:center; }
  #workspace .fleet-row .status { justify-self:center; }
}
@media(min-width:740px) and (max-width:1120px) {
  #workspace { width:calc(100% - 2rem); }
}
@media(min-width:740px) and (max-width:1000px) {
  #workspace .fleet-heading { display:none; }
  #workspace .fleet-row { grid-template-columns:minmax(0,1fr) auto auto; gap:.6rem 1rem; }
  #workspace .fleet-route { grid-row:2; grid-column:1/-1; }
}
@media(min-width:740px) and (max-width:930px) {
  #workspace { column-gap:1.25rem; }
}
@media(max-width:739px) {
  #workspace { grid-template-columns:minmax(0,1fr); gap:1rem; padding-top:1rem; }
  #workspace .workspace-main { width:100%; }
  #workspace .sidebar { padding:.8rem 1rem; gap:.45rem; }
  #workspace .company-label { padding:.1rem 0 .6rem; }
  #workspace .workspace-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #workspace .cabinet-links { gap:.1rem .55rem; padding:.35rem 0 0; }
  #workspace .cabinet-links :is(button,a) { padding:.4rem .25rem; }
  #workspace .fleet-row { grid-template-columns:minmax(0,1fr) auto; row-gap:.6rem; }
  #workspace .fleet-heading { display:none; }
  #workspace .truck-controls { display:flex; justify-content:flex-start; gap:.5rem; }
  #workspace .fleet-intro { margin-block:.75rem 1.1rem; }
  body:has(#workspace:not([hidden]))::before {
    background-image:linear-gradient(0deg, rgb(10 21 30 / 74%), rgb(11 24 34 / 38%)),url("assets/dock.jpg");
    background-position:center,26% center; background-size:cover;
  }
}

body:has(#workspace:not([hidden])) .application-link { display:none; }
@media (max-width:730px) {
  .header-utilities { gap:.8rem; }
  .application-link { max-width:7.4rem; }
}
@media (max-width:410px) {
  .header-inner { flex-wrap:wrap; gap:.45rem; padding-block:.55rem; }
  .header-utilities { margin-inline-start:auto; }
}

.header-tool[hidden], [data-telegram-support][hidden] { display:none; }
