/* ============================================================
   Field Story Builder X — Components (10.0)
   ============================================================ */

/* 4-Point Star Current Location Marker & Sonar Pulse */
.fsb-leaflet-star-icon { background: transparent !important; border: none !important; }
.fsb-user-star-wrap { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fsb-user-star-ring { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--cyan, #22d3ee); opacity: 0; transform: scale(0.55); pointer-events: none; }
.fsb-user-star-wrap.pulse .fsb-user-star-ring { animation: fsb-star-sonar 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fsb-star-sonar { 0% { opacity: 0.85; transform: scale(0.55); } 100% { opacity: 0; transform: scale(1.65); } }
.fsb-user-star-rotator { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; transition: transform 0.14s linear; will-change: transform; }
.fsb-user-star-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.75)); }
.fsb-user-star-wrap.acquiring .fsb-user-star-svg { filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.7)); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-sm); border: none; border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem; font-family: inherit; font-size: var(--fs-md);
    font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
    cursor: pointer; transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
    text-align: center; line-height: 1.15; min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #0a0e14; }
.btn-accent  { background: var(--cyan);  color: #0a0e14; }
.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger  { background: var(--rose); color: #fff; }
.btn-ghost   { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text-main); border-color: var(--border-color); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 0.8rem; font-size: var(--fs-xs); min-height: 36px; }

.icon-button { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); width: 44px; height: 44px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }

.status-pill { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0.08em; padding: 0.3rem 0.6rem; border-radius: var(--radius-sm); border: 1px solid currentColor; white-space: nowrap; transition: all 0.25s ease; cursor: pointer; background: transparent; }
.status-pill.ready   { color: var(--emerald); background: rgba(16, 185, 129, 0.14); }
.status-pill.live    { color: var(--rose);    background: rgba(244, 63, 94, 0.14); box-shadow: 0 0 10px rgba(244, 63, 94, 0.4); }
.status-pill.amber   { color: var(--amber);   background: rgba(245, 158, 11, 0.14); }
.status-pill.info    { color: var(--cyan);    background: rgba(6, 182, 212, 0.14); }
.status-pill.saved   { color: var(--emerald); background: rgba(16, 185, 129, 0.14); }
.status-pill.offline { color: var(--slate);   background: rgba(148, 163, 184, 0.14); }
.status-pill.private { color: var(--violet);  background: rgba(139, 92, 246, 0.14); }

.card, .panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.panel-title-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.panel-heading { font-size: var(--fs-sm); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.section-title { font-size: var(--fs-sm); font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin: var(--space-sm) 0; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: var(--space-md); }
.modal-overlay.active { display: flex; }
.modal-card { background: var(--bg-card); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: var(--space-lg); max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: var(--space-md); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85); max-height: 90vh; overflow-y: auto; }
.modal-title { font-size: var(--fs-lg); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.modal-body  { color: var(--text-main); font-size: var(--fs-md); line-height: 1.55; }
.modal-body p + p { margin-top: var(--space-sm); }
.modal-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; flex-wrap: wrap; }
.modal-actions .btn { min-width: 120px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--bg-elevated); color: var(--text-main); border: 1px solid var(--accent); border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: var(--fs-sm); font-family: var(--font-mono); font-weight: 700; max-width: min(90vw, 520px); text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 10000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { border-color: var(--rose); color: var(--rose); }
.toast.toast-info  { border-color: var(--cyan); color: var(--cyan); }

.toast-stack { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 10000; pointer-events: none; width: min(92vw, 520px); max-width: 92vw; }
.fsb-brand-toast { display: flex; flex-direction: column; gap: 3px; background: var(--bg-elevated); color: var(--text-main); border: 1px solid var(--accent); border-left-width: 4px; border-radius: var(--radius-md); padding: 0.65rem 0.9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); font-size: var(--fs-sm); line-height: 1.35; text-align: left; width: 100%; opacity: 1; transform: translateY(0); transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease; pointer-events: auto; max-height: 200px; overflow: hidden; }
.fsb-brand-toast.toast-error { border-color: var(--rose); }
.fsb-brand-toast.toast-info  { border-color: var(--cyan); }
.fsb-brand-toast-lead { font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-family: var(--font-mono); }
.fsb-brand-toast.toast-error .fsb-brand-toast-lead { color: var(--rose); }
.fsb-brand-toast.toast-info  .fsb-brand-toast-lead { color: var(--cyan); }
.fsb-brand-toast-body { font-size: var(--fs-sm); color: var(--text-main); font-family: var(--font-stack); font-weight: 600; letter-spacing: 0; text-transform: none; word-wrap: break-word; }
.fsb-brand-toast.fsb-brand-toast-fading { opacity: 0; transform: translateY(6px); max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.fsb-brand-toast.fsb-brand-toast-folding { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }

.fsb-explain p + p { margin-top: var(--space-sm); }
.fsb-recommend { margin-top: var(--space-md); padding: 0.8rem 0.95rem; background: var(--bg-elevated); border: 1px solid var(--border-color); border-left: 3px solid var(--cyan); border-radius: var(--radius-md); }
.fsb-recommend-label { font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); font-family: var(--font-mono); margin-bottom: 4px; }
.fsb-recommend-body { font-size: var(--fs-sm); color: var(--text-main); line-height: 1.5; }

