/* InsureSight app shell — home + claims screens.
   Shares palette/typography with the voice-agent mobile UI (mobile.css). */

:root {
    --s-bg: #f3f4f7;
    --s-surface: #ffffff;
    --s-surface-2: #f7f8fa;
    --s-border: #e3e5eb;
    --s-text: #0f172a;
    --s-text-muted: #5b6478;
    --s-accent: #0b2856;
    --s-accent-soft: #e6ebf5;
    --s-success: #15803d;
    --s-success-soft: #dcfce7;
    --s-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --s-shadow-lg: 0 20px 60px rgba(8, 16, 40, 0.12);
    --s-shadow-md: 0 4px 14px rgba(8, 16, 40, 0.08);
    --s-shadow-sm: 0 1px 2px rgba(8, 16, 40, 0.04);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--s-bg);
    color: var(--s-text);
    font-family: var(--s-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

#app {
    background: var(--s-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Phone frame on desktop */
@media (min-width: 768px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
        background:
            radial-gradient(1200px 600px at 50% -10%, rgba(11, 40, 86, 0.07), transparent 60%),
            var(--s-bg);
    }
    #app {
        width: 380px;
        height: min(800px, calc(100vh - 64px));
        border-radius: 44px;
        box-shadow: var(--s-shadow-lg), 0 0 0 8px #0f172a, 0 0 0 10px #1f2937;
        overflow: hidden;
    }
    #app::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 26px;
        background: #0f172a;
        border-radius: 18px;
        z-index: 100;
        pointer-events: none;
    }
}

/* Header — centered logo, back/bell absolute-positioned at edges. */
.shell-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 18px 14px;
    min-height: 56px;
    background: var(--s-surface);
    border-bottom: 1px solid var(--s-border);
}
.shell-logo { height: 48px; width: auto; display: block; }
.shell-logo-small { height: 48px; width: auto; display: block; }
.shell-header-spacer { display: none; }
.shell-icon-btn {
    position: absolute;
    right: 14px;
    bottom: 12px;
    background: transparent;
    border: none;
    color: var(--s-text-muted);
    cursor: pointer;
    padding: 6px;
}
.badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--s-surface);
}
.shell-back {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--s-text);
    background: var(--s-surface-2);
}

/* Main */
.shell-main {
    flex: 1;
    overflow-y: auto;
    padding: 18px 18px 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.shell-main-tight { gap: 12px; }

/* Platform attribution — sits at the bottom of the scroll content, above the
   fixed bottom-nav. Carrier brand fronts the app; InsureSight credited below. */
.app-poweredby {
    text-align: center;
    font-size: 11px;
    letter-spacing: .2px;
    color: var(--s-muted);
    padding: 8px 0 2px;
    margin-top: 4px;
}
.app-poweredby b { color: var(--s-ink, #1a2233); font-weight: 700; }

.shell-greet {
    padding: 4px 2px 6px;
}
.shell-greet-sub {
    color: var(--s-text-muted);
    font-size: 15px;
    margin: 0 0 4px;
}
.shell-greet-title {
    color: var(--s-text);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Policy card */
.policy-card {
    background: linear-gradient(135deg, var(--s-accent) 0%, #123868 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: var(--s-shadow-md);
}
.policy-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.policy-card-label {
    font-size: 12px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.policy-card-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    background: rgba(220, 252, 231, 0.9);
    color: #065f46;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.policy-card-chip-warn {
    background: rgba(254, 226, 226, 0.9);
    color: #b42318;
}
.policy-card-number {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 12px 0 18px;
    font-variant-numeric: tabular-nums;
}
.policy-card-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 12px;
    align-items: flex-end;
}
.policy-card-meta-label {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.policy-card-meta-value {
    font-size: 14px;
    font-weight: 500;
}
.policy-card-link {
    font-size: 13px;
    color: #fff;
    opacity: 0.9;
    font-weight: 500;
}

/* Primary "File a claim" tile (home) */
.primary-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--s-accent);
    color: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--s-shadow-md);
    transition: transform 0.1s ease;
}
.primary-tile:active { transform: scale(0.98); }
.primary-tile-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.primary-tile-body { flex: 1; min-width: 0; }
.primary-tile-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.primary-tile-sub { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.primary-tile-chev { font-size: 26px; opacity: 0.7; line-height: 1; }

/* 2x2 quick-action grid */
.shell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.shell-tile {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 14px;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--s-text);
    box-shadow: var(--s-shadow-sm);
}
.shell-tile:hover { background: var(--s-surface-2); }
.shell-tile svg { color: var(--s-accent); flex-shrink: 0; }

/* Recent activity section */
.shell-section { margin-top: 6px; }
.shell-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--s-text-muted);
    font-weight: 600;
    margin: 4px 2px 10px;
}
.shell-activity-empty {
    background: var(--s-surface);
    border: 1px dashed var(--s-border);
    border-radius: 14px;
    padding: 22px 18px;
    color: var(--s-text-muted);
    font-size: 13px;
    text-align: center;
}

