/* Shared finishing layer: compact surfaces, readable controls and clear hierarchy. */
:root {
  --ui-surface:#241532;
  --ui-field:#1c1028;
  --ui-soft:#b97ee512;
  --ui-radius:18px;
}
:root[data-theme="light"] {
  --ui-surface:#fff;
  --ui-field:#fff;
  --ui-soft:#f5f0fb;
}
body { line-height:1.5; }
button,input,select,textarea { font-family:inherit; }
:is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid var(--green);outline-offset:3px; }
:is(button,input,select,textarea) { touch-action:manipulation; }
:is(.panel,.coin-panel,.dw-content,.rg-card,.trip-card,.pp-widget,.pn-section,.journey-panel) {
  border-radius:var(--ui-radius);border-color:var(--line);background:var(--ui-surface);box-shadow:0 3px 16px #08010e05;
}
:is(.panel,.coin-panel,.rg-card) { padding:22px; }
:is(.panel,.coin-panel,.rg-card,.dw-document,.dw-vehicle,.empty-state,.dw-live-trip) :is(h2,h3,h4) { overflow-wrap:anywhere; }
:is(.coin-panel,.rg-card,.policy-page,.dw-content) p { overflow-wrap:anywhere; }
:is(.btn,.text-btn) { line-height:1.4; }
.btn { min-height:44px;border-radius:12px;padding:11px 16px; }
.btn-primary { box-shadow:0 3px 10px #7c36ba20; }
.btn:disabled { cursor:not-allowed; }
.icon-btn { border-radius:12px; }
.content { max-width:1380px;padding:26px 32px 36px;margin-inline:auto; }
.topbar { height:72px; }
.sidebar { padding-top:28px; }
.brand-tagline { margin-top:8px;font-size:.8125rem; }
.nav-label,.community-note,.mission-card,.results-bottom,.hero-badge,.map-entry-banner { display:none; }
.nav-list { margin-top:30px; }
.nav-item { min-height:46px; }
.footer-note { margin-top:28px;line-height:1.7; }
.hero { height:196px;min-height:0;border-radius:22px;padding:28px 32px; }
.hero-copy { max-width:75%; }
.hero h1 { font-size:clamp(1.9rem,3vw,2.5rem);line-height:1.2;letter-spacing:-1px;text-transform:none;font-weight:750; }
.hero .eyebrow { font-size:.6875rem;margin-bottom:12px;letter-spacing:1px; }
.hero p { font-size:.9375rem;line-height:1.6;margin-top:10px; }
.hero-art { object-position:80% 48%; }
.search-panel { border-radius:18px;box-shadow:0 4px 20px #08010e08; }
.search-location-bar { margin-top:16px; }
.search-location-status:empty { display:none; }
.explore-layout { gap:24px; }
.results-head { margin-bottom:14px;align-items:center; }
.results-head h2 { font-size:1.25rem; }
.results-meta,.pn-order { line-height:1.55; }
.results-meta { font-size:.8125rem; }
.results-meta:empty,.pn-order:empty { display:none; }
.filters { margin-bottom:14px; }
.filter-chip { min-height:38px;border-radius:12px; }
.trip-list { gap:12px; }
.trip-card { padding:18px 20px 0; }
.card-top .avatar { width:38px;height:38px; }
.route-price { margin:17px 0 12px; }
.route-city { font-size:1.125rem;line-height:1.4;overflow-wrap:anywhere; }
.host-name { overflow-wrap:anywhere; }
.host-meta { line-height:1.5; }
.price strong { font-size:1.5rem; }
.card-bottom { min-height:52px; }
.trip-vehicle { min-width:0; }
.trip-vehicle>strong { line-height:1.45; }
.rail-bottom { line-height:1.6; }
.page-heading { margin:0 0 22px; }
.page-heading>.eyebrow { display:none; }
.page-heading h1 { margin:0;font-size:1.75rem;line-height:1.3;letter-spacing:-.7px; }
.page-heading p { color:var(--muted);font-size:.9375rem;line-height:1.65; }
.coin-heading,.rg-heading { margin:0 0 22px;gap:16px; }
.coin-heading h1,.rg-heading h1 { margin:4px 0 6px;font-size:1.75rem;line-height:1.3;letter-spacing:-.7px; }
.coin-heading .eyebrow,.rg-heading>.eyebrow { font-size:.6875rem;letter-spacing:1px; }
.coin-heading p,.rg-heading>p { font-size:.9375rem; }
.coin-heading>.btn { flex:none; }
.section-title { font-size:1rem;margin-bottom:18px; }
.form-layout { gap:22px; }
.form-grid { gap:18px 16px; }
:is(.form-field,.sa-grid,.coin-form-grid,.jp-form-grid,.pp-search,.jp-stops) label,
.coin-dialog label { font-size:.875rem;line-height:1.5;color:var(--muted); }
:is(.sa-grid,.coin-form-grid,.coin-dialog,.jp-stops,.jp-form-grid,.pp-search,.pa-device) :is(input:not([type="checkbox"]),select,textarea),
.form-field :is(input,select,textarea),.form-field .ac-trigger {
  min-height:46px;font-size:1rem;line-height:1.45;border-radius:12px;
}
:is(.sa-grid,.coin-form-grid,.coin-dialog,.jp-stops,.jp-form-grid,.pp-search,.pa-device) :is(input:not([type="checkbox"]),select,textarea) {
  background:var(--ui-field);color:var(--ink);border-color:var(--line);
}
.helper,.sa-help,.pp-help,.pp-selected,.coin-note { font-size:.8125rem!important;line-height:1.65; }
.info-note { border-radius:12px;font-size:.8125rem;line-height:1.65; }
.post-address-status:empty,.sa-error:empty,.coin-error:empty,.dw-form-error:empty,.pp-error:empty,.pa-error:empty { display:none; }
.checkbox-row { align-items:flex-start;line-height:1.6; }
.checkbox-row input { flex:none;margin-top:4px; }
.post-submit { gap:12px; }
.post-submit[data-locked="true"] { position:static;box-shadow:none;backdrop-filter:none;background:none;border:0;padding:0;margin:18px 0 0; }
.cost-preview { top:92px; }
.cost-preview h3 { font-size:1rem;line-height:1.5; }
.cost-preview .large-number { font-size:2rem;margin:18px 0 5px; }
.cost-line { font-size:.8125rem;line-height:1.6;gap:10px; }
.cost-line strong { text-align:right; }
.dw-post-gate { padding:14px 17px;margin-bottom:20px;border-radius:14px;gap:12px;background:var(--ui-soft);border-color:var(--line); }
.dw-post-gate p { margin-top:3px;font-size:.8125rem; }
.dw-ready { border-color:#75b9a14d; }
.pa-link-details { padding:0 0 16px;margin-bottom:18px;border-bottom:1px solid var(--line);font-size:.875rem;color:var(--muted); }
.pa-link-details>summary { cursor:pointer;font-weight:600;color:var(--green); }
.pa-link-details .pa-linked { margin:10px 0 0;padding:0;border:0; }
.dw-dialog .form-grid>.form-field { margin-bottom:0; }
.account-shortcuts { display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:22px 0; }
.account-shortcuts:empty { display:none; }
.account-shortcuts :is(.coin-entry,.rg-entry) { padding:17px;margin:0;border-radius:16px;gap:12px;flex-wrap:wrap;align-content:flex-start;background:var(--ui-surface);border-color:var(--line); }
.account-shortcuts :is(.coin-entry,.rg-entry)>div { flex:1;min-width:140px; }
.account-shortcuts :is(h3,.rg-entry h3) { font-size:1rem;margin:0 0 5px; }
.account-shortcuts p { font-size:.8125rem;line-height:1.55;color:var(--muted); }
.account-shortcuts .coin-mark { width:36px;height:36px;font-size:21px; }
.account-shortcuts .btn { margin:0;min-height:40px;font-size:.8125rem; }
.dw-account { padding:8px 0 18px;margin:0; }
.dw-account h2 { font-size:1.3rem; }
.dw-account-avatar { width:54px;height:54px;border-radius:18px; }
.dw-content { padding:22px; }
.dw-tabs,.tabs,.sa-tabs { scrollbar-width:thin;scrollbar-color:#a47aba70 transparent; }
.dw-tabs { margin-bottom:16px; }
.dw-tabs button { min-height:44px;padding:10px 14px; }
.dw-section-heading { margin-bottom:18px; }
.dw-document { border-color:var(--line);border-radius:14px;padding:15px;background:var(--ui-soft);gap:10px; }
.dw-doc-actions { gap:8px; }
.dw-doc-actions button { min-height:40px; }
.dw-vehicle { border-color:var(--line);border-radius:16px;padding:18px;background:var(--ui-soft); }
.dw-vehicle h3 { font-size:1.2rem; }
.dw-selected { border-color:var(--green); }
.dw-vehicle-actions { margin:14px 0; }
.dw-private-note { font-size:.75rem;line-height:1.6; }
.dw-application { padding-top:15px;margin-top:15px; }
.dw-application p { font-size:.8125rem;line-height:1.6; }
.dw-help { line-height:1.6; }
.dw-welcome h2 { font-size:1.4rem; }
.dw-admin-setting { margin-bottom:20px;padding-bottom:18px; }
.dw-admin-setting .btn { margin-top:12px; }
.settings-row { padding:15px 0; }
.settings-row strong { font-size:.9375rem; }
.settings-row p { font-size:.8125rem; }
.coin-panel { margin:16px 0; }
.coin-panel h2,.rg-card h2 { font-size:1.2rem;line-height:1.4; }
.coin-panel h3 { font-size:1rem;line-height:1.5; }
.coin-panel p,.coin-panel li { font-size:.875rem;line-height:1.7; }
.coin-hero { padding:24px;border-radius:20px; }
.coin-hero h2 { margin:10px 0;font-size:2.125rem; }
.coin-hero p { margin-bottom:12px;font-size:.875rem; }
.coin-orbit { flex-basis:94px;height:94px; }
.coin-orbit span { font-size:40px; }
.coin-orbit small { font-size:10px; }
.coin-balances { gap:12px;margin:16px 0; }
.coin-balances article { padding:18px;border-radius:16px; }
.coin-balances small { font-size:.8125rem; }
.coin-balances strong { font-size:1.6rem;margin-top:8px; }
.coin-ride,.coin-history { padding:16px 0; }
.coin-actions .btn,.coin-rider .btn,.coin-history .btn { font-size:.8125rem;min-height:42px; }
.coin-schedule { margin-top:16px; }
.coin-schedule small,.coin-schedule span { font-size:.75rem; }
.coin-history small,.coin-ride small,.sa-users small,.sa-backups small,.sa-daily small { font-size:.75rem;line-height:1.6; }
.sa-tabs { margin:18px 0;gap:7px;flex-wrap:nowrap;overflow:auto;padding-bottom:4px; }
.sa-tabs>.btn { flex:none;min-height:42px;font-size:.875rem;padding:9px 13px;white-space:nowrap; }
:root[data-theme] .sa-tabs>.btn[aria-current="page"] { background:var(--deep);border-color:var(--deep);color:#fff; }
.sa-grid { gap:18px 16px;margin:20px 0; }
.sa-checks { font-size:.8125rem;line-height:1.6;gap:12px; }
.sa-actions { gap:9px; }
.sa-actions .btn { font-size:.875rem; }
.sa-metrics { gap:12px;margin:20px 0; }
.sa-metrics article { padding:17px 15px;border-radius:14px; }
.sa-metrics small { font-size:.8125rem;line-height:1.5; }
.sa-metrics strong { font-size:1.6rem;margin-top:8px; }
.sa-notice { padding:14px;border-radius:12px; }
.sa-notice strong { font-size:.9375rem; }
.sa-notice span { font-size:.875rem; }
.sa-notice time { font-size:.75rem; }
.sa-guide,.ui-details { font-size:.875rem;line-height:1.7; }
.ui-details { border:1px solid var(--line);border-radius:16px;background:var(--ui-surface);padding:15px 18px;margin:16px 0;color:var(--muted); }
.ui-details>summary { cursor:pointer;font-weight:600;color:var(--ink); }
.ui-details>.coin-panel { padding:16px 0 0;border:0;box-shadow:none;margin:0; }
.pp-search { gap:10px; }
.pp-actions .btn { font-size:.875rem; }
.pp-provider { font-size:.75rem; }
.pp-map { border-radius:16px; }
.pn-section { padding:18px;margin:18px 0 24px; }
.pn-header { margin-bottom:12px; }
.pn-label { display:none; }
.pn-trip { background:var(--ui-soft);border-color:var(--line);border-radius:14px; }
.pn-trip:hover { background:var(--mint);border-color:var(--green); }
.pn-status { margin:10px 0; }
.pn-note { display:flex;gap:5px 12px;flex-wrap:wrap;align-items:center; }
.pn-note .rg-help-link { min-height:36px; }
.jp-stops { margin:14px 0; }
.jp-stops>article { padding:13px 0; }
.jp-stops small { font-size:.75rem; }
.jp-stop-actions .btn,.jp-tools .btn,.jp-history .sa-actions .btn { font-size:.8125rem;min-height:40px; }
.jp-quote p { font-size:.875rem; }
.jp-quote small { font-size:.75rem; }
.jp-history-trip { padding:18px 0; }
.jp-history-trip h3 { font-size:1rem;line-height:1.5; }
.jp-history-trip p { font-size:.875rem; }
.jp-stops-summary li { font-size:.875rem; }
.jp-stops-summary small { font-size:.75rem; }
.rg-card { margin:16px 0; }
.rg-steps>li { padding-bottom:17px; }
.rg-steps p { font-size:.9375rem;line-height:1.65; }
.rg-quick { margin-bottom:18px;padding:10px 13px;border-radius:12px; }
.rg-quick summary { font-size:.875rem; }
.policy-page { max-width:900px;margin-inline:auto; }
.policy-page p { font-size:.9375rem;line-height:1.8; }
.policy-page h2 { font-size:1.125rem;margin:24px 0 10px; }
.af-header { margin-bottom:22px; }
.af-header h1 { font-size:1.75rem;line-height:1.3; }
.af-header p { font-size:.9375rem; }
.af-card,.af-tools { border-radius:16px; }
dialog { border-radius:20px; }
:is(.dw-dialog,.pp-dialog,#location-dialog) { overflow:hidden; }
.dw-dialog-body { min-height:0;flex:1;overflow:auto; }
.dw-dialog>header,.dw-dialog>footer { flex:none; }
.dialog-head,.dw-dialog>header { padding:20px 22px 16px; }
.dialog-body,.dw-dialog-body { padding:20px 22px; }
.pc-panel { border-radius:20px; }
.pc-message { line-height:1.55; }
.pc-head { min-width:0; }
@media(min-width:701px) and (max-width:1100px) {
  .content { padding:24px; }
  .hero { height:176px;padding:24px; }
}
@media(max-width:700px) {
  :root { --ui-radius:17px; }
  html { scroll-padding-top:80px; }
  .topbar { height:calc(62px + env(safe-area-inset-top,0px));padding-inline:16px; }
  .app-mobile-mark { width:32px;height:32px;border-radius:11px; }
  .app-mobile-copy strong { font-size:1.125rem; }
  .top-actions { gap:5px;margin-left:6px; }
  .content { padding:16px 16px calc(112px + env(safe-area-inset-bottom,0px)); }
  .hero { height:116px;min-height:116px;padding:18px;border-radius:19px; }
  .hero-copy { max-width:100%; }
  .hero .eyebrow { display:none; }
  .hero h1 { font-size:1.5rem;letter-spacing:-.6px; }
  .hero p { font-size:.875rem;margin-top:7px;max-width:230px; }
  .hero-art { object-position:85% 45%; }
  .search-location-bar { margin-top:12px;gap:6px; }
  .search-locate-button { min-height:40px;font-size:.8125rem;padding:8px 12px;border-radius:12px; }
  #search-form { border-radius:18px;margin-bottom:18px; }
  #search-form .swap-btn { width:30px;height:30px;min-height:30px;margin:-6px 0; }
  .search-field { min-height:57px; }
  .search-submit { min-height:46px;height:46px;border-radius:12px; }
  .pn-section { padding:15px 13px;margin:16px 0 22px; }
  .pn-header h2,.results-head h2 { font-size:1.125rem; }
  .pn-note { font-size:.75rem;line-height:1.6; }
  .pn-cards { grid-auto-columns:minmax(230px,88%); }
  .trip-card { padding:14px 15px 0; }
  .trip-list { gap:12px; }
  .route-price { margin:13px 0 8px;gap:10px; }
  .route-city { font-size:1.0625rem; }
  .route-time { font-size:.8125rem; }
  .route-price .price { padding-top:9px; }
  .price strong { font-size:1.375rem; }
  .card-bottom { min-height:48px; }
  .card-bottom .text-btn { min-height:44px; }
  .page-heading { margin:0 0 18px; }
  .page-heading h1 { font-size:1.5rem; }
  body:is([data-page="profile"],[data-page="trips"]) .page-heading { position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
  .coin-heading,.rg-heading { margin-bottom:18px; }
  .coin-heading h1,.rg-heading h1,.af-header h1 { font-size:1.5rem; }
  .coin-heading>.btn { margin-top:8px; }
  .coin-heading p { font-size:.875rem; }
  :is(.panel,.coin-panel,.rg-card) { padding:18px 16px; }
  .form-layout { gap:16px; }
  .form-layout .panel { padding:18px 16px;border-radius:17px; }
  .form-grid { gap:16px 12px; }
  .checkbox-row { font-size:.875rem; }
  .post-submit { border-radius:16px;left:12px;right:12px; }
  .post-submit[data-locked="true"] { flex-wrap:wrap; }
  .post-submit[data-locked="true"]>.text-btn { max-width:none; }
  body[data-page="post"]:has(.post-submit[data-locked="true"]) .content { padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)); }
  body[data-page="post"]:has(.post-submit[data-locked="true"]) #pooltaxi-chat { --pc-bottom:calc(94px + env(safe-area-inset-bottom,0px)); }
  .cost-preview { display:block; }
  .cost-preview .large-number { font-size:1.75rem;margin:14px 0 4px; }
  .cost-preview .info-note { display:none; }
  .dw-post-gate { padding:14px;gap:10px; }
  .dw-post-gate strong { font-size:.9375rem; }
  .dw-post-gate>.btn { width:auto;align-self:flex-start;font-size:.8125rem;min-height:40px; }
  .dw-post-gate.dw-ready { flex-direction:row;align-items:center;padding:12px 14px; }
  .dw-ready strong { font-size:.8125rem; }
  .dw-ready p { display:none; }
  .dw-account { grid-template-columns:46px minmax(0,1fr);gap:8px 12px; }
  .dw-account-avatar { width:46px;height:46px;border-radius:15px; }
  .dw-account h2 { font-size:1.1875rem; }
  .dw-account>.btn { min-height:38px;font-size:.8125rem; }
  .dw-tabs { margin-right:0;border-radius:14px; }
  .dw-tabs button { padding:10px 12px;font-size:.8125rem; }
  .dw-content { padding:17px 14px; }
  .dw-section-heading { gap:10px;margin-bottom:16px; }
  .dw-section-heading h3 { font-size:1.0625rem; }
  .dw-document { padding:13px; }
  .dw-vehicle { padding:15px 12px; }
  .dw-document-grid { gap:10px; }
  .dw-vehicle-actions { gap:8px; }
  .dw-application { gap:10px; }
  .dw-application>.btn { font-size:.875rem; }
  .account-shortcuts { grid-template-columns:1fr;gap:10px;margin:18px 0; }
  .account-shortcuts :is(.coin-entry,.rg-entry) { padding:14px;gap:10px;align-content:normal; }
  .account-shortcuts .coin-entry>div { flex-basis:calc(100% - 48px); }
  .account-shortcuts .coin-entry>.btn { margin-left:46px; }
  .account-shortcuts .rg-entry>.btn { width:auto; }
  .profile-grid { gap:16px; }
  .settings-row { gap:10px;padding:14px 0; }
  .sa-grid,.coin-form-grid { gap:16px 12px; }
  .sa-tabs>.btn { min-height:42px;font-size:.8125rem; }
  .sa-workspace>.coin-heading>.btn { display:none; }
  .sa-actions>.btn { font-size:.8125rem;white-space:normal; }
  .sa-metrics { gap:9px; }
  .sa-metrics article { padding:14px 12px; }
  .sa-metrics small { font-size:.75rem; }
  .sa-metrics strong { font-size:1.375rem; }
  .coin-balances { gap:9px; }
  .coin-balances article { padding:15px 12px; }
  .coin-balances small { font-size:.75rem; }
  .coin-balances strong { font-size:1.5rem; }
  .coin-hero { padding:20px 17px;gap:12px; }
  .coin-hero h2 { font-size:1.875rem; }
  .coin-orbit { flex-basis:68px;height:68px;box-shadow:inset 0 0 0 7px #bd74f718; }
  .coin-orbit span { font-size:30px; }
  .coin-orbit small { font-size:8px; }
  .coin-panel p,.coin-panel li { font-size:.875rem; }
  .coin-eyebrow { font-size:.6875rem; }
  .coin-schedule { gap:12px; }
  .coin-schedule strong { font-size:1.25rem; }
  .coin-ride header { flex-wrap:wrap; }
  .coin-actions { gap:8px; }
  .pp-actions .btn { font-size:.8125rem; }
  .pp-search .btn { min-height:46px; }
  .jp-stop-actions { margin-left:38px; }
  .jp-tools { gap:8px; }
  .rg-card h2 { font-size:1.125rem; }
  .rg-card>p,.rg-card li { font-size:.9375rem; }
  .rg-steps>li { padding-left:37px; }
  .rg-heading>p { font-size:.9375rem; }
  .policy-page p { font-size:.875rem; }
  .dialog-head,.dw-dialog>header { padding:20px 18px 15px; }
  .dialog-body,.dw-dialog-body { padding:18px; }
  .dw-dialog>header h2,.dialog-head h2 { font-size:1.125rem; }
  .footer-note { display:block;font-size:.75rem;margin-top:22px; }
  .footer-note>div:first-child { display:none; }
  .footer-note>div+div { margin-top:0; }
}
@media(max-width:370px) {
  .content { padding-inline:13px; }
  .topbar { padding-inline:13px; }
  .hero h1 { font-size:1.375rem; }
  .coin-form-grid { grid-template-columns:1fr; }
}

.footer-note a{color:inherit;text-underline-offset:3px;}