.naming-window { display: flex; flex-direction: column; gap: var(--space-sm); }
.naming-intro { font-size: var(--fs-md); line-height: 1.5; color: var(--text-main); }
.naming-preview { min-height: 20px; font-size: 0.78rem; }
.naming-warn { color: var(--amber); font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.4; }
.naming-note { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; padding: 6px 8px; background: var(--bg-elevated); border-radius: var(--radius-sm); border: 1px solid var(--border-color); word-break: break-all; }
.naming-note .mono { color: var(--cyan); font-family: var(--font-mono); font-size: 0.72rem; }
.naming-help { font-size: 0.72rem; color: var(--text-muted); line-height: 1.45; }

.settings-section-label { font-size: 0.62rem; font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; padding-top: var(--space-sm); border-top: 1px solid var(--border-color); margin-top: var(--space-sm); font-family: var(--font-mono); }
.settings-section-label:first-child { padding-top: 0; border-top: none; margin-top: 0; }

.field-label { display: block; font-size: var(--fs-xs); font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.field-input, .field-textarea, .field-select { width: 100%; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-main); font-family: inherit; font-size: var(--fs-md); padding: 0.75rem 0.85rem; transition: border-color 0.15s ease; }
.field-input:focus, .field-textarea:focus, .field-select:focus { outline: none; border-color: var(--accent); }
.field-textarea { resize: vertical; min-height: 88px; line-height: 1.5; }