/* Claims-screen channel tiles */
.channel-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 16px;
    box-shadow: var(--s-shadow-sm);
    transition: transform 0.1s ease, border-color 0.15s ease;
    position: relative;
}
.channel-tile:active { transform: scale(0.98); }
.channel-primary {
    background: var(--s-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--s-shadow-md);
}
.channel-primary:hover { border-color: transparent; }
.channel-tile-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--s-accent-soft);
    color: var(--s-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.channel-primary .channel-tile-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.channel-tile-body { flex: 1; min-width: 0; }
.channel-tile-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.channel-tile-sub {
    font-size: 13px;
    color: var(--s-text-muted);
    margin-top: 2px;
}
.channel-primary .channel-tile-sub { color: rgba(255, 255, 255, 0.8); }
.channel-tile-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.channel-tile-chev { font-size: 24px; opacity: 0.6; line-height: 1; }
.channel-primary .channel-tile-chev { opacity: 0.9; }

.shell-footnote {
    color: var(--s-text-muted);
    font-size: 12px;
    line-height: 1.45;
    padding: 10px 6px;
    margin: 6px 0 0;
    text-align: center;
}

/* Bottom nav */
.bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--s-border);
    display: flex;
    padding: 8px 4px 18px;
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    color: var(--s-text-muted);
    font-size: 10.5px;
    font-weight: 500;
}
.bottom-nav-item.active {
    color: var(--s-accent);
}
.bottom-nav-item svg { display: block; }

@media (min-width: 768px) {
    /* Inside phone frame, sticky nav anchors to the frame bottom */
    .bottom-nav { padding-bottom: 10px; }
}

/* ------------ Additions for the shiny-button demo pass ------------ */

/* Info card used everywhere */
.info-card {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 14px;
    padding: 8px 0;
    box-shadow: var(--s-shadow-sm);
    overflow: hidden;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f1f4;
    font-size: 14px;
    gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-row > span { color: var(--s-text-muted); flex-shrink: 0; }
.info-row > b { text-align: right; font-weight: 600; }

/* Vehicles */
.vehicle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f1f4;
}
.vehicle-row:last-child { border-bottom: none; }
.vehicle-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--s-accent-soft);
    color: var(--s-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vehicle-body { flex: 1; min-width: 0; }
.vehicle-title { font-weight: 600; font-size: 14px; }
.vehicle-sub { color: var(--s-text-muted); font-size: 12.5px; margin-top: 2px; }

/* Coverage rows */
.coverage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f1f4;
}
.coverage-row:last-child { border-bottom: none; }
.coverage-title { font-weight: 600; font-size: 14px; }
.coverage-sub { color: var(--s-text-muted); font-size: 12.5px; margin-top: 2px; }
.coverage-amt { font-weight: 600; font-size: 14px; text-align: right; color: var(--s-accent); }

/* Documents */
.doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--s-text);
    border-bottom: 1px solid #f0f1f4;
    font-size: 14px;
    font-weight: 500;
}
.doc-row:last-child { border-bottom: none; }
.doc-row svg { color: var(--s-accent); }
.doc-row span:nth-child(2) { flex: 1; }
.doc-ext { font-size: 11px; color: var(--s-text-muted); background: var(--s-surface-2); padding: 2px 8px; border-radius: 999px; }

