:root {
  color-scheme: light;
  --bg: #f5f1ed;
  --surface: #fffdfb;
  --surface-2: #eee8e4;
  --surface-3: #e6ded9;
  --ink: #211c20;
  --muted: #6c6268;
  --soft: #8a7f85;
  --line: #ded5da;
  --line-strong: #c9bdc4;
  --orange: #b94712;
  --on-orange: #ffffff;
  --orange-bright: #ff8840;
  --orange-soft: #ffe2d0;
  --pink: #b92372;
  --pink-bright: #f04bac;
  --pink-soft: #fbdbea;
  --aqua: #25747b;
  --aqua-soft: #d8eff0;
  --violet: #6754b7;
  --danger: #a52d27;
  --on-danger: #ffffff;
  --danger-soft: #f8ddda;
  --success: #2f6c49;
  --shadow: 0 18px 45px rgba(53, 38, 48, .10);
  --shadow-soft: 0 8px 24px rgba(53, 38, 48, .07);
  --radius: 16px;
  --radius-sm: 12px;
  --font: Avenir, "Avenir Next", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --topbar: 64px;
  --rail: 214px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191719;
  --surface: #242125;
  --surface-2: #302b30;
  --surface-3: #3a343a;
  --ink: #fff8fa;
  --muted: #c9bdc4;
  --soft: #a79aa2;
  --line: #494149;
  --line-strong: #625862;
  --orange: #ff9a5f;
  --on-orange: #211c20;
  --orange-bright: #ffad72;
  --orange-soft: #442b22;
  --pink: #ff76bb;
  --pink-bright: #ff8bc7;
  --pink-soft: #462737;
  --aqua: #74c9cf;
  --aqua-soft: #213b3d;
  --violet: #ac9cff;
  --danger: #ff8d84;
  --on-danger: #211c20;
  --danger-soft: #452725;
  --success: #82d5a5;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pink) 80%, white); outline-offset: 3px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.mini { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--surface); }
.skip-link:focus { transform: translateY(0); }
.noscript-note { margin: 0; padding: 12px 18px; background: var(--danger-soft); color: var(--danger); }
.app-shell { min-height: 100vh; }

.topbar { position: sticky; z-index: 50; top: 0; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px; border: 0; background: transparent; text-align: left; }
.brand-mark { position: relative; display: inline-grid; width: 30px; height: 30px; place-items: center; }
.brand-mark::before { content: ""; position: absolute; inset: 3px; border: 2px solid var(--ink); border-radius: 9px 9px 12px 6px; transform: rotate(-8deg); }
.brand-mark i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-bright); }
.brand-mark i:first-child { left: 3px; bottom: 2px; }
.brand-mark i:last-child { right: 2px; top: 3px; background: var(--pink-bright); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.signal { display: none; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.icon-button, .avatar { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.icon-button:hover, .avatar:hover { border-color: var(--line-strong); background: var(--surface-2); }
.avatar { border: 0; background: var(--ink); color: var(--surface); font-weight: 800; font-size: 13px; }
.desktop-rail { display: none; }
#app-main { width: min(100%, 1540px); margin: 0 auto; padding: 18px 16px 112px; }
.view { min-height: 70vh; }
.view.is-active { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: .3; transform: translateY(7px); } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow i { width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--pink-bright), var(--orange-bright)); }
.eyebrow.small { font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; }
h1 { margin-bottom: 12px; font-size: clamp(34px, 9vw, 54px); }
h2 { margin-bottom: 10px; font-size: clamp(24px, 6vw, 34px); }
h3 { margin-bottom: 8px; font-size: 19px; }
em { color: var(--pink); font-style: normal; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--orange); color: var(--on-orange); }
.button.primary:hover { background: color-mix(in srgb, var(--orange) 88%, black); }
.button.secondary, .button.glass { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.secondary:hover, .button.glass:hover { background: var(--surface-2); }
.button.ink { background: var(--ink); color: var(--surface); }
.button.danger { background: var(--danger); color: var(--on-danger); }
.button.wide { width: 100%; }
.text-link, .compact-link, .compact-action { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--orange); font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link .icon, .compact-link .icon { width: 17px; height: 17px; }
.compact-action { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }

/* Home: a useful ride desk, not a marketing landing page. */
.ride-command { display: grid; gap: 18px; margin: 4px 0 20px; }
.ride-command-copy h1 { margin: 4px 0 0; }
.giselle-command { min-height: 66px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.giselle-command > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, var(--pink-bright), var(--orange-bright)); color: white; }
.giselle-command strong, .giselle-command small { display: block; }
.giselle-command strong { font-size: 15px; }
.giselle-command small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.discovery-deck { display: grid; gap: 14px; }
.discovery-main, .ready-board, .route-feed, .biker-radar, .pit-stop-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.discovery-main { padding: 14px; }
.search-launcher { min-height: 72px; width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); text-align: left; }
.search-launcher > .icon { color: var(--pink); }
.search-launcher strong, .search-launcher small { display: block; }
.search-launcher strong { font-size: 15px; }
.search-launcher small { margin-top: 2px; color: var(--muted); font-size: 13px; }
kbd { padding: 4px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font: 700 12px/1 var(--font); }
.intent-row, .filter-row, .explore-tabs, .record-chips, .rally-tags { display: flex; gap: 8px; overflow-x: auto; padding: 12px 1px 3px; scrollbar-width: none; }
.intent-row::-webkit-scrollbar, .filter-row::-webkit-scrollbar, .explore-tabs::-webkit-scrollbar { display: none; }
.intent-row button, .filter-chip, .explore-tab { min-height: 42px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 750; }
.intent-row button:hover, .filter-chip:hover, .explore-tab:hover { border-color: var(--line-strong); background: var(--surface-2); }
.intent-row .icon, .filter-chip .icon, .explore-tab .icon { width: 18px; height: 18px; }
.network-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.network-strip span { min-width: 0; display: grid; gap: 1px; padding: 0 8px; border-right: 1px solid var(--line); }
.network-strip span:first-child { padding-left: 0; }
.network-strip span:last-child { border-right: 0; }
.network-strip strong { font: 750 18px/1.1 var(--mono); }
.network-strip small { color: var(--muted); font-size: 12px; }
.ready-board { padding: 15px; }
.ready-board { display: none; }
.ready-head { padding: 2px 4px 10px; }
.ready-head h2 { margin: 3px 0 0; font-size: 22px; }
.ready-board > button, .radar-item { min-height: 62px; width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; padding: 9px 4px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.ready-board button strong, .ready-board button small, .radar-item strong, .radar-item small { display: block; }
.ready-board button strong, .radar-item strong { font-size: 15px; }
.ready-board button small, .radar-item small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.ready-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; }
.ready-icon.safe { background: var(--pink-soft); color: var(--pink); }
.ready-icon.bike { background: var(--orange-soft); color: var(--orange); }
.ready-icon.people { background: var(--aqua-soft); color: var(--aqua); }
.home-workspace { display: grid; gap: 14px; margin-top: 14px; }
.route-feed, .biker-radar, .pit-stop-section { padding: 16px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 4px 0 0; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.section-heading.compact { align-items: center; }

.featured-routes, .directory-grid { display: grid; gap: 10px; }
.route-card { position: relative; min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 44px; align-items: center; gap: 11px; min-height: 118px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.route-card:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 82%, var(--surface-2)); }
.route-marker { align-self: stretch; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 8px; color: var(--route-color); }
.route-marker span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--route-color); border-radius: 50%; background: color-mix(in srgb, var(--route-color) 16%, var(--surface)); color: var(--ink); font: 800 12px/1 var(--mono); }
.route-marker i { width: 2px; min-height: 32px; background: linear-gradient(var(--route-color), color-mix(in srgb, var(--route-color) 10%, transparent)); }
.route-card-body { min-width: 0; }
.route-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.route-index { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.route-card h3 { margin: 2px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-area { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-stats { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.route-stats span { display: inline-flex; align-items: center; gap: 5px; }
.route-stats .icon { width: 15px; height: 15px; }
.save-button, .route-open { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.save-button { width: 36px; height: 36px; }
.save-button .icon, .route-open .icon { width: 18px; height: 18px; }
.save-button.is-saved { border-color: color-mix(in srgb, var(--pink) 40%, var(--line)); background: var(--pink-soft); color: var(--pink); }
.save-button.is-saved .icon { fill: currentColor; }
.route-open { justify-self: end; }
.biker-radar .section-heading { margin-bottom: 6px; }
.radar-item { grid-template-columns: 50px 1fr auto; padding-inline: 0; }
.radar-badge { min-width: 48px; min-height: 31px; display: grid; place-items: center; padding: 0 7px; border-radius: 8px; font: 800 12px/1 var(--mono); letter-spacing: .04em; }
.radar-badge.pink { background: var(--pink-soft); color: var(--pink); }
.radar-badge.orange { background: var(--orange-soft); color: var(--orange); }
.radar-badge.ink { background: var(--ink); color: var(--surface); }
.pit-stop-section { margin-top: 14px; }
.stop-strip { display: grid; gap: 9px; }
.workshop-card, .stop-card { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 11px; min-height: 80px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.place-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--card-accent) 16%, var(--surface)); color: var(--ink); }
.place-body { min-width: 0; }
.workshop-head, .stop-head { display: flex; align-items: center; gap: 8px; }
.workshop-head h3, .stop-head h3 { min-width: 0; flex: 1; margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-labels { display: flex; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.card-labels span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-labels span + span::before { content: "·"; margin-right: 6px; }
.os-foundation { width: 100%; min-height: 64px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; margin-top: 14px; padding: 10px 13px; border: 1px dashed var(--line-strong); border-radius: 13px; background: transparent; color: var(--muted); text-align: left; }
.os-foundation strong, .os-foundation small { display: block; }
.os-foundation strong { color: var(--ink); font-size: 14px; }
.os-foundation small { font-size: 12px; }
.os-foundation i { font: 800 12px/1 var(--mono); font-style: normal; letter-spacing: .05em; }
.os-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--ink); }

/* Shared page architecture */
.page-hero { display: grid; gap: 16px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page-hero h1 { margin: 5px 0 8px; font-size: clamp(32px, 8vw, 48px); }
.page-hero p { margin: 0; color: var(--muted); }
.compact-hero { padding: 14px; }
.compact-hero h1 { font-size: clamp(29px, 7vw, 40px); }
.assistant-pill, .bike-selector, .safe-status { min-height: 68px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: left; }
.assistant-pill > span:first-child, .bike-thumb, .status-orbit { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--pink-soft); color: var(--pink); }
.assistant-pill strong, .assistant-pill small, .bike-selector strong, .bike-selector small, .safe-status strong, .safe-status small, .safe-status em { display: block; }
.assistant-pill small, .bike-selector small, .safe-status small, .safe-status em { color: var(--muted); font-size: 12px; font-style: normal; }
.assistant-pill { border: 0; }
.explore-tabs { position: sticky; z-index: 10; top: calc(var(--topbar) + 1px); margin: 0 -16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); }
.explore-tab { border-radius: 10px; }
.explore-tab.is-active { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.explore-tab span { min-width: 22px; padding: 2px 5px; border-radius: 6px; background: color-mix(in srgb, currentColor 12%, transparent); font: 800 12px/1.2 var(--mono); }
.directory-toolbar { margin: 14px 0; }
.search-field { min-height: 54px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 13px; background: var(--surface); }
.search-field input { min-width: 0; width: 100%; height: 50px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-field input::placeholder { color: var(--soft); }
.filter-chip.is-active { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); }
.result-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 14px 2px 10px; }
.result-meta p { margin: 0; font-weight: 800; }
.result-meta span { display: none; color: var(--muted); font-size: 13px; }
.directory-more { display: flex; justify-content: center; padding: 18px 0; }
.empty-state { padding: 46px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state > .icon { width: 38px; height: 38px; color: var(--muted); }
.empty-state h3 { margin-top: 10px; }
.empty-state p { color: var(--muted); }
.verification-note, .content-disclosure, .history-disclosure { margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.verification-note summary, .content-disclosure summary, .history-disclosure summary { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; cursor: pointer; list-style: none; }
.verification-note summary::-webkit-details-marker, .content-disclosure summary::-webkit-details-marker, .history-disclosure summary::-webkit-details-marker { display: none; }
.verification-note summary > span, .content-disclosure summary > span, .history-disclosure summary > span { flex: 1; }
.verification-note summary strong, .verification-note summary small, .content-disclosure summary strong, .content-disclosure summary small, .history-disclosure summary strong, .history-disclosure summary small { display: block; }
.verification-note summary small, .content-disclosure summary small, .history-disclosure summary small { color: var(--muted); font-size: 12px; }
.verification-note > div, .disclosure-body, .history-content { padding: 0 14px 14px; color: var(--muted); }

/* Community */
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.community-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.community-numbers span { padding: 10px; border-left: 2px solid var(--line); }
.community-numbers strong, .community-numbers small { display: block; }
.community-numbers strong { font: 800 20px/1 var(--mono); }
.community-numbers small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.rally-card { display: grid; overflow: hidden; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rally-visual { position: relative; min-height: 220px; }
.rally-visual img { width: 100%; height: 100%; object-fit: cover; }
.rally-date-lock { position: absolute; left: 14px; bottom: 14px; min-width: 64px; padding: 9px; border-radius: 10px; background: rgba(24, 19, 23, .8); color: white; text-align: center; backdrop-filter: blur(10px); }
.rally-date-lock span, .rally-date-lock small { display: block; }
.rally-date-lock span { font-size: 26px; }
.rally-date-lock small { font-size: 12px; letter-spacing: .08em; }
.rally-copy { padding: 18px; }
.rally-copy p { color: var(--muted); }
.rally-tags, .record-chips { padding-top: 0; }
.rally-tags span, .record-chips span, .tag { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rally-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.home-section, .koox-section, .alto-start { margin-top: 26px; }
.event-grid, .club-grid { display: grid; gap: 10px; }
.event-card, .club-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.event-head, .club-head, .card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-date { min-width: 54px; display: grid; padding: 8px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); text-align: center; }
.event-date strong { font: 800 20px/1 var(--mono); }
.event-date small, .event-type { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.event-type, .tag { color: var(--pink); }
.event-card h3, .club-card h3 { margin: 12px 0 8px; }
.event-meta, .club-place { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-meta .icon, .club-place .icon { width: 15px; height: 15px; }
.event-card .card-actions, .club-card .card-actions { margin-top: 12px; }
.club-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--card-accent) 14%, var(--surface)); color: color-mix(in srgb, var(--card-accent) 80%, var(--ink)); font: 800 13px/1 var(--mono); }
.member-stack { display: flex; }
.member-stack i { width: 28px; height: 28px; display: grid; place-items: center; margin-left: -6px; border: 2px solid var(--surface); border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 800 12px/1 var(--mono); font-style: normal; }
.member-stack i:first-child { margin-left: 0; }
.koox-section { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.koox-symbol { min-height: 120px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: var(--ink); }
.koox-symbol img { width: min(190px, 70%); filter: brightness(0) invert(1); }
.koox-symbol i { display: none; }
.koox-copy p { color: var(--muted); }
.koox-features { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.koox-features span { display: flex; gap: 7px; font-size: 13px; }
.koox-features b { color: var(--orange); font: 800 12px/1.5 var(--mono); }

/* Garage */
.bike-selector { border: 0; }
.bike-selector > button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--surface); }
.garage-dashboard { display: grid; gap: 10px; }
.odometer-card, .metric-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.odometer-card { padding: 18px; }
.odo-value { display: flex; align-items: baseline; gap: 7px; margin: 8px 0; }
.odo-value strong { font: 800 clamp(38px, 11vw, 58px)/1 var(--mono); letter-spacing: -.06em; }
.odo-value span { color: var(--muted); }
.odo-track, .progress-bar { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.odo-track i, .progress-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink-bright), var(--orange-bright)); transition: width .3s ease; }
.odometer-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.metric-card { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 11px; padding: 14px; }
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); }
.metric-icon.orange { background: var(--orange-soft); color: var(--orange); }
.metric-icon.pink { background: var(--pink-soft); color: var(--pink); }
.metric-icon.violet { background: color-mix(in srgb, var(--violet) 14%, var(--surface)); color: var(--violet); }
.metric-card small, .metric-card strong, .metric-card em { display: block; }
.metric-card small { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.metric-card strong { margin-top: 2px; }
.metric-card em { color: var(--muted); font-size: 13px; font-style: normal; }
.garage-columns { display: grid; gap: 12px; margin-top: 12px; }
.panel { padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 3px 0 0; font-size: 24px; }
.icon-button.bordered { background: var(--surface-2); }
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.timeline-item > i { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--orange); }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small, .timeline-item time { color: var(--muted); font-size: 12px; }
.timeline-item time { text-align: right; }
.expense-chart { display: grid; gap: 18px; justify-items: center; }
.donut { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); position: relative; }
.donut::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--surface); }
.donut span { position: relative; z-index: 1; font: 800 17px/1 var(--mono); }
.expense-legend { width: 100%; display: grid; gap: 8px; }
.expense-legend span { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.expense-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.expense-legend strong { color: var(--ink); }

/* Alto Seguro */
.safe-status { border: 0; }
.alto-start { margin-top: 0; }
.alto-scenario-grid { display: grid; gap: 9px; }
.alto-scenario { min-height: 84px; display: grid; grid-template-columns: 30px 44px 1fr 22px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.alto-number { color: var(--muted); font: 800 12px/1 var(--mono); }
.alto-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--pink-soft); color: var(--pink); }
.alto-scenario strong, .alto-scenario small { display: block; }
.alto-scenario small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.alto-scenario > .arrow { color: var(--muted); }
.safe-plan-heading { margin-top: 28px; }
.safe-layout { display: grid; gap: 12px; }
.checklist { display: grid; }
.check-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: transparent; }
.check-item input:checked + .check-box { border-color: var(--success); background: var(--success); color: var(--surface); }
.check-item input:focus-visible + .check-box { outline: 3px solid var(--pink); outline-offset: 2px; }
.check-item strong, .check-item small { display: block; }
.check-item small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.progress-label { color: var(--muted); font: 800 13px/1 var(--mono); }
.progress-bar { margin-top: 12px; }
form { display: grid; gap: 13px; }
form label > span, form > label > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: var(--surface); color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 17%, transparent); }
.form-row { display: grid; gap: 12px; }
.privacy-check { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; }
.privacy-check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--pink); }
.privacy-check span { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.active-plan { padding: 14px; border: 1px solid color-mix(in srgb, var(--success) 40%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--success) 9%, var(--surface)); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.emergency-note { display: grid; gap: 8px; margin: 14px 0 22px; padding: 15px; border-left: 4px solid var(--danger); border-radius: 0 13px 13px 0; background: var(--danger-soft); color: var(--danger); }
.emergency-note span { font-size: 13px; }
.emergency-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Footer and navigation */
.site-footer { display: grid; gap: 16px; margin-top: 42px; padding: 24px 4px 12px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand > span:last-child { display: grid; }
.footer-brand strong { color: var(--ink); }
.footer-brand small { font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links button { min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; }
.site-footer > p { margin: 0; font-size: 12px; }
.mobile-nav { position: fixed; z-index: 60; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; height: 70px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.mobile-link { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.mobile-link .icon { width: 21px; height: 21px; }
.mobile-link.is-active { background: var(--surface-2); color: var(--pink); }

/* Dialogs, sheets and detail content */
dialog { color: var(--ink); }
.modal { width: min(100% - 20px, 680px); max-height: min(88vh, 820px); overflow: auto; margin: auto auto 10px; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 22px 22px 16px 16px; background: var(--surface); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(22, 17, 21, .56); backdrop-filter: blur(4px); }
.modal-close { position: sticky; z-index: 4; top: 0; float: right; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.modal h2 { margin-top: 8px; }
.modal p { color: var(--muted); }
.route-modal-hero { height: 7px; margin: -22px -18px 20px; background: linear-gradient(90deg, var(--pink-bright), var(--route-color), var(--orange-bright)); }
.detail-hero { min-height: 90px; display: flex; align-items: flex-end; gap: 10px; margin: -2px 0 18px; padding: 14px; border-radius: 13px; background: color-mix(in srgb, var(--detail-color) 12%, var(--surface-2)); color: color-mix(in srgb, var(--detail-color) 78%, var(--ink)); }
.detail-hero > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); }
.detail-hero small { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.detail-grid > span { min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.detail-grid small, .detail-grid strong { display: block; }
.detail-grid small { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.detail-grid strong { margin-top: 4px; font-size: 14px; }
.detail-grid .detail-wide { grid-column: 1 / -1; }
.route-stops-list, .scenario-steps, .source-list { list-style: none; margin: 0; padding: 0; }
.route-stops-list li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.route-stops-list b { color: var(--orange); font: 800 12px/1 var(--mono); }
.route-warning { padding: 12px; border-left: 3px solid var(--orange); background: var(--orange-soft); }
.route-warning p { margin: 0; color: var(--ink); }
.route-next-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.route-next-actions button { min-height: 60px; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 13px; font-weight: 750; }
.modal-actions { display: grid; gap: 8px; margin-top: 16px; }
.split-actions { grid-template-columns: 1fr 1fr; }
.source-anchor { justify-content: center; }
.assistant-head { display: grid; grid-template-columns: 50px 1fr; gap: 12px; margin-bottom: 18px; }
.assistant-orb { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--pink-bright), var(--orange-bright)); color: white; }
.assistant-head h2 { margin: 3px 0 5px; }
.assistant-head small { color: var(--pink); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.assistant-result { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.choice-row { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; }
.choice-row.wrap { flex-wrap: wrap; }
.choice-row label { flex: 1 0 auto; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label span { min-height: 42px; display: grid; place-items: center; margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; }
.choice-row input:checked + span { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); }
.choice-row input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.safe-script { margin: 16px 0; padding: 14px; border-left: 3px solid var(--pink); background: var(--pink-soft); }
.safe-script small { color: var(--pink); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.safe-script blockquote { margin: 8px 0; font-size: 17px; font-weight: 750; }
.scenario-steps { counter-reset: steps; display: grid; gap: 8px; }
.scenario-steps li { position: relative; padding: 10px 10px 10px 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.scenario-steps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 10px; top: 11px; color: var(--orange); font: 800 12px/1.5 var(--mono); }
.source-list { display: grid; gap: 8px; }
.source-list a { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.source-list strong, .source-list small { display: block; }
.source-list small { margin-top: 3px; color: var(--muted); }
.legal-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.history-table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.history-table th, .history-table td { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.history-table a { color: var(--orange); }
.toast { position: fixed; z-index: 120; right: 16px; bottom: 92px; left: 16px; display: flex; align-items: center; gap: 9px; max-width: 440px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); font-size: 14px; }

@media (min-width: 680px) {
  #app-main { padding-inline: 24px; }
  .ride-command { grid-template-columns: 1fr minmax(330px, 440px); align-items: end; }
  .discovery-deck { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); }
  .ready-board { display: block; }
  .home-workspace { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); }
  .stop-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .55fr); align-items: center; padding: 24px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-directory { grid-template-columns: 1fr; }
  .rally-card { grid-template-columns: minmax(260px, .8fr) 1.2fr; }
  .rally-visual { min-height: 340px; }
  .event-grid, .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .koox-section { grid-template-columns: .7fr 1.3fr; align-items: center; }
  .garage-dashboard { grid-template-columns: 1.25fr repeat(3, 1fr); }
  .odometer-card { grid-row: span 3; }
  .garage-columns, .safe-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alto-scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expense-chart { grid-template-columns: 170px 1fr; justify-items: stretch; align-items: center; }
  .modal { margin: auto; padding: 26px; border-radius: 22px; }
  .route-modal-hero { margin: -26px -26px 22px; }
  .toast { left: auto; bottom: 22px; }
  .result-meta span { display: block; }
}

@media (min-width: 980px) {
  .app-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: var(--topbar) 1fr; }
  .topbar { position: sticky; grid-column: 1 / -1; grid-row: 1; padding-inline: 22px; }
  .signal { display: inline-flex; }
  .desktop-rail { position: sticky; top: var(--topbar); grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; height: calc(100vh - var(--topbar)); padding: 16px 12px 22px; border-right: 1px solid var(--line); background: var(--surface); }
  .desktop-rail nav { display: grid; gap: 5px; }
  .rail-link { min-height: 48px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 11px; padding: 0 13px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); text-align: left; font-size: 14px; font-weight: 750; }
  .rail-link:hover { background: var(--surface-2); color: var(--ink); }
  .rail-link.is-active { background: var(--ink); color: var(--surface); }
  .ai-rail-card { min-height: 68px; display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); text-align: left; }
  .ai-rail-card > .icon:first-child { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: linear-gradient(145deg, var(--pink-bright), var(--orange-bright)); color: white; }
  .ai-rail-card strong, .ai-rail-card small { display: block; }
  .ai-rail-card small { color: var(--muted); font-size: 12px; }
  #app-main { grid-column: 2; grid-row: 2; width: 100%; padding: 28px 34px 60px; }
  .mobile-nav { display: none; }
  .explore-tabs { top: var(--topbar); margin-inline: -34px; padding-inline: 34px; }
  .directory-toolbar { display: grid; grid-template-columns: minmax(340px, .8fr) 1.2fr; align-items: center; gap: 16px; }
  .filter-row { justify-content: flex-end; padding: 0; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer > p { grid-column: 1 / -1; }
}

@media (min-width: 1320px) {
  .stop-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workshop-directory, .stop-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .club-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .desktop-rail, .mobile-nav, .site-footer, .modal-close, button { display: none !important; }
  #app-main { padding: 0; }
  body { background: white; color: black; }
}
