:root {
  color-scheme: light;
  --ink: #181c19;
  --muted: #5d655f;
  --paper: #f4f5ef;
  --white: #fff;
  --line: #dee2d9;
  --dark: #171b18;
  --green: #30483b;
  --accent: #e7ef8b;
  --radius: 16px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; object-fit: cover; }
svg { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid #73947d; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 8; left: 10px; top: 10px; padding: 12px; background: var(--accent); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.loading { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 24px; background: var(--dark); color: var(--white); }
.wordmark { display: inline-block; font-size: 2.1rem; font-weight: 400; letter-spacing: .18em; line-height: .9; text-align: left; }
.wordmark small, .partner-wordmark small { display: block; margin-top: .9em; font-size: .57rem; font-weight: 700; letter-spacing: .54em; line-height: 1; }
.partner-wordmark { text-align: left; display: inline-block; font-size: 1.24rem; letter-spacing: -.02em; font-weight: 650; }
.partner-wordmark small { letter-spacing: .2em; }
.eyebrow { color: var(--green); letter-spacing: .125em; font-size: .72rem; font-weight: 750; line-height: 1.5; text-transform: uppercase; }
.subtitle { color: var(--muted); line-height: 1.55; margin-top: 9px; }
.muted { color: var(--muted); line-height: 1.55; }
.small { font-size: .875rem; }
.separator { margin: 0 .45rem; opacity: .65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; min-height: 43px; border: 1px solid transparent; padding: 10px 16px; font-size: .875rem; line-height: 1.25; font-weight: 650; text-decoration: none; text-align: center; white-space: normal; }
.button.primary { background: var(--accent); color: #20291e; border-color: #d9e16e; }
.button.primary:hover { background: #f2f6aa; }
.button.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: #eff2e9; border-color: #bac7b6; }
.text-button { background: none; border: 0; padding: 7px 4px; color: var(--green); font-size: .875rem; font-weight: 700; white-space: nowrap; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; background: transparent; border: 1px solid var(--line); border-radius: 9px; color: var(--green); flex: none; }
.icon-button:hover { background: #edf0e7; }
.tiny-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; vertical-align: 1px; }
.auth-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: clamp(30px, 6vw, 95px); background: #232a22 url("/assets/road.webp") 83% center / cover no-repeat; color: #fff; isolation: isolate; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(165deg, #101611b8 1%, transparent 53%), linear-gradient(0deg, #101611eb, transparent 70%); }
.auth-brand .wordmark { font-size: clamp(2.35rem, 4vw, 4rem); }
.auth-brand .wordmark small { font-size: .66rem; }
.auth-copy .eyebrow { color: var(--accent); margin-bottom: 14px; }
.auth-copy p:nth-child(2) { font-size: clamp(3.35rem, 6.4vw, 7.1rem); line-height: .94; letter-spacing: -.052em; font-weight: 650; }
.auth-copy > span { margin-top: 28px; display: block; font-size: .68rem; font-weight: 650; letter-spacing: .16em; color: #e1e5d8; }
.auth-panel { background: var(--paper); display: flex; justify-content: center; align-items: center; padding: 42px; }
.auth-inner { width: min(100%, 405px); }
.auth-inner h1 { margin-top: 12px; font-size: clamp(2.35rem, 3.35vw, 3.6rem); line-height: 1; letter-spacing: -.042em; }
.auth-tabs { margin: 28px 0 22px; border-radius: 11px; background: #e8ebe2; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; }
.auth-tabs button { border: 0; color: #435145; background: transparent; border-radius: 8px; padding: 10px 8px; font-size: .9rem; font-weight: 650; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #18251e16; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 7px; color: #2b332d; font-size: .88rem; font-weight: 650; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; min-width: 0; border: 1px solid #ccd3c8; border-radius: 9px; padding: 11px 12px; min-height: 43px; color: var(--ink); background-color: #fff; font-weight: 450; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2330483b' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 36px !important; }
.form-stack textarea { resize: vertical; }
.form-stack input::placeholder { color: #6c756c; }
.form-error { border: 1px solid #e5beba; background: #fff2ef; color: #852921; border-radius: 8px; padding: 10px; font-size: .875rem; }
.auth-submit { margin-top: 4px; }
.auth-foot { font-size: .82rem; color: var(--muted); margin-top: 20px; line-height: 1.5; }
.shell { min-height: 100svh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.rail { display: flex; flex-direction: column; height: 100svh; position: sticky; top: 0; background: var(--dark); color: #e7ece3; padding: 37px 16px 20px; }
.brand-button { color: var(--white); text-align: left; background: transparent; padding: 0 10px; border: 0; margin: 0 0 45px; min-height: 52px; }
.rail-nav, .rail-admin { display: grid; gap: 5px; }
.rail-admin { margin-top: 24px; padding-top: 18px; border-top: 1px solid #323832; }
.menu-button { display: flex; align-items: center; gap: 12px; min-width: 0; background: transparent; border-radius: 8px; border: 1px solid transparent; color: #bdc7bd; padding: 11px 12px; font-size: .9rem; font-weight: 600; text-align: left; }
.menu-button:hover { color: #fff; background: #2a322a; }
.menu-button.is-current { color: var(--accent); background: #2d352b; border-color: #454d3b; }
.rail-footer { margin-top: auto; padding: 12px 10px 2px; border-top: 1px solid #323832; }
.rail-footer p { font-size: .69rem; letter-spacing: .13em; font-weight: 700; }
.rail-footer span:not(.tiny-dot) { display: block; color: #b0bdb0; font-size: .8rem; margin-top: 8px; }
.topbar { min-height: 70px; border-bottom: 1px solid var(--line); background: #fcfdf9; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(22px, 3.6vw, 56px); }
.workspace-name, .topbar-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.desktop-brand, .user-name { font-size: .9rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-edition { background: #eef1e8; border: 1px solid #e0e6da; color: #475849; border-radius: 20px; padding: 5px 9px; font-size: .75rem; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 5px; border-radius: 50%; background: #e2e9de; color: #2d4938; font-size: .75rem; font-weight: 750; flex: none; }
.page { padding: 35px clamp(22px, 3.6vw, 56px) 44px; max-width: 1536px; margin: auto; outline: none; min-height: calc(100svh - 129px); }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { font-size: clamp(2.3rem, 4.1vw, 4.2rem); line-height: 1; letter-spacing: -.046em; font-weight: 690; margin-top: 7px; overflow-wrap: anywhere; }
.hero { position: relative; min-height: 330px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: center; background: #242a23; }
.hero-image, .hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; }
.hero-image img { object-position: 68% 59%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #111913f7 0%, #111913df 28%, #1318136b 55%, transparent 88%), linear-gradient(0deg, #0b100961, transparent 44%); }
.hero-content { width: min(69%, 440px); padding: 32px clamp(22px, 3vw, 47px); }
.hero .eyebrow { color: var(--accent); }
.hero-content h2 { font-size: clamp(2.2rem, 4.25vw, 4.55rem); line-height: .98; letter-spacing: -.045em; margin: 12px 0; font-weight: 650; overflow-wrap: anywhere; }
.hero-content > p:not(.eyebrow) { color: #e2e8df; }
.facts { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 11px 17px; margin: 17px 0 20px; padding: 0; font-size: .84rem; line-height: 1.4; font-weight: 550; }
.facts li { display: flex; align-items: center; gap: 5px; }
.hero .facts { color: #e9eee3; }
.hero .facts svg { color: #c0d4b9; }
.home-grid, .listing-grid, .convoy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-grid { margin-top: 28px; }
.home-section { margin: 20px 0; }
.home-grid .home-section { margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.section-heading h2 { font-size: 1.3rem; letter-spacing: -.033em; }
.feature-card { width: 100%; padding: 0; text-align: left; border: 1px solid var(--line); overflow: hidden; border-radius: 14px; background: #fff; display: grid; grid-template-columns: 37% minmax(0, 1fr); color: var(--ink); min-height: 117px; }
.feature-card:hover, .service-card:hover { border-color: #91a48f; box-shadow: 0 3px 14px #1d322114; }
.feature-card img { height: 100%; max-height: 155px; }
.feature-body { display: grid; gap: 5px; align-content: center; padding: 14px 16px; }
.feature-body strong { letter-spacing: -.027em; font-size: 1.2rem; overflow-wrap: anywhere; }
.feature-body span:last-child { color: var(--muted); font-size: .875rem; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px clamp(22px, 3.6vw, 56px); color: #69746a; font-size: .78rem; border-top: 1px solid var(--line); }
.mobile-nav, .mobile-brand { display: none; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; min-width: 0; }
.panel + .panel, .panel.records { margin-top: 16px; }
.convoy-grid .panel { margin-top: 0; }
.panel > .muted { margin-bottom: 13px; }
.badge { display: inline-flex; align-items: center; color: #4d5a51; background: #edf0ea; padding: 5px 9px; border-radius: 20px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge.positive { color: #2a5437; background: #e0f0e2; }
.empty { background: #f6f7f2; border: 1px dashed #cbd4c8; padding: 24px; border-radius: 12px; color: var(--ink); }
.empty p { color: var(--muted); margin-top: 6px; line-height: 1.5; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 17px; }
.vehicle-tab { min-height: 40px; padding: 8px 14px; display: inline-flex; gap: 8px; align-items: center; border: 1px solid #d7ddd3; border-radius: 22px; background: #fff; color: #3f5144; font-size: .86rem; font-weight: 650; }
.vehicle-tab:hover { border-color: #91a48f; }
.vehicle-tab.active { background: #263c2e; color: #fbfff8; border-color: #263c2e; }
.vehicle-banner { min-height: 248px; position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; background: #272d27; display: grid; align-items: end; color: #fff; }
.vehicle-banner img { position: absolute; inset: 0; height: 100%; z-index: -2; object-position: 72% 60%; }
.vehicle-banner::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(0deg, #121711e6, transparent 100%); }
.vehicle-banner > div { padding: 29px; }
.vehicle-banner .eyebrow { color: var(--accent); }
.vehicle-banner h2 { margin: 4px 0; font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.05; letter-spacing: -.044em; overflow-wrap: anywhere; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; border-top: 1px solid #e9ece6; }
.rows li > div:not(.row-icon) { flex: 1; min-width: 0; }
.rows li strong { font-size: .95rem; }
.rows li p, .rows time { color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: 3px; }
.rows li p, .rows li strong { overflow-wrap: anywhere; }
.rows time { text-align: right; flex-shrink: 0; }
.row-icon { display: inline-grid; flex: none; place-items: center; border-radius: 10px; width: 36px; height: 36px; background: #edf1e8; color: #4b624e; }
.convoy-grid { grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr); }
.map-panel canvas { display: block; width: 100%; max-height: 320px; aspect-ratio: 720/350; border-radius: 10px; background: #dce0d6; }
.map-caption { color: var(--muted); margin-top: 9px; font-size: .78rem; }
.map-facts .facts { margin-bottom: 1px; }
.itinerary ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.itinerary li button { border: 1px solid transparent; display: flex; gap: 10px; align-items: center; background: #f6f8f4; border-radius: 10px; padding: 9px 11px; text-align: left; color: var(--ink); width: 100%; }
.itinerary li button.active { border-color: #a7b8a3; background: #edf2e8; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; font-size: .75rem; background: #263c2e; color: #fff; }
.itinerary strong { display: block; font-size: .91rem; }
.itinerary small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.25; }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
.preset-grid .button { justify-content: start; padding: 9px; text-align: left; }
.activity { max-height: 245px; overflow-y: auto; }
.discover-tools { margin-bottom: 8px; }
.search-box { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: min(100%, 460px); margin-bottom: 15px; padding: 0 13px; color: var(--green); }
.search-box input { border: 0; background: transparent; width: 100%; padding: 13px 0; color: var(--ink); }
.listing-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.listing-card > img { height: clamp(125px, 18vw, 235px); object-position: 50% 52%; }
.listing-card > div { padding: 20px; }
.listing-card h2 { font-size: clamp(1.27rem, 2.8vw, 2rem); letter-spacing: -.045em; margin: 4px 0 8px; }
.listing-card p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.listing-card .location { font-size: .86rem; margin-bottom: 7px; }
.listing-card .text-button { margin-top: 7px; }
.black-banner { background: linear-gradient(90deg, #141713 20%, #1c241cd7 62%, #171c177a), url("/assets/stay.webp") center 53% / cover; color: #fff; border-radius: var(--radius); padding: clamp(26px, 5vw, 70px); }
.black-banner .eyebrow { color: var(--accent); }
.black-banner h1 { font-size: clamp(2.8rem, 6vw, 6rem); letter-spacing: -.05em; line-height: 1; margin: 9px 0; }
.black-banner p:not(.eyebrow) { max-width: 440px; color: #edf2e8; line-height: 1.55; margin-bottom: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.service-card { border: 1px solid var(--line); text-align: left; border-radius: 13px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 148px; }
.service-card > span:last-child { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.stat span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .875rem; }
.stat strong { display: block; margin-top: 5px; color: var(--green); font-size: 2.1rem; letter-spacing: -.045em; }
dialog { width: min(520px, calc(100vw - 28px)); max-height: calc(100svh - 30px); padding: 23px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 0 20px 80px #111a1166; }
dialog::backdrop { background: #131b17ad; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 18px; }
.modal-head h2 { font-size: 1.55rem; letter-spacing: -.04em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.story { display: grid; gap: 14px; color: var(--muted); line-height: 1.6; }
.story .intro { font-size: 1.08rem; color: var(--green); font-weight: 650; }
#toast { position: fixed; z-index: 7; right: 20px; bottom: 20px; max-width: min(380px, 92vw); padding: 12px 16px; border-radius: 10px; background: #25392b; color: #fff; box-shadow: 0 8px 24px #10181133; transform: translateY(calc(100% + 40px)); opacity: 0; font-size: .9rem; line-height: 1.4; }
#toast.visible { transform: none; opacity: 1; }
@media (max-width: 990px) {
  .shell { grid-template-columns: 188px minmax(0,1fr); }
  .rail { padding-inline: 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 300px; }
  .feature-card { grid-template-columns: 34% minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .auth-layout { grid-template-columns: minmax(0,1fr); }
  .auth-visual { min-height: clamp(225px, 54vw, 390px); padding: 25px; background-position: 64% 58%; }
  .auth-brand .wordmark { font-size: 2rem; }
  .auth-brand .wordmark small { font-size: .48rem; }
  .auth-copy .eyebrow { margin-bottom: 6px; font-size: .62rem; }
  .auth-copy p:nth-child(2) { font-size: clamp(2.4rem, 9vw, 4.5rem); }
  .auth-copy > span { margin-top: 12px; font-size: .57rem; }
  .auth-panel { padding: 27px 21px 39px; }
  .auth-inner h1 { font-size: 2.5rem; }
  .shell { display: block; }
  .rail, .desktop-brand, .user-name { display: none; }
  .mobile-brand { display: inline-block; }
  .mobile-brand .wordmark { font-size: 1.45rem; }
  .mobile-brand .wordmark small { font-size: .43rem; }
  .topbar { min-height: 64px; padding-inline: 17px; }
  .topbar-edition { display: none; }
  .page { padding: 25px 17px 32px; min-height: calc(100svh - 200px); }
  .page-heading { align-items: start; margin-bottom: 19px; }
  .page-heading h1 { font-size: clamp(2.35rem, 8vw, 3.2rem); }
  .page-heading .button { margin-top: 15px; max-width: 120px; }
  .hero { min-height: 284px; }
  .hero-content { width: min(80%, 400px); }
  .hero-content h2 { font-size: clamp(2rem, 7vw, 3rem); }
  .home-grid { margin-top: 22px; }
  .mobile-nav { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 3px; overflow-x: auto; background: #171b18; padding: 5px 5px max(7px, env(safe-area-inset-bottom)); }
  .mobile-nav .menu-button { flex: 1 0 auto; justify-content: center; flex-direction: column; gap: 4px; padding: 7px 6px; min-height: 48px; font-size: .68rem; white-space: nowrap; }
  .mobile-nav .menu-button svg { width: 17px; height: 17px; }
  .workspace-footer { padding-inline: 18px; }
  #toast { bottom: 65px; right: 12px; }
}
@media (max-width: 520px) {
  .home-grid, .listing-grid, .convoy-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .hero::after { background: linear-gradient(90deg,#111913eb,#111913bd 50%,#11191336), linear-gradient(0deg,#1119138c,transparent 84%); }
  .hero-content { width: 91%; padding: 22px; }
  .hero-image img { object-position: 65% center; }
  .hero .facts { max-width: 260px; }
  .panel { padding: 15px; }
  .admin-rows li { flex-wrap: wrap; }
  .admin-rows li > div:not(.row-icon) { flex-basis: 58%; }
  .service-card { min-height: 120px; padding: 13px; }
  .stat { padding: 11px; }
  .stat span { gap: 4px; font-size: .78rem; }
  .stat svg { width: 14px; }
  .rows time { max-width: 70px; }
}
