
/* v5.7 intro timing: slower handwriting + one clean fade */
.intro{transition:opacity .62s cubic-bezier(.22,1,.36,1),visibility .62s linear!important;transform:none!important}
.intro.done{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:none!important}
.intro-script .write-mask{animation-duration:2.05s!important;animation-delay:.20s!important}
.intro-script:after{animation-duration:2.05s!important;animation-delay:.20s!important}
.intro-accent{animation-duration:.70s!important;animation-delay:1.75s!important}
/* interactive map fallback */
.map-embed-wrap{position:relative;background:#e8eef2}.map-frame{min-height:350px}.map-fallback-note{padding:.65rem 1rem;font-size:.68rem;color:var(--muted);background:var(--panel);border-top:1px solid var(--line)}
/* admin command center */
.admin-command-card{padding:1.25rem}.admin-command-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.admin-command{display:flex;align-items:flex-start;gap:.75rem;text-align:left;border:1px solid var(--line);background:var(--panel-2);color:var(--ink);padding:1rem;border-radius:16px;transition:.2s var(--ease)}.admin-command:hover{transform:translateY(-2px);border-color:var(--teal);box-shadow:var(--shadow)}.admin-command svg{width:20px;flex:0 0 auto;color:var(--teal)}.admin-command strong,.admin-command small{display:block}.admin-command small{margin-top:.22rem;color:var(--muted);line-height:1.35}.admin-row-actions{display:flex;flex-wrap:wrap;gap:.35rem}
/* dark mode: explicit readable surfaces/text */
#app[data-theme="dark"]{color-scheme:dark}
#app[data-theme="dark"] .card,#app[data-theme="dark"] .kpi-card,#app[data-theme="dark"] .schedule-card,#app[data-theme="dark"] .route-card,#app[data-theme="dark"] .driver-service-card,#app[data-theme="dark"] .detail-card,#app[data-theme="dark"] .stat-card,#app[data-theme="dark"] .export-card,#app[data-theme="dark"] .support-request,#app[data-theme="dark"] .request-history-item,#app[data-theme="dark"] .admin-command,#app[data-theme="dark"] .map-fallback-note{background:#0f202d!important;color:#edf6fa!important;border-color:#2a4658!important}
#app[data-theme="dark"] .panel,#app[data-theme="dark"] .panel-soft,#app[data-theme="dark"] .schedule-time,#app[data-theme="dark"] .route-explorer-toolbar,#app[data-theme="dark"] .availability-focus{background:#142837!important;color:#edf6fa!important;border-color:#314d5f!important}
#app[data-theme="dark"] .card *,#app[data-theme="dark"] .schedule-card *,#app[data-theme="dark"] .route-card *,#app[data-theme="dark"] .driver-service-card *,#app[data-theme="dark"] .admin-command *{text-shadow:none}
#app[data-theme="dark"] .card h1,#app[data-theme="dark"] .card h2,#app[data-theme="dark"] .card h3,#app[data-theme="dark"] .card h4,#app[data-theme="dark"] .card strong,#app[data-theme="dark"] .schedule-card strong,#app[data-theme="dark"] .route-card strong,#app[data-theme="dark"] .admin-command strong{color:#f4f9fb!important}
#app[data-theme="dark"] .card p,#app[data-theme="dark"] .card small,#app[data-theme="dark"] .card span:not(.status-pill):not(.nav-icon),#app[data-theme="dark"] .schedule-card p,#app[data-theme="dark"] .schedule-card span:not(.status-pill),#app[data-theme="dark"] .route-card p,#app[data-theme="dark"] .route-card span:not(.status-pill),#app[data-theme="dark"] .admin-command small{color:#aec2ce!important}
#app[data-theme="dark"] .primary-btn,#app[data-theme="dark"] .mini-btn.primary{color:#07131c!important}
#app[data-theme="dark"] .danger{color:#ffd8dc!important}
#app[data-theme="dark"] input,#app[data-theme="dark"] select,#app[data-theme="dark"] textarea{background:#091722!important;color:#f0f7fa!important;border-color:#355268!important}
#app[data-theme="dark"] input::placeholder,#app[data-theme="dark"] textarea::placeholder{color:#8299a9!important}
#app[data-theme="dark"] .table-wrap,#app[data-theme="dark"] .data-table td{background:#0f202d!important;color:#e8f2f6!important}#app[data-theme="dark"] .data-table th{background:#162c3b!important;color:#f1f8fb!important}
#app[data-theme="dark"] .bar-track,#app[data-theme="dark"] .live-progress-track{background:#284151!important}
#app[data-theme="dark"] .map-fallback-note{color:#a9bdc8!important}
@media(max-width:960px){.admin-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.admin-command-grid{grid-template-columns:1fr}.admin-row-actions{min-width:220px}.map-frame{min-height:300px}}