/* ID card */
.id-card {
    background: linear-gradient(150deg, var(--s-accent) 0%, #123868 100%);
    color: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(11, 40, 86, 0.28);
}
.id-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.id-card-logo { height: 22px; filter: brightness(0) invert(1); }
.id-card-state {
    font-size: 10.5px;
    opacity: 0.75;
    letter-spacing: 0.12em;
    font-weight: 600;
}
.id-card-body { display: flex; flex-direction: column; gap: 7px; }
.id-card-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.id-card-row > span { opacity: 0.72; }
.id-card-row > b { font-weight: 600; text-align: right; }
.id-card-barcode {
    height: 48px;
    margin: 16px 0 8px;
    background: repeating-linear-gradient(90deg,
        #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 7px,
        #fff 7px 10px, transparent 10px 11px, #fff 11px 14px, transparent 14px 15px);
    border-radius: 6px;
    opacity: 0.92;
}
.id-card-foot { font-size: 11px; opacity: 0.72; text-align: center; }
.id-card-actions { display: flex; gap: 8px; }

.pill-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--s-accent);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--s-shadow-md);
}
.pill-btn-large { width: 100%; padding: 14px 20px; font-size: 15px; }
.pill-btn-mini { flex: none; padding: 7px 14px; font-size: 12.5px; }

/* Claim hero */
.claim-hero {
    background: linear-gradient(135deg, var(--s-accent) 0%, #123868 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--s-shadow-md);
}
.claim-hero-top { display: flex; justify-content: space-between; align-items: center; }
.claim-hero-label { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.claim-hero-number { font-size: 20px; font-weight: 600; margin: 8px 0 4px; letter-spacing: 0.02em; }
.claim-hero-meta { font-size: 13px; opacity: 0.85; }

/* Status timeline */
.timeline { list-style: none; margin: 0; padding: 16px; }
.timeline-step {
    display: flex;
    gap: 14px;
    padding: 8px 0;
    position: relative;
}
.timeline-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 26px;
    bottom: -8px;
    width: 2px;
    background: var(--s-border);
}
.timeline-step.done:not(:last-child)::before { background: var(--s-accent); }
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--s-surface);
    border: 2px solid var(--s-border);
    margin-top: 3px;
    flex-shrink: 0;
    z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--s-accent); border-color: var(--s-accent); }
.timeline-step.active .timeline-dot {
    background: var(--s-success-soft);
    border-color: var(--s-success);
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.15);
}
.timeline-title { font-size: 14px; font-weight: 600; }
.timeline-step:not(.done):not(.active) .timeline-title { color: var(--s-text-muted); font-weight: 500; }
.timeline-sub { font-size: 12.5px; color: var(--s-text-muted); margin-top: 2px; }

/* Adjuster card */
.adjuster-card { display: flex; align-items: center; padding: 14px 16px; gap: 12px; }
.adjuster-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--s-accent-soft);
    color: var(--s-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.adjuster-body { flex: 1; }

/* Accident steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step {
    display: flex;
    gap: 12px;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: var(--s-shadow-sm);
}
.step-num {
    width: 26px; height: 26px;
    flex-shrink: 0;
    background: var(--s-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Map mock */
.map-mock {
    position: relative;
    height: 120px;
    background:
        linear-gradient(135deg, #e6ebf5 0%, #f3f4f7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--s-border);
    border-radius: 14px;
}
.map-mock-tall { height: 220px; position: relative; }
.map-pin { font-size: 28px; }
.map-label { font-weight: 600; font-size: 14px; margin-top: 4px; }
.map-sub { color: var(--s-text-muted); font-size: 12px; margin-top: 3px; }
.map-markers { position: absolute; inset: 0; }
.map-marker {
    position: absolute;
    color: #ef4444;
    font-size: 20px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

/* Service tiles grid */
.shell-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
.service-tile {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: var(--s-shadow-sm);
    color: var(--s-text);
}
.service-icon { font-size: 26px; line-height: 1; }
.service-sub { color: var(--s-text-muted); font-weight: 400; font-size: 11.5px; margin-top: 2px; }

/* Photo estimate */
.photo-hero {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--s-shadow-sm);
}
.photo-hero-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--s-accent-soft);
    color: var(--s-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.photo-hero-title { font-size: 16px; font-weight: 600; }
.photo-hero-sub { font-size: 13px; color: var(--s-text-muted); margin-top: 2px; }

.angle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.angle-slot {
    background: var(--s-surface-2);
    border: 1.5px dashed var(--s-border);
    border-radius: 12px;
    padding: 22px 8px;
    text-align: center;
    color: var(--s-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.estimate-stub { text-align: center; padding: 18px 16px; }
.estimate-stub-label { color: var(--s-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.estimate-stub-range { font-size: 28px; font-weight: 700; color: var(--s-accent); margin: 6px 0; }
.estimate-stub-sub { color: var(--s-text-muted); font-size: 12.5px; }

/* Coverage highlight */
.coverage-highlight { text-align: center; padding: 18px 16px; }
.coverage-highlight-label { color: var(--s-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.coverage-highlight-value { font-size: 22px; font-weight: 700; color: var(--s-success); margin: 6px 0; }
.coverage-highlight-sub { color: var(--s-text-muted); font-size: 12.5px; }

/* Shop list */
.shop-list { padding: 0; }
.shop-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f4;
}
.shop-row:last-child { border-bottom: none; }
.shop-rating {
    width: 48px;
    flex-shrink: 0;
    background: var(--s-success-soft);
    color: var(--s-success);
    padding: 6px 0;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}
.shop-body { flex: 1; min-width: 0; }

/* Activity rows */
.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--s-border);
    color: var(--s-text);
}
.activity-row:last-child { border-bottom: none; }
.activity-dot {
    width: 10px; height: 10px;
    flex-shrink: 0;
    background: var(--s-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(11, 40, 86, 0.15);
}
.activity-dot.dot-muted { background: var(--s-text-muted); box-shadow: none; }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-weight: 600; font-size: 14px; }
.activity-sub { color: var(--s-text-muted); font-size: 12.5px; margin-top: 2px; }
.activity-chev { font-size: 20px; opacity: 0.5; }

/* SOS floating button */
.sos-btn {
    position: fixed;
    right: 16px;
    bottom: 80px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    border: none;
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45), 0 0 0 0 rgba(220, 38, 38, 0.45);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    z-index: 50;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: sos-pulse 2.2s infinite;
}
@keyframes sos-pulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45), 0 0 0 0 rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45), 0 0 0 16px rgba(220, 38, 38, 0); }
}
.sos-pulse { display: none; }