.home-hero { background: var(--bg-card); border-left: 5px solid var(--accent); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-md); }
.home-hero .hero-label { font-size: var(--fs-xs); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.home-hero .hero-title { font-size: var(--fs-2xl); font-weight: 900; color: var(--text-main); text-transform: uppercase; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-hero .hero-subtitle { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; margin-bottom: var(--space-xs); }
.home-hero-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: var(--space-xs); }

.door { display: flex; flex-direction: column; gap: 4px; padding: var(--space-md); border-radius: var(--radius-md); border: 1px solid var(--border-strong); border-left: 4px solid var(--accent); background: var(--bg-elevated); color: var(--text-main); text-align: left; cursor: pointer; font-family: inherit; transition: transform 0.1s ease, border-color 0.15s ease; min-height: 110px; }
.door:active { transform: scale(0.98); }
.door-icon   { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.door-label  { font-size: var(--fs-md); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.door-detail { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.3; }
.door-primary { border-color: var(--accent); border-left-color: var(--accent); }
.door-primary .door-label { color: var(--accent); }
.door-primary:hover { border-color: var(--accent); background: var(--accent-soft, rgba(245,158,11,0.14)); }
/* v11e H2: every hero door gets a colored left edge matching its accent */
.door-resume { border-left-color: var(--cyan); }
.door-resume .door-label { color: var(--cyan); }
.door-resume:hover { border-color: var(--cyan); }
.door[data-action="play"] { border-left-color: var(--emerald); }
.door[data-action="add-files"] { border-left-color: var(--text-muted); }
.door-empty { opacity: 0.55; }
.door-full { width: 100%; margin-top: var(--space-sm); }

.home-doors { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }
.doors-list { display: flex; flex-direction: column; gap: 6px; }

/* v11e H8: footer — Free-forever orange jazzy, URL blue underneath */
.footer-stamp { text-align: center; padding: var(--space-md) var(--space-sm) var(--space-lg); margin-top: var(--space-md); }
.footer-free-forever { font-size: var(--fs-sm); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-style: italic; text-shadow: 0 0 12px rgba(245,158,11,0.25); margin-bottom: 4px; }
.footer-url { display: inline-block; font-size: var(--fs-xs); color: var(--cyan); font-family: var(--font-mono); text-decoration: none; opacity: 0.9; }
.footer-url:hover { opacity: 1; text-decoration: underline; }


.door-row { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: var(--space-md); width: 100%; text-align: left; background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: 0.9rem 1rem; color: inherit; font-family: inherit; cursor: pointer; transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease; }
.door-row:hover, .door-row:active { background: var(--bg-elevated); transform: translateY(-1px); }
.door-row-icon { font-size: 1.5rem; line-height: 1; text-align: center; }
.door-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.door-row-title { font-size: var(--fs-md); font-weight: 900; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.03em; }
.door-row-detail { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }
.door-row-chevron { font-size: 1.4rem; color: var(--text-faint); text-align: right; line-height: 1; }

.layer-header { display: flex; flex-direction: column; gap: 4px; }
.layer-crumb { font-size: var(--fs-xs); font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.layer-hint { font-size: var(--fs-xs); color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 900; margin-top: var(--space-xs); }

.mode-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.mode-tile { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: var(--space-md); display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: var(--space-md); row-gap: 2px; text-align: left; color: inherit; font-family: inherit; cursor: pointer; transition: transform 0.1s ease, background 0.15s ease; position: relative; }
.mode-tile:hover, .mode-tile:active { background: var(--bg-elevated); transform: translateY(-1px); }
.mode-tile .tile-icon  { grid-row: 1 / 3; font-size: 1.6rem; align-self: center; }
.mode-tile .tile-title { font-size: var(--fs-md); font-weight: 900; color: var(--text-main); }
.mode-tile .tile-detail{ font-size: var(--fs-xs); color: var(--text-muted); }

.jobs-list { display: flex; flex-direction: column; gap: 6px; }
.job-row { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: var(--space-md); width: 100%; text-align: left; background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--cyan); border-radius: var(--radius-md); padding: 0.85rem 1rem; color: inherit; font-family: inherit; cursor: pointer; transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease; }
.job-row:hover, .job-row:active { background: var(--bg-elevated); transform: translateY(-1px); }
.job-row-icon { font-size: 1.4rem; line-height: 1; text-align: center; }
.job-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-row-title { font-size: var(--fs-md); font-weight: 900; color: var(--text-main); }
.job-row-detail { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }
.job-row-chevron { font-size: 1.4rem; color: var(--text-faint); text-align: right; line-height: 1; }
.jobs-actions { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }

.setup-card { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 5px solid var(--accent); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.setup-crumb { font-size: var(--fs-xs); font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.setup-title { font-size: var(--fs-2xl); font-weight: 900; color: var(--text-main); text-transform: uppercase; line-height: 1.1; }
.setup-subtitle { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.5; }
.setup-summary { display: flex; flex-direction: column; gap: var(--space-xs); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: var(--space-sm) 0; margin-top: var(--space-xs); }
.setup-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); }
.setup-summary-label { font-size: var(--fs-xs); font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.setup-summary-value { font-size: var(--fs-md); font-weight: 900; color: var(--text-main); text-align: right; }
.setup-tools-label { font-size: var(--fs-xs); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.setup-note { font-size: var(--fs-sm); color: var(--text-muted); }
.setup-start { font-size: var(--fs-lg); padding: 1.1rem 1.2rem; margin-top: var(--space-xs); letter-spacing: 0.06em; }

.overlay-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.overlay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 0.5rem 0.85rem; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border-color); color: var(--text-main); font-family: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; min-height: 40px; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.overlay-chip:hover { border-color: var(--accent); }
.overlay-chip.active { border-color: var(--accent); background: var(--accent-soft, rgba(245,158,11,0.14)); color: var(--accent); }
.overlay-chip .chip-icon { font-size: 1.05rem; line-height: 1; }

.recovery-link { display: block; width: 100%; background: transparent; border: none; color: var(--text-muted); font-family: inherit; font-size: var(--fs-xs); text-align: left; padding: var(--space-xs) 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0.02em; margin-top: 12px; }
.recovery-link:hover { color: var(--accent); }

.records-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.record-card { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: var(--space-md); display: flex; flex-direction: column; gap: 8px; }
.record-card.is-active { border-left-color: var(--cyan); }
.record-card.is-locked { opacity: 0.9; }
.record-card-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.record-card-title { font-size: var(--fs-md); font-weight: 900; color: var(--text-main); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-card-lock { font-size: 1rem; }
.record-card-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.record-card-primary { display: flex; gap: 6px; }
.record-card-primary .btn { flex: 1; font-size: var(--fs-xs); padding: 0.5rem 0.7rem; min-height: 36px; }
.record-card-secondary { display: flex; flex-wrap: wrap; gap: 6px; }
.record-card-secondary .btn { font-size: var(--fs-xs); padding: 0.45rem 0.65rem; min-height: 32px; }

.studio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.studio-stat { background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: var(--space-md); text-align: center; }
.studio-stat-num { font-size: var(--fs-2xl); font-weight: 900; color: var(--accent); font-family: var(--font-mono); }
.studio-stat-lbl { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 900; margin-top: 2px; }
.studio-actions { display: flex; flex-direction: column; gap: var(--space-sm); }

.split-pin-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; width: 100%; text-align: left; padding: 0.6rem 0.75rem; background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: inherit; font-family: inherit; cursor: pointer; margin-bottom: 4px; }
.split-pin-row:hover:not(:disabled) { border-color: var(--accent); }
.split-pin-row:disabled { opacity: 0.4; cursor: not-allowed; }
.split-pin-time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); }
.split-pin-title { font-size: var(--fs-sm); font-weight: 900; color: var(--text-main); }
.split-pin-note { font-size: var(--fs-xs); color: var(--text-muted); text-align: right; }

.recorder-trip-bar { display: flex; flex-direction: column; gap: 2px; padding: var(--space-sm) var(--space-md); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.recorder-trip-title { font-size: var(--fs-md); font-weight: 900; color: var(--text-main); }
.recorder-trip-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.04em; }

.recorder-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.legend-list { display: flex; flex-direction: column; gap: 8px; }
.legend-row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; }
.legend-pill { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); color: var(--accent); }
.legend-detail { font-size: var(--fs-sm); color: var(--text-muted); }

