/* mapasina - dark Material look of the Flutter app (seed teal #009688,
   scaffold #121212). The map is always light or dark on its own; the chrome
   stays dark so it reads the same over both. */

:root {
    --bg: #121212;
    --surface: #1e1f20;
    --surface-2: #2a2c2d;
    --surface-3: #35383a;
    --on-surface: #e8eaed;
    --muted: #9aa0a6;
    --primary: #4db6ac;
    --primary-strong: #009688;
    --on-primary: #00201c;
    --danger: #ef5350;
    --warn: #ffb74d;
    --radius: 16px;
    --shadow: 0 4px 16px rgba(0, 0, 0, .35);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--on-surface);
    font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--primary); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2 { margin: 0; }

.icon { flex: none; display: inline-block; vertical-align: middle; }
.accent { color: var(--primary); }

/* ------------------------------------------------------------------ app */

.app { position: fixed; inset: 0; overflow: hidden; }
.map-root { position: absolute; inset: 0; }
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 15; }
.overlay > * { pointer-events: auto; }

.topbar {
    position: absolute; z-index: 10;
    top: calc(var(--safe-top) + 10px); left: 12px; right: 12px;
    display: flex; gap: 8px; align-items: center;
    max-width: 640px;
}

.searchpill {
    flex: 1; min-width: 0; height: 50px;
    display: flex; align-items: center; gap: 10px; padding: 0 18px;
    background: var(--surface); color: var(--on-surface);
    border-radius: 28px; box-shadow: var(--shadow);
}
.searchpill .icon { color: var(--primary); }
.searchpill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.round-btn {
    width: 50px; height: 50px; border-radius: 50%; border: 0; flex: none;
    background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
    display: grid; place-items: center;
}

