html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a1a;
    color: #1a1a1a;
}

#map {
    position: absolute;
    inset: 0;
}

/* Floating search bar — pill-shaped, near the top */
#search-bar {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px) + 12px, 12px);
    left: 24px;
    right: 24px;
    height: 48px;
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    padding: 0 16px 0 0;
    z-index: 10;
    cursor: text;
    overflow: hidden;
}

#search-bar .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #1976d2; /* primary blue */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#search-bar .icon-left {
    color: #5f6368; /* on-surface-variant grey */
}

#search-bar .icon-share {
    color: #5f6368;
    margin-right: 12px;
    opacity: 1;
    transition: opacity 400ms ease;
}



#search-bar.searching .icon-share,
#search-bar.no-selection .icon-share {
    opacity: 0;
    pointer-events: none;
    margin-right: -24px; /* collapse the slot when hidden */
}

#search-bar .icon-menu {
    color: #5f6368;
    opacity: 1;
    transition: opacity 400ms ease;
}

#search-bar .icon-clear {
    color: #5f6368;
    margin-left: -24px; /* overlap menu slot so it stays in the same place */
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
}

#search-bar.searching .icon-menu {
    opacity: 0;
    pointer-events: none;
}

#search-bar.searching .icon-clear {
    opacity: 1;
    pointer-events: auto;
}

#search-bar .icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    position: absolute;
    inset: 0;
}

/* Left brand slot: logo fills the full bar height so its circular boundary
 * aligns with the pill's left curve. The magnifier shown while searching
 * sits centred at standard icon size. */
#search-bar .icon-left {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-right: 4px;
}

#search-bar .icon-left .brand-logo {
    position: absolute;
    inset: 0;
    width: 48px;
    height: 48px;
    transition: opacity 300ms ease;
}

#search-bar .icon-left .brand-search {
    position: absolute;
    inset: 12px;
    width: 24px;
    height: 24px;
    opacity: 0;
    fill: currentColor;
    transition: opacity 300ms ease;
}
#search-bar.searching .icon-left .brand-logo { opacity: 0; }
#search-bar.searching .icon-left .brand-search { opacity: 1; }
#search-bar.searching .icon-left { color: #5f6368; }

/* Right-side magnifier shortcut, hidden while editing. */
#search-bar .icon-search-trigger {
    color: #5f6368;
    margin-right: 8px;
    opacity: 1;
    transition: opacity 200ms ease;
}

#search-bar.searching .icon-search-trigger,
#search-bar:not(.no-selection) .icon-search-trigger {
    opacity: 0;
    pointer-events: none;
    margin-right: -24px;
}

#search-bar .icon-share svg {
    width: 20px;
    height: 20px;
    inset: 2px;
    fill: none;
}

.search-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    min-width: 0;
    position: relative;
}

/* Compact block code shown at the right edge of the search bar when a
 * block is selected (e.g. [1008ka1m]). Subtle: smaller, lighter weight,
 * muted colour. Hidden while the user is actively typing in the input. */