.nav-back-inline { display: none; background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); font-family: inherit; font-size: 1rem; font-weight: 900; width: 48px; min-height: 44px; margin: 6px 6px 6px 0; border-radius: var(--radius-md); cursor: pointer; align-items: center; justify-content: center; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
body.wizard-active .nav-back-inline { display: inline-flex; color: var(--accent); border-color: var(--accent); }
.nav-back-inline:hover, .nav-back-inline:active { border-color: var(--accent); background: var(--accent-soft, rgba(245,158,11,0.14)); color: var(--accent); }

.recorder-status-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.recorder-menu-btn { background: rgba(13, 18, 28, 0.6); border: 1px solid var(--border-strong); color: var(--accent); font-family: inherit; font-size: 1.4rem; line-height: 1; width: 44px; height: 44px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.recorder-menu-btn:hover { border-color: var(--accent); background: var(--accent-soft, rgba(245,158,11,0.14)); }
.recorder-status-text { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.recorder-status-text.is-live { color: var(--rose); }

.recorder-map-box { position: relative; width: 100%; height: 380px; min-height: 380px; background: #080c14; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s ease; }
.recorder-map-box.fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; min-height: 100vh; width: 100vw; z-index: 9998; border-radius: 0; border: none; }
.recorder-map-box #maplibreMap { width: 100%; height: 100%; background: #080c14; }

#maplibreMap .maplibregl-canvas { width: 100% !important; height: 100% !important; }

.map-plus-btn { position: absolute; top: 10px; left: 10px; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #0a0e14; border: 2px solid #fff; font-size: 1.6rem; font-weight: 900; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 510; box-shadow: 0 6px 18px rgba(0,0,0,0.55), 0 0 18px rgba(245,158,11,0.5); transition: transform 0.1s ease; }
.map-plus-btn:active { transform: scale(0.94); }

.autosave-pill { position: absolute; top: 68px; left: 10px; padding: 6px 10px; background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.7); color: #10b981; border-radius: 999px; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; z-index: 510; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.5); white-space: nowrap; }
.autosave-pill:hover { background: rgba(16, 185, 129, 0.28); }
.autosave-pill.is-off { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.7); color: #f43f5e; }
.autosave-pill.is-off:hover { background: rgba(244, 63, 94, 0.22); }
.autosave-pill.is-waiting { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.75); color: #f59e0b; }
.autosave-pill.is-waiting:hover { background: rgba(245, 158, 11, 0.28); }

.droplet-cluster { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: calc(100% - 180px); max-width: 460px; background: rgba(10,14,20,0.38); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border: 1px solid rgba(255,255,255,0.14); border-radius: 22px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; z-index: 480; pointer-events: none; box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.10); overflow: hidden; }
.droplet-cluster::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 40%); pointer-events: none; }
.droplet-row { display: flex; align-items: center; gap: 10px; }
.droplet-row-top { justify-content: space-between; }
.droplet-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.droplet-lbl { font-size: 0.48rem; font-weight: 900; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.14em; }
.droplet-val { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 900; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.droplet-row-wx { gap: 10px; font-size: 0.6rem; justify-content: flex-start; flex-wrap: wrap; }
.droplet-wx { display: inline-flex; align-items: baseline; gap: 2px; color: rgba(255,255,255,0.8); }
.droplet-wx-val { font-family: var(--font-mono); font-weight: 900; color: var(--text-main); font-size: 0.66rem; }
.droplet-wx-lbl { font-size: 0.48rem; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; }

.mini-compass { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(10,14,20,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; z-index: 500; box-shadow: 0 4px 14px rgba(0,0,0,0.5); cursor: pointer; }
.mini-compass-arrow { color: var(--rose); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.04em; transform: rotate(0deg); transition: transform 0.25s ease; text-shadow: 0 0 6px rgba(244,63,94,0.6); }

.map-recenter-btn { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 12px); right: 62px; width: 44px; height: 44px; border-radius: 50%; background: rgba(10,14,20,0.75); color: var(--text-main); border: 1px solid rgba(255,255,255,0.14); font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 500; box-shadow: 0 4px 14px rgba(0,0,0,0.5); transition: transform 0.1s ease, border-color 0.15s ease; }
.map-recenter-btn:hover, .map-recenter-btn:active { border-color: var(--accent); color: var(--accent); }
.map-recenter-btn:active { transform: scale(0.94); }

.map-fs-btn { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 12px); right: 10px; width: 44px; height: 44px; border-radius: 50%; background: rgba(10,14,20,0.75); color: var(--text-main); border: 1px solid rgba(255,255,255,0.14); font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 500; box-shadow: 0 4px 14px rgba(0,0,0,0.5); transition: transform 0.1s ease, border-color 0.15s ease; }
.map-fs-btn:active { transform: scale(0.94); }
.map-fs-btn:hover { border-color: var(--accent); color: var(--accent); }
.map-fs-btn .fs-icon-collapse { display: none; }
.map-fs-btn.is-fullscreen .fs-icon-expand { display: none; }
.map-fs-btn.is-fullscreen .fs-icon-collapse { display: inline; }

