:root {
  --ink: #06231f;
  --ink-2: #4d5f5b;
  --accent: #1fd3b6;
  --accent-ink: #0b7a69;
  --accent-soft: #d9f7f1;
  --bg: #f2f5f4;
  --card: #ffffff;
  --inset: #f1f4f3;
  --line: #dde4e2;
  --on-dark-2: #b7cbc7;
  --warm: #fde9c8;
  --shadow: 0 8px 24px rgba(6, 35, 31, 0.10);
  --z-map-ui: 1000;
  --z-toast: 3000;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Onest, system-ui, sans-serif; }
h1, h2, p, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
small { font-size: 13px; color: var(--ink-2); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.top-dark :focus-visible, .band :focus-visible, .cab-side :focus-visible, .home :focus-visible { outline-color: #ffffff; }
.widget :focus-visible { outline-color: var(--accent-ink); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: none; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color .15s, transform .1s; }
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #3fe0c6; }
.btn-line { background: var(--card); border-color: var(--line); font-weight: 500; }
.btn-line:hover { background: var(--inset); }
.btn-ghost-dark { border-color: rgba(255, 255, 255, 0.22); color: #fff; font-weight: 500; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.10); }
.btn-wide { width: 100%; }
.btn-big { min-height: 52px; font-size: 16px; }
.grow { flex: 1; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--ink-2); font-size: 14px; text-decoration: underline; }
.link-dark { margin-left: auto; color: var(--on-dark-2); }
.icon-btn { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; }
.icon-btn:hover { background: rgba(6, 35, 31, 0.07); }
.icon-btn-accent, .icon-btn-accent:hover { background: var(--accent); }
.icon-sm { width: 36px; height: 36px; }
.hint { font-size: 13px; color: var(--ink-2); }
.err { font-size: 14px; color: #b3261e; }

/* чипы и переключатель */
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; white-space: nowrap; }
.chip:hover { background: var(--inset); }
.chip[aria-pressed="true"], .chip-on { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.chip-select { appearance: none; padding-right: 34px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2306231f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.chip-dark { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.10); color: #fff; }
.chip-dark:hover { background: rgba(255, 255, 255, 0.18); }
.chip-dark[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.seg { display: flex; padding: 4px; border-radius: 999px; background: #e6ebe9; }
.seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-dark { background: rgba(255, 255, 255, 0.10); }
.seg-dark button { color: #fff; }
.seg-dark button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* аватары: фото, машина или коробка */
.av { flex: none; width: var(--s, 56px); height: var(--s, 56px); display: block; border-radius: calc(var(--s, 56px) * 0.3); overflow: hidden; background: var(--accent-soft) center / 48% no-repeat; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-truck { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306231f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h11v9H2zM13 10h4l4 3v3h-8z'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.av-cargo { background-color: var(--warm); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a4a00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M4 7.5l8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E"); }

/* шапка */
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 48px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.brand { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.top-dark { color: #fff; }
.brand-sub { margin-left: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--on-dark-2); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }

/* главная */
.home { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(800px 560px at 82% 50%, rgba(31, 211, 182, 0.20), transparent 70%), var(--ink); }
.home-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(900px 640px at 62% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(900px 640px at 62% 50%, #000 20%, transparent 75%); }
.home-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(31, 211, 182, 0.18); }
.home-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); white-space: nowrap; line-height: 1.3; }
.home-chip b { display: block; font-size: 14px; font-weight: 600; }
.home-chip small { color: var(--on-dark-2); }
.home-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding: 24px 48px 72px; }
.home-text { flex: 1 1 480px; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.home-text .eyebrow { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; color: var(--accent); }
.home-text h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.home-text p { max-width: 460px; font-size: 19px; color: var(--on-dark-2); }
.stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.stats div { display: flex; flex-direction: column; padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, 0.18); }
.stats div:last-child { border: 0; }
.stats dt { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.stats dd { font-size: 14px; color: var(--on-dark-2); }
.widget { flex: 0 1 460px; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 32px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.widget h2 { padding: 6px 0 4px; text-align: center; font-size: 17px; font-weight: 600; }
.widget .hint { text-align: center; padding: 2px 8px 4px; }
.choice { display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 0 20px; border: 0; border-radius: 20px; background: var(--inset); text-align: left; transition: background-color .15s; }
.choice:hover { background: var(--accent-soft); }
.choice span { flex: 1; display: flex; flex-direction: column; }
.choice b { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }

/* страница карты */
.mapage { height: 100vh; min-height: 720px; display: flex; flex-direction: column; }
.band { background: var(--ink); color: #fff; border-radius: 0 0 32px 32px; }
.band .top { padding-bottom: 8px; }
.filters { display: flex; flex-direction: column; gap: 16px; padding: 12px 48px 28px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filters h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; }
.chip-rows { display: flex; flex-direction: column; gap: 10px; }
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-label { width: 72px; font-size: 14px; color: var(--on-dark-2); }
.chip-label-auto { width: auto; }
.sep { width: 1px; height: 24px; margin: 0 8px; background: rgba(255, 255, 255, 0.22); }
.mapage-body { flex: 1; display: flex; gap: 16px; padding: 16px 48px 24px; min-height: 0; }
.mapbox { position: relative; flex: 1; min-width: 0; min-height: 520px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #e9eeec; isolation: isolate; }
.map { position: absolute; inset: 0; }
.leaflet-container { font: inherit; background: #e9eeec; }
.leaflet-tile-pane { filter: grayscale(0.75) contrast(0.92) brightness(1.04); }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 14px !important; overflow: hidden; box-shadow: none !important; }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; color: var(--ink) !important; }
.map-note, .map-count { position: absolute; z-index: var(--z-map-ui); left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: var(--card); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); pointer-events: none; }
.map-count { font-size: 14px; color: var(--ink); }
.side-list { flex: 0 0 380px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.cards { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; padding: 1px; }
.card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-align: left; transition: border-color .15s; }
.card:hover, .card-on { border-color: var(--accent-ink); }
.card-on { box-shadow: 0 0 0 1px var(--accent-ink); }
.card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-top b { font-weight: 600; font-size: 16px; }
.card-top small { white-space: nowrap; }
.empty { padding: 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--ink-2); font-size: 15px; }
.login-cta { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14px; }
.login-cta span { flex: 1; }

/* метки на карте: чем ближе, тем больше данных */
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-50% + var(--dy, 0px))); display: flex; align-items: center; gap: 8px; border: 2px solid #fff; background: var(--ink); color: #fff; font: 500 14px/1.3 Onest, sans-serif; white-space: nowrap; text-align: left; box-shadow: 0 4px 12px rgba(6, 35, 31, 0.22); }
.pin small { display: block; color: var(--on-dark-2); }
.pin b { font-weight: 600; }
.pin-s { min-height: 32px; padding: 0 12px; border-radius: 999px; }
.pin-m { padding: 4px 14px 4px 4px; border-radius: 16px; }
.pin-l { padding: 6px 16px 6px 6px; border-radius: 20px; background: var(--card); color: var(--ink); border-color: var(--line); }
.pin-l small { color: var(--ink-2); }
.pin-group { min-height: 40px; padding: 0 16px; border-radius: 999px; border-color: var(--ink); background: var(--accent); color: var(--ink); font-weight: 600; }
.pin-group:hover { border-color: var(--ink); background: #3fe0c6; }
.pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pin:hover, .pin-on { border-color: var(--accent); }
.pin-on.pin-s, .pin-on.pin-m { background: var(--accent); color: var(--ink); }
.pin-on small { color: var(--ink); }
.pin-on .pin-dot { background: var(--ink); }
.pin-on.pin-l { border-color: var(--accent-ink); box-shadow: 0 0 0 2px var(--accent-ink), var(--shadow); }
.pin-mine::after { content: "ваше"; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 600; }

/* карточка выбранного объявления */
.detail { position: absolute; z-index: var(--z-map-ui); left: 16px; top: 16px; width: 330px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: 0 16px 40px rgba(6, 35, 31, 0.18); }
.detail-x { position: absolute; right: 6px; top: 6px; }
.detail-top { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.detail-top b { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; }
.detail-top span { font-size: 15px; }
.fit { padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.fit-bad { background: #fdebd3; }
#detail-actions { align-items: stretch; }
.contact { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 6px 0 16px; border-radius: 16px; background: var(--accent-soft); }
.contact-phone { font-size: 19px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.contact-phone:hover { text-decoration: underline; }
.contact .link-btn { color: var(--ink); }
.contact-more { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 4px 2px 0; }
.contact-more div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.contact-more dt { color: var(--ink-2); font-size: 14px; }
.contact-more dd { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: #fff; font-size: 15px; text-align: left; }
.side-link:hover { background: rgba(255, 255, 255, 0.10); }
.dlg-small .field { min-height: 46px; font-size: 16px; }
#login .field { min-height: 52px; font-size: 18px; }
#login .field-code { font-size: 24px; }

/* кабинет */
.cab { height: 100vh; display: flex; }
.cab-side { flex: 0 0 288px; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--ink); color: #fff; overflow-y: auto; }
.cab-side .brand { padding: 4px 10px 12px; }
.cab-side small { color: #a9c0bb; }
.cab-side .icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.cab-side .link-btn { color: #a9c0bb; white-space: nowrap; }
.side-h { margin-top: 16px; padding: 0 10px; font-size: 13px; font-weight: 400; color: #a9c0bb; }
.mine { display: flex; flex-direction: column; gap: 2px; }
.mine-item { display: flex; align-items: center; padding: 2px 4px 2px 0; border-radius: 14px; }
.mine-item:hover, .mine-on { background: rgba(255, 255, 255, 0.10); }
.mine-on { box-shadow: inset 3px 0 0 var(--accent); }
.mine-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border: 0; background: none; color: #fff; text-align: left; line-height: 1.3; }
.mine-main b { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-main span { min-width: 0; }
.mine-old { opacity: 0.75; }
.side-empty { padding: 8px 10px; font-size: 14px; color: #a9c0bb; }
.history { margin-top: 14px; }
#profile-open { margin-top: 2px; }
.history summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 12px; font-size: 15px; cursor: pointer; list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history summary:hover { background: rgba(255, 255, 255, 0.10); }
.cab-user { margin-top: auto; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px 0 10px; font-size: 14px; color: #a9c0bb; }
.cab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); }
.search:focus-within { border-color: var(--accent-ink); }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: var(--ink); font-size: 15px; }
.toolbar .chip { min-height: 48px; }

/* окна */
.dlg { padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3); }
.dlg::backdrop { background: rgba(6, 35, 31, 0.5); }
.dlg-small { width: min(400px, calc(100vw - 32px)); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 6px 24px; }
.dlg-head h2 { font-size: 18px; font-weight: 600; margin-right: auto; }
.dlg-body { display: flex; flex-direction: column; gap: 10px; padding: 6px 24px 24px; }
.dlg-body label { font-size: 14px; color: var(--ink-2); }
.field { min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--inset); font-size: 18px; }
.field:focus { outline: 0; border-color: var(--accent-ink); background: var(--card); }
.field-code { letter-spacing: 0.4em; text-align: center; font-size: 24px; }
.dlg-chat[open] { display: flex; flex-direction: column; width: min(660px, calc(100vw - 32px)); height: min(780px, calc(100vh - 48px)); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 24px 16px; }
.msg-me { align-self: flex-end; max-width: 80%; padding: 10px 16px; border-radius: 20px; background: var(--accent-soft); overflow-wrap: anywhere; }
.msg-photo { padding: 4px; }
.msg-photo img { display: block; max-width: 180px; border-radius: 16px; }
.msg-bot { max-width: 92%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.draft { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.draft-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.draft-head b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.draft-head span { font-size: 13px; color: var(--ink-2); }
.draft-photo { width: 120px; height: 90px; object-fit: cover; border-radius: 14px; }
.draft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.draft .draft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.draft-grid dt { font-size: 13px; color: var(--ink-2); }
.draft-grid dd { font-weight: 500; }
/* окно добавления: переключатель режимов и форма */
.modes { padding: 3px; }
.modes button { min-height: 34px; padding: 0 14px; font-size: 14px; }
.pane-form { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 24px 20px; }
.pane-form > div { min-width: 0; }
.pane-form label:not(.check):not(.photo-up) { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink-2); }
.pane-form .field { width: 100%; min-height: 48px; font-size: 16px; }
select.field { appearance: none; padding-right: 36px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2306231f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.form-kind { align-self: stretch; }
.form-kind button { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#dims-row { grid-template-columns: 1fr 1fr 1fr; }
.check { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 22px; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-ink); }
.photo-up { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px; border: 1px dashed var(--line); border-radius: 16px; background: var(--inset); cursor: pointer; }
.photo-up:hover { border-color: var(--accent-ink); }
.photo-thumb { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card) center / cover no-repeat; color: var(--ink-2); }
.photo-thumb.has { color: transparent; border-color: transparent; }
.photo-text { flex: 1; font-size: 15px; color: var(--ink-2); }
.photo-clear { font-size: 14px; color: var(--accent-ink); text-decoration: underline; }
.pane-form .err { margin: 2px 0 0; }
@media (max-width: 560px) { #dims-row { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
.composer { display: flex; align-items: center; gap: 4px; margin: 0 20px 20px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.composer:focus-within { border-color: var(--accent-ink); }
.composer input[type="text"] { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; }
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .top, .filters, .home-main { padding-left: 20px; padding-right: 20px; }
  .mapage { height: auto; }
  .mapage-body { flex-direction: column; padding: 12px 16px 20px; }
  .side-list { flex: none; }
  .home-chip, .home-dot, .home-route { display: none; }
  .cab { height: auto; min-height: 100vh; flex-direction: column; }
  .cab-side { flex: none; }
  .cab-main .mapbox { min-height: 70vh; }
  .draft .draft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-label { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