.search-code {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #1976d2;
    padding: 2px 10px;
    border-radius: 9999px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    border: none;
    font-family: inherit;
}
.search-code:active { background: #1565c0; }
.search-code:empty { display: none; }

/* Badges group at the right edge of the search bar — the sub-block
 * level toggle and the block-code pill, side by side. Hidden while the
 * user is typing or when nothing is selected. */
.search-badges {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
}
#search-bar.searching .search-badges,
#search-bar.no-selection .search-badges { display: none; }

/* Sub-block level toggle — a sharp-cornered rectangle whose colour
 * matches the level's map polygon (L0 cyan, L1 orange, L2 red,
 * L3 magenta). Tap to cycle L0 → L1 → L2. */
.level-badge {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    padding: 1px 8px;
    border-radius: 0;
    border: none;
    font-family: inherit;
    letter-spacing: 0.03em;
}
.level-badge.level-0 { background: #00ffff; color: #0a3a3a; }
.level-badge.level-1 { background: #faa142; color: #4a2a00; }
.level-badge.level-2 { background: #ff3030; color: #ffffff; }
.level-badge.level-3 { background: #ff00ff; color: #ffffff; }

/* Sector-number label on each radial of the toggleable grid overlay.
 * Colour matches the grid's radial lines (#ffd24a). */
.grid-label {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    background: #ffd24a;
    padding: 2px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* Grid overlay legend — top-right under the geolocate button, shown only when grid is visible. */
#grid-legend {
    position: absolute;
    /* geolocate top offset + button height (44px) + gap (8px) */
    top: calc(max(env(safe-area-inset-top, 0px) + 12px, 12px) + 56px + 44px + 8px);
    right: 24px;
    z-index: 8;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#grid-legend[hidden] { display: none; }
.grid-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.grid-legend-swatch {
    display: inline-block;
    width: 32px;
    height: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Bottom-left badge showing the selected block's code and size on one
 * line. Tap to copy the code. Background colour mirrors the active
 * sub-block level (cyan / orange / red / magenta) — same scale as
 * .level-badge. Hidden until a block is selected. */
.block-badge {
    position: absolute;
    bottom: calc(max(env(safe-area-inset-bottom, 0px) + 16px, 16px));
    left: calc(max(env(safe-area-inset-left, 0px) + 16px, 16px));
    z-index: 9;
    display: none;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    line-height: 1.25;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.block-badge.visible { display: inline-flex; }
.block-badge:active { transform: translateY(1px); }
.block-badge-code {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.block-badge-size {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
}
.block-badge-size::before {
    content: '·';
    margin: 0 8px;
    opacity: 0.6;
    font-weight: 700;
}
.block-badge.level-0 { background: #00ffff; color: #0a3a3a; }
.block-badge.level-1 { background: #faa142; color: #4a2a00; }
.block-badge.level-2 { background: #ff3030; color: #ffffff; }
.block-badge.level-3 { background: #ff00ff; color: #ffffff; }

#search-input {
    width: 100%;
    height: 24px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    transition: padding-right 150ms ease;
}
/* Reserve room at the input's right edge for the level badge (toggled
 * by JS via .has-level-badge) and, when enabled, the code pill. */
#search-bar.idle #search-input.has-level-badge { padding-right: 58px; }
#search-bar.idle #search-input.has-code { padding-right: 120px; }

/* Suppress native clear buttons on type="search" — we have our own. */
#search-input::-webkit-search-cancel-button,
#search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

#search-bar.idle.no-selection #search-input { text-align: center; }

#search-results {
    position: absolute;
    top: calc(max(env(safe-area-inset-top, 0px) + 12px, 12px) + 56px);
    left: 24px;
    right: 24px;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 9;
}

#menu-dropdown {
    position: absolute;
    top: calc(max(env(safe-area-inset-top, 0px) + 12px, 12px) + 56px);
    right: 24px;
    min-width: 160px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    padding: 6px 0;
    z-index: 12;
}

.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 12px 18px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    font-family: inherit;
}

.menu-item:hover { background: #f5f5f5; }

.result-row {
    padding: 14px 20px;
    font-size: 16px;
    color: #1a1a1a;
    cursor: pointer;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.result-row:last-child { border-bottom: none; }
.result-row:hover, .result-row.selected { background: #f5f5f5; }

#geolocate-btn {
    position: absolute;
    /* search bar top + bar height + gap */
    top: calc(max(env(safe-area-inset-top, 0px) + 12px, 12px) + 56px);
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    /* Sit behind #search-results (z-index 9) so an open results list
     * occludes the button rather than vice versa. */
    z-index: 8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 200ms ease, border-color 200ms ease;
}

#geolocate-btn:hover { background: rgba(255, 255, 255, 0.15); }
#geolocate-btn.locating,
#geolocate-btn.tracking {
    background: #1976d2;
    border-color: #1976d2;
    color: #ffffff;
}
#geolocate-btn.tracking:hover { background: #1565c0; }

#geolocate-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#dialog {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dialog[hidden] { display: none; }

.dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.dialog-card {
    position: relative;
    max-width: 320px;
    margin: 0 24px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 20px 12px 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.dialog-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.dialog-body {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #5f6368;
    line-height: 1.4;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dialog-btn {
    border: none;
    background: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1976d2;
    cursor: pointer;
    border-radius: 8px;
}

.dialog-btn:hover { background: rgba(25, 118, 210, 0.08); }
.dialog-cancel { color: #5f6368; }

/* Help / About / Settings overlay.
 *
 * Mobile (default): full-width panel, no scrim.
 * Desktop (>= 768px): right-anchored 480 px drawer with a scrim covering
 *   the rest of the map.
 *
 * The whole overlay is always in the DOM; .open toggles visibility so the
 * slide / fade transitions can run. */
#screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    color: #1a1a1a;
}

#screen-overlay.open { pointer-events: auto; }

.screen-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 200ms ease;
}

.screen-panel {
    position: absolute;
    inset: 0;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.2, 0, 0, 1);
    will-change: transform;
}

#screen-overlay.open .screen-panel { transform: translateX(0); }

@media (min-width: 768px) {
    .screen-panel {
        left: auto;
        width: min(480px, 92vw);
        box-shadow: -4px 0 32px rgba(0, 0, 0, 0.18);
    }
    #screen-overlay.open .screen-scrim { background: rgba(0, 0, 0, 0.32); }
}

/* Layers panel: no dimming scrim over the map, so the highlighted asset stays
   visible behind the side panel. Other screens (Help/About) keep the dim. */
#screen-overlay.open.no-scrim .screen-scrim { background: rgba(0, 0, 0, 0); }

.screen-header {
    display: flex;
    align-items: center;
    padding: max(env(safe-area-inset-top, 0px), 0px) 8px 0 8px;
    height: calc(56px + max(env(safe-area-inset-top, 0px), 0px));
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex: 0 0 auto;
}

.screen-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
}

.screen-close:hover { background: rgba(0, 0, 0, 0.06); }

.screen-close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.screen-title {
    margin: 0 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.screen-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 28px 40px 28px;
    line-height: 1.6;
    font-size: 15px;
    color: #2a2a2a;
}

.screen-content > * { max-width: 60ch; }

.screen-content .lead {
    font-size: 16px;
    color: #1a1a1a;
}

.screen-content h3 {
    display: block;
    margin: 28px 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 6px;
    line-height: 1.3;
}

.screen-content h3:first-child { margin-top: 4px; }

/* Status heading rendered as a red pill — matches the top-bar status
 * badge so the link is visually obvious. Always red regardless of the
 * heading-style picker below. */
.screen-content h3.status-heading {
    display: inline-block;
    background: #d32f2f;
    color: #ffffff;
    padding: 6px 16px;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.screen-content h4 {
    margin: 20px 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1976d2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.screen-content p { margin: 0 0 14px 0; }
.screen-content ul { padding-left: 22px; margin: 10px 0 16px 0; }
.screen-content li { margin-bottom: 8px; }
.screen-content em { font-style: normal; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; background: rgba(25, 118, 210, 0.08); padding: 1px 6px; border-radius: 4px; color: #1456a0; }
.screen-content a { color: #1976d2; text-decoration: none; }
.screen-content a:hover { text-decoration: underline; }

/* Inline illustration in the Help / What's New screens — fills the
 * 60ch content column on desktop, edges-out on phones. */
.screen-content .help-figure {
    margin: 14px 0 18px 0;
    max-width: 100%;
}
.screen-content .help-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.screen-content .help-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

/* Inline red pill used to flag changelog entries that need user
 * attention (e.g. an address-shifting tweak). Same colour family as
 * .status-heading so the visual language stays consistent. */
.screen-content .warning-badge {
    display: inline-block;
    background: #d32f2f;
    color: #ffffff;
    padding: 1px 9px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 8px;
    vertical-align: 1px;
}

.about-logo {
    display: flex;
    justify-content: center;
    margin: 8px 0 8px 0;
}

.about-version {
    text-align: center;
    margin: 0 0 24px 0 !important;
    color: #6b7280;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    max-width: none !important;
}

#toast {
    position: fixed;
    left: 50%;
    bottom: max(env(safe-area-inset-bottom, 0px) + 24px, 24px);
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.92);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 20;
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
}

/* Phase-status badge anchored under the search bar — same pill styling
 * as the code badge but red, centred, and wider. Hidden while the user
 * is searching so it doesn't fight the results dropdown. */
#status-badge {
    position: absolute;
    top: calc(max(env(safe-area-inset-top, 0px) + 12px, 12px) + 56px + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #d32f2f;
    color: #ffffff;
    border: none;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 9;
    letter-spacing: 0.02em;
}
#status-badge:active { background: #b71c1c; }
#search-bar.searching ~ #status-badge { display: none; }

/* Tap-the-pill explainer popup, anchored under the search bar. */
#code-info {
    position: absolute;
    top: calc(max(env(safe-area-inset-top, 0px) + 12px, 12px) + 56px + 8px);
    left: 24px;
    right: 24px;
    background: rgba(26, 26, 26, 0.92);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 11;
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
    max-width: 560px;
}
#code-info.visible { opacity: 1; }
#code-info .hl { font-weight: 600; color: #80b9f3; font-variant-numeric: tabular-nums; }
#code-info .info-link {
    pointer-events: auto;
    background: none;
    border: none;
    color: #80b9f3;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
#code-info .info-link:hover { color: #a8cdf6; }

#toast.visible {
    opacity: 1;
}

#update-banner {
    position: fixed;
    left: 50%;
    bottom: max(env(safe-area-inset-bottom, 0px) + 24px, 24px);
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.92);
    color: #ffffff;
    padding: 8px 8px 8px 18px;
    border-radius: 9999px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
}

#update-banner.visible {
    opacity: 1;
    pointer-events: auto;
}

#update-reload {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

#update-reload:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ----- Asset layers panel (rendered inside .screen-content) ----- */
.layers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.layers-hint {
    font-size: 14px;
    color: #666;
}
.layers-add {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #1976d2;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.layers-add svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    display: block;
}
.layers-add:hover { background: #1565c0; }
.layers-empty {
    color: #666;
    font-size: 14px;
}
.layer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}
.layer-vis {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1976d2;
}
.layer-name {
    flex: 1;
    font-size: 16px;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.layer-count {
    flex-shrink: 0;
    font-size: 13px;
    color: #888;
}
.layer-remove {
    flex-shrink: 0;
    border: none;
    background: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
}
.layer-remove:hover { background: rgba(0, 0, 0, 0.06); color: #d32f2f; }
.layer-builtin {
    flex-shrink: 0;
    font-size: 11px;
    color: #888;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Clickable layer name/count region (drills into the layer's label list). */
.layer-open {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    border: none;
    background: none;
    padding: 4px 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.layer-open:hover .layer-name { color: #1976d2; }

/* Drill-down: back button, search, label list, details. */
.panel-back {
    border: none;
    background: none;
    color: #1976d2;
    font-size: 15px;
    font-family: inherit;
    padding: 0 0 12px 0;
    cursor: pointer;
}
.panel-back:hover { text-decoration: underline; }
.asset-search {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 12px;
}
.asset-search:focus { outline: none; border-color: #1976d2; }
.asset-list { display: flex; flex-direction: column; }
.asset-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    border: none;
    background: none;
    border-top: 1px solid #eee;
    padding: 12px 4px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.asset-list-item:hover { background: #f5f5f5; }
.asset-list-label { font-size: 16px; color: #1a1a1a; }
.asset-list-tags { font-size: 12px; color: #888; }

.detail-notes { white-space: pre-wrap; font-size: 15px; color: #1a1a1a; margin: 0 0 14px 0; }
.detail-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #eee;
    font-size: 15px;
}
.detail-key { flex-shrink: 0; color: #888; min-width: 90px; }
.detail-val { color: #1a1a1a; word-break: break-word; }
.detail-zoom {
    border: none;
    background: rgba(25, 118, 210, 0.08);
    color: #1456a0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.92em;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.detail-zoom:hover { background: rgba(25, 118, 210, 0.16); }
.detail-link { display: inline-block; margin: 12px 0; color: #1976d2; }
.asset-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.asset-tag {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.06);
    color: #444;
    padding: 3px 10px;
    border-radius: 12px;
}