.fs-floating-actions { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 20px); left: 50%; transform: translateX(-50%); display: none; gap: 12px; z-index: 9500; pointer-events: auto; }
.fs-floating-actions.is-active { display: flex; }
.fs-float-btn { width: 60px; height: 60px; border-radius: 50%; background: rgba(13, 18, 28, 0.94); color: var(--text-main); border: 2px solid rgba(255, 255, 255, 0.22); font-size: 1.4rem; font-family: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(0,0,0,0.75), 0 0 12px rgba(0,0,0,0.5); transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.fs-float-btn:hover { border-color: var(--accent); }
.fs-float-btn:active { transform: scale(0.92); }
.fs-float-stop { background: var(--rose); color: #fff; border-color: #fff; box-shadow: 0 8px 24px rgba(244,63,94,0.7), 0 0 20px rgba(244,63,94,0.45); }
.fs-float-exit { background: rgba(13, 18, 28, 0.94); color: var(--accent); border-color: var(--accent); }
.recorder-map-box.fullscreen .map-fs-btn { display: none; }

.speed-rail { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 500; }
.speed-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 62px; height: 62px; border-radius: 50%; background: rgba(13,18,28,0.75); color: var(--text-main); border: 1px solid rgba(255,255,255,0.12); font-family: inherit; font-size: 0.55rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(10px); transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease; box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
.speed-btn:active { transform: scale(0.94); }
.speed-btn:hover { border-color: var(--accent); color: var(--accent); }
.speed-btn.recording { background: var(--rose); color: #fff; border-color: #fff; box-shadow: 0 0 18px var(--rose); }
.speed-btn .speed-icon { font-size: 1.35rem; line-height: 1; }
.speed-btn .speed-label { font-size: 0.52rem; opacity: 0.85; }
.recorder-map-box:not(.fullscreen) .speed-rail { right: 6px; gap: 5px; }
.recorder-map-box:not(.fullscreen) .speed-btn { width: 44px; height: 44px; }
.recorder-map-box:not(.fullscreen) .speed-btn .speed-icon { font-size: 1.05rem; }
.recorder-map-box:not(.fullscreen) .speed-btn .speed-label { display: none; }

.map-menu-drawer { position: absolute; top: 66px; left: 10px; width: 260px; max-height: calc(100% - 80px); overflow-y: auto; background: rgba(10,14,20,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--accent); border-radius: 14px; padding: 10px; display: none; flex-direction: column; gap: 4px; z-index: 800; box-shadow: 0 18px 50px rgba(0,0,0,0.8); }
.map-menu-drawer.active { display: flex; }
.map-menu-section { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.map-menu-section:last-child { border-bottom: none; padding-bottom: 0; }
.map-menu-title { font-size: 0.6rem; font-weight: 900; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 6px; }
.map-menu-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: transparent; color: var(--text-main); border: none; border-radius: 8px; font-family: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; text-align: left; transition: background 0.1s ease, color 0.1s ease; }
.map-menu-item:hover { background: rgba(245,158,11,0.15); color: var(--accent); }
.map-menu-item .coming-badge { margin-left: auto; font-size: 0.55rem; font-weight: 900; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }
.map-menu-item.is-coming { opacity: 0.6; }
.map-menu-item.is-coming:hover { background: transparent; color: var(--text-main); }

.recorder-log { display: flex; flex-direction: column; gap: var(--space-xs); max-height: 420px; overflow-y: auto; }
.recorder-log-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--text-main); transition: border-color 0.15s ease, background 0.15s ease; }
.recorder-log-info { display: flex; flex-direction: column; gap: 2px; }
.recorder-log-info .log-meta { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }
.recorder-log-row.is-highlighted { border-color: var(--accent); background: rgba(245,158,11,0.12); }

.recorder-log-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.log-go-btn { width: 100%; padding: 8px 12px; background: var(--accent-soft, rgba(245,158,11,0.14)); border: 1px solid var(--accent); color: var(--accent); border-radius: 6px; font-family: inherit; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.12s ease; }
.log-go-btn:hover, .log-go-btn:active { background: rgba(245,158,11,0.28); }
.log-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.log-small-btn { padding: 6px 8px; background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); border-radius: 6px; font-family: inherit; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: border-color 0.12s ease, color 0.12s ease; }
.log-small-btn:hover, .log-small-btn:active { border-color: var(--accent); color: var(--accent); }
.log-small-btn.log-danger:hover { border-color: var(--rose); color: var(--rose); }