@media (min-width: 768px) {
    /* Keep SOS inside the phone frame */
    .sos-btn { right: calc(50% - 180px + 16px); }
}

/* Bottom sheet */
.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}
.bottom-sheet.open { pointer-events: auto; }
.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.bottom-sheet.open .bottom-sheet-backdrop { opacity: 1; }
.bottom-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--s-surface);
    border-radius: 20px 20px 0 0;
    padding: 10px 16px 20px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.15);
    max-height: 80vh;
    overflow-y: auto;
}
@media (min-width: 768px) {
    /* Phone-frame bound sheet */
    .bottom-sheet { right: auto; left: 50%; transform: translateX(-50%); width: 380px; }
    .bottom-sheet-backdrop { border-radius: 44px; overflow: hidden; }
    .bottom-sheet-panel { border-radius: 20px 20px 44px 44px; }
}
.bottom-sheet.open .bottom-sheet-panel { transform: translateY(0); }
.bottom-sheet-handle {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--s-border);
    margin: 2px auto 10px;
}
.bottom-sheet-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 4px 14px;
}
.sos-option {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--s-surface-2);
    margin-bottom: 8px;
    color: var(--s-text);
}
.sos-option-title { font-weight: 600; font-size: 15px; }
.sos-option-sub { color: var(--s-text-muted); font-size: 12.5px; margin-top: 2px; }
.sos-option-danger {
    background: #fee2e2;
    color: #991b1b;
}
.sos-option-danger .sos-option-sub { color: #b91c1c; }
.sos-option-primary {
    background: var(--s-accent);
    color: #fff;
}
.sos-option-primary .sos-option-sub { color: rgba(255, 255, 255, 0.85); }
.bottom-sheet-cancel {
    width: 100%;
    padding: 13px;
    background: transparent;
    border: 1px solid var(--s-border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--s-text);
    cursor: pointer;
    margin-top: 4px;
}

/* Notifications */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--s-border);
}
.notif-item:last-of-type { border-bottom: none; }
.notif-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--s-accent);
    margin-top: 6px;
    flex-shrink: 0;
}
.notif-dot.dot-muted { background: var(--s-text-muted); }
.notif-title { font-weight: 600; font-size: 14px; }
.notif-sub { color: var(--s-text-muted); font-size: 12.5px; margin-top: 2px; }

/* Shell tile (small tall variant) */
.shell-tile.tall {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 12px;
    font-size: 13px;
    height: 84px;
}
.shell-tile.tall svg { margin-bottom: 2px; }