.fabs {
    position: absolute; z-index: 10; right: 14px;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
    transition: bottom .2s ease;
    margin-bottom: var(--safe-bottom);
}
.fab {
    width: 56px; height: 56px; border-radius: 16px; border: 0; cursor: pointer;
    background: var(--surface-2); box-shadow: var(--shadow);
    display: grid; place-items: center;
}
.fab.small { width: 42px; height: 42px; border-radius: 12px; }
.fab.primary { background: #004d45; color: #a7f3eb; }
.fab.busy .icon { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* --------------------------------------------------------------- sheets */

.sheet {
    position: absolute; z-index: 12; left: 0; right: 0; bottom: 0;
    max-width: 640px; margin: 0 auto;
    background: var(--surface);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .4);
    padding: 4px 14px calc(12px + var(--safe-bottom));
    max-height: 62vh; overflow-y: auto;
}
.sheet-handle {
    display: block; margin: 0 auto; border: 0; background: none; color: var(--muted);
    cursor: pointer; padding: 2px 16px;
}

.plan-row { display: flex; align-items: center; gap: 4px; }
.plan-names { flex: 1; min-width: 0; color: var(--on-surface); display: flex; gap: 6px; align-items: baseline; overflow: hidden; white-space: nowrap; }
.plan-from { color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 38%; }
.plan-to { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.plan-arrow { color: var(--muted); }
.plan-via { color: var(--primary); font-size: 12px; }

.icon-btn {
    border: 0; background: none; cursor: pointer; color: var(--on-surface);
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.active-star { color: #ffc107; }

.modes { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 6px; scrollbar-width: none; }
.modes::-webkit-scrollbar { display: none; }
.mode-chip {
    flex: none; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center;
    padding: 8px 12px; min-width: 88px; border-radius: 14px; cursor: pointer;
    background: var(--surface-2); border: 2px solid transparent;
}
.mode-chip .icon { color: var(--mode); grid-row: span 2; }
.mode-label { font-size: 12px; color: var(--muted); text-align: left; }
.mode-value { font-weight: 700; text-align: left; min-height: 20px; display: flex; align-items: center; }
.mode-value .icon { color: var(--warn); grid-row: auto; }
.mode-chip.selected { border-color: var(--mode); background: color-mix(in srgb, var(--mode) 18%, var(--surface-2)); }

.depart-row { display: flex; align-items: center; gap: 10px; padding: 4px 0 8px; flex-wrap: wrap; }
.depart { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.depart input {
    background: var(--surface-2); color: var(--on-surface); border: 0; border-radius: 8px;
    padding: 5px 8px; font: inherit; color-scheme: dark;
}
.timing { margin-left: auto; font-size: 12px; color: var(--primary); font-variant-numeric: tabular-nums; }

.alternatives { display: flex; flex-direction: column; gap: 6px; }
.alt-row {
    text-align: left; border: 1px solid var(--surface-3); background: transparent; cursor: pointer;
    border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px;
}
.alt-row.selected { border-color: var(--primary); background: rgba(77, 182, 172, .08); }
.alt-row.static { cursor: default; }
.alt-main { display: flex; justify-content: space-between; align-items: baseline; }
.alt-times { font-variant-numeric: tabular-nums; }
.alt-duration { font-weight: 700; font-size: 17px; }
.alt-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.alt-meta .warn, .warn { color: var(--warn); }

.strip { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 8px;
    font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap;
}
.pill.train { color: #fff; }
.pill.street { background: var(--surface-3); }

.panel-actions { display: flex; gap: 10px; padding-top: 10px; }
.btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; border-radius: 22px; border: 1px solid var(--surface-3); background: transparent;
    color: var(--on-surface); cursor: pointer; font-weight: 600;
}
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.link-btn { border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 0 4px; }

.notice { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.notice.error { background: rgba(239, 83, 80, .14); color: #ffab91; }
.notice.muted { color: var(--muted); }
.notice.info { background: rgba(77, 182, 172, .12); color: var(--on-surface); }

.spinner {
    width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex: none;
    border: 2px solid var(--surface-3); border-top-color: var(--primary);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.quick-list {
    position: absolute; left: 12px; right: 80px; bottom: calc(14px + var(--safe-bottom));
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.quick-chip {
    flex: none; display: inline-flex; gap: 6px; align-items: center; max-width: 220px;
    padding: 8px 14px; border-radius: 20px; border: 0; cursor: pointer;
    background: var(--surface); box-shadow: var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------------------------------------------- full-screen pages */

.fullscreen {
    position: absolute; inset: 0; z-index: 20; background: var(--bg);
    display: flex; flex-direction: column;
    padding-top: var(--safe-top);
}
.page-head {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-bottom: 1px solid var(--surface-2);
}
.page-head h1 { font-size: 18px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-body { flex: 1; overflow-y: auto; padding: 12px 14px calc(24px + var(--safe-bottom)); }
.page-body.narrow, .search-body { max-width: 720px; width: 100%; margin: 0 auto; }

.search-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.search-input {
    flex: 1; height: 46px; border-radius: 23px; border: 0; padding: 0 18px;
    background: var(--surface-2); color: var(--on-surface); font: inherit; font-size: 16px; outline: none;
}
.search-input:focus { box-shadow: 0 0 0 2px var(--primary); }
.search-body { flex: 1; overflow-y: auto; padding: 4px 10px calc(24px + var(--safe-bottom)); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 4px 10px; }
.chip {
    border: 1px solid var(--surface-3); background: transparent; border-radius: 16px;
    padding: 5px 12px; cursor: pointer; font-size: 13px;
}
.chip.selected { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.list-title {
    font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 6px 6px;
    display: flex; justify-content: space-between; align-items: center; text-transform: none;
}
.list-row {
    width: 100%; display: flex; gap: 12px; align-items: center; text-align: left;
    padding: 10px 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--on-surface);
}
.list-row:hover { background: var(--surface); }
.list-row > .icon:first-child { color: var(--muted); }
.list-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.list-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-end { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

.card { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.card h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }

/* ------------------------------------------------------------- settings */

.field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--surface-2); }
.field:last-child { border-bottom: 0; }
.field-label { display: flex; flex-direction: column; }
.field-label small { color: var(--muted); font-size: 12px; }
.field select, .field input[type=number] {
    background: var(--surface-2); color: var(--on-surface); border: 0; border-radius: 8px; padding: 6px 8px; font: inherit;
}
.field input[type=range] { width: 150px; accent-color: var(--primary); }
.switch { accent-color: var(--primary); width: 20px; height: 20px; }

/* ---------------------------------------------------------- menu, popup */

.scrim { position: absolute; inset: 0; z-index: 30; background: rgba(0, 0, 0, .45); }
.drawer {
    position: absolute; z-index: 31; top: 0; bottom: 0; right: 0; width: min(320px, 86vw);
    background: var(--surface); padding: calc(var(--safe-top) + 14px) 8px 14px;
    display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
    animation: slidein .18s ease-out;
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; gap: 12px; align-items: center; padding: 6px 10px 16px; }
.drawer-head img { border-radius: 10px; }
.drawer-title { font-size: 18px; font-weight: 700; }
.drawer-sub { color: var(--muted); font-size: 12px; }
.beta { font-size: 11px; background: var(--primary); color: var(--on-primary); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.menu-item {
    display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px; border: 0; border-radius: 10px;
    background: none; color: var(--on-surface); cursor: pointer; text-align: left;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item .icon { color: var(--muted); }

.popup {
    position: absolute; z-index: 31; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px)); background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px;
}
.popup-title { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; font-weight: 600; }
.popup-title .icon { color: var(--danger); }

.toast {
    position: absolute; z-index: 40; left: 50%; transform: translateX(-50%);
    bottom: calc(90px + var(--safe-bottom)); max-width: calc(100vw - 32px);
    background: #323232; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
}

/* ------------------------------------------------------------ map pins */

.mapasina-pin {
    width: 28px; height: 36px; display: grid; place-items: center; padding-bottom: 8px;
    font-size: 12px; font-weight: 700; color: #fff; cursor: default;
    background: no-repeat center / contain;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4));
}
.mapasina-pin-dest { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'%3E%3Cpath d='M14 0C6.3 0 0 6.1 0 13.7 0 24 14 36 14 36s14-12 14-22.3C28 6.1 21.7 0 14 0z' fill='%23e53935'/%3E%3Ccircle cx='14' cy='13.5' r='5' fill='%23fff'/%3E%3C/svg%3E"); }
.mapasina-pin-start { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'%3E%3Cpath d='M14 0C6.3 0 0 6.1 0 13.7 0 24 14 36 14 36s14-12 14-22.3C28 6.1 21.7 0 14 0z' fill='%23009688'/%3E%3Ccircle cx='14' cy='13.5' r='5' fill='%23fff'/%3E%3C/svg%3E"); }
.mapasina-pin-via { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'%3E%3Cpath d='M14 0C6.3 0 0 6.1 0 13.7 0 24 14 36 14 36s14-12 14-22.3C28 6.1 21.7 0 14 0z' fill='%23fb8c00'/%3E%3C/svg%3E"); }

.mapasina-me { width: 22px; height: 22px; position: relative; }
.mapasina-me-dot {
    position: absolute; inset: 3px; border-radius: 50%; background: #1e88e5;
    border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 1px 4px rgba(0, 0, 0, .4);
}
.mapasina-me-heading {
    display: none; position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
    width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent;
    border-bottom: 16px solid rgba(30, 136, 229, .85);
}
.mapasina-me.has-heading .mapasina-me-heading { display: block; }

/* MapLibre controls in the dark chrome */
.maplibregl-ctrl-bottom-left { margin-bottom: var(--safe-bottom); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.immersive .maplibregl-ctrl-bottom-right, .immersive .maplibregl-ctrl-bottom-left { display: none; }

/* ----------------------------------------------------------- reconnect */

.reconnect { display: none; }
.reconnect.components-reconnect-show, .reconnect.components-reconnect-failed, .reconnect.components-reconnect-rejected {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55);
}
.reconnect-card { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; max-width: 320px; text-align: center; }
.reconnect-when-failed { display: none; }
.reconnect.components-reconnect-failed .reconnect-when-failed,
.reconnect.components-reconnect-rejected .reconnect-when-failed { display: inline-flex; }
.reconnect.components-reconnect-failed .reconnect-when-show,
.reconnect.components-reconnect-rejected .reconnect-when-show { display: none; }
p.reconnect-when-failed { display: none; }
.reconnect.components-reconnect-failed p.reconnect-when-failed { display: block; }

@media (min-width: 900px) {
    .sheet { left: 12px; right: auto; width: 420px; bottom: 12px; border-radius: 22px; max-height: calc(100vh - 110px); }
}

/* --------------------------------------------------------- route details */

.sheet.tall { max-height: 78vh; padding-top: 0; }
.page-head.flat { border-bottom: 0; padding: 8px 0; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.summary { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 2px 2px 10px; color: var(--muted); }
.summary strong { font-size: 22px; color: var(--on-surface); }
.good { color: #81c784; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.small { font-size: 12px; }
.hint { color: var(--muted); font-size: 13px; }

.legs { list-style: none; margin: 0; padding: 0; }
.leg { display: flex; gap: 10px; position: relative; padding-bottom: 12px; }
.leg::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 3px; background: var(--leg); border-radius: 2px; opacity: .8; }
.leg-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--leg); color: #fff; display: grid; place-items: center; flex: none; }
.leg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.leg-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.leg-sub { color: var(--muted); font-size: 13px; font-weight: 400; }
.leg-stop { display: flex; gap: 8px; align-items: baseline; }
.leg-stop .t { font-variant-numeric: tabular-nums; min-width: 48px; color: var(--muted); }
.leg-actions { display: flex; gap: 10px; }
.tag { font-size: 11px; background: var(--surface-3); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.meta-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13px; padding: 6px 2px; }
.meta-grid > :nth-child(odd) { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { width: 100%; display: flex; gap: 12px; align-items: center; padding: 9px 4px; border: 0; background: none; cursor: pointer; text-align: left; border-bottom: 1px solid var(--surface-2); }

/* ------------------------------------------------------ boards, timeline */

.board-row { color: var(--on-surface); }
.board-row.cancelled .list-text > span { text-decoration: line-through; opacity: .6; }
.board-time { font-variant-numeric: tabular-nums; min-width: 52px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 6px 0; position: relative; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--leg); flex: none; position: relative; }
.timeline li:not(:last-child) .dot::after { content: ""; position: absolute; left: 4px; top: 12px; width: 4px; height: 26px; background: var(--leg); }
.timeline a { color: var(--on-surface); }

.waypoints { list-style: none; margin: 0 0 14px; padding: 0; }
.waypoint { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--surface-2); }
.wp-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.wp-badge.start { background: #009688; }
.wp-badge.dest { background: #e53935; }
.wp-badge.via { background: #fb8c00; }
.panel-actions.wrap { flex-wrap: wrap; }
.panel-actions.wrap .btn { flex: 1 1 180px; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.list-text.plain { border: 0; background: none; text-align: left; cursor: pointer; padding: 0; color: inherit; }
.legend-row { display: flex; gap: 10px; align-items: center; padding: 3px 0; }
.swatch { width: 26px; height: 6px; border-radius: 3px; display: inline-block; }
progress { width: 100%; height: 6px; accent-color: var(--primary); }

/* ------------------------------------------------------------ navigation */

.nav-hud {
    position: absolute; top: calc(var(--safe-top) + 10px); left: 10px; right: 10px; max-width: 560px; margin: 0 auto;
    background: #00584f; color: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow);
}
.nav-hud.off { background: #8d2a1f; }
.nav-main { display: flex; gap: 14px; align-items: center; }
.nav-text { display: flex; flex-direction: column; font-size: 17px; line-height: 1.25; min-width: 0; }
.nav-text small { font-size: 13px; opacity: .85; }
.nav-dist { font-size: 26px; font-weight: 700; }
.nav-note { margin-top: 8px; font-size: 13px; opacity: .9; }
.nav-note .link-btn { color: #b2dfdb; font-size: 13px; }
.nav-bottom {
    position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
    background: var(--surface); border-radius: 22px 22px 0 0; padding: 12px 16px calc(12px + var(--safe-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .4);
}
.nav-stats { display: flex; justify-content: space-around; text-align: center; padding-bottom: 10px; }
.nav-stats div { display: flex; flex-direction: column; }
.nav-stats strong { font-size: 20px; }
.nav-stats small { color: var(--muted); font-size: 12px; }
.nav-buttons { display: flex; gap: 8px; align-items: center; }
.nav-buttons .btn { flex: 1; }
.icon-btn.big { width: 46px; height: 46px; background: var(--surface-2); }
.icon-btn.on { color: var(--primary); }

.share-menu { background: var(--surface-2); border-radius: 12px; margin: 4px 0 6px; padding: 4px; }

/* --------------------------------------------------------------- plug-ins */

.round-btn { color: var(--on-surface); text-decoration: none; }
.pg-marker { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pg-marker.approx { opacity: .55; }
.pg-icon { display: grid; place-items: center; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.pg-icon img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pg-icon.chip { border-radius: 50%; }
.pg-icon.chip img { width: 72%; height: 72%; }
.pg-icon.fallback { border-radius: 50%; border: 2px solid #fff; }
.pg-name {
    display: none; margin-top: 2px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: #1f2937dd; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px;
}
.pg-name:not(:empty) { display: block; }

.plugin-card { border-left: 4px solid var(--accent); }
.plugin-head { display: flex; align-items: center; gap: 6px; }
.plugin-title { font-weight: 600; }
.plugin-card .tag { margin-right: 4px; }
.chip-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.search-input.small { height: 38px; font-size: 14px; width: 100%; margin: 6px 0; }
.tone-danger { background: rgba(239, 83, 80, .25); color: #ffab91; }
.tone-success { background: rgba(129, 199, 132, .25); color: #a5d6a7; }
.tone-warning { background: rgba(255, 183, 77, .25); color: #ffcc80; }
.tone-info { background: rgba(77, 182, 172, .25); color: #b2dfdb; }

.detail-sheet { z-index: 32; max-height: 80vh; padding-top: 0; }
.detail-accent { width: 6px; height: 26px; border-radius: 3px; flex: none; }
.detail-sub { margin: -4px 0 8px; }
.detail-text { white-space: pre-line; }
.detail-stops .stop-passed { opacity: .5; }
.detail-stops .stop-current .list-text span { font-weight: 700; color: var(--primary); }
.link-btn.left { text-align: left; padding: 0; }
.plugin-popup { z-index: 32; }
.popup-info { white-space: pre-wrap; font: 12px/1.4 ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 8px; border-radius: 8px; margin: 0 4px 8px; max-height: 30vh; overflow: auto; }
.popup-hours { display: flex; gap: 8px; padding: 0 10px 8px; white-space: pre-line; font-size: 13px; color: var(--muted); }
.drawer-user { display: flex; gap: 8px; align-items: center; padding: 4px 12px 8px; font-weight: 600; }