.recorder-log-empty { padding: var(--space-md); border: 1px dashed var(--border-color); border-radius: var(--radius-md); color: var(--text-faint); font-size: var(--fs-sm); text-align: center; }
.recent-empty { padding: var(--space-md); border: 1px dashed var(--border-color); border-radius: var(--radius-md); color: var(--text-faint); font-size: var(--fs-sm); text-align: center; }

.footer-stamp { text-align: center; font-size: var(--fs-xs); color: var(--text-faint); font-family: var(--font-mono); padding: var(--space-md) 0; letter-spacing: 0.04em; }
.footer-stamp a { color: inherit; }

.maplibregl-popup-content-wrapper { background: #0d121c; color: #f1f5f9; border-radius: 10px; border: 1px solid rgba(245,158,11,0.5); }
.maplibregl-popup-tip { background: #0d121c; }
.maplibregl-popup-content { margin: 10px 12px; }
.maplibregl-ctrl-attrib { display: none; }

.scrub-link { display: block; width: 100%; background: transparent; border: none; color: var(--text-muted); font-family: inherit; font-size: var(--fs-xs); text-align: left; padding: var(--space-xs) 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0.02em; }
.scrub-link:hover { color: var(--accent); }

.scrub-diagnosis { font-weight: 900; color: var(--accent); font-size: var(--fs-md); margin-bottom: var(--space-sm); }
.scrub-section-title { font-size: var(--fs-xs); font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-top: var(--space-md); margin-bottom: var(--space-sm); }
.scrub-findings { display: flex; flex-direction: column; gap: 4px; background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: var(--space-sm); font-family: var(--font-mono); font-size: var(--fs-xs); }
.scrub-finding-row { display: flex; justify-content: space-between; gap: var(--space-sm); }
.scrub-finding-label { color: var(--text-muted); }
.scrub-finding-value { color: var(--text-main); font-weight: 900; text-align: right; }
.scrub-action-list { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-xs); }
.scrub-action { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 0.7rem 0.85rem; background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-main); font-family: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; width: 100%; }
.scrub-action:hover { border-color: var(--accent); background: var(--bg-primary); }
.scrub-action-icon { font-size: 1.3rem; line-height: 1; text-align: center; margin-top: 2px; }
.scrub-action-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scrub-action-text b { font-size: var(--fs-sm); font-weight: 900; color: var(--text-main); text-transform: none; letter-spacing: 0.02em; }
.scrub-action-text span { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.35; }
.scrub-action-text .mono { font-family: var(--font-mono); color: var(--cyan); font-size: 0.65rem; }

.status-pill, .icon-button, .map-plus-btn, .map-fs-btn, .map-recenter-btn, .speed-btn, .mini-compass, .mini-compass-arrow, .fs-float-btn, .recorder-menu-btn, .nav-back-inline, .overlay-chip, .door-row, .job-row, .mode-tile, .record-card, .btn, .log-go-btn, .log-small-btn, .autosave-pill, .legend-toggle-btn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }

.fsb-control { touch-action: none; }
.bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }

.map-legend-popup { position: absolute; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); left: 10px; z-index: 600; background: rgba(10, 14, 20, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 12px; font-size: 0.65rem; font-family: var(--font-mono); color: rgba(255,255,255,0.85); line-height: 1.5; pointer-events: auto; width: 180px; box-shadow: 0 8px 32px rgba(0,0,0,0.6); display: none; flex-direction: column; gap: 4px; }
.map-legend-popup.active { display: flex; }
.map-legend-popup .legend-line { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.map-legend-popup .legend-swatch { display: inline-block; width: 20px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.map-legend-popup .legend-swatch.known { background: #06b6d4; }
.map-legend-popup .legend-swatch.bridged { background: repeating-linear-gradient(90deg, #ffffff 0 4px, transparent 4px 8px); }
.map-legend-popup .legend-swatch.suspect { background: repeating-linear-gradient(90deg, #f59e0b 0 6px, transparent 6px 12px); }
.map-legend-popup .legend-swatch.imported { background: #a855f7; }
.map-legend-popup .legend-label { color: rgba(255,255,255,0.85); font-size: 0.58rem; letter-spacing: 0.04em; text-transform: uppercase; }

.legend-toggle-btn { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 12px); left: 10px; width: 44px; height: 44px; border-radius: 50%; background: rgba(10,14,20,0.75); color: var(--text-main); border: 1px solid rgba(255,255,255,0.14); font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 500; box-shadow: 0 4px 14px rgba(0,0,0,0.5); transition: transform 0.1s ease, border-color 0.15s ease; }
.legend-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.legend-toggle-btn:active { transform: scale(0.94); }
.legend-toggle-btn.active { background: var(--accent); color: #0a0e14; border-color: #fff; }

.compass-panel { position: fixed; inset: 0; z-index: 9990; background: linear-gradient(180deg, #0a0e14 0%, #050810 100%); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--text-main); animation: compass-fade 0.18s ease-out; }
@keyframes compass-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.compass-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.compass-title { font-size: var(--fs-md); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.compass-close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); color: var(--text-main); font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.compass-close:hover { border-color: var(--accent); color: var(--accent); }
.compass-heading-readout { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 0 12px; }
.compass-deg { font-family: var(--font-mono); font-size: 3.2rem; font-weight: 900; color: var(--accent); line-height: 1; letter-spacing: 0.02em; }
.compass-card { font-size: var(--fs-lg); font-weight: 900; letter-spacing: 0.14em; color: var(--text-main); }
.compass-rose-wrap { display: flex; align-items: center; justify-content: center; padding: 8px 0 16px; }
.compass-rose { width: min(66vw, 260px); height: min(66vw, 260px); transition: transform 0.18s linear; will-change: transform; }
.compass-ring { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1.2; }
.compass-tick { stroke: rgba(255,255,255,0.28); stroke-width: 1; }
.compass-tick-major { stroke: rgba(255,255,255,0.75); stroke-width: 1.6; }
.compass-letter { fill: var(--text-main); font-family: var(--font-stack); font-size: 14px; font-weight: 900; text-anchor: middle; letter-spacing: 0.06em; }
.compass-letter.compass-n { fill: var(--rose); }
.compass-needle { stroke: var(--rose); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(244,63,94,0.7)); }
.compass-hub { fill: var(--text-main); }
.compass-readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 12px; }
.compass-readout { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.compass-readout-label { font-size: 0.6rem; font-weight: 900; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.12em; }
.compass-readout-value { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 900; color: var(--text-main); }
.compass-readout-value.compass-mono { font-size: 0.78rem; }
.compass-toggles { display: flex; gap: 8px; padding-top: 4px; }
.compass-toggles .btn { flex: 1; }
.compass-toggles .btn.active { background: var(--accent); color: #0a0e14; border-color: var(--accent); }
.compass-foot { margin-top: auto; padding-top: 14px; text-align: center; }
.compass-foot-mono { font-family: var(--font-mono); font-size: 0.6rem; color: rgba(255,255,255,0.32); letter-spacing: 0.06em; }

.fsb-cluster { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #10b981; color: #0a0e14; font-family: var(--font-mono); font-size: 0.55rem; font-weight: 900; border: 2px solid #fff; box-shadow: 0 0 10px rgba(16,185,129,0.6), 0 0 2px rgba(0,0,0,0.6); cursor: pointer; flex-shrink: 0; }
.fsb-cluster.is-expanded { background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 2px rgba(0,0,0,0.7); }

.fsb-cluster-panel { position: absolute; z-index: 850; width: 280px; max-height: 320px; background: rgba(10, 14, 20, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--accent); border-radius: 14px; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,0.85); display: flex; flex-direction: column; overflow: hidden; pointer-events: auto; animation: compass-fade 0.15s ease-out; }
.fsb-cluster-panel .cluster-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.fsb-cluster-panel .cluster-close { background: transparent; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; padding: 2px 6px; line-height: 1; }
.fsb-cluster-panel .cluster-close:hover { color: var(--accent); }
.fsb-cluster-panel .cluster-body { overflow-y: auto; flex: 1; min-height: 0; }
.fsb-cluster-panel .cluster-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); cursor: pointer; margin-bottom: 5px; transition: border-color 0.12s ease, background 0.12s ease; }
.fsb-cluster-panel .cluster-item:hover, .fsb-cluster-panel .cluster-item:active { border-color: var(--accent); background: rgba(245,158,11,0.12); }
.fsb-cluster-panel .cluster-thumb { width: 28px; height: 28px; border-radius: 6px; background: rgba(16,185,129,0.18); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.fsb-cluster-panel .cluster-kind { font-size: 0.78rem; font-weight: 900; color: var(--text-main); }
.fsb-cluster-panel .cluster-sub { font-size: 0.62rem; font-family: var(--font-mono); color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fsb-pin.is-highlighted > div { outline: 3px solid var(--accent); outline-offset: 2px; animation: pin-pulse 1.1s ease-in-out infinite; }
@keyframes pin-pulse { 0%, 100% { outline-color: rgba(245,158,11,0.9); } 50% { outline-color: rgba(245,158,11,0.35); } }

body.mode-driving .droplet-cluster { background: rgba(10,14,20,0.7); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); }
body.mode-driving .recorder-map-box { border-radius: 0; }
body.mode-driving .speed-btn { width: 70px; height: 70px; }

.fsb-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 700; background: rgba(10,14,20,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.1); border-radius: 18px 18px 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform 0.24s ease-out; box-shadow: 0 -12px 40px rgba(0,0,0,0.6); max-height: 78vh; overflow-y: auto; }
.fsb-sheet.is-open { transform: translateY(0); }
.fsb-sheet-handle { width: 42px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.28); margin: 0 auto 10px; cursor: grab; }
.fsb-sheet-body { display: flex; flex-direction: column; gap: 4px; }
.fsb-sheet-media { margin-bottom: 8px; }
.fsb-sheet-media-loading { font-size: 0.72rem; color: var(--text-muted); padding: 12px 0; text-align: center; }
.fsb-sheet-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.fsb-sheet-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); color: var(--text-main); font-family: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; text-align: left; transition: border-color 0.12s ease, background 0.12s ease; }
.fsb-sheet-item:hover { border-color: var(--accent); background: rgba(245,158,11,0.08); }
.fsb-sheet-item .sheet-icon { font-size: 1.2rem; line-height: 1; }
.fsb-sheet-item .sheet-soon { margin-left: auto; font-size: 0.55rem; font-weight: 900; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }

.fsb-scope { position: absolute; inset: 0; z-index: 900; pointer-events: none; display: none; align-items: center; justify-content: center; }
.fsb-scope.is-open { display: flex; }
.fsb-scope-crosshair { width: 62vw; max-width: 340px; height: 62vw; max-height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.45); position: relative; }
.fsb-scope-crosshair::before, .fsb-scope-crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,0.65); }
.fsb-scope-crosshair::before { left: 50%; top: 10%; bottom: 10%; width: 1px; }
.fsb-scope-crosshair::after { top: 50%; left: 10%; right: 10%; height: 1px; }
.fsb-scope-center { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); transform: translate(-50%,-50%); box-shadow: 0 0 8px rgba(244,63,94,0.7); }
.fsb-scope-tick { position: absolute; width: 12px; height: 1px; background: rgba(255,255,255,0.6); }

.video-viewfinder { position: absolute; top: 62px; right: 60px; width: 140px; background: rgba(10,14,20,0.9); border: 1px solid var(--rose); border-radius: 12px; overflow: hidden; z-index: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.7), 0 0 12px rgba(244,63,94,0.5); }
.video-viewfinder video { width: 100%; height: auto; display: block; background: #000; }
.video-viewfinder-live { position: absolute; top: 6px; left: 8px; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 900; color: var(--rose); letter-spacing: 0.08em; text-shadow: 0 0 6px rgba(244,63,94,0.8); }

.fsb-control { cursor: grab; }
.fsb-control.fsb-control-moving { cursor: grabbing; transform: scale(1.12); box-shadow: 0 12px 32px rgba(0,0,0,0.8), 0 0 24px rgba(245,158,11,0.6) !important; transition: transform 0.12s ease-out, box-shadow 0.12s ease-out; }
.fsb-control[data-fsb-control]::after { content: ''; position: absolute; bottom: 3px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.35); pointer-events: none; }

.cone-cal-panel { position: fixed; inset: 0; z-index: 9991; background: linear-gradient(180deg, #0a0e14 0%, #050810 100%); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--text-main); animation: compass-fade 0.18s ease-out; overflow-y: auto; }
.cc-body { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.cc-intro { font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); margin: 0; }
.cc-preview-wrap { display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.cc-preview { width: min(70vw, 260px); height: min(70vw, 260px); }
.cc-slider-row { display: flex; align-items: center; gap: 10px; }
.cc-slider-lbl { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); min-width: 42px; text-align: center; }
.cc-slider { flex: 1; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); outline: none; }
.cc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: pointer; box-shadow: 0 0 12px rgba(245,158,11,0.7); }
.cc-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: pointer; box-shadow: 0 0 12px rgba(245,158,11,0.7); }
.cc-slider-readout { text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.cc-slider-readout .mono { font-family: var(--font-mono); font-weight: 900; color: var(--accent); }
.cc-actions { display: flex; gap: 8px; margin-top: 8px; }

.pin-options-panel { position: fixed; inset: 0; z-index: 9991; background: linear-gradient(180deg, #0a0e14 0%, #050810 100%); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--text-main); animation: compass-fade 0.18s ease-out; overflow-y: auto; }
.po-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.po-row { display: flex; flex-direction: column; gap: 4px; }
.po-label { font-size: var(--fs-xs); font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.po-row-actions { flex-direction: row; gap: 8px; margin-top: 8px; }

.fsb-radial-menu { position: absolute; z-index: 9995; display: flex; flex-direction: column; gap: 4px; background: rgba(10, 14, 20, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--accent); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); transform: translate(-50%, -50%); pointer-events: auto; }
.fsb-radial-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: transparent; border: none; border-radius: 8px; color: var(--text-main); font-family: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; text-align: left; transition: background 0.12s ease, color 0.12s ease; white-space: nowrap; }
.fsb-radial-item:hover { background: rgba(245,158,11,0.15); color: var(--accent); }
.fsb-radial-icon { font-size: 1.1rem; line-height: 1; }
.fsb-radial-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }