@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fraunces Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens. Brand colours come from the MudTheme in MainLayout.razor through --mud-palette-*; only shades MudBlazor does not generate are set here. */
:root {
    --ls-font-body: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ls-font-display: "Fraunces Variable", Georgia, Cambria, "Times New Roman", serif;
    --ls-primary: var(--mud-palette-primary);
    --ls-primary-rgb: var(--mud-palette-primary-rgb);
    --ls-primary-strong: var(--mud-palette-primary-darken);
    --ls-primary-soft: rgba(var(--mud-palette-primary-rgb), .08);
    --ls-primary-border: rgba(var(--mud-palette-primary-rgb), .3);
    --ls-accent: var(--mud-palette-secondary);
    --ls-accent-rgb: var(--mud-palette-secondary-rgb);
    --ls-accent-strong: #8A5D22;
    --ls-accent-soft: rgba(var(--mud-palette-secondary-rgb), .12);
    --ls-accent-light: #E2C08D;
    --ls-sage: var(--mud-palette-tertiary);
    --ls-ink: var(--mud-palette-text-primary);
    --ls-muted: var(--mud-palette-text-secondary);
    --ls-subtle: #6B7480;
    --ls-bg: var(--mud-palette-background);
    --ls-surface: var(--mud-palette-surface);
    --ls-surface-muted: #FBFAF7;
    --ls-line: var(--mud-palette-divider);
    --ls-line-strong: #D3CBBE;
    --ls-night: var(--mud-palette-appbar-background);
    --ls-night-rgb: 14, 27, 43;
    --ls-night-2: #17324D;
    --ls-night-3: #1F4B6E;
    --ls-on-night: #F5F1EA;
    --ls-on-night-muted: #B8C2CD;
    --ls-success: var(--mud-palette-success);
    --ls-success-soft: rgba(var(--mud-palette-success-rgb), .12);
    --ls-warning: var(--mud-palette-warning);
    --ls-error: var(--mud-palette-error);
    --ls-error-soft: rgba(var(--mud-palette-error-rgb), .1);
    --ls-chat-bubble: #F1EEE6;
    color-scheme: light;
}

/* Dark mode. The MudBlazor dark palette arrives from DarkThemeVariables (MainLayout); these are the extra shades
   app.css owns. Both blocks must stay identical: the first is the saved choice from the header switch, the
   second follows the device setting when no choice is saved. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --ls-primary-soft: rgba(var(--mud-palette-primary-rgb), .14);
    --ls-primary-border: rgba(var(--mud-palette-primary-rgb), .4);
    --ls-accent-strong: #E2C08D;
    --ls-accent-soft: rgba(var(--mud-palette-secondary-rgb), .16);
    --ls-subtle: #8D98A5;
    --ls-surface-muted: #182838;
    --ls-line-strong: #3A4E64;
    --ls-night-rgb: 8, 17, 27;
    --ls-night-2: #112539;
    --ls-night-3: #1A3A57;
    --ls-chat-bubble: #1C2D3F;
    --ls-success-soft: rgba(var(--mud-palette-success-rgb), .16);
    --ls-error-soft: rgba(var(--mud-palette-error-rgb), .16);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --ls-primary-soft: rgba(var(--mud-palette-primary-rgb), .14);
        --ls-primary-border: rgba(var(--mud-palette-primary-rgb), .4);
        --ls-accent-strong: #E2C08D;
        --ls-accent-soft: rgba(var(--mud-palette-secondary-rgb), .16);
        --ls-subtle: #8D98A5;
        --ls-surface-muted: #182838;
        --ls-line-strong: #3A4E64;
        --ls-night-rgb: 8, 17, 27;
        --ls-night-2: #112539;
        --ls-night-3: #1A3A57;
        --ls-chat-bubble: #1C2D3F;
        --ls-success-soft: rgba(var(--mud-palette-success-rgb), .16);
        --ls-error-soft: rgba(var(--mud-palette-error-rgb), .16);
    }
}

:root {
    font-family: var(--ls-font-body);
    color: var(--ls-ink);
    background: var(--ls-bg);
    font-synthesis: none;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ls-bg); }
a { color: var(--ls-primary); font-weight: 650; text-decoration: none; }
a:hover { color: var(--ls-primary-strong); }
/* FocusOnNavigate moves focus to the page heading for screen readers; the heading is not interactive, so hide the ring. */
h1:focus { outline: none; }

.app-shell { min-height: 100vh; background: var(--ls-bg); }
.app-header { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.app-header .mud-toolbar { min-height: 72px; padding: 0; }
.app-content { padding-top: 72px; }
.page-container { padding-top: 48px; padding-bottom: 72px; }

.nav-shell {
    align-items: center;
    display: flex;
    gap: 28px;
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
    width: 100%;
}
.brand-link { align-items: center; color: var(--ls-on-night); display: flex; gap: 12px; min-width: max-content; }
.brand-link:hover { color: var(--ls-on-night); }
.brand-mark {
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(var(--ls-primary-rgb), .32);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    width: 40px;
}
.brand-mark img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1rem; letter-spacing: -.01em; }
.brand-copy small { color: var(--ls-subtle); font-size: .67rem; font-weight: 600; letter-spacing: .05em; margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; }
.nav-links .mud-button-root { color: var(--ls-on-night-muted); font-size: .82rem; }
.nav-links .mud-button-root:hover { background: rgba(255, 255, 255, .08); color: var(--ls-on-night); }
.account-actions, .guest-actions { align-items: center; display: flex; gap: 10px; margin-left: auto; }
.account-actions form { display: flex; margin: 0; }
.user-pill { align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; color: var(--ls-on-night); display: flex; font-size: .78rem; gap: 7px; max-width: 230px; padding: 7px 12px; }
.user-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill { cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.user-pill:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .2); }
.user-pill:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 2px; }
.guest-actions .mud-button-root:not(.cta-on-night) { color: var(--ls-on-night); }
.nav-cta { box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
/* Primary actions placed on the dark navy surfaces use the light brass so they stand out from the background. */
.mud-button-root.cta-on-night { background: var(--ls-accent-light); color: var(--ls-night); }
.mud-button-root.cta-on-night:hover { background: #EBCFA4; }
.guest-actions .mud-button-root { white-space: nowrap; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { align-items: center; border-radius: 50%; color: var(--ls-on-night); cursor: pointer; display: flex; height: 40px; justify-content: center; list-style: none; width: 40px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary:hover, .mobile-nav[open] summary { background: rgba(255, 255, 255, .08); }
.mobile-nav summary:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 2px; }
.mobile-nav-panel { background: var(--ls-night); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: 0 18px 40px rgba(2, 6, 23, .4); display: grid; min-width: 200px; padding: 8px; position: absolute; right: 0; top: calc(100% + 10px); z-index: 1300; }
.mobile-nav-panel a { align-items: center; border-radius: 10px; color: var(--ls-on-night); display: flex; font-size: .9rem; gap: 10px; padding: 12px 14px; }
.mobile-nav-panel a:hover { background: rgba(255, 255, 255, .08); color: var(--ls-on-night); }

/* Notification bell: unread count in the header, a panel of recent notes, and a short pop-up when work finishes. */
.notification-bell { position: relative; }
.notification-trigger { align-items: center; background: none; border: 0; border-radius: 50%; color: var(--ls-on-night); cursor: pointer; display: flex; height: 40px; justify-content: center; position: relative; width: 40px; }
.notification-trigger:hover, .notification-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.notification-trigger:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 2px; }

/* Dark mode switch in the header: a moon in light mode, a sun in dark mode. */
.theme-toggle { align-items: center; background: none; border: 0; border-radius: 50%; color: var(--ls-on-night); cursor: pointer; display: flex; flex: 0 0 auto; height: 40px; justify-content: center; padding: 0; width: 40px; }
.theme-toggle:hover { background: rgba(255, 255, 255, .08); }
.theme-toggle:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 2px; }
.theme-toggle .theme-toggle-sun { display: none; }
/* Print this page (PrintButton.razor): an icon button that matches the dark mode switch beside it. */
.print-button { align-items: center; background: none; border: 0; border-radius: 50%; color: var(--ls-on-night); cursor: pointer; display: flex; flex: 0 0 auto; height: 40px; justify-content: center; padding: 0; width: 40px; }
.print-button:hover { background: rgba(255, 255, 255, .08); }
.print-button:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 2px; }
.print-brand { display: none; }
/* Phone headers have no room for it, so phones get the footer's "Print this page" link instead. */
.footer-print { background: none; border: 0; color: inherit; cursor: pointer; display: none; font: inherit; padding: 0; }
.footer-print:hover, .footer-print:focus-visible { color: var(--mud-palette-primary); text-decoration: underline; }
@media (max-width: 600px) { .print-button { display: none; } .footer-print { display: inline; } }
:root[data-theme="dark"] .theme-toggle .theme-toggle-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-toggle-sun { display: inline-block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .theme-toggle-moon { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .theme-toggle-sun { display: inline-block; }
}
.notification-count { background: var(--ls-accent-light); border: 2px solid var(--ls-night); border-radius: 999px; color: var(--ls-night); font-size: .66rem; font-weight: 800; line-height: 1; min-width: 20px; padding: 3px 5px; position: absolute; right: 0; text-align: center; top: 1px; }
.notification-panel { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(2, 6, 23, .28); color: var(--ls-ink); max-height: min(520px, calc(100vh - 96px)); overflow-y: auto; position: absolute; right: -8px; top: calc(100% + 10px); width: 360px; z-index: 1300; }
.notification-panel-header { align-items: center; border-bottom: 1px solid var(--ls-line); display: flex; justify-content: space-between; padding: 14px 16px; }
.notification-text-button { background: none; border: 0; color: var(--ls-primary); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; padding: 0; }
.notification-text-button:hover { text-decoration: underline; }
.notification-empty { color: var(--ls-muted); font-size: .88rem; line-height: 1.5; padding: 18px 16px 22px; }
.notification-list { list-style: none; margin: 0; padding: 6px; }
.notification-item { border-radius: 10px; color: var(--ls-ink); display: flex; gap: 12px; padding: 12px 10px; }
.notification-item:hover { background: var(--ls-surface-muted); color: var(--ls-ink); }
.notification-item.unread { background: var(--ls-primary-soft); }
.notification-item.unread strong::after { background: var(--ls-accent); border-radius: 50%; content: ""; display: inline-block; height: 7px; margin-left: 7px; vertical-align: middle; width: 7px; }
.notification-icon { align-items: center; border-radius: 50%; display: flex; flex: 0 0 32px; height: 32px; justify-content: center; }
.notification-icon.succeeded { background: rgba(var(--mud-palette-success-rgb), .12); color: var(--mud-palette-success); }
.notification-icon.failed { background: rgba(var(--mud-palette-error-rgb), .1); color: var(--mud-palette-error); }
.notification-copy { display: grid; gap: 3px; min-width: 0; }
.notification-copy strong { font-size: .9rem; }
.notification-copy span { color: var(--ls-muted); font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.notification-copy small { color: var(--ls-subtle); font-size: .74rem; }
.comments-menu { position: relative; }
.comments-trigger { align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: var(--ls-on-night); cursor: pointer; display: flex; font: inherit; font-size: .8rem; font-weight: 600; gap: 7px; height: 36px; padding: 0 13px; }
.comments-trigger:hover, .comments-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.comments-trigger:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 2px; }
.comments-panel { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(2, 6, 23, .28); color: var(--ls-ink); position: absolute; right: -8px; top: calc(100% + 10px); width: 380px; z-index: 1300; }
.comments-body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.comments-help { color: var(--ls-muted); font-size: .86rem; line-height: 1.5; margin: 0; }
.comments-help span { display: block; margin-top: 4px; }
.comments-field-label { color: var(--ls-ink); font-size: .8rem; font-weight: 650; }
.comments-select, .comments-text { background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 10px; color: var(--ls-ink); font: inherit; font-size: .9rem; line-height: 1.5; padding: 10px 12px; width: 100%; }
.comments-text { resize: vertical; }
.comments-select:focus, .comments-text:focus { border-color: var(--ls-primary); box-shadow: 0 0 0 3px rgba(var(--ls-primary-rgb), .12); outline: none; }
.comments-priority-option { align-items: flex-start; color: var(--ls-ink); cursor: pointer; display: flex; font-size: .84rem; gap: 9px; line-height: 1.35; }
.comments-priority-option input { accent-color: var(--ls-primary); flex: none; margin-top: 2px; }
.comments-priority-option:has(input:disabled) { color: var(--ls-muted); cursor: default; }
.comments-priority-help { color: var(--ls-subtle); font-size: .74rem; line-height: 1.4; margin-top: -5px; }
.comments-actions { align-items: center; display: flex; justify-content: space-between; }
.comments-actions small { color: var(--ls-subtle); font-size: .74rem; }
.comments-sent { align-items: center; display: flex; font-size: .9rem; gap: 8px; margin: 0; }
.comments-error { color: var(--mud-palette-error); font-size: .84rem; margin: 0; }
.notification-toast-region { bottom: 84px; position: fixed; right: 24px; z-index: 1400; }
.notification-toast { align-items: flex-start; background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(2, 6, 23, .28); color: var(--ls-ink); display: flex; gap: 12px; padding: 14px 14px 14px 16px; width: min(380px, calc(100vw - 32px)); }
.notification-toast .notification-copy { flex: 1; }
.notification-toast-actions { align-items: center; display: flex; gap: 4px; }
.notification-toast-actions a { border-radius: 8px; color: var(--ls-primary); font-size: .84rem; font-weight: 650; padding: 6px 8px; }
.notification-toast-actions a:hover { background: var(--ls-primary-soft); }
.notification-toast-actions button { align-items: center; background: none; border: 0; border-radius: 50%; color: var(--ls-muted); cursor: pointer; display: flex; height: 30px; justify-content: center; width: 30px; }
.notification-toast-actions button:hover { background: var(--ls-surface-muted); }

.eyebrow { color: var(--ls-accent-strong); display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; margin-bottom: 10px; text-transform: uppercase; }
.eyebrow.light { color: var(--ls-accent-light); }
.page-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 30px; }
.page-heading h1 { font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.page-heading p { color: var(--ls-muted); }
.content-card { border: 1px solid var(--ls-line); border-radius: 18px !important; }
.empty-state { align-items: center; display: flex; flex-direction: column; padding: 68px 24px 72px; text-align: center; }.empty-state-icon { align-items: center; background: var(--ls-primary-soft); border-radius: 50%; color: var(--ls-primary); display: flex; height: 76px; justify-content: center; margin-bottom: 18px; width: 76px; }.empty-state h2 { font-weight: 720; }.empty-state p { color: var(--ls-muted); line-height: 1.6; margin: 8px auto 22px; max-width: 460px; }

/* Landing page */
.hero-section { align-items: center; display: grid; gap: 64px; grid-template-columns: minmax(0, 1fr) minmax(460px, .9fr); min-height: 650px; padding: 54px 0 78px; }
.hero-copy { max-width: 650px; }
.hero-title { font-size: clamp(3.25rem, 5.5vw, 5.25rem) !important; font-weight: 600 !important; letter-spacing: -.03em !important; line-height: 1.02 !important; margin: 24px 0 !important; }
.hero-title span { background: linear-gradient(120deg, var(--ls-primary) 8%, var(--ls-accent) 88%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-subtitle { color: var(--ls-muted); line-height: 1.7 !important; max-width: 590px; }
.hero-guide-link { color: var(--ls-accent-strong); display: inline-block; font-weight: 600; margin-top: 4px; text-underline-offset: 3px; }
.hero-actions { margin-top: 34px; }
.hero-actions .mud-button-root { border-radius: 12px; min-height: 50px; padding-inline: 24px; }
.trust-row { color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .78rem; font-weight: 600; gap: 24px; margin-top: 28px; }
.trust-row span { align-items: center; display: flex; gap: 7px; }
.trust-row .mud-icon-root { color: var(--ls-success); font-size: 18px; }
.hero-visual { min-height: 560px; position: relative; }
.visual-glow { background: radial-gradient(circle, rgba(var(--ls-primary-rgb), .24), rgba(var(--ls-accent-rgb), .10) 45%, transparent 70%); filter: blur(4px); inset: -12%; position: absolute; }
.hero-photo { inset: 0 0 0 6%; margin: 0; position: absolute; }
.hero-photo img { border-radius: 28px; box-shadow: 0 30px 70px rgba(var(--ls-night-rgb), .22); display: block; height: 100%; object-fit: cover; width: 100%; }
.floating-card { align-items: center; background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 14px !important; display: flex; gap: 12px; padding: 14px 16px; position: absolute; }
.floating-card div { display: grid; }.floating-card small { color: var(--ls-subtle); font-size: .58rem; font-weight: 800; letter-spacing: .1em; }.floating-card strong { color: var(--ls-ink); font-size: .78rem; }
.story-card { bottom: 32px; left: -28px; min-width: 270px; }.story-card > .mud-icon-root:last-child { margin-left: auto; }
.media-card-float { right: -20px; top: 4px; }
.feature-section { border-top: 1px solid var(--ls-line); padding: 80px 0 36px; }
.section-heading { margin: 0 auto 38px; max-width: 700px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2 { font-weight: 600; letter-spacing: -.02em; }

/* Landing page photo strip (LandingPhotoCarousel.razor): a slow CSS loop of stock home photos. */
.home-strip { border-top: 1px solid var(--ls-line); padding: 56px 0 8px; }
.home-strip-head { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-bottom: 24px; }
.home-strip-intro { color: var(--ls-muted); margin-top: 6px !important; }
.home-strip-pause-input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.home-strip-pause { align-items: center; border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-ink); cursor: pointer; display: inline-flex; font-size: .875rem; font-weight: 600; min-height: 44px; padding: 0 18px; }
.home-strip-pause:hover { background: var(--ls-primary-soft); }
.home-strip-pause-input:focus-visible + .home-strip-pause, .home-strip-viewport:focus-visible { outline: 3px solid var(--ls-accent); outline-offset: 3px; }
.home-strip-pause-on, .home-strip-pause-input:checked + .home-strip-pause .home-strip-pause-off { display: none; }
.home-strip-pause-input:checked + .home-strip-pause .home-strip-pause-on { display: inline; }
.home-strip-viewport { border-radius: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.home-strip-track { animation: home-strip-drift 60s linear infinite; display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; width: max-content; }
.home-strip-track li { flex: none; width: clamp(220px, 26vw, 320px); }
.home-strip-track img { aspect-ratio: 4 / 3; border-radius: 14px; display: block; height: auto; object-fit: cover; width: 100%; }
.home-strip-viewport:hover .home-strip-track, .home-strip-viewport:focus-within .home-strip-track,
.home-strip:has(.home-strip-pause-input:checked) .home-strip-track { animation-play-state: paused; }
.home-strip-credit { color: var(--ls-muted); font-size: .8rem; margin: 14px 0 0; }
@keyframes home-strip-drift { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) {
    .home-strip-track { animation: none; }
    .home-strip-viewport { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scroll-snap-type: x mandatory; }
    .home-strip-track li { scroll-snap-align: start; }
    .home-strip-copy, .home-strip-pause { display: none; }
}
@media (max-width: 760px) { .home-strip { padding-top: 40px; } }

/* Landing page bubble map (LandingBubbleMap.razor). Wide screens draw the SVG; phones get the stacked loop. */
.cls-map-section { border-top: 1px solid var(--ls-line); padding: 72px 0 24px; }
.cls-map-intro { color: var(--ls-muted); margin-top: 10px !important; }
.cls-map-section { --cls-map-properties: var(--ls-primary); --cls-map-marketing: var(--ls-accent); --cls-map-leads: var(--ls-sage); --cls-map-clients: var(--ls-ink); }
.cls-map-wide { margin: 0 auto; max-width: 1100px; }
.cls-map-svg { display: block; font-family: var(--ls-font-body); height: auto; width: 100%; }
.cls-map-svg line { stroke-linecap: round; }
.cls-map-spoke { stroke: var(--ls-line-strong); stroke-width: 3; }
.cls-map-properties-line { stroke: var(--cls-map-properties); }
.cls-map-marketing-line { stroke: var(--cls-map-marketing); }
.cls-map-leads-line { stroke: var(--cls-map-leads); }
.cls-map-clients-line { stroke: var(--cls-map-clients); }
.cls-map-solid line:not(.cls-map-spoke) { opacity: .55; stroke-width: 1.75; }
.cls-map-loop line { fill: none; stroke: var(--ls-accent-strong); stroke-dasharray: 7 6; stroke-width: 2.25; }
.cls-map-loop line.cls-map-link { opacity: .8; stroke-width: 1.75; }
.cls-map-arrowhead { fill: var(--ls-accent-strong); }
.cls-map-loop-label { fill: var(--ls-accent-strong); font-size: 13px; font-style: italic; font-family: var(--ls-font-display); }
.cls-map-core circle { fill: var(--ls-night); stroke: var(--ls-accent); stroke-width: 4; }
.cls-map-core text { fill: var(--ls-on-night); font-family: var(--ls-font-display); font-size: 30px; font-weight: 600; letter-spacing: .04em; }
.cls-map-hub text { fill: var(--ls-surface); font-size: 15px; font-weight: 700; }
.cls-map-hub.cls-map-properties circle { fill: var(--cls-map-properties); }
.cls-map-hub.cls-map-marketing circle { fill: var(--cls-map-marketing); }
.cls-map-hub.cls-map-leads circle { fill: var(--cls-map-leads); }
.cls-map-hub.cls-map-clients circle { fill: var(--cls-map-clients); }
.cls-map-leaf rect { fill: var(--ls-surface); stroke-width: 1.75; }
.cls-map-leaf text { fill: var(--ls-ink); font-size: 13.5px; font-weight: 600; }
.cls-map-leaf.cls-map-properties rect { stroke: var(--cls-map-properties); }
.cls-map-leaf.cls-map-marketing rect { stroke: var(--cls-map-marketing); }
.cls-map-leaf.cls-map-leads rect { stroke: var(--cls-map-leads); }
.cls-map-leaf.cls-map-clients rect { stroke: var(--cls-map-clients); }
.cls-map-leaf.cls-map-soon rect { fill: var(--ls-surface-muted); stroke: var(--ls-subtle); stroke-dasharray: 4 3; }
.cls-map-leaf.cls-map-soon text { fill: var(--ls-muted); }
.cls-map-leaf .cls-map-soon-tag { fill: var(--ls-subtle); font-size: 9.5px; font-weight: 800; letter-spacing: .14em; }
.cls-map-legend { color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .82rem; gap: 10px 26px; justify-content: center; margin-top: 18px; }
.cls-map-legend span { align-items: center; display: inline-flex; gap: 8px; }
.cls-map-legend i { display: inline-block; height: 0; width: 26px; }
.cls-map-key-solid { border-top: 2px solid var(--ls-line-strong); }
.cls-map-key-dashed { border-top: 2px dashed var(--ls-accent-strong); }
.cls-map-key-soon { border: 1.5px dashed var(--ls-subtle); border-radius: 99px; height: 14px !important; }
.cls-map-stack { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) {
    .cls-map-section { padding-top: 52px; }
    .cls-map-wide { display: none; }
    .cls-map-stack { display: flex; flex-direction: column; gap: 26px; padding-inline: 4px; position: relative; }
    .cls-map-stack::before { border-left: 2px dashed var(--ls-accent-strong); bottom: 22px; content: ""; left: 36px; position: absolute; top: 40px; }
    .cls-map-stack > li { position: relative; }
    .cls-map-core-chip { align-items: center; align-self: flex-start; background: var(--ls-night); border: 3px solid var(--ls-accent); border-radius: 50%; color: var(--ls-on-night); display: flex; font-family: var(--ls-font-display); font-size: 1.1rem; font-weight: 600; height: 60px; justify-content: center; margin-left: 3px; width: 60px; }
    .cls-map-step { display: grid; gap: 10px 14px; grid-template-columns: 66px minmax(0, 1fr); }
    .cls-map-step-hub { align-items: center; border-radius: 50%; color: var(--ls-surface); display: flex; font-size: .6rem; font-weight: 800; height: 66px; justify-content: center; letter-spacing: 0; width: 66px; }
    .cls-map-properties .cls-map-step-hub { background: var(--cls-map-properties); }
    .cls-map-marketing .cls-map-step-hub { background: var(--cls-map-marketing); }
    .cls-map-leads .cls-map-step-hub { background: var(--cls-map-leads); }
    .cls-map-clients .cls-map-step-hub { background: var(--cls-map-clients); }
    .cls-map-chips { align-content: center; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
    .cls-map-chip { background: var(--ls-surface); border: 1.5px solid var(--ls-line-strong); border-radius: 99px; color: var(--ls-ink); font-size: .84rem; font-weight: 600; padding: 5px 12px; }
    .cls-map-properties .cls-map-chip { border-color: var(--cls-map-properties); }
    .cls-map-marketing .cls-map-chip { border-color: var(--cls-map-marketing); }
    .cls-map-leads .cls-map-chip { border-color: var(--cls-map-leads); }
    .cls-map-clients .cls-map-chip { border-color: var(--cls-map-clients); }
    .cls-map-chip.cls-map-soon { background: var(--ls-surface-muted); border-color: var(--ls-subtle); border-style: dashed; color: var(--ls-muted); }
    .cls-map-chip small { font-size: .62rem; font-weight: 800; letter-spacing: .1em; margin-left: 6px; text-transform: uppercase; }
    .cls-map-return { color: var(--ls-accent-strong); font-family: var(--ls-font-display); font-style: italic; padding-left: 80px; }
    .cls-map-legend { justify-content: flex-start; }
    .cls-map-legend span:first-child { display: none; }
}
.feature-card { border: 1px solid var(--ls-line); border-radius: 18px !important; height: 100%; padding: 30px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.feature-card:hover { border-color: var(--ls-primary-border); box-shadow: 0 18px 50px rgba(var(--ls-night-rgb), .07); transform: translateY(-4px); }
.feature-card h3 { font-weight: 720; margin: 20px 0 10px; }.feature-card p { color: var(--ls-muted); line-height: 1.7; }
.feature-icon, .metric-icon { align-items: center; border-radius: 13px; display: inline-flex; height: 48px; justify-content: center; width: 48px; }
.feature-icon.indigo, .metric-icon.indigo { background: var(--ls-primary-soft); color: var(--ls-primary); }.feature-icon.sky, .metric-icon.sky { background: var(--ls-accent-soft); color: var(--ls-accent-strong); }.feature-icon.amber, .metric-icon.amber { background: var(--ls-accent-soft); color: var(--ls-warning); }

/* Auth */
.account-stage { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); margin: -48px calc(50% - 50vw) -72px; min-height: calc(100vh - 72px); }
.account-story { background: linear-gradient(145deg, var(--ls-night), var(--ls-night-2) 62%, var(--ls-night-3)); color: var(--ls-on-night); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 80px max(8vw, 64px); position: relative; }
.account-story::after { border: 1px solid rgba(255,255,255,.10); border-radius: 50%; content: ""; height: 520px; position: absolute; right: -280px; top: -170px; width: 520px; }
.account-story .account-story-title { color: inherit; font-family: var(--ls-font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-top: 0; max-width: 520px; }
.account-story p { color: var(--ls-on-night-muted); line-height: 1.75; margin-top: 18px; max-width: 480px; }
.account-benefits { display: grid; gap: 15px; margin-top: 38px; }
.account-benefits span { align-items: center; color: var(--ls-on-night); display: flex; font-size: .88rem; gap: 10px; }.account-benefits .mud-icon-root { color: var(--ls-accent-light); font-size: 20px; }
.account-card { align-self: center; background: transparent !important; justify-self: center; max-width: 560px; padding: 56px; width: calc(100% - 64px); }
.account-icon { align-items: center; background: var(--ls-primary-soft); border-radius: 15px; color: var(--ls-primary); display: flex; height: 54px; justify-content: center; margin-bottom: 24px; width: 54px; }
.account-title { font-weight: 600 !important; letter-spacing: -.02em !important; }
.account-description { color: var(--ls-muted) !important; line-height: 1.6 !important; margin: 10px 0 28px !important; }
.account-form { display: grid; gap: 18px; }
.ls-field { display: grid; gap: 7px; }
.ls-field > label, .field-label-row label { color: var(--ls-ink); font-size: .78rem; font-weight: 750; }
.field-label-row { align-items: center; display: flex; justify-content: space-between; }.field-label-row a { font-size: .75rem; }
.ls-input-wrap { align-items: center; background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 10px; display: flex; padding: 0 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.ls-input-wrap:focus-within { border-color: var(--ls-primary); box-shadow: 0 0 0 3px rgba(var(--ls-primary-rgb), .12); }
.ls-input-wrap .mud-icon-root { color: var(--ls-subtle); font-size: 19px; }
.ls-input { background: transparent; border: 0; color: var(--ls-ink); font: inherit; font-size: .9rem; outline: 0; padding: 13px 10px; width: 100%; }
.ls-input::placeholder { color: var(--ls-subtle); }
.field-help { color: var(--ls-muted); font-size: .74rem; line-height: 1.45; }
.form-columns { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.checkbox-row { align-items: center; color: var(--ls-muted); display: flex; font-size: .8rem; gap: 8px; }.checkbox-row input { accent-color: var(--ls-primary); height: 16px; width: 16px; }
.validation-message { color: var(--ls-error); font-size: .72rem; }.validation-summary { color: var(--ls-error); font-size: .78rem; }.validation-summary:empty { display: none; }
.external-logins { display: grid; gap: 11px; margin-top: 22px; }.external-logins form { margin: 0; }
.external-login-help { color: var(--ls-muted); font-size: .74rem; line-height: 1.45; margin: 2px 0 0; text-align: center; }
.account-divider { align-items: center; color: var(--ls-subtle); display: flex; font-size: .68rem; font-weight: 700; gap: 13px; letter-spacing: .07em; margin: 4px 0; text-transform: uppercase; }
.account-divider::before, .account-divider::after { border-top: 1px solid var(--ls-line); content: ""; flex: 1; }
.account-footer { color: var(--ls-muted); font-size: .82rem; margin: 24px 0 0; text-align: center; }

/* Workspace and billing */
.workspace-hero { align-items: flex-end; background: linear-gradient(130deg, var(--ls-night), var(--ls-night-2)); border-radius: 24px; color: var(--ls-on-night); display: flex; justify-content: space-between; margin-bottom: 28px; overflow: hidden; padding: 46px; position: relative; }
.workspace-hero::after { background: radial-gradient(circle, rgba(var(--ls-accent-rgb),.34), transparent 64%); content: ""; height: 380px; position: absolute; right: -90px; top: -180px; width: 380px; }
.workspace-hero > * { position: relative; z-index: 1; }.workspace-hero h1 { font-weight: 600; letter-spacing: -.02em; }.workspace-hero p { color: var(--ls-on-night-muted); margin-top: 8px; }
.workspace-card { border: 1px solid var(--ls-line); border-radius: 18px !important; height: 100%; padding: 32px; }
.primary-workspace-card { align-items: flex-start; display: flex; gap: 24px; }.primary-workspace-card h2 { font-weight: 720; }.primary-workspace-card p { color: var(--ls-muted); margin-top: 8px; }
.property-form-errors .validation-errors { background: rgba(179, 38, 30, .07); border: 1px solid rgba(179, 38, 30, .35); border-radius: 10px; color: var(--mud-palette-error); list-style: none; margin: 0 0 14px; padding: 10px 14px; }
.property-form-errors .validation-errors::before { content: "Fix these before saving:"; display: block; font-weight: 700; margin-bottom: 4px; }
.property-form-errors .validation-message { font-size: .92rem; }
.getting-started h2 { font-weight: 720; margin: 4px 0 16px; }
.getting-started + .workspace-metrics { margin-top: 20px; }
.getting-started { margin-bottom: 20px; }
/* Workspace cards from the onboarding work. These live here, not in component styles, because a few sit on a MudBlazor
   element whose root a component's own scoped styles cannot reach. */
.weekend-saved { background: var(--ls-ink); border-radius: 24px; color: #fff; margin-bottom: 20px; padding: 28px 32px; }
.weekend-saved-total { font-family: var(--ls-font-display); font-size: 3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 0; }
.weekend-saved-sub { color: rgba(255, 255, 255, .85); margin: 0 0 16px; }
.weekend-saved-empty { color: rgba(255, 255, 255, .9); max-width: 60ch; }
.weekend-saved-rows { display: grid; gap: 0; margin: 12px 0 0; }
.weekend-saved-rows div { border-top: 1px solid rgba(255, 255, 255, .2); display: flex; justify-content: space-between; padding: 10px 0; }
.weekend-saved-rows dt { font-weight: 500; }
.weekend-saved-rows dd { font-weight: 700; margin: 0; }
.marketing-team, .marketing-feed { margin-bottom: 20px; }
.marketing-team-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-bottom: 12px; }
.marketing-team-progress { color: var(--ls-muted); font-weight: 600; }
.marketing-team-list, .marketing-feed-list { display: grid; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.marketing-team-list li { align-items: center; border: 1px solid var(--ls-line); border-radius: 12px; display: flex; gap: 14px; min-height: 44px; padding: 10px 14px; }
.marketing-team-mark { align-items: center; border: 2px solid var(--ls-line); border-radius: 50%; display: inline-flex; flex: none; height: 26px; justify-content: center; width: 26px; }
.marketing-team-list .is-done .marketing-team-mark { background: var(--ls-success); border-color: var(--ls-success); color: #fff; }
.marketing-team-list strong { flex: 1 1 auto; }
.marketing-team-done { color: var(--ls-success); font-weight: 600; }
.marketing-team-cta { color: var(--ls-primary); font-weight: 600; padding: 12px 4px; }
.marketing-feed-empty { color: var(--ls-muted); margin: 8px 0 0; }
.marketing-feed-list li { align-items: baseline; border-bottom: 1px solid var(--ls-line); display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; }
.marketing-feed-list a { color: var(--ls-ink); }
.marketing-feed-list time { color: var(--ls-muted); flex: none; font-size: .85rem; }
/* Workspace side navigation (WorkspaceHomeV1) */
.workspace-layout { align-items: start; display: grid; gap: 28px; grid-template-columns: 210px minmax(0, 1fr); }
.workspace-main { min-width: 0; }
.workspace-side { position: sticky; top: 88px; }
.workspace-side ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.workspace-side a { align-items: center; border-radius: 12px; color: var(--ls-ink); display: flex; font-weight: 600; gap: 12px; min-height: 44px; padding: 10px 14px; text-decoration: none; }
.workspace-side a:hover { background: var(--ls-primary-soft); }
.workspace-side a.is-current { background: var(--ls-ink); color: #fff; }
.workspace-side a:focus-visible { outline: 3px solid rgba(var(--ls-primary-rgb), .45); outline-offset: 2px; }
.getting-started-list { counter-reset: gs; display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.getting-started-list li { align-items: center; border: 1px solid var(--ls-line); border-radius: 12px; counter-increment: gs; display: flex; gap: 14px; padding: 12px 14px; }
.getting-started-list li.is-next { border-color: var(--mud-palette-primary); background: rgba(var(--ls-primary-rgb), .05); }
.getting-started-mark { align-items: center; border: 2px solid var(--ls-line-strong); border-radius: 50%; display: inline-flex; flex: 0 0 auto; font-size: .8rem; font-weight: 700; height: 28px; justify-content: center; width: 28px; color: var(--ls-muted); }
.getting-started-list li:not(.is-done) .getting-started-mark::before { content: counter(gs); }
.is-done .getting-started-mark { background: var(--mud-palette-success); border-color: var(--mud-palette-success); color: #fff; }
.is-next .getting-started-mark { border-color: var(--mud-palette-primary); color: var(--mud-palette-primary); }
.getting-started-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.getting-started-text span { color: var(--ls-muted); font-size: .9rem; }
.is-done .getting-started-text strong { color: var(--ls-muted); }
@media (max-width: 600px) { .getting-started-list li { align-items: flex-start; flex-wrap: wrap; } .getting-started-list li .mud-button-root { margin-left: 42px; } }
.compact-workspace-card { display: flex; flex-direction: column; gap: 15px; }.compact-workspace-card p { color: var(--ls-muted); flex: 1; line-height: 1.6; }
.billing-summary-grid { margin-bottom: 20px; }
.metric-card { align-items: center; border: 1px solid var(--ls-line); border-radius: 16px !important; display: flex; gap: 15px; height: 100%; min-height: 116px; padding: 22px; }
.metric-card > div { display: grid; }.metric-card small { color: var(--ls-subtle); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }.metric-card h4, .metric-card h6 { font-weight: 740; }.metric-card .mud-chip { margin-left: auto; }.metric-total { color: var(--ls-subtle); font-size: 1rem; font-weight: 500; }
.usage-card { margin-top: 8px; padding: 28px; }.usage-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 22px; }.usage-heading h2 { font-weight: 700; }.usage-heading p { color: var(--ls-muted); margin-top: 4px; }.usage-heading > strong { color: var(--ls-primary); }
.billing-plan-heading { margin-top: 48px; }.plan-card { border: 1px solid var(--ls-line); border-radius: 18px !important; height: 100%; padding: 30px; position: relative; }.plan-card.featured { border-color: var(--ls-primary-border); box-shadow: 0 16px 40px rgba(var(--ls-primary-rgb),.08); }.plan-card h5 { font-weight: 730; }.plan-card > p { color: var(--ls-muted); margin-top: 8px; }.plan-features { margin: 20px 0; }.plan-badge { position: absolute; right: 20px; top: 20px; }

.state-page { align-items: center; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-height: 58vh; text-align: center; }.state-page p { color: var(--ls-muted); }.state-page .mud-button-root { margin-top: 10px; }.state-icon { align-items: center; border-radius: 50%; display: flex; height: 76px; justify-content: center; margin-bottom: 8px; width: 76px; }.state-icon.error { background: var(--ls-error-soft); color: var(--ls-error); }.state-icon.warning { background: var(--ls-accent-soft); color: var(--ls-warning); }.state-icon.success { background: var(--ls-success-soft); color: var(--ls-success); }

/* Existing property workflows */
.mud-paper { background-image: none !important; }
.media-upload-control { align-items: center; background: var(--ls-surface-muted); border: 1.5px dashed var(--ls-line-strong); border-radius: 14px; color: var(--ls-primary); cursor: pointer; display: flex; flex-direction: column; font-size: .92rem; font-weight: 700; gap: 4px; justify-content: center; min-height: 112px; padding: 18px; position: relative; text-align: center; transition: background .15s ease, border-color .15s ease; width: 100%; }.media-upload-control::after { color: var(--ls-muted); content: "Click to browse or drop files here"; font-size: .78rem; font-weight: 500; }.media-upload-control .mud-icon-root { color: var(--ls-accent); font-size: 30px; }.media-upload-control:hover, .media-upload-control:focus-within { background: var(--ls-primary-soft); border-color: var(--ls-primary); }.media-upload-control:focus-within { outline: 2px solid var(--ls-primary); outline-offset: 2px; }/* The native input stays in place, invisible, over the whole zone so clicking and dropping files both reach it. */.media-upload-control input[type=file] { cursor: pointer; height: 100%; inset: 0; opacity: 0; position: absolute; width: 100%; }
.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }.media-card[draggable="true"] { cursor: grab; }
/* Media walkthrough storyboard */
.storyboard-header { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; }
.storyboard-eyebrow { color: var(--ls-accent-strong); font-size: .72rem; font-weight: 750; letter-spacing: .12em; margin: 0 0 4px; text-transform: uppercase; }
.storyboard-intro { color: var(--ls-muted); margin-top: 6px; max-width: 720px; }
.storyboard-count { background: var(--ls-surface-muted); border: 1px solid var(--ls-line); border-radius: 14px; flex: none; padding: 10px 16px; text-align: right; }
.storyboard-count strong { color: var(--ls-primary); display: block; font-family: var(--ls-font-display); font-size: 1.6rem; line-height: 1.1; }
.storyboard-count span { color: var(--ls-muted); font-size: .78rem; }
.storyboard-header-side { align-items: flex-end; display: flex; flex: none; flex-direction: column; gap: 8px; }
/* Media toolbar: photo counts on the left, actions on all photos on the right. */
.media-toolbar { align-items: center; border: 1px solid var(--ls-line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; margin: 12px 0 4px; padding: 10px 14px; background: var(--ls-surface); }
.media-toolbar-summary { color: var(--ls-muted); font-size: .9rem; margin: 0; }
.media-toolbar-summary strong { color: var(--ls-primary); font-size: 1rem; }
.media-toolbar-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.media-toolbar .media-upload-control.media-toolbar-add { min-height: 32px; padding: 4px 14px; width: auto; }
.media-toolbar .media-upload-control.media-toolbar-add { flex-direction: row; gap: 6px; font-size: .85rem; border-radius: 8px; border-style: solid; }.media-toolbar .media-toolbar-add::after { content: none; }.media-toolbar .media-toolbar-add .mud-icon-root { font-size: 20px; }
.storyboard-limits { color: var(--ls-subtle); display: block; margin-top: 8px; }
/* In-tab menu: stays under the app bar while the storyboard scrolls by. */
.media-nav { background: var(--ls-surface); border-bottom: 1px solid var(--ls-line); display: flex; gap: 6px; margin: 14px -24px 0; overflow-x: auto; padding: 8px 24px; position: sticky; top: var(--mud-appbar-height, 64px); z-index: 3; }
.media-nav button { align-items: center; background: none; border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-ink); cursor: pointer; display: inline-flex; flex: none; font: inherit; font-size: .84rem; font-weight: 650; gap: 6px; padding: 5px 12px; }
.media-nav button:hover, .media-nav button:focus-visible { background: var(--ls-primary-soft); border-color: var(--ls-primary); }
.media-nav button:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.media-nav-count { background: var(--ls-primary-soft); border-radius: 999px; color: var(--ls-primary); font-size: .72rem; font-weight: 750; padding: 0 7px; }
.media-nav-count.attention { background: var(--ls-accent-soft); color: var(--ls-accent-strong); }
.media-nav button.is-active { background: var(--ls-primary); border-color: var(--ls-primary); color: var(--mud-palette-primary-text); }
.media-nav button.is-active .media-nav-count { background: rgba(255, 255, 255, .22); color: inherit; }
/* Media tab views: one part at a time. Hidden parts stay on the page so uploads, selections and players keep their state. */
.media-views.view-tour :is(#media-unplaced, #media-extra, #listing-videos, #media-cover, #media-lifestyle),
.media-views.view-notintour :is(.walkthrough-panel, .media-tour-tip, #media-walkthrough, #listing-videos, #media-cover, #media-lifestyle),
.media-views.view-videos :is(.walkthrough-panel, .media-tour-tip, #media-walkthrough, #media-unplaced, #media-extra, #media-cover, #media-lifestyle),
.media-views.view-extras :is(.walkthrough-panel, .media-tour-tip, #media-walkthrough, #media-unplaced, #media-extra, #listing-videos) { display: none !important; }
.media-toolbar-actions .mud-menu { align-self: center; }
.campaign-generate-row { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
/* Campaign summary card: what Generate makes on the left; what it uses and Generate in a tinted box on the right. */
.campaign-summary { display: grid; gap: 18px 28px; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); margin: 0 0 16px; padding: 20px; border: 1px solid var(--ls-line); border-radius: 16px; background: var(--ls-surface); }
.campaign-summary-title { font-family: var(--ls-font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 4px; }
.campaign-summary-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.campaign-summary-list li { display: flex; gap: 14px; align-items: flex-start; }
.campaign-summary-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ls-surface-muted); border: 1px solid var(--ls-line); color: var(--ls-muted); }
.campaign-summary-output { display: flex; flex-direction: column; min-width: 0; }
.campaign-summary-output strong { font-weight: 650; }
.campaign-summary-output span { color: var(--ls-muted); font-size: .88rem; }
.campaign-summary-side { align-self: start; background: rgba(var(--ls-accent-rgb), .12); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.campaign-summary-allowance { font-weight: 650; margin: 0; }
.campaign-summary-allowance.is-warning { color: var(--ls-ink); }
.campaign-summary-meter { background: var(--ls-surface); border-radius: 999px; height: 8px; overflow: hidden; }
.campaign-summary-meter > span { background: var(--ls-accent-strong); border-radius: 999px; display: block; height: 100%; }
.campaign-summary-meter.is-warning > span { background: var(--mud-palette-warning); }
.campaign-summary-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: .92rem; }
.campaign-summary-uses li { display: flex; gap: 10px; align-items: flex-start; }
.campaign-summary-uses li .mud-icon-root { color: var(--mud-palette-success); flex: 0 0 auto; margin-top: 1px; }
.campaign-summary-uses li.is-warning .mud-icon-root { color: var(--mud-palette-warning); }
.campaign-summary-generate { display: flex; flex-direction: column; gap: 10px; }
.campaign-summary-generate .campaign-generate-blockers { margin: 0; max-width: none; }
/* The five settings groups share one card, a divider between rows; each folds to one line with a Change button. */
.settings-groups { border: 1px solid var(--ls-line); border-radius: 16px; background: var(--ls-surface); margin: 0 0 16px; padding: 4px 18px; }
.settings-group { border: 0; margin: 0; background: transparent; }
.settings-group + .settings-group { border-top: 1px solid var(--ls-line); }
.settings-group-row { align-items: center; display: flex; gap: 10px; }
.settings-group-head { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; padding: 16px 0; border-radius: 10px; }
.settings-group-head:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.settings-group-head:hover .settings-group-action { background: var(--ls-primary-soft); }
.settings-group-number { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--ls-surface-muted); color: var(--ls-muted); }
.settings-group-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.settings-group-title { font-weight: 650; }
.settings-group-summary { color: var(--ls-muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-group-action { flex: 0 0 auto; font-weight: 600; font-size: .88rem; color: var(--mud-palette-primary); border: 1px solid var(--mud-palette-primary); border-radius: 8px; padding: 5px 14px; }
.settings-group-shortcut { flex: 0 0 auto; background: var(--ls-accent-light); border-radius: 8px; color: var(--ls-night); font-size: .88rem; font-weight: 650; padding: 6px 14px; text-decoration: none; }
.settings-group-shortcut:hover, .settings-group-shortcut:focus-visible { background: var(--ls-accent); color: var(--ls-night); }
.settings-group.is-open .settings-group-head { border-bottom: 1px solid var(--ls-line); border-radius: 0; }
.settings-group-body { padding: 16px 0 18px; }
@media (max-width: 760px) {
    .campaign-summary { grid-template-columns: 1fr; padding: 16px; }
    .campaign-summary-title { font-size: 1.35rem; }
    .settings-groups { padding: 2px 14px; }
    .settings-group-row { flex-wrap: wrap; }
    .settings-group-head { padding: 12px 0; gap: 10px; }
    .settings-group-summary { white-space: normal; }
    .settings-group-shortcut { margin: -4px 0 12px 36px; }
    .settings-group-body { padding: 12px 0 14px; }
}
.campaign-generate-blockers { background: var(--ls-accent-soft); border: 1px solid var(--ls-accent); border-radius: 12px; color: var(--ls-ink); font-size: .84rem; max-height: 38vh; max-width: 640px; overflow-y: auto; padding: 8px 12px; width: 100%; }
.campaign-generate-blockers ul { margin: 4px 0 0; padding-left: 18px; }
.campaign-generate-blockers ul.is-single { list-style: none; padding-left: 0; }
.campaign-generate-blockers li + li { margin-top: 3px; }
.campaign-generate-blockers a, .campaign-generate-blocker-link { background: none; border: 0; color: var(--ls-primary); cursor: pointer; font: inherit; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.campaign-generate-blockers a:hover, .campaign-generate-blocker-link:hover { color: var(--ls-accent-strong); }
.campaign-generate-blocker-link:focus-visible, .campaign-generate-blockers a:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.campaign-field-flash { animation: campaign-field-flash 2s ease-out; border-radius: 10px; }
@keyframes campaign-field-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--ls-accent); background: var(--ls-accent-soft); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .campaign-field-flash { animation-duration: .01s; outline: 3px solid var(--ls-accent); } }
#media-walkthrough, #media-unplaced, #media-extra, #listing-videos { scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 64px); }
#listing-research { scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 24px); }
.storyboard-tip { align-items: center; color: var(--ls-muted); display: flex; font-size: .86rem; gap: 6px; margin: 16px 0 0; }
.storyboard-tip .mud-icon-root { color: var(--ls-accent); }
.storyboard-upload-stop { color: var(--ls-muted); font-size: .85rem; }
.tour-map-workspace { border: 1px solid var(--ls-line); border-radius: 18px; margin-top: 20px; padding: 20px; }
.tour-map-empty { align-items: center; background: var(--ls-surface-muted); border: 2px dashed var(--ls-primary-border); border-radius: 16px; display: grid; gap: 18px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 24px; }
.tour-map-empty h3, .tour-map-pending h4, .tour-map-add-stop h3 { font-family: var(--ls-font-display); font-weight: 600; margin: 2px 0 4px; }
.tour-map-empty p, .tour-map-pending p { color: var(--ls-muted); font-size: .88rem; line-height: 1.5; margin: 0; }
.tour-map-empty-icon { align-items: center; background: var(--ls-primary-soft); border-radius: 999px; color: var(--ls-primary); display: flex; height: 54px; justify-content: center; width: 54px; }
.tour-map-empty-upload { min-height: 0; padding: 12px 16px; width: 220px; }
.tour-map-empty-upload::after { content: "Required opening shot"; }
.tour-map-pending { align-items: center; background: var(--ls-accent-soft); border: 1px dashed var(--ls-accent); border-radius: 14px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) auto auto; margin-top: 14px; padding: 14px 16px; }
.tour-map-pending .stop-upload { min-height: 0; padding: 10px 14px; width: 220px; }
.tour-map-pending .stop-upload::after { display: none; }
.tour-map-add-stop { border-top: 1px solid var(--ls-line); margin-top: 20px; padding-top: 18px; }
.tour-stop-media { border-top: 1px solid var(--ls-line); margin-top: 12px; padding-top: 12px; }
.tour-stop-media-head { align-items: baseline; display: flex; font-size: .82rem; gap: 8px; justify-content: space-between; margin-bottom: 8px; }
.tour-stop-media-head span { color: var(--ls-muted); font-size: .74rem; }
.tour-stop-media .stop-strip > * { flex-basis: 10.5rem; }
.aerial-intro { border-top: 1px solid var(--ls-line); display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; }
.aerial-intro-head { align-items: center; display: flex; flex-wrap: wrap; font-size: .82rem; gap: 6px 8px; }
.aerial-intro-head .mud-icon-root { color: var(--ls-accent); }
.aerial-intro-status { background: var(--ls-surface-muted); border-radius: 999px; color: var(--ls-muted); font-size: .72rem; font-weight: 600; margin-left: auto; padding: 2px 10px; }
.aerial-intro-status.is-approved { background: var(--ls-success-soft); color: var(--ls-success); }
.aerial-intro-status.is-warning { background: var(--ls-error-soft); color: var(--ls-error); }
.aerial-intro-copy, .aerial-intro-hint { color: var(--ls-muted); font-size: .8rem; line-height: 1.45; margin: 0; }
.aerial-intro-hint { font-size: .74rem; }
.aerial-intro-video { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; max-width: 100%; width: 100%; }
.aerial-intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aerial-intro .mud-checkbox .mud-typography { font-size: .78rem; }
.storyboard-track { list-style: none; margin: 24px 0 0; padding: 0; }
.storyboard-stop { display: grid; gap: 0 18px; grid-template-columns: 36px minmax(0, 1fr); padding-bottom: 18px; position: relative; }
.storyboard-stop::before { background: var(--ls-line-strong); bottom: 0; content: ""; left: 17px; position: absolute; top: 40px; width: 2px; }
.storyboard-stop.is-filled::before { background: var(--ls-primary-border); }
.storyboard-stop.next-stop::before { display: none; }
.stop-marker { align-items: center; background: var(--ls-surface); border: 2px solid var(--ls-line-strong); border-radius: 50%; color: var(--ls-muted); display: flex; font-size: .9rem; font-weight: 750; height: 36px; justify-content: center; position: relative; width: 36px; z-index: 1; }
.is-filled .stop-marker { background: var(--ls-primary); border-color: var(--ls-primary); color: var(--mud-palette-primary-text); }
.next-stop .stop-marker { border-style: dashed; color: var(--ls-accent); }
.stop-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.stop-title { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 10px; min-height: 36px; padding-top: 4px; }
.stop-title h3 { font-family: var(--ls-font-display); font-size: 1.2rem; font-weight: 600; margin: 0; }
.stop-step { color: var(--ls-subtle); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stop-badge { background: var(--ls-primary-soft); border-radius: 999px; color: var(--ls-primary); font-size: .72rem; font-weight: 700; padding: 2px 10px; }
.stop-badge.required { background: var(--ls-accent-soft); color: var(--ls-accent-strong); }
.stop-badge.done { background: var(--ls-success-soft); color: var(--ls-success); }
.stop-hint { color: var(--ls-muted); font-size: .88rem; line-height: 1.55; margin: 2px 0 12px; max-width: 680px; }
.stop-actions { display: flex; flex: none; gap: 2px; }
/* Each stop is one row: its photos run left to right as a filmstrip that scrolls sideways when it outgrows the row. */
.stop-strip { align-items: flex-start; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.stop-strip > * { flex: 0 0 11.5rem; scroll-snap-align: start; }
/* On wide screens the stop name sits beside its filmstrip, so a stop takes one photo's height. */
@media (min-width: 900px) {
    .storyboard-stop:not(.next-stop) .stop-body { align-items: start; display: grid; gap: 16px; grid-template-columns: 13rem minmax(0, 1fr); }
    .storyboard-stop:not(.next-stop) .stop-head { flex-direction: column; gap: 4px; }
    .storyboard-stop:not(.next-stop) .stop-title { align-items: flex-start; flex-direction: column; gap: 4px; }
    .storyboard-stop:not(.next-stop) .stop-actions { margin-left: -6px; }
    .storyboard-stop:not(.next-stop) .stop-map-link { align-self: flex-start; }
}
.is-filled .stop-upload { aspect-ratio: 4 / 3; flex-basis: 8.5rem; font-size: .82rem; min-height: 0; padding: 10px; }
.is-filled .stop-upload::after { display: none; }
.is-empty .stop-upload { flex: 1 1 auto; min-height: 96px; }
.stop-upload::after { content: "Click to browse or drop photos here"; }
.storyboard-photo { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.storyboard-photo-image { aspect-ratio: 4 / 3; background-color: var(--ls-surface-muted); background-position: center; background-size: cover; position: relative; }
.scene-number { background: rgba(var(--ls-night-rgb), .82); border-radius: 999px; color: var(--ls-on-night); font-size: .75rem; font-weight: 750; left: 8px; min-width: 26px; padding: 3px 8px; position: absolute; text-align: center; top: 8px; }
.walkthrough-play { align-items: center; background: rgba(var(--ls-night-rgb), .72); border: 2px solid rgba(255, 255, 255, .85); border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; height: 48px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); transition: background .15s ease, transform .15s ease; width: 48px; }
.walkthrough-play:hover, .walkthrough-play:focus-visible { background: var(--ls-night-3); transform: translate(-50%, -50%) scale(1.06); }
.walkthrough-play:focus-visible { outline: 2px solid var(--ls-accent); outline-offset: 2px; }
.walkthrough-video { background: #000; height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.opening-sequence-stage { background: rgba(var(--ls-night-rgb), .82); border-radius: 999px; color: #fff; font-size: .72rem; font-weight: 700; left: .65rem; padding: .28rem .55rem; position: absolute; top: .65rem; z-index: 3; }
.aerial-speed-picker { display: grid; gap: .45rem; margin: .75rem 0; }
.aerial-speed-picker > span { color: var(--ls-night); font-size: .78rem; font-weight: 750; }
.aerial-speed-picker small { color: var(--ls-muted); line-height: 1.4; }
.walkthrough-close { align-items: center; background: rgba(var(--ls-night-rgb), .82); border: 0; border-radius: 999px; color: var(--ls-on-night); cursor: pointer; display: inline-flex; height: 28px; justify-content: center; position: absolute; right: 8px; top: 8px; width: 28px; }
.walkthrough-status { align-items: center; align-self: flex-start; background: var(--ls-surface-muted); border-radius: 999px; color: var(--ls-muted); display: inline-flex; font-size: .72rem; font-weight: 650; gap: 3px; margin-top: 4px; padding: 1px 8px 1px 4px; }
.walkthrough-status .mud-icon-root { font-size: .95rem; }
.walkthrough-status.stale { background: var(--ls-accent-soft); color: var(--ls-accent-strong); }
.walkthrough-status.ready { background: var(--ls-primary-soft); color: var(--ls-primary); }
.walkthrough-status.error { background: var(--ls-error-soft); color: var(--ls-error); }
.walkthrough-panel { align-items: center; background: var(--ls-primary-soft); border: 1px solid var(--ls-line); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 16px 0; padding: 14px 16px; }
.walkthrough-panel-icon { color: var(--ls-primary); }
/* Quick video (QuickPhotoVideoV1): drop every photo at once and let room recognition build the Tour Map */
.quick-video { align-items: center; background: var(--ls-accent-soft); border: 1px solid var(--ls-line); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 16px 0; padding: 18px 20px; }
.quick-video-body { flex: 1 1 320px; }
.quick-video-body h3 { font-family: var(--ls-font-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 4px; }
.quick-video-body p { color: var(--ls-muted); font-size: .9rem; line-height: 1.5; margin: 0 0 6px; }
.quick-video-body .storyboard-eyebrow { margin-bottom: 2px; }
.quick-video-status { align-items: center; color: var(--ls-ink) !important; display: flex; flex-wrap: wrap; font-weight: 600; gap: 8px; }
.quick-video-status.done .mud-icon-root { color: var(--ls-success); }
.quick-video-actions { align-items: stretch; display: flex; flex: 0 1 240px; flex-direction: column; gap: 10px; }
.quick-video-upload { background: var(--ls-surface); min-height: 96px; }
.quick-video-upload::after { content: "Click or drop every photo here"; }
.walkthrough-panel-body { flex: 1 1 280px; }
.walkthrough-panel-body h3 { font-size: 1rem; margin: 0 0 2px; }
.walkthrough-panel-body p { color: var(--ls-muted); font-size: .85rem; line-height: 1.45; margin: 0 0 4px; }
.walkthrough-panel-count { font-size: .8rem; font-weight: 650; }
.storyboard-photo-body { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 10px 12px 4px; }
.storyboard-photo-title { align-items: center; display: flex; gap: 6px; min-width: 0; }
.storyboard-photo-name { flex: 1 1 auto; font-size: .85rem; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality-badge { border-radius: 999px; flex: none; font-size: .7rem; font-weight: 750; padding: 1px 8px; }
.quality-badge.great { background: var(--ls-success-soft); color: var(--ls-success); }
.quality-badge.ok { background: var(--ls-primary-soft); color: var(--ls-primary); }
.quality-badge.retake { background: var(--ls-error-soft); color: var(--ls-error); }
.storyboard-photo-meta { color: var(--ls-muted); font-size: .76rem; line-height: 1.4; }
.storyboard-photo-meta.warning { color: var(--ls-warning); }
.storyboard-photo-meta.error { color: var(--ls-error); }
.storyboard-suggest { align-self: flex-start; margin-left: -6px; }
.storyboard-photo-actions { align-items: center; border-top: 1px solid var(--ls-line); display: flex; padding: 2px 4px; }
.next-stop-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stop-suggestion { align-items: center; background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-ink); cursor: pointer; display: inline-flex; font: inherit; font-size: .84rem; font-weight: 600; gap: 4px; padding: 6px 12px 6px 8px; transition: background .15s ease, border-color .15s ease; }
.stop-suggestion .mud-icon-root { color: var(--ls-accent); }
.stop-suggestion:hover, .stop-suggestion:focus-visible { background: var(--ls-primary-soft); border-color: var(--ls-primary); }
.stop-suggestion:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.next-stop-custom { align-items: center; display: flex; gap: 12px; max-width: 520px; }
.storyboard-unsorted { background: var(--ls-surface-muted); border: 1px dashed var(--ls-line-strong); border-radius: 16px; margin-top: 8px; padding: 18px; }
.storyboard-unsorted h3 { font-family: var(--ls-font-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.storyboard-stop.is-highlighted .stop-body { background: var(--ls-accent-soft); border-radius: 14px; box-shadow: 0 0 0 8px var(--ls-accent-soft); }
.storyboard-stop { scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 64px); }
.stop-map-link { align-items: center; align-self: center; background: none; border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-primary); cursor: pointer; display: inline-flex; font: inherit; font-size: .76rem; font-weight: 650; gap: 4px; padding: 2px 10px 2px 6px; }
.stop-map-link .mud-icon-root { color: var(--ls-accent); font-size: 1rem; }
.stop-map-link:hover, .stop-map-link:focus-visible { background: var(--ls-primary-soft); border-color: var(--ls-primary); }
.stop-map-link:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.walkthrough-map-anchor { scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 64px); }
.walkthrough-map-anchor:focus { outline: none; }
/* Photo gallery: unplaced photos as a left-to-right row of thumbnails that wraps onto new rows */
.photo-gallery { border: 1px solid var(--ls-line); border-radius: 16px; margin-top: 18px; padding: 18px; }
.photo-gallery-head { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 14px; }
.photo-gallery-head h3 { align-items: center; display: flex; font-family: var(--ls-font-display); font-size: 1.1rem; font-weight: 600; gap: 8px; margin: 0 0 4px; }
.photo-gallery-count { background: var(--ls-primary-soft); border-radius: 999px; color: var(--ls-primary); font-family: var(--ls-font-body); font-size: .75rem; font-weight: 750; padding: 1px 9px; }
.photo-gallery-head .stop-hint { max-width: 640px; }
.gallery-upload { flex: none; min-height: 0; padding: 12px 18px; width: 190px; }
.gallery-upload::after { content: "Kept out of the walkthrough"; }
.gallery-upload .mud-icon-root { font-size: 24px; }
.photo-gallery-empty { color: var(--ls-muted); font-size: .88rem; margin: 0; }
.gallery-bulk-toolbar { align-items: center; background: var(--ls-surface-muted); border: 1px solid var(--ls-line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 9px 10px; }
.media-reset-panel { align-items: center; background: var(--ls-surface-muted); display: flex; gap: 24px; justify-content: space-between; }
@media (max-width: 599px) { .media-reset-panel { align-items: stretch; flex-direction: column; gap: 12px; } }
.gallery-select-all { align-items: center; cursor: pointer; display: inline-flex; font-size: .84rem; font-weight: 700; gap: 7px; }
.gallery-select-all input, .gallery-thumb-select input { accent-color: var(--ls-primary); height: 18px; margin: 0; width: 18px; }
.gallery-selection-count { color: var(--ls-muted); font-size: .78rem; }
/* Photo fixes: the Fix button and Edited badge sit on the photo, and a running fix covers it with its progress. */
.photo-fix-menu { position: absolute; right: 6px; top: 6px; }
.photo-fix-button { align-items: center; background: rgba(var(--ls-night-rgb), .78); border: 0; border-radius: 999px; color: var(--ls-on-night); cursor: pointer; display: inline-flex; font: inherit; font-size: .74rem; font-weight: 700; gap: 3px; padding: 3px 9px 3px 6px; transition: background .15s ease; }
.photo-fix-button:hover, .photo-fix-button:focus-visible { background: var(--ls-night-3); }
.photo-fix-button:focus-visible { outline: 2px solid var(--ls-accent); outline-offset: 2px; }
.photo-fix-button .mud-icon-root, .photo-fix-edited .mud-icon-root { font-size: .95rem; }
.photo-fix-edited { align-items: center; background: var(--ls-surface); border: 0; border-radius: 999px; bottom: 6px; color: var(--ls-accent-strong); cursor: pointer; display: inline-flex; font: inherit; font-size: .7rem; font-weight: 750; gap: 3px; left: 6px; padding: 2px 8px 2px 5px; position: absolute; }
.photo-fix-edited:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.photo-fix-progress { align-items: center; background: rgba(var(--ls-night-rgb), .62); color: var(--ls-on-night); display: flex; flex-direction: column; font-size: .78rem; font-weight: 650; gap: 6px; inset: 0; justify-content: center; position: absolute; text-align: center; }
.photo-fix-progress.review { border: 0; cursor: pointer; width: 100%; }
.photo-fix-progress.review:hover, .photo-fix-progress.review:focus-visible { background: rgba(var(--ls-night-rgb), .78); outline: 3px solid var(--ls-accent); outline-offset: -3px; }
.help-chat-photo-context { align-items: center; background: var(--ls-surface-muted); border-bottom: 1px solid var(--mud-palette-divider); display: grid; gap: .65rem; grid-template-columns: 48px 1fr auto; padding: .65rem .8rem; }
.help-chat-photo-context img { border-radius: 8px; height: 48px; object-fit: cover; width: 48px; }
.help-chat-photo-context strong, .help-chat-photo-context small { display: block; }
.help-chat-photo-context small { color: var(--mud-palette-text-secondary); max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-chat-photo-action { align-items: flex-start; background: rgba(var(--ls-accent-rgb), .12); border-radius: 10px; display: flex; flex-direction: column; gap: .35rem; margin: .4rem 0; padding: .65rem; }
.gallery-thumb-image { position: relative; }
.photo-compare { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-compare figure { margin: 0; }
.photo-compare img { background: var(--ls-surface-muted); border-radius: 10px; display: block; max-height: 62vh; object-fit: contain; width: 100%; }
.photo-compare figcaption { color: var(--ls-muted); font-size: .85rem; font-weight: 650; margin-top: 6px; }
.photo-compare-note { color: var(--ls-muted); font-size: .85rem; line-height: 1.5; margin: 14px 0 0; }
@media (max-width: 600px) {
    .photo-compare { grid-template-columns: minmax(0, 1fr); }
    .photo-compare img { max-height: 38vh; }
}

/* Platform administration */
.admin-hero { align-items: center; background: linear-gradient(130deg, var(--ls-night), var(--ls-night-3)); border-radius: 22px; color: var(--ls-on-night); display: flex; justify-content: space-between; margin-bottom: 18px; padding: 28px 32px; }
.admin-hero p { color: rgba(255, 255, 255, .78); margin: 8px 0 0; }
.admin-range { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.admin-range-copy { color: var(--ls-muted); font-size: .82rem; margin: 0 0 16px; }
.admin-metrics { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin: 0 0 20px; }
.admin-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.admin-metrics > div { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 16px; padding: 18px 20px; }
.admin-metrics dt { color: var(--ls-subtle); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-metrics dd { font-family: var(--ls-font-display); font-size: 1.8rem; font-weight: 650; margin: 3px 0; }
.admin-metrics small { color: var(--ls-muted); }
.admin-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-panel { border: 1px solid var(--ls-line); border-radius: 16px; min-width: 0; padding: 20px; }
.admin-panel h2 { margin-bottom: 14px; }
.admin-temporary-password { background: var(--ls-surface-muted, rgba(127,127,127,.12)); border-radius: 8px; font-size: 1.1rem; letter-spacing: .02em; padding: 6px 10px; user-select: all; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { border-collapse: collapse; font-size: .82rem; width: 100%; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--ls-line); padding: 9px 10px; text-align: left; vertical-align: top; }
.rate-verified, .rate-estimate { border-radius: 999px; display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 8px; }
.rate-verified { background: var(--ls-success-soft); color: var(--ls-success); }
.rate-estimate { background: rgba(var(--mud-palette-warning-rgb), .14); color: var(--ls-warning); }
.spend-segment { display: flex; flex-wrap: wrap; gap: 4px; }
.spend-controls { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.spend-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.spend-tile { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 12px; color: var(--ls-ink); display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; }
a.spend-tile:hover, a.spend-tile:focus-visible { border-color: var(--ls-primary-border); }
.spend-tile span { color: var(--ls-subtle); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.spend-tile strong { font-size: 1.25rem; }
.spend-tile small { color: var(--ls-muted); }
.spend-meter { background: var(--ls-surface-muted); border-radius: 999px; height: 8px; overflow: hidden; }
.spend-meter.small { height: 6px; margin-bottom: 2px; max-width: 120px; }
.spend-meter i { background: var(--ls-primary); display: block; height: 100%; }
.spend-meter.near i { background: var(--ls-warning); }
.spend-meter.over i { background: var(--ls-error); }
.spend-legend { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0 0 12px; padding: 0; }
.spend-legend li { align-items: center; color: var(--ls-muted); display: flex; font-size: .85rem; gap: 6px; }
.spend-legend i { border-radius: 3px; display: inline-block; height: 12px; width: 12px; }
.spend-chart { align-items: flex-end; display: flex; gap: 4px; height: 200px; overflow-x: auto; }
.spend-bar { align-items: center; display: flex; flex: 1 0 18px; flex-direction: column; height: 100%; justify-content: flex-end; }
.spend-stack { border-radius: 4px 4px 0 0; display: flex; flex-direction: column-reverse; min-height: 1px; overflow: hidden; width: 100%; }
.spend-stack i { display: block; min-height: 2px; }
.spend-bar span { color: var(--ls-subtle); font-size: .66rem; margin-top: 4px; white-space: nowrap; }
.spend-color-0 { background: var(--ls-primary); }
.spend-color-1 { background: var(--ls-muted); }
.spend-color-2 { background: var(--ls-success); }
.spend-color-3 { background: var(--ls-accent-strong); }
.admin-table th { color: var(--ls-subtle); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-empty { color: var(--ls-muted); margin: 0; }
.admin-health { list-style: none; margin: 0; padding: 0; }
.admin-health li { align-items: center; border-bottom: 1px solid var(--ls-line); display: flex; justify-content: space-between; padding: 10px 0; }
.admin-health strong.healthy { color: var(--ls-success); }.admin-health strong.degraded { color: var(--ls-accent-strong); }.admin-health strong.unhealthy { color: var(--ls-error); }
.admin-page-heading { margin: 12px 0 24px; }
.admin-flow-map { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 12px; display: block; height: calc(100vh - 220px); min-height: 560px; width: 100%; }
.visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.admin-user-search { display: flex; gap: 10px; margin-bottom: 18px; max-width: 640px; }
.admin-user-search input { background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 10px; color: var(--ls-ink); flex: 1; font: inherit; min-width: 0; padding: 10px 14px; }
.admin-user-search input:focus { border-color: var(--ls-primary); outline: 2px solid var(--ls-primary-soft); }
.admin-user-list { display: grid; gap: 16px; }
.admin-user-head { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 8px; }
.admin-user-head h2 { margin-bottom: 4px; overflow-wrap: anywhere; }
.admin-user-meta { align-items: center; color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .82rem; gap: 4px 14px; margin: 0; }
.admin-workspace { border-top: 1px solid var(--ls-line); margin-top: 12px; padding-top: 12px; }
.admin-workspace h3 { font-size: 1rem; margin: 0 0 8px; }
.admin-workspace h3 small { color: var(--ls-muted); font-size: .78rem; font-weight: 500; margin-left: 8px; }
.admin-table-action { text-align: right !important; white-space: nowrap; }
.admin-chat-text { min-width: 220px; max-width: 360px; white-space: pre-wrap; }
.admin-chat-changes { margin: 0; padding-left: 1.1rem; min-width: 200px; }
.admin-impersonate-form { margin: 0; }
.admin-heading-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-results-bar { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.admin-results-bar .property-count { flex: 1; margin: 0; }
.admin-email-actions { margin: 0; }
.admin-user-title { align-items: flex-start; display: flex; gap: 12px; min-width: 0; }
.admin-user-select { accent-color: var(--ls-primary); flex: none; height: 18px; margin-top: 6px; width: 18px; }
.admin-user-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-email-form { display: grid; gap: 14px; max-width: 760px; }
.admin-email-form label, .admin-email-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.admin-email-form input[type=text], .admin-email-form textarea { background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 10px; box-sizing: border-box; color: var(--ls-ink); font: inherit; padding: 10px 14px; width: 100%; }
.admin-email-form textarea { min-height: 220px; resize: vertical; }
.admin-email-form input:focus, .admin-email-form textarea:focus { border-color: var(--ls-primary); outline: 2px solid var(--ls-primary-soft); }
.admin-email-recipients { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.admin-email-recipients li { background: var(--ls-primary-soft); border-radius: 999px; font-size: .8rem; padding: 4px 10px; }
.admin-email-recipients li.missing { background: var(--ls-accent-light); }
.admin-email-body { max-width: 420px; white-space: pre-wrap; }
.impersonation-banner { align-items: center; background: var(--ls-accent-light); border-bottom: 1px solid var(--ls-accent); color: var(--ls-night); display: flex; gap: 12px; padding: 10px 24px; position: sticky; top: 72px; z-index: 5; }
.impersonation-banner p { display: flex; flex: 1; flex-direction: column; font-size: .88rem; margin: 0; }
.impersonation-banner form { margin: 0; }
.provider-credits-banner { align-items: center; background: var(--ls-error-soft); border-bottom: 1px solid var(--ls-error); color: var(--ls-ink); display: flex; gap: 12px; padding: 10px 24px; }
.provider-credits-banner > .mud-icon-root { color: var(--ls-error); flex: none; }
.provider-credits-banner p { display: flex; flex: 1; flex-direction: column; font-size: .88rem; margin: 0; }
.provider-credits-detail { color: var(--ls-muted); display: block; font-size: .8rem; }
.provider-credits-banner.resumed { background: var(--ls-primary-soft); border-bottom-color: var(--ls-primary); }
.provider-credits-banner.resumed > .mud-icon-root { color: var(--ls-primary); }
@media (max-width: 600px) {
    .admin-user-head { flex-direction: column; }
    .admin-user-actions, .admin-heading-actions { justify-content: flex-start; }
    .admin-page-heading:has(.admin-heading-actions) { align-items: flex-start; flex-direction: column; gap: 14px; }
    .impersonation-banner { align-items: flex-start; flex-wrap: wrap; padding: 10px 16px; top: 64px; }
    .impersonation-banner form { width: 100%; }
    .impersonation-detail { display: none; }
}
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; }.admin-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .admin-hero { align-items: flex-start; flex-direction: column; gap: 16px; }.admin-metrics { grid-template-columns: 1fr 1fr; } }
.photo-gallery-strip { display: flex; flex-flow: row wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery-thumb { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 12px; display: flex; flex: 0 0 160px; flex-direction: column; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; width: 160px; }
.gallery-thumb.is-selected { border-color: var(--ls-primary); box-shadow: 0 0 0 2px var(--ls-primary-soft); }
.gallery-thumb img { aspect-ratio: 4 / 3; background: var(--ls-surface-muted); display: block; object-fit: cover; width: 100%; }
.gallery-thumb-select { align-items: center; background: rgba(255, 255, 255, .92); border-radius: 7px; cursor: pointer; display: inline-flex; left: 6px; padding: 5px; position: absolute; top: 6px; z-index: 2; }
.gallery-thumb-body { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 0; }
.gallery-thumb-room { font-size: .82rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-thumb-source { align-items: center; color: var(--ls-muted); display: inline-flex; font-size: .72rem; gap: 3px; }
.gallery-thumb-source .mud-icon-root { font-size: .9rem; }
.gallery-thumb-actions { align-items: center; display: flex; gap: 2px; margin-top: auto; padding: 0 2px 2px 6px; }
.gallery-place { align-items: center; align-self: flex-start; background: none; border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-primary); cursor: pointer; display: inline-flex; font: inherit; font-size: .72rem; font-weight: 650; gap: 2px; margin-top: 6px; max-width: 100%; padding: 2px 8px 2px 4px; }
.gallery-place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-place .mud-icon-root { flex: none; }
.gallery-place .mud-icon-root { color: var(--ls-accent); font-size: .95rem; }
.gallery-place:hover, .gallery-place:focus-visible { background: var(--ls-primary-soft); border-color: var(--ls-primary); }
.room-photos-status { align-items: center; color: var(--ls-muted); display: flex; font-size: .8rem; gap: 6px; margin-top: 8px; }
.room-photos-status.ready { color: var(--ls-primary); }
.room-photos-status.error { color: var(--ls-error); }
.video-shooting-tip { align-items: flex-start; background: var(--ls-accent-soft); border-radius: 6px; color: var(--ls-ink); display: flex; font-size: .8rem; gap: 6px; margin-top: 8px; padding: 6px 8px; }
.video-shooting-tip .mud-icon-root { color: var(--ls-accent-strong); flex: none; }
.video-room-label { align-items: center; color: var(--ls-muted); display: flex; font-size: .8rem; gap: 6px; min-height: 30px; }
.video-room-label .mud-icon-root { flex: none; }
.storyboard-stop:focus { outline: none; }
.storyboard-stop:focus-visible .stop-marker { outline: 2px solid var(--ls-accent); outline-offset: 2px; }

/* Walkthrough map: a schematic of how the storyboard stops connect */
.walkthrough-map { margin-top: 0; }
.walkthrough-map-header { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.walkthrough-map-header h3 { font-family: var(--ls-font-display); font-size: 1.3rem; font-weight: 600; margin: 0 0 4px; }
.walkthrough-map-legend { color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .78rem; gap: 6px 16px; list-style: none; margin: 4px 0 12px; padding: 0; }
.walkthrough-map-legend li { align-items: center; display: inline-flex; gap: 6px; }
.map-legend-play { align-items: center; background: var(--ls-accent); border-radius: 999px; color: #fff; display: inline-flex; font-size: .55rem; height: 18px; justify-content: center; width: 18px; }
.walkthrough-map-body { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); }
.walkthrough-map-canvas { background: var(--ls-surface-muted); border: 1px solid var(--ls-line); border-radius: 18px; overflow-x: auto; padding: 16px; }
.walkthrough-map-canvas svg { display: block; height: auto; margin: 0 auto; width: 100%; }
.map-level-frame { fill: var(--ls-surface); stroke: var(--ls-line-strong); stroke-dasharray: 2 5; stroke-linecap: round; stroke-width: 1.5; }
.map-level-name { fill: var(--ls-accent-strong); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.map-street line { stroke: var(--ls-line-strong); stroke-dasharray: 10 6; stroke-width: 2; }
.map-street text { fill: var(--ls-subtle); font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.map-edge { fill: none; stroke: var(--ls-primary); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.map-edge.is-assumed { stroke: var(--ls-subtle); stroke-dasharray: 5 5; }
.map-edge.is-wrapped { stroke-dasharray: 1 7; }
.map-edge.is-stairs { stroke: var(--ls-accent); stroke-dasharray: 9 5; }
.map-arrowhead { fill: var(--ls-primary); }
.map-edge-play { cursor: pointer; outline: none; }
.map-edge-play circle { fill: var(--ls-accent); stroke: var(--ls-surface); stroke-width: 2.5; transition: fill .15s ease; }
.map-edge-play path { fill: #fff; }
.map-edge-play:hover circle, .map-edge-play:focus-visible circle { fill: var(--ls-accent-strong); }
.map-space { cursor: pointer; outline: none; }
.map-room { fill: var(--ls-surface); stroke: var(--ls-primary-border); stroke-width: 1.5; transition: fill .15s ease, stroke .15s ease; }
.map-space:hover .map-room { fill: var(--ls-primary-soft); stroke: var(--ls-primary); }
.map-space:focus-visible .map-room { stroke: var(--ls-accent); stroke-width: 3; }
.map-space.is-arrival .map-room { stroke: var(--ls-accent); }
.map-room-step { fill: var(--ls-primary-soft); }
.map-room-step-label { fill: var(--ls-primary); font-size: 11px; font-weight: 750; }
.map-room-name { fill: var(--ls-ink); font-family: var(--ls-font-display); font-size: 15px; font-weight: 600; }
.map-room-meta { fill: var(--ls-muted); font-size: 11px; }
.map-room-stairs circle { fill: var(--ls-accent-soft); stroke: var(--ls-accent); stroke-width: 1; }
.map-room-stairs text { fill: var(--ls-accent-strong); font-size: 12px; font-weight: 750; }
.map-space.is-selected .map-room { fill: var(--ls-primary); stroke: var(--ls-primary); }
.map-space.is-selected .map-room-name, .map-space.is-selected .map-room-step-label { fill: var(--ls-on-night); }
.map-space.is-selected .map-room-meta { fill: var(--ls-on-night-muted); }
.map-space.is-selected .map-room-step { fill: rgba(255, 255, 255, .16); }
.walkthrough-map-detail { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 18px; overflow: hidden; }
.map-detail-media { aspect-ratio: 4 / 3; background-color: var(--ls-surface-muted); background-position: center; background-size: cover; position: relative; }
.map-detail-body { padding: 14px 16px 12px; }
.map-detail-body h4 { font-family: var(--ls-font-display); font-size: 1.2rem; font-weight: 600; margin: 2px 0 4px; }
.map-detail-body .stop-hint { margin-bottom: 10px; }
.map-direction-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.map-direction { align-items: center; background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-ink); cursor: pointer; display: inline-flex; font: inherit; font-size: .8rem; font-weight: 600; gap: 4px; padding: 4px 10px 4px 6px; transition: background .15s ease, border-color .15s ease; }
.map-direction .mud-icon-root { color: var(--ls-accent); font-size: 1.05rem; }
.map-direction:hover, .map-direction:focus-visible { border-color: var(--ls-primary); }
.map-direction:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.map-direction.is-active { background: var(--ls-primary); border-color: var(--ls-primary); color: var(--mud-palette-primary-text); }
.map-direction.is-active .mud-icon-root { color: var(--ls-accent-light); }
.map-direction:disabled { cursor: progress; opacity: .6; }
.map-floor-label { color: var(--ls-muted); font-size: .8rem; font-weight: 600; margin: 0 0 6px; }
.map-floor { padding-left: 10px; }
.map-floor.is-current { border-color: var(--ls-primary); border-style: dashed; }
.map-detail-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.map-move-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.walkthrough-route { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.walkthrough-route li[draggable="true"] { cursor: grab; }
.walkthrough-route li.is-dragging { opacity: .45; }
.walkthrough-route-drag { color: var(--ls-subtle); margin-right: -4px; }
.walkthrough-route-step { align-items: center; background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 12px; color: var(--ls-ink); cursor: pointer; display: inline-flex; font: inherit; font-size: .82rem; gap: 8px; padding: 6px 12px 6px 6px; text-align: left; }
.walkthrough-route-step strong { display: block; font-weight: 650; }
.walkthrough-route-step:hover, .walkthrough-route-step:focus-visible { border-color: var(--ls-primary); }
.walkthrough-route-step.is-selected { background: var(--ls-primary-soft); border-color: var(--ls-primary); }
.walkthrough-route-number { align-items: center; background: var(--ls-primary); border-radius: 999px; color: var(--mud-palette-primary-text); display: inline-flex; flex: none; font-size: .72rem; font-weight: 750; height: 22px; justify-content: center; width: 22px; }
.walkthrough-route-direction { color: var(--ls-muted); display: block; font-size: .74rem; }
.walkthrough-route-direction.is-assumed { font-style: italic; }
.walkthrough-route-narrated { color: var(--ls-accent); margin-left: 2px; }
.map-narration { border-top: 1px solid var(--ls-line); display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; }
.map-narration-toggle { align-items: center; background: var(--ls-accent-soft); border: 1px dashed var(--ls-accent); border-radius: 12px; color: var(--ls-ink); cursor: pointer; display: flex; font: inherit; font-size: .84rem; font-weight: 600; gap: 8px; padding: 8px 10px; text-align: left; width: 100%; }
.map-narration-toggle .mud-icon-root { color: var(--ls-accent-strong); flex: none; }
.map-narration-toggle.has-text { border-style: solid; }
.map-narration-toggle:hover, .map-narration-toggle:focus-visible { border-color: var(--ls-primary); }
.map-narration-toggle:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.map-narration-toggle:disabled { cursor: default; }
.map-narration-toggle-end { margin-left: auto; }
.map-narration-text { color: var(--ls-ink); font-size: .86rem; line-height: 1.45; margin: 0; white-space: pre-line; }
.map-narration-label { font-size: .84rem; font-weight: 650; }
.map-narration-meta { color: var(--ls-muted); font-size: .74rem; }
.map-narration-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.map-narration-status { color: var(--ls-muted); font-size: .76rem; margin: 0; }
.map-narration-status.is-warning { color: var(--ls-accent-strong); font-weight: 600; }
.address-lookup-help { color: var(--ls-muted); display: block; margin: 6px 2px 0; }

/* Property details */
.breadcrumb { align-items: center; color: var(--ls-muted); display: flex; font-size: .85rem; gap: 4px; margin: -16px 0 16px; }
.breadcrumb a { font-weight: 600; }
.breadcrumb span { color: var(--ls-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-hero { background-color: var(--ls-night); background-position: center; background-size: cover; border-radius: 24px; color: var(--ls-on-night); display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; overflow: hidden; padding: 26px 32px 60px; position: relative; }
.property-hero::before { background: linear-gradient(180deg, rgba(var(--ls-night-rgb), .55) 0%, rgba(var(--ls-night-rgb), .05) 38%, rgba(var(--ls-night-rgb), .25) 58%, rgba(var(--ls-night-rgb), .9) 100%); content: ""; inset: 0; position: absolute; }
.property-hero.no-cover { background-image: radial-gradient(circle at 85% 10%, rgba(var(--ls-accent-rgb), .3), transparent 45%), linear-gradient(135deg, var(--ls-night), var(--ls-night-2) 60%, var(--ls-night-3)); min-height: 320px; }
.property-hero.no-cover::before { display: none; }
.property-hero > * { position: relative; z-index: 1; }
.property-hero-top { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.property-hero-actions { display: flex; gap: 8px; }
.hero-status.mud-chip { background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); color: var(--ls-on-night); font-weight: 600; }
.mud-button-root.hero-text-button { color: var(--ls-on-night); }
.mud-button-root.hero-text-button:hover { background: rgba(255, 255, 255, .1); }
.property-hero-empty { align-items: center; align-self: center; color: var(--ls-on-night-muted); display: flex; flex-direction: column; font-size: .85rem; gap: 8px; }
.property-hero-empty .mud-icon-root { color: var(--ls-accent-light); font-size: 44px; }
.property-hero-copy { display: grid; gap: 6px; }
.property-hero-copy h1 { color: #fff; line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero-price { color: var(--ls-accent-light); font-family: var(--ls-font-display); font-size: 1.6rem; font-weight: 600; }
.hero-locality { color: var(--ls-on-night-muted); font-size: 1rem; }
.fact-strip { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 18px; display: grid; grid-template-columns: repeat(6, 1fr); margin: -28px 24px 0; position: relative; z-index: 2; box-shadow: 0 14px 40px rgba(var(--ls-night-rgb), .08); }
.fact-strip > div { border-left: 1px solid var(--ls-line); padding: 16px 20px; }
.fact-strip > div:first-child { border-left: 0; }
.fact-strip dt { color: var(--ls-muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fact-strip dd { color: var(--ls-ink); font-size: 1.15rem; font-weight: 650; margin: 4px 0 0; }
.next-step { align-items: center; background: var(--ls-surface); border: 1px solid var(--ls-line); border-left: 4px solid var(--ls-accent); border-radius: 16px; display: flex; gap: 18px; margin: 24px 0 8px; padding: 18px 22px; }
.next-step > div { display: grid; flex: 1; gap: 2px; }
.next-step .eyebrow { margin-bottom: 2px; }
.next-step strong { font-size: 1.05rem; }
.next-step p { color: var(--ls-muted); margin: 0; }
.next-step-icon { align-items: center; background: var(--ls-accent-soft); border-radius: 12px; color: var(--ls-accent-strong); display: flex; flex: none; height: 44px; justify-content: center; width: 44px; }
.property-tabs { margin-top: 20px; }
.property-tabs .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--ls-line); }
.property-tabs .mud-tab { font-weight: 600; min-width: 0; padding-inline: 18px; text-transform: none; }
.property-tabs .mud-tab.mud-tab-active { color: var(--ls-primary); }
.property-tab-panels { padding-top: 18px; }
.property-tab-panels .mud-paper.mt-6:first-child { margin-top: 0 !important; }
.property-description { line-height: 1.75; max-width: 75ch; white-space: pre-line; }

/* Property tabs as steps: icon, label and a status line (a tick, "Optional", or what to do there). On phones every
   step gets an equal share of the row with a short label, so all five stay visible and the active one never scrolls
   out of view. */
.step-tabs .mud-tab { padding: 10px 14px; }
.step-tab { align-items: center; display: flex; gap: 10px; text-align: left; }
.step-tab-icon { align-items: center; display: flex; position: relative; }
.step-tab-tick { align-items: center; background: var(--mud-palette-success); border: 2px solid var(--ls-surface); border-radius: 50%; color: #fff; display: flex; height: 16px; justify-content: center; position: absolute; right: -8px; top: -7px; width: 16px; }
.step-tab-tick .mud-icon-root { font-size: 11px; }
.step-tab-text { display: grid; gap: 1px; }
.step-tab-label { font-weight: 650; line-height: 1.2; }
.step-tab-short { display: none; }
.step-tab-summary { color: var(--ls-muted); font-size: .74rem; font-weight: 500; line-height: 1.2; }
.step-tab.is-next .step-tab-summary { color: var(--ls-accent-strong); font-weight: 650; }
.step-tab.is-attention .step-tab-summary { color: var(--mud-palette-error); font-weight: 650; }
.step-tabs .mud-tab.mud-tab-active { background: rgba(var(--ls-primary-rgb), .08); border-radius: 12px 12px 0 0; box-shadow: inset 0 -3px 0 var(--ls-primary); }
@media (max-width: 760px) {
    .step-tabs .mud-tabs-tabbar-wrapper { width: 100%; }
    .step-tabs .mud-tabs-scroll-button { display: none; }
    .step-tabs .mud-tab { flex: 1 1 0; min-width: 0 !important; padding: 8px 2px; }
    .step-tab { flex-direction: column; gap: 4px; text-align: center; }
    .step-tab-long { display: none; }
    .step-tab-short { display: inline; font-size: .78rem; }
    .step-tab-summary { display: none; }
    .step-tab.is-optional .step-tab-summary { display: block; font-size: .62rem; }
    .property-tabs .mud-tab .step-tab-icon .mud-icon-root { display: inline-block; }
    .step-tab-tick .mud-icon-root { display: inline-block !important; }
}

/* Step bar: the tabs sit in one rounded bar, closed by the next step's button. It replaces the separate Next step
   card, so one row says what is done and what to do next. On phones the button drops to its own full-width row. */
.step-tabs .mud-tabs-tabbar { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 16px; padding: 6px; }
.step-tabs .mud-tabs-tabbar-inner { align-items: center; }
.step-tabs .mud-tab.mud-tab-active { border-radius: 12px; }
.step-bar-action { flex: none; margin-left: auto; padding: 0 6px 0 10px; }
.step-bar-action .mud-button-root { border-radius: 10px; white-space: nowrap; }
@media (max-width: 760px) {
    .step-tabs .mud-tabs-tabbar { padding: 4px 2px; }
    .step-tabs .mud-tabs-tabbar-inner { flex-wrap: wrap; }
    .step-tabs .mud-tabs-tabbar-content { flex: 1 0 100%; min-width: 0; }
    .step-tabs .mud-tabs-tabbar-wrapper > * { flex: 1 1 0; min-width: 0; }
    .step-tabs .mud-tabs-tabbar-wrapper > * > .mud-tab { width: 100%; }
    .step-tabs .mud-tabs-header-after { flex: 1 0 100%; }
    .step-bar-action { margin: 6px 0 0; padding: 0 4px 2px; width: 100%; }
    .step-bar-action .mud-button-root { width: 100%; }
}

/* The property hero's ⋯ menu (Archive, Start media again) as a white square beside Edit. */
.hero-more .mud-icon-button { background: rgba(255, 255, 255, .92); border-radius: 10px; color: var(--ls-night); height: 38px; width: 38px; }
.hero-more .mud-icon-button:hover { background: #fff; }

/* Phone header: the dark mode switch and Log out live in the menu (bottom, in red) instead of the crowded header. */
.mobile-nav-extra { border-top: 1px solid rgba(255, 255, 255, .12); display: grid; margin-top: 6px; padding-top: 6px; }
.mobile-nav-extra form { display: block; margin: 0; }
.mobile-nav-item { align-items: center; justify-content: flex-start; background: none; border: 0; border-radius: 10px; color: var(--ls-on-night); cursor: pointer; display: flex; font: inherit; font-size: .9rem; gap: 10px; padding: 12px 14px; text-align: left; width: 100%; }
.mobile-nav-item:hover { background: rgba(255, 255, 255, .08); }
.mobile-nav-item:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 2px; }
.mobile-nav-item.is-danger { color: #F2A39D; }
.mobile-nav-item .theme-toggle-sun { display: none; }
:root[data-theme="dark"] .mobile-nav-item .theme-toggle-moon { display: none; }
:root[data-theme="dark"] .mobile-nav-item .theme-toggle-sun { display: inline-block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mobile-nav-item .theme-toggle-moon { display: none; }
    :root:not([data-theme="light"]) .mobile-nav-item .theme-toggle-sun { display: inline-block; }
}
.mobile-nav-extra { display: none; }
@media (max-width: 820px) {
    .header-wide-only { display: none !important; }
    .mobile-nav-extra { display: grid; }
}

/* The signed-in header holds seven links, the dark mode switch, Comments, notifications, the account pill and Log out.
   The pill shows only its icon (the address is in its tooltip and still read by screen readers), link labels give way
   to icons on narrower screens, and the links shrink before the account actions so Log out can never be pushed off
   screen. */
.user-pill { padding: 7px; }
.user-pill span { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.nav-links { min-width: 0; overflow: hidden; }
.account-actions { flex-shrink: 0; }
@media (max-width: 1360px) {
    .nav-links .mud-button-label { font-size: 0; }.nav-links .mud-button-icon-start { margin: 0; }
    .comments-trigger span { display: none; }.comments-trigger { justify-content: center; padding: 0; width: 36px; }
}

@media (max-width: 1050px) {
    .hero-section { gap: 38px; grid-template-columns: 1fr 430px; }
    .nav-links .mud-button-label { font-size: 0; }.nav-links .mud-button-icon-start { margin: 0; }
    /* Below this width the icon-only links no longer fit beside the account actions, so they move into the menu. */
    .nav-links { display: none; }.mobile-nav { display: block; }
    .user-pill span { display: none; }.user-pill { padding: 7px; }.comments-trigger span { display: none; }.comments-trigger { justify-content: center; padding: 0; width: 36px; }
    .account-stage { grid-template-columns: minmax(320px, .8fr) minmax(460px, 1.2fr); }.account-story { padding-inline: 50px; }
}

@media (max-width: 820px) {
    .page-container { padding-top: 32px; }
    .hero-section { grid-template-columns: 1fr; padding-top: 36px; }.hero-copy { max-width: none; }.hero-visual { margin: 0 auto; max-width: 590px; width: 100%; }
    .account-stage { display: block; margin-top: -32px; }.account-story { display: none; }.account-card { margin: 0 auto; padding: 48px 24px; }
    .nav-links { display: none; }.user-pill { display: none; }.mobile-nav { display: block; }
    .page-heading, .workspace-hero { align-items: flex-start; flex-direction: column; gap: 22px; }
    .fact-strip { grid-template-columns: repeat(3, 1fr); margin-inline: 12px; }
    .fact-strip > div:nth-child(4) { border-left: 0; }
    .fact-strip > div:nth-child(n + 4) { border-top: 1px solid var(--ls-line); }
}

@media (max-width: 600px) {
    .storyboard-header { flex-direction: column; gap: 12px; }.storyboard-count { text-align: left; }.storyboard-header-side { align-items: flex-start; }
    .storyboard-stop { gap: 0 12px; grid-template-columns: 28px minmax(0, 1fr); }.storyboard-stop::before { left: 13px; top: 32px; }.stop-marker { height: 28px; width: 28px; font-size: .8rem; }
    .stop-strip { gap: 10px; }.stop-strip > * { flex-basis: 10.5rem; }.is-filled .stop-upload { flex-basis: 6.5rem; }.media-nav { margin: 12px -16px 0; padding: 8px 16px; }.campaign-generate-bar { margin: -16px -16px 12px; padding: 10px 16px; }.campaign-generate-blockers { max-width: none; }
    .photo-gallery { padding: 14px; }.photo-gallery-head { flex-direction: column; }.gallery-upload { width: 100%; }.gallery-thumb { flex: 0 0 calc(50% - 6px); width: calc(50% - 6px); }
    .tour-map-workspace { padding: 14px; }.tour-map-empty { align-items: stretch; grid-template-columns: auto minmax(0, 1fr); padding: 18px; }.tour-map-empty-upload { grid-column: 1 / -1; width: 100%; }.tour-map-pending { align-items: stretch; grid-template-columns: minmax(0, 1fr) auto; }.tour-map-pending .stop-upload { grid-column: 1 / -1; width: 100%; }
    .walkthrough-map-body { grid-template-columns: minmax(0, 1fr); }.walkthrough-map-canvas { padding: 8px; }.next-stop-custom { align-items: stretch; flex-direction: column; }.stop-upload::after { display: none; }
    .map-direction-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.map-direction { border-radius: 10px; justify-content: center; min-height: 40px; }.walkthrough-route-drag { display: none; }
    .app-header .mud-toolbar { min-height: 64px; }.app-content { padding-top: 64px; }.page-container { padding-inline: 18px; }
    .notification-panel, .comments-panel { left: 16px; position: fixed; right: 16px; top: 72px; width: auto; }.notification-toast-region { bottom: 76px; left: 16px; right: 16px; }.notification-toast { width: 100%; }
    .nav-shell { gap: 8px; padding: 0 12px; }.brand-link { gap: 8px; min-width: 0; }.brand-copy strong { font-size: .78rem; line-height: 1.05; max-width: 100px; }.brand-copy small { display: none; }.brand-mark { height: 36px; width: 36px; }.account-actions, .guest-actions { gap: 2px; }.guest-actions .mud-button-root { min-width: auto; padding-inline: 10px; }
    .hero-title { font-size: 3.1rem !important; }.hero-actions { align-items: stretch !important; flex-direction: column; }.hero-actions .mud-button-root { width: 100%; }
    .hero-visual { min-height: 430px; }.hero-photo { inset: 0; }.visual-glow { inset: 0; }.story-card { bottom: 20px; left: 12px; min-width: 250px; }.media-card-float { right: 12px; top: 16px; }
    .feature-section { padding-top: 56px; }.workspace-hero { padding: 30px; }.primary-workspace-card { display: block; }.primary-workspace-card .feature-icon { margin-bottom: 18px; }
    .mud-paper > .d-flex.flex-row.justify-space-between, .property-header { flex-wrap: wrap; gap: 12px; }
    .property-hero { border-radius: 18px; min-height: 300px; padding: 18px 20px 48px; }
    .property-tabs .mud-tab .mud-icon-root { display: none; }
    .property-tabs .mud-tab { padding-inline: 12px; }
    .property-hero-copy h1 { font-size: 2.1rem !important; }
    .hero-price { font-size: 1.3rem; }
    .fact-strip { margin-inline: 8px; }
    .fact-strip > div { padding: 12px 14px; }
    .fact-strip dd { font-size: 1rem; }
    .next-step { align-items: flex-start; flex-direction: column; gap: 12px; }
    .form-columns { grid-template-columns: 1fr; }.account-card { width: 100%; }.usage-heading { align-items: flex-start; flex-direction: column; gap: 10px; }.metric-card .mud-chip { display: none; }
}

/* Property cards (properties list and workspace) */
.property-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.property-toolbar .property-search { flex: 1 1 280px; max-width: 420px; margin: 0; }
.property-toolbar .property-search .mud-input-outlined { background: var(--ls-surface); }
.property-count { color: var(--ls-subtle); font-size: .82rem; font-weight: 600; margin: 0 0 12px; }
.property-card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.property-card { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.property-card:hover { box-shadow: 0 14px 32px rgba(var(--ls-night-rgb), .1); transform: translateY(-2px); }
.property-card.is-archived .property-card-cover { filter: grayscale(.85); }
.property-card-cover { aspect-ratio: 16 / 10; background: var(--ls-night-2) center / cover no-repeat; display: block; position: relative; }
.property-card-cover.no-cover { align-items: center; background: linear-gradient(135deg, var(--ls-primary-soft), var(--ls-accent-soft)); display: flex; justify-content: center; }
.property-card-cover:focus-visible { outline: 3px solid var(--ls-accent); outline-offset: -3px; }
.property-card-placeholder { align-items: center; color: var(--ls-muted); display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; gap: 6px; }
.property-card-status, .property-card-photos { align-items: center; background: rgba(var(--ls-night-rgb), .78); border-radius: 999px; color: var(--ls-on-night); display: inline-flex; font-size: .72rem; font-weight: 700; gap: 4px; padding: 4px 10px; position: absolute; top: 12px; }
.property-card-status { left: 12px; }.property-card-photos { right: 12px; }.property-card-photos .mud-icon-root { font-size: .95rem; }
.property-card-body { flex: 1; padding: 16px 18px 4px; }
.property-card-price { color: var(--ls-primary); display: block; font-family: var(--ls-font-display); font-size: 1.35rem; font-weight: 650; }
.property-card-body h3 { font-size: 1rem; font-weight: 700; margin: 2px 0 0; }
.property-card-body h3 a { color: var(--ls-ink); text-decoration: none; }.property-card-body h3 a:hover { color: var(--ls-primary); }
.property-card-locality { color: var(--ls-muted); display: block; font-size: .85rem; }
.property-card-facts { color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .8rem; gap: 4px 0; list-style: none; margin: 12px 0 0; padding: 0; }
.property-card-facts li + li::before { color: var(--ls-line-strong); content: "·"; padding: 0 7px; }
.property-card-footer { align-items: center; border-top: 1px solid var(--ls-line); display: flex; gap: 8px; justify-content: space-between; margin-top: 14px; padding: 8px 10px 8px 18px; }
.stage-pill { align-self: flex-start; border-radius: 999px; display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; text-decoration: none; }
a.stage-pill:hover { text-decoration: underline; }
.stage-pill.attention { background: var(--ls-accent-soft); color: var(--ls-accent-strong); }
.stage-pill.progress { background: var(--ls-primary-soft); color: var(--ls-primary); }
.stage-pill.success { background: var(--ls-success-soft); color: var(--ls-success); }
.stage-pill.error { background: var(--ls-error-soft); color: var(--ls-error); }
.stage-pill.muted { background: var(--ls-surface-muted); color: var(--ls-subtle); }

/* Workspace dashboard */
.workspace-metrics { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin: 0 0 24px; }
.workspace-metrics > div { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 16px; padding: 18px 20px; }
.workspace-metrics > div.attention { border-color: var(--ls-accent); box-shadow: inset 4px 0 0 var(--ls-accent); }
.workspace-metrics dt { color: var(--ls-subtle); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workspace-metrics dd { font-family: var(--ls-font-display); font-size: 2rem; font-weight: 600; margin: 4px 0 0; }
.workspace-columns { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); margin-bottom: 32px; }
.section-row { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.section-row h2 { font-weight: 600; }
.attention-card { padding: 24px; }
.attention-list { list-style: none; margin: 0; padding: 0; }
.attention-list li { align-items: center; border-top: 1px solid var(--ls-line); display: flex; gap: 14px; padding: 14px 0; }
.attention-list li:first-child { border-top: 0; padding-top: 4px; }
.attention-thumb { align-items: center; background: var(--ls-night-2) center / cover no-repeat; border-radius: 10px; color: var(--ls-muted); display: flex; flex: 0 0 64px; height: 48px; justify-content: center; }
.attention-thumb.no-cover { background: var(--ls-accent-soft); }
.attention-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.attention-copy > a { color: var(--ls-ink); font-weight: 700; text-decoration: none; }.attention-copy > a:hover { color: var(--ls-primary); }
.attention-copy p { color: var(--ls-muted); font-size: .84rem; line-height: 1.45; margin: 0; }
.attention-clear { align-items: center; color: var(--ls-muted); display: flex; gap: 10px; padding: 8px 0; }
.attention-clear .mud-icon-root { color: var(--ls-success); }
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.plan-card h2 { font-weight: 600; }
.plan-usage { align-items: baseline; display: flex; gap: 8px; }
.plan-usage strong { color: var(--ls-primary); font-family: var(--ls-font-display); font-size: 2rem; font-weight: 600; }
.plan-usage span { color: var(--ls-muted); font-size: .85rem; }
.plan-card .mud-button-root { align-self: flex-start; margin-left: -8px; }
@media (max-width: 960px) {
    .walkthrough-map-body { grid-template-columns: minmax(0, 1fr); }.walkthrough-map-detail { max-width: 520px; }
    .workspace-metrics { grid-template-columns: repeat(2, 1fr); }
    .workspace-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .workspace-metrics { gap: 10px; }
    .workspace-metrics dd { font-size: 1.6rem; }
    .attention-list li { align-items: start; display: grid; gap: 8px 12px; grid-template-columns: 66px minmax(0, 1fr); }
    .attention-thumb { height: 42px; width: 56px; }
    .attention-list li .mud-button-root { grid-column: 2; justify-self: start; }
    .property-toolbar .property-search { max-width: none; }
}

/* Chat beside each finished campaign video */
.video-chat-panel { padding: 12px; }
.video-chat-header { align-items: flex-start; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.video-chat-messages { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; margin-bottom: 10px; }
.video-chat-message { border-radius: 10px; max-width: 92%; padding: 8px 10px; }
.video-chat-message.assistant { align-self: flex-start; background: var(--ls-chat-bubble); }
.video-chat-message.user { align-self: flex-end; background: rgba(226, 192, 141, .35); }
.video-chat-changes { font-size: .82rem; margin: 6px 0; padding-left: 1.1rem; }
.video-chat-confirm { background: rgba(255,255,255,.7); border: 1px solid rgba(20,40,70,.12); border-radius: 8px; margin-top: 8px; padding: 8px 10px; }
.video-chat-confirm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.video-chat-confirmed { display: block; margin-top: 6px; }
.video-chat-input { align-items: flex-start; display: flex; flex-direction: column; gap: 6px; }
.video-chat-input .mud-input-control { width: 100%; }

/* Ask AI window on every signed-in page */
.app-shell:has(.help-chat) .app-content { padding-bottom: 72px; }
/* The toolbar's ⋯ menu opens near the bottom-right corner, so it sits above the Ask AI button (1350). */
.media-toolbar-menu { z-index: 1360 !important; }
.help-chat-launcher { align-items: center; background: var(--ls-night); border: 1px solid rgba(226, 192, 141, .45); border-radius: 999px; bottom: 24px; box-shadow: 0 10px 28px rgba(2, 6, 23, .3); color: var(--ls-on-night); cursor: pointer; display: flex; font: inherit; font-size: .9rem; font-weight: 650; gap: 8px; padding: 12px 18px; position: fixed; right: 24px; z-index: 1350; }
.help-chat-launcher .mud-icon-root { color: var(--ls-accent-light); }
.help-chat-launcher:hover { background: var(--ls-night-2); }
.help-chat-launcher:focus-visible { outline: 2px solid var(--ls-accent-light); outline-offset: 3px; }
.help-chat-window { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 16px; bottom: 24px; box-shadow: 0 22px 50px rgba(2, 6, 23, .32); color: var(--ls-ink); display: flex; flex-direction: column; max-height: min(680px, calc(100vh - 48px)); position: fixed; right: 24px; width: 420px; z-index: 1350; }
.help-chat-header { align-items: flex-start; background: var(--ls-night); border-radius: 15px 15px 0 0; color: var(--ls-on-night); display: flex; gap: 12px; justify-content: space-between; padding: 14px 16px; }
.help-chat-header strong { align-items: center; display: flex; font-size: 1rem; gap: 6px; }
.help-chat-header strong .mud-icon-root { color: var(--ls-accent-light); }
.help-chat-header small { color: var(--ls-on-night-muted); display: block; font-size: .74rem; margin-top: 2px; }
.help-chat-header .notification-text-button { color: var(--ls-accent-light); }
.help-chat-topic { align-items: center; border-bottom: 1px solid var(--ls-line); display: flex; gap: 10px; padding: 10px 16px; }
.help-chat-topic label { color: var(--ls-muted); flex: none; font-size: .8rem; font-weight: 650; }
.help-chat-select { background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 10px; color: var(--ls-ink); flex: 1; font: inherit; font-size: .88rem; min-width: 0; padding: 8px 10px; }
.help-chat-select:focus { border-color: var(--ls-primary); box-shadow: 0 0 0 3px rgba(var(--ls-primary-rgb), .12); outline: none; }
.help-chat-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; padding: 12px 16px 14px; }
.help-chat-body .video-chat-panel { padding: 0; }
.help-chat-body .video-chat-messages, .help-chat-messages { max-height: none; min-height: 180px; }
.help-chat-text .mud-typography { white-space: pre-line; }
.help-chat-videos { background: var(--ls-accent-soft); border: 1px solid rgba(var(--ls-accent-rgb), .3); border-radius: 10px; display: grid; gap: 8px; padding: 10px 12px; }
.help-chat-guides { border: 1px solid var(--ls-line); border-radius: 10px; margin: 8px 0; padding: 8px 12px; }
.help-chat-video-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.help-chat-actions { align-items: center; display: flex; justify-content: space-between; width: 100%; }
.video-chat-suggestions { display: flex; flex-wrap: wrap; gap: 2px; }
@media (max-width: 640px) {
    /* Icon only on phones, so the button no longer covers card text. Its aria-label still says "Ask AI for help". */
    .help-chat-launcher { bottom: 16px; height: 48px; justify-content: center; padding: 0; right: 16px; width: 48px; }
    .help-chat-launcher span { display: none; }
    .help-chat-window { border-radius: 0; bottom: 0; left: 0; max-height: 100dvh; right: 0; top: 0; width: auto; }
    .help-chat-header { border-radius: 0; }
}

/* Articles: public reading pages. Body copy is held to a readable measure; the cost chart is plain HTML bars. */
.article-shelf { margin-bottom: 44px; }
.article-video { margin: 24px 0 28px; }
.article-video video { aspect-ratio: 9 / 16; background: var(--ls-night); border: 1px solid var(--ls-line); border-radius: 18px; display: block; height: auto; max-width: 100%; width: 360px; }
.article-video.is-landscape video { aspect-ratio: 16 / 9; width: 640px; }
.article-video figcaption { color: var(--ls-muted); font-size: .9rem; margin-top: 10px; }
.article-shelf-title { border-bottom: 1px solid var(--ls-line); color: var(--ls-ink); font-family: var(--ls-font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 18px; padding-bottom: 12px; }
.article-shelf-empty { color: var(--ls-muted); margin: 0; }
.article-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); list-style: none; margin: 0; padding: 0; }
.article-card { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; position: relative; transition: border-color .2s ease, box-shadow .2s ease; }
.article-card:hover, .article-card:focus-within { border-color: var(--ls-primary-border); box-shadow: 0 14px 34px rgba(var(--ls-night-rgb), .08); }
.article-card.archived { background: var(--ls-surface-muted); }
.article-card-meta { align-items: center; color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .8rem; gap: 6px; }
.article-archived-tag { background: var(--ls-accent-soft); border-radius: 999px; color: var(--ls-accent-strong); font-size: .7rem; font-weight: 700; letter-spacing: .06em; margin-left: auto; padding: 3px 10px; text-transform: uppercase; }
.article-card-title { font-family: var(--ls-font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 0; }
.article-card-title a { color: var(--ls-ink); font-weight: inherit; }
/* The whole card is clickable through the title link. */
.article-card-title a::after { content: ""; inset: 0; position: absolute; }
.article-card-title a:focus-visible { outline: none; }
.article-card:has(.article-card-title a:focus-visible) { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.article-card-summary { color: var(--ls-muted); font-size: .95rem; line-height: 1.6; margin: 0; }
.article-topics { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 6px 0 0; }
.article-topics li { background: var(--ls-primary-soft); border-radius: 999px; color: var(--ls-primary); font-size: .74rem; font-weight: 650; padding: 4px 10px; }

.article-page { margin: 0 auto; max-width: 760px; }
.article-breadcrumb { color: var(--ls-muted); display: flex; font-size: .85rem; gap: 8px; margin-bottom: 26px; }
.article-header { border-bottom: 1px solid var(--ls-line); margin-bottom: 34px; padding-bottom: 28px; }
.article-title { color: var(--ls-ink); font-family: var(--ls-font-display); font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 16px; }
.article-dek { color: var(--ls-muted); font-size: 1.12rem; line-height: 1.6; margin: 0 0 18px; }
.article-byline { color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .85rem; gap: 6px; }
.article-byline > span:first-child { color: var(--ls-ink); font-weight: 650; }
.article-archive-note { background: var(--ls-accent-soft); border-radius: 12px; color: var(--ls-ink); font-size: .9rem; margin: 20px 0 0; padding: 12px 16px; }
.article-body { color: var(--ls-ink); font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { font-family: var(--ls-font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 44px 0 12px; scroll-margin-top: 96px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 8px; }
.article-body h3 { font-family: var(--ls-font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 32px 0 10px; scroll-margin-top: 96px; }
.article-body .article-examples { background: var(--ls-surface-muted); border: 1px solid var(--ls-line); border-radius: 14px; list-style: none; padding: 14px 18px; }
.article-body .article-examples li { margin-bottom: 6px; }
.article-body .article-examples li:last-child { margin-bottom: 0; }
.article-body li::marker { color: var(--ls-accent); }
.article-body a { text-decoration: underline; text-decoration-color: var(--ls-primary-border); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-lede { font-size: 1.15rem; }
.article-note { color: var(--ls-muted); font-size: .88rem; line-height: 1.6; }
.article-footer { border-top: 1px solid var(--ls-line); margin-top: 44px; padding-top: 22px; }

.cost-chart { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 18px; margin: 26px 0; padding: 24px; }
.cost-chart-caption { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.cost-chart-legend { color: var(--ls-muted); display: flex; flex-wrap: wrap; font-size: .82rem; gap: 6px 18px; list-style: none; margin: 0 0 18px !important; padding: 0 !important; }
.cost-chart-legend li { align-items: center; display: flex; gap: 8px; margin: 0; }
.cost-chart-swatch { border-radius: 3px; display: inline-block; height: 12px; width: 12px; }
.cost-chart-swatch.separate, .cost-chart-row.separate .cost-chart-bar { background: var(--ls-primary); }
.cost-chart-swatch.studio, .cost-chart-row.studio .cost-chart-bar { background: var(--ls-accent); }
.cost-chart-rows { display: grid; gap: 2px; list-style: none; margin: 0 !important; padding: 0 !important; }
.cost-chart-row { align-items: center; border-radius: 8px; display: grid; gap: 14px; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); margin: 0 !important; padding: 6px 8px; }
.cost-chart-row:hover { background: var(--ls-surface-muted); }
.cost-chart-row.total { border-top: 1px solid var(--ls-line); border-radius: 0; margin-top: 6px !important; padding-top: 12px; }
.cost-chart-row.total .cost-chart-label, .cost-chart-row.total .cost-chart-value, .cost-chart-row.studio .cost-chart-label { font-weight: 700; }
.cost-chart-label { color: var(--ls-ink); font-size: .88rem; line-height: 1.3; }
.cost-chart-track { align-items: center; display: flex; gap: 10px; min-width: 0; }
.cost-chart-bar { border-radius: 0 4px 4px 0; display: block; flex: none; height: 18px; min-width: 4px; }
.cost-chart-value { color: var(--ls-ink); font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.article-table-wrap { margin: 0 0 14px; overflow-x: auto; }
.article-table { border-collapse: collapse; font-size: .92rem; line-height: 1.45; width: 100%; }
.article-table caption { caption-side: top; font-weight: 700; padding-bottom: 10px; text-align: left; }
.article-table th, .article-table td { border-bottom: 1px solid var(--ls-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-table thead th { color: var(--ls-muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.article-table tbody th { font-weight: 650; }
.article-table .numeric { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.article-table tr.total th, .article-table tr.total td { border-top: 2px solid var(--ls-line-strong); font-weight: 700; }
.article-table tr.ours { background: var(--ls-accent-soft); }

.article-cta { align-items: center; background: var(--ls-night); border-radius: 18px; color: var(--ls-on-night); display: flex; gap: 24px; justify-content: space-between; margin: 40px 0; padding: 28px 30px; }
.article-cta h2 { color: var(--ls-on-night); margin: 0 0 6px !important; }
.article-cta p { color: var(--ls-on-night-muted); font-size: .98rem; margin: 0 !important; }
.article-cta .mud-button-root { flex: none; }
.article-sources { border-top: 1px solid var(--ls-line); font-size: .9rem; margin-top: 40px; }
.article-sources h2 { font-size: 1.25rem !important; margin-top: 28px !important; }
.article-sources li { color: var(--ls-muted); }
.article-shot { margin: 22px 0 28px; }
.article-shot img { background: var(--ls-surface-muted); border: 1px solid var(--ls-line); border-radius: 14px; box-shadow: 0 10px 28px rgba(var(--ls-night-rgb), .08); display: block; height: auto; max-width: 100%; }
.article-shot figcaption { color: var(--ls-muted); font-size: .88rem; line-height: 1.55; margin-top: 10px; }
.article-toc { background: var(--ls-surface-muted); border: 1px solid var(--ls-line); border-radius: 14px; margin: 0 0 30px; padding: 18px 22px; }
.article-toc h2 { font-size: 1.05rem !important; margin: 0 0 8px !important; }
.article-body .article-toc ol { columns: 2 220px; font-size: .95rem; margin: 0; }
.article-body .article-toc li { break-inside: avoid; margin-bottom: 4px; }
.article-body .article-flow { counter-reset: flow; display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 18px 0 26px; padding: 0; }
.article-body .article-flow li { background: var(--ls-surface); border: 1px solid var(--ls-line); border-left: 4px solid var(--ls-accent); border-radius: 10px; counter-increment: flow; font-size: .92rem; line-height: 1.35; margin: 0; padding: 10px 14px; position: relative; }
.article-body .article-flow li::before { color: var(--ls-accent-strong); content: counter(flow); font-family: var(--ls-font-display); font-weight: 700; margin-right: 8px; }
.article-body .article-flow li:not(:last-child)::after { color: var(--ls-muted); content: "\2192"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); }
.article-body .article-flow li strong { display: block; }
.article-body .article-flow.loop li:last-child::after { color: var(--ls-muted); content: "\21BA"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); }
.article-callout { background: var(--ls-accent-soft); border-left: 4px solid var(--ls-accent); border-radius: 12px; margin: 22px 0 26px; padding: 16px 20px; }
.article-callout > :last-child { margin-bottom: 0 !important; }
.article-body .article-checklist { list-style: none; padding-left: 0; }
.article-body .article-checklist li { padding-left: 30px; position: relative; }
.article-body .article-checklist li::before { color: var(--ls-success, var(--ls-primary)); content: "\2713"; font-weight: 700; left: 4px; position: absolute; }
@media (max-width: 600px) {
    .article-body .article-flow { flex-direction: column; gap: 22px; }
    .article-body .article-flow li:not(:last-child)::after { content: "\2193"; left: 22px; right: auto; top: auto; bottom: -21px; transform: none; }
    .article-body .article-flow.loop li:last-child::after { content: none; }
}
.article-pill { background: var(--ls-primary-soft); border-radius: 999px; color: var(--ls-primary); font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: 2px 9px; white-space: nowrap; }

@media (max-width: 600px) {
    .article-card { padding: 20px; }
    .article-body { font-size: 1rem; }
    .cost-chart { margin-inline: -4px; padding: 18px 14px; }
    .cost-chart-row { gap: 4px; grid-template-columns: minmax(0, 1fr); }
    .article-cta { align-items: stretch; flex-direction: column; padding: 24px 20px; }
    .guest-actions .nav-articles .mud-button-label { font-size: 0; }
    .guest-actions .nav-articles .mud-button-icon-start { margin: 0; }
}
/* Public listing pages credit the studio, which also gives every published listing a link back to the home page. */
/* Public listing page: the agent's brokerage, license and Equal Housing details. */
.listing-disclosure { align-items: center; border-top: 1px solid var(--ls-line); display: flex; gap: 14px; margin-top: 32px; padding-top: 20px; }
.listing-disclosure p { color: var(--ls-ink); font-size: .9rem; margin: 0; }
.listing-disclosure p + p { color: var(--ls-muted); }
.listing-disclosure-logo { align-items: center; background: var(--ls-night-2); border-radius: 8px; display: inline-flex; flex: none; height: 44px; justify-content: center; width: 44px; }
.listing-disclosure-logo img { display: block; height: 28px; width: 28px; }
.listing-credit { color: var(--mud-palette-text-secondary); font-size: .85rem; margin: 32px 0 8px; text-align: center; }
.listing-credit a { color: inherit; font-weight: 600; }

/* Client approval page and the agent's approval panel. */
.client-review-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.client-review-card { display: flex; flex-direction: column; gap: 8px; }
.client-review-card-head { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.client-review-video { aspect-ratio: 16 / 9; background: #000; border-radius: 8px; width: 100%; }
.client-review-video.vertical { aspect-ratio: 9 / 16; margin: 0 auto; max-height: 70vh; width: auto; max-width: 100%; }
.client-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.client-list { list-style: none; margin: 0; padding: 0; }
.client-list li { align-items: center; border-bottom: 1px solid var(--mud-palette-divider); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 10px 0; }
.client-list li:last-child { border-bottom: 0; }
.client-approval-table { border-collapse: collapse; width: 100%; }
.client-approval-table th, .client-approval-table td { border-bottom: 1px solid var(--mud-palette-divider); padding: 8px; text-align: left; vertical-align: top; }
.client-approval-note { color: var(--mud-palette-text-secondary); display: block; font-size: .85rem; margin-top: 2px; }

.site-footer { align-items: center; border-top: 1px solid var(--mud-palette-divider); color: var(--mud-palette-text-secondary); display: flex; flex-wrap: wrap; font-size: .85rem; gap: 12px 24px; justify-content: space-between; margin: 0 auto; max-width: 1280px; padding: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--mud-palette-primary); text-decoration: underline; }
.billing-plan-grid .plan-card.featured { border-color: var(--ls-accent); border-width: 2px; }
.billing-plan-grid .plan-card .plan-badge { position: static; align-self: flex-start; margin: 0 0 8px; }
.billing-plan-grid .plan-feature-missing { color: var(--ls-muted); }
/* Five cards in one row on wide screens when the listing pass is on sale. */
@media (min-width: 1280px) { .billing-plan-grid.has-listing-pass > .mud-grid-item { flex-basis: 20%; max-width: 20%; } .billing-plan-grid.has-listing-pass .plan-card { padding: 20px; } .billing-plan-grid.has-listing-pass .plan-badge { height: auto; white-space: normal; padding: 4px 10px; } .billing-plan-grid.has-listing-pass .plan-badge .mud-chip-content { white-space: normal; } .billing-plan-grid.has-listing-pass .plan-features .mud-list-item-icon { min-width: 32px; } }
.billing-plan-grid .plan-feature-missing .mud-list-item-icon .mud-icon-root { color: var(--ls-muted); }
.plan-upgrade-note { color: var(--ls-accent-strong); margin-top: 2px; }
.billing-interval-toggle { background: var(--ls-accent-soft); border-radius: 999px; display: inline-flex; gap: 4px; margin: 0 0 20px; padding: 4px; }
.billing-interval-toggle a { border-radius: 999px; color: var(--ls-ink); font-weight: 600; padding: 8px 18px; text-decoration: none; }
.billing-interval-toggle a.is-active { background: var(--mud-palette-surface); box-shadow: 0 2px 8px rgba(0,0,0,.08); color: var(--ls-primary); }
.billing-interval-save { color: var(--ls-accent-strong); font-size: .78rem; font-weight: 700; margin-left: 4px; }
.plan-annual-note { color: var(--ls-muted); display: block; }
/* A plan-locked feature stays visible but greyed out; only its Unlock button and prompt keep full strength. */
.is-plan-locked > :not(.plan-unlock-row), .is-plan-locked .mud-checkbox, .is-plan-locked > .plan-unlock-row > :not(.plan-unlock-button):not(.plan-unlock-prompt) { opacity: .55; }
.is-plan-locked .mud-checkbox, .is-plan-locked video { pointer-events: none; }
.plan-unlock-row { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0; position: relative; }
.plan-unlock-row > h3 { margin: 0; }
.plan-unlock-prompt { background: var(--mud-palette-surface); border: 1px solid var(--ls-accent); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); flex-basis: 100%; padding: 16px; }
.plan-unlock-prompt p { color: var(--ls-muted); font-size: .88rem; margin: 4px 0 12px; }
.plan-unlock-prompt small { color: var(--ls-muted); display: block; margin-top: 10px; }
.plan-unlock-head { align-items: center; display: flex; justify-content: space-between; }
.plan-unlock-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.plan-unlock-option { border: 1px solid var(--ls-line); border-radius: 12px; color: var(--ls-ink); display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; }
.plan-unlock-option:hover { border-color: var(--ls-primary); }
.plan-unlock-option.is-featured { border: 2px solid var(--ls-accent); }
.plan-unlock-badge { color: var(--ls-accent-strong); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.plan-unlock-price { font-family: var(--ls-font-display); font-size: 1.25rem; font-weight: 600; }
.plan-unlock-option > span:not(.plan-unlock-badge):not(.plan-unlock-price):not(.plan-unlock-cta) { color: var(--ls-muted); font-size: .82rem; }
.plan-unlock-cta { color: var(--ls-primary); font-weight: 700; margin-top: 6px; }
.tester-limit-form { align-items: center; display: inline-flex; gap: 6px; }
.tester-limit-form label { color: var(--ls-muted); font-size: .8rem; }
.tester-limit-form input[type=number] { border: 1px solid var(--ls-line); border-radius: 8px; padding: 4px 6px; width: 72px; }

/* Public Pricing page (plans come from the same catalog as Billing), samples and the sign-up terms note. */
.pricing-notes { margin-top: 28px; padding: 24px 28px; }
.pricing-notes h2 { margin: 0 0 8px; }
.pricing-notes h2 + ul { margin-bottom: 18px; }
.pricing-notes ul { color: var(--mud-palette-text-secondary); margin: 0; padding-left: 20px; }
.pricing-notes li { margin: 4px 0; }
.pricing-deliverables { color: var(--mud-palette-text-primary); font-weight: 600; margin: 0 0 12px; padding-left: 22px; }
.pricing-samples { margin-top: 48px; }
.pricing-sample-videos { display: flex; flex-wrap: wrap; gap: 24px; }
.pricing-samples-note { color: var(--mud-palette-text-secondary); margin: 4px 0 16px; }
.pricing-caption-looks { display: grid; gap: 16px; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.pricing-caption-looks img { aspect-ratio: 9 / 16; border: 1px solid var(--ls-line); border-radius: 14px; display: block; height: auto; object-fit: cover; width: 100%; }
.pricing-caption-looks span { color: var(--mud-palette-text-secondary); display: block; font-size: .82rem; margin-top: 8px; }
.pricing-caption-looks strong { color: var(--mud-palette-text-primary); display: block; }
.pricing-legal, .account-terms { color: var(--mud-palette-text-secondary); font-size: .82rem; }
.pricing-legal { margin: 32px 0 0; }
.account-terms { margin: 14px 0 0; text-align: center; }
.pricing-legal a, .account-terms a { color: var(--mud-palette-primary); }
.terms-page h2 { margin-top: 8px; }
@media (max-width: 1100px) { .pricing-caption-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .pricing-caption-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guest-actions .nav-articles { display: none; }
}

/* Founding Agent beta sign-up (/founding-agents) */
.founding-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.founding-offer, .founding-form-card { border: 1px solid var(--ls-line); border-radius: 18px !important; padding: 30px; }
.founding-offer { background: var(--ls-surface-muted) !important; position: sticky; top: 90px; }
.founding-offer h2 { font-weight: 650; margin-bottom: 8px; }
.founding-list { display: grid; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.founding-list li { line-height: 1.5; padding-left: 20px; position: relative; }
.founding-list li::before { background: var(--ls-accent); border-radius: 50%; content: ""; height: 8px; left: 0; position: absolute; top: .55em; width: 8px; }
.founding-note { color: var(--ls-muted) !important; line-height: 1.55 !important; margin-top: 10px !important; }
.founding-form-card h2 { font-weight: 650; }
.founding-textarea { background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 10px; padding: 11px 13px; resize: vertical; }
.founding-textarea:focus { border-color: var(--ls-primary); box-shadow: 0 0 0 3px rgba(var(--ls-primary-rgb), .12); }
.founding-interests { border: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; }
.founding-interests legend { color: var(--ls-ink); font-size: .78rem; font-weight: 750; margin-bottom: 8px; }
.founding-agree { color: var(--ls-ink); font-weight: 600; }
.founding-website { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.founding-thanks { display: grid; gap: 10px; justify-items: start; padding: 12px 0; }
.founding-thanks p { color: var(--ls-muted); }
@media (max-width: 900px) {
    .founding-layout { grid-template-columns: 1fr; }
    .founding-offer { order: 2; position: static; }
    .founding-interests { grid-template-columns: 1fr; }
}

/* Admin: Founding Agent applications */
.founding-admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.founding-admin-filters a { border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-ink); font-size: .8rem; padding: 6px 12px; text-decoration: none; }
.founding-admin-filters a.is-active { background: var(--ls-primary); border-color: var(--ls-primary); color: #fff; }
.founding-admin-list { display: grid; gap: 14px; }
.founding-admin-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.founding-admin-head h2 { margin-bottom: 2px !important; }
.founding-admin-facts { display: grid; gap: 10px 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 14px 0; }
.founding-admin-facts dt { color: var(--ls-subtle); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.founding-admin-facts dd { font-size: .86rem; margin: 2px 0 0; }
.founding-admin-wide { grid-column: 1 / -1; }
.founding-admin-actions { align-items: center; border-top: 1px solid var(--ls-line); display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 12px; }
.founding-admin-form { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.founding-admin-form input { background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 8px; color: var(--ls-ink); font: inherit; font-size: .82rem; padding: 7px 10px; }
.founding-admin-form input[name="note"] { min-width: 220px; }
.founding-admin-form label { color: var(--ls-muted); font-size: .78rem; }
.founding-admin-limit { width: 70px; }
/* Team plan seats on Billing (TeamBillingV1). */
.team-seats-input { width: 96px; padding: 8px 10px; border: 1px solid var(--ls-line); border-radius: 8px; background: var(--ls-surface, transparent); color: inherit; font: inherit; }
/* Touch screens: buttons, icon buttons, switches and tick boxes are at least 44 px in each direction, the size a thumb
   needs. Only where the pointer is coarse, so the denser desktop layout is unchanged. */
@media (pointer: coarse) {
    .mud-button-root:not(.mud-icon-button) { min-height: 44px; }
    .mud-icon-button { min-height: 44px; min-width: 44px; }
    .mud-switch, .mud-checkbox, .mud-radio { min-height: 44px; }
    .mud-switch .mud-switch-base, .mud-checkbox .mud-icon-button, .mud-radio .mud-icon-button { min-height: 44px; min-width: 44px; }
    /* The header's own icon buttons and the Media tab's own controls are not MudBlazor buttons. */
    .theme-toggle, .print-button, .comments-trigger, .notification-trigger { min-height: 44px; min-width: 44px; }
    .photo-fix-button, .map-narration-toggle, .walkthrough-route-step, .stop-suggestion { min-height: 44px; }
    .media-nav button, [role="tab"] { min-height: 44px; }
}

/* Walk-through clip chat (WalkthroughClipChatV1): the clip above its chat. */
.clip-chat { display: flex; flex-direction: column; gap: 12px; }
.clip-chat-video { aspect-ratio: 16 / 9; background: var(--mud-palette-background-gray); border-radius: 8px; max-height: 320px; object-fit: contain; width: 100%; }

/* Landing page pricing */
.home-pricing .home-pricing-intro { color: var(--ls-muted); margin-top: 14px; }
.home-plan-grid .plan-card { height: 100%; }
.home-plan-grid .plan-card.featured { border-color: var(--ls-accent); border-width: 2px; }
.home-plan-grid .plan-card .plan-badge { position: static; align-self: flex-start; margin: 0 0 8px; }
.premium-panel { background: rgba(var(--ls-primary-rgb), .04); border: 1px solid var(--ls-primary-border); border-radius: 18px !important; margin-top: 28px; padding: 32px; }
.premium-panel h3 { font-weight: 650; letter-spacing: -.02em; }
.premium-panel .premium-subline { color: var(--ls-muted); margin: 8px 0 22px; }
.premium-tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 20px; padding: 0; }
.premium-tiles li { background: var(--mud-palette-surface); border: 1px solid var(--ls-line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.premium-tiles li span { color: var(--ls-muted); font-size: .9rem; line-height: 1.5; }
.premium-tiles li b { color: inherit; font-weight: 700; }
.premium-note { color: var(--ls-muted); font-size: .9rem; margin: 0 0 18px; }
.premium-actions { flex-wrap: wrap; }
@media (max-width: 1100px) { .premium-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .premium-panel { padding: 22px 16px; } .premium-tiles { grid-template-columns: 1fr; } }

/* AI lifestyle scenes (LifestyleScenesV1): before/after compare of a listing photo and its AI scene. */
.lifestyle-scenes { border: 1px solid var(--ls-line); border-radius: 16px; display: grid; gap: 14px; margin-top: 18px; padding: 18px; }
.lifestyle-head h3 { align-items: center; display: flex; font-family: var(--ls-font-display); font-size: 1.1rem; font-weight: 600; gap: 8px; margin: 0 0 4px; }
.lifestyle-copy, .lifestyle-hint { color: var(--ls-muted); font-size: .8rem; line-height: 1.45; margin: 0; max-width: 72ch; }
.lifestyle-hint { font-size: .76rem; }
.lifestyle-create { background: var(--ls-surface-muted); border-radius: 12px; display: grid; gap: 10px; padding: 14px; }
.lifestyle-create .mud-checkbox .mud-typography { font-size: .78rem; }
.lifestyle-step { display: grid; gap: 6px; }
.lifestyle-step-label { color: var(--ls-ink); font-size: .78rem; font-weight: 700; }
.lifestyle-photo-picker { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.lifestyle-photo { background: none; border: 2px solid transparent; border-radius: 10px; cursor: pointer; flex: 0 0 auto; padding: 0; }
.lifestyle-photo img { border-radius: 8px; display: block; height: 64px; object-fit: cover; width: 96px; }
.lifestyle-photo.is-active { border-color: var(--ls-accent); box-shadow: 0 0 0 2px var(--ls-accent-soft); }
.lifestyle-photo:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.lifestyle-style-picker { flex-wrap: wrap; }
.lifestyle-actions, .lifestyle-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lifestyle-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); list-style: none; margin: 0; padding: 0; }
.lifestyle-card { background: var(--ls-surface); border: 1px solid var(--ls-line); border-radius: 14px; display: grid; gap: 8px; overflow: hidden; padding-bottom: 10px; }
.lifestyle-card-body { display: grid; gap: 2px; padding: 0 12px; }
.lifestyle-card-body strong { color: var(--ls-ink); font-size: .9rem; }
.lifestyle-card-body small { color: var(--ls-muted); font-size: .74rem; }
.lifestyle-card-actions { padding: 0 12px; }
.lifestyle-compare { aspect-ratio: 3 / 2; background: var(--ls-surface-muted); overflow: hidden; position: relative; user-select: none; }
.lifestyle-compare img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.lifestyle-compare .lifestyle-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.lifestyle-compare.is-single .lifestyle-after { clip-path: none; }
.lifestyle-divider { align-items: center; background: var(--ls-accent); border-radius: 999px; box-shadow: 0 1px 6px rgb(0 0 0 / .35); color: var(--ls-night); display: flex; height: 32px; justify-content: center; left: var(--split, 50%); pointer-events: none; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 32px; }
.lifestyle-divider::before { background: var(--ls-accent); content: ""; height: 2000px; left: 50%; position: absolute; top: -1000px; transform: translateX(-50%); width: 2px; z-index: -1; }
.lifestyle-range { appearance: none; background: transparent; cursor: ew-resize; height: 100%; inset: 0; margin: 0; opacity: 0; position: absolute; width: 100%; }
.lifestyle-range:focus-visible { opacity: .01; }
.lifestyle-compare:has(.lifestyle-range:focus-visible) .lifestyle-divider { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.lifestyle-tag { background: rgba(var(--ls-night-rgb), .78); border-radius: 999px; color: var(--ls-on-night); font-size: .66rem; font-weight: 750; letter-spacing: .08em; padding: 3px 9px; pointer-events: none; position: absolute; text-transform: uppercase; top: 10px; }
.lifestyle-tag.is-before { left: 10px; }
.lifestyle-tag.is-after { background: var(--ls-accent); color: var(--ls-night); right: 10px; }
.lifestyle-placeholder { align-items: center; aspect-ratio: 3 / 2; background: var(--ls-surface-muted); color: var(--ls-muted); display: flex; flex-direction: column; font-size: .8rem; gap: 8px; justify-content: center; padding: 16px; text-align: center; }

/* Video cover (VideoCoverV1): cover templates drawn over the listing's own photo, on the Media tab */
.video-cover-header { align-items: flex-start; display: flex; gap: 14px; }
.video-cover-icon { color: var(--ls-accent-strong); flex: none; margin-top: 2px; }
.video-cover-intro { color: var(--ls-muted); margin-top: 6px; max-width: 720px; }
.video-cover-templates { display: grid; gap: 16px; grid-auto-columns: minmax(200px, 230px); grid-auto-flow: column; margin: 20px -4px 0; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity; }
.video-cover-template { background: var(--ls-surface-muted); border: 1px solid var(--ls-line); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; padding: 12px; scroll-snap-align: start; }
.video-cover-template.selected { border-color: var(--ls-accent); box-shadow: 0 0 0 1px var(--ls-accent); }
.video-cover-template h3 { color: var(--ls-ink); font-family: var(--ls-font-display); font-size: 1.05rem; font-weight: 600; margin: 0; text-align: center; }
.video-cover-preview { position: relative; }
.video-cover-preview canvas { aspect-ratio: 9 / 16; background: var(--ls-night); border-radius: 10px; display: block; height: auto; width: 100%; }
.video-cover-check { align-items: center; background: var(--ls-accent); border-radius: 50%; color: var(--mud-palette-secondary-text); display: flex; height: 28px; justify-content: center; position: absolute; right: 8px; top: 8px; width: 28px; }
.video-cover-select { background: transparent; border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--ls-ink); cursor: pointer; font: inherit; font-weight: 650; padding: 8px 12px; }
.video-cover-select:hover:not(:disabled) { border-color: var(--ls-accent); }
.video-cover-select.selected { background: var(--ls-accent); border-color: var(--ls-accent); color: var(--mud-palette-secondary-text); }
.video-cover-select:disabled { cursor: default; opacity: .7; }
.video-cover-select:focus-visible, .video-cover-photo:focus-visible, .video-cover-swatch:focus-visible { outline: 2px solid var(--ls-primary); outline-offset: 2px; }
.video-cover-download { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; margin: 8px 0 16px; }
.video-cover-hq, .video-cover-show-agent { align-items: flex-start; color: var(--ls-ink); cursor: pointer; display: flex; gap: 10px; }
.video-cover-hq input, .video-cover-show-agent input { accent-color: var(--ls-accent); height: 18px; margin-top: 2px; width: 18px; }
.video-cover-hq small { color: var(--ls-muted); display: block; }
.video-cover-customize { border: 1px solid var(--ls-line); border-radius: 14px; }
.video-cover-customize[open] { border-color: var(--ls-accent); }
.video-cover-customize summary { align-items: center; cursor: pointer; display: flex; gap: 12px; list-style: none; padding: 14px 18px; }
.video-cover-customize summary::-webkit-details-marker { display: none; }
.video-cover-customize summary > span { flex: 1; }
.video-cover-customize summary strong { color: var(--ls-accent-strong); display: block; }
.video-cover-customize summary small { color: var(--ls-muted); }
.video-cover-customize[open] .video-cover-chevron { transform: rotate(180deg); }
.video-cover-field { border-top: 1px solid var(--ls-line); margin: 0 18px; padding: 16px 0; }
.video-cover-field h3 { color: var(--ls-ink); font-size: .95rem; font-weight: 650; margin: 0 0 10px; }
.video-cover-field h3 span, .video-cover-muted { color: var(--ls-muted); font-weight: 500; margin-left: 6px; }
.video-cover-photos { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.video-cover-photo { background: var(--ls-surface-muted) center / cover no-repeat; border: 2px solid transparent; border-radius: 10px; cursor: pointer; flex: none; height: 84px; overflow: hidden; padding: 0; position: relative; width: 120px; }
.video-cover-photo img { display: block; height: 100%; object-fit: cover; width: 100%; }
.video-cover-photo.selected { border-color: var(--ls-accent); }
.video-cover-photo.automatic { align-items: center; color: #FFFFFF; display: flex; flex-direction: column; font-weight: 700; gap: 2px; justify-content: center; }
.video-cover-photo.automatic::before { background: rgba(var(--ls-night-rgb), .62); content: ""; inset: 0; position: absolute; }
.video-cover-photo.automatic > * { position: relative; }
.video-cover-photo-number { background: rgba(var(--ls-night-rgb), .75); border-radius: 6px; bottom: 6px; color: #FFFFFF; font-size: .75rem; font-weight: 700; left: 6px; padding: 1px 6px; position: absolute; }
.video-cover-help { color: var(--ls-muted); font-size: .85rem; margin: 6px 0 0; }
.video-cover-swatches { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.video-cover-swatch { border: 2px solid var(--ls-surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--ls-line-strong); cursor: pointer; height: 32px; padding: 0; width: 32px; }
.video-cover-swatch.selected { box-shadow: 0 0 0 2px var(--ls-ink); }
.video-cover-custom-colour { align-items: center; display: flex; gap: 8px; }
.video-cover-custom-colour input { background: none; border: 1px solid var(--ls-line-strong); border-radius: 8px; cursor: pointer; height: 34px; padding: 2px; width: 44px; }
.video-cover-custom-colour code { color: var(--ls-ink); }
.video-cover-headline { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.video-cover-headline input { background: var(--ls-surface); border: 1px solid var(--ls-line-strong); border-radius: 10px; color: var(--ls-ink); flex: 1 1 260px; font: inherit; max-width: 440px; padding: 10px 12px; }
.video-cover-headline input:focus { border-color: var(--ls-accent); outline: none; }
.video-cover-agent-head { align-items: center; display: flex; justify-content: space-between; }
.video-cover-agent { display: grid; gap: 6px 20px; grid-template-columns: max-content 1fr; margin: 12px 0 0; }
.video-cover-agent dt { color: var(--ls-muted); }
.video-cover-agent dd { color: var(--ls-ink); font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.video-cover-agent dd a { font-size: .85rem; font-weight: 500; }
.video-cover-agent-form { display: grid; gap: 8px; margin-top: 12px; max-width: 440px; }
.video-cover-agent-actions { display: flex; gap: 8px; }
@media (max-width: 600px) {
    .video-cover-templates { grid-auto-columns: 70%; }
    .video-cover-download { align-items: stretch; flex-direction: column; }
}

/* Printing. Every page prints its content on white paper: the header, footer links, banners, help chat, toasts and
   buttons are left off, dark panels turn into plain outlined boxes and sticky bars stop sticking. print.js switches
   dark mode to the light theme for the print, so the colours below are the light tokens. */
@media print {
    @page { margin: 14mm 12mm; }
    :root, body, .mud-layout, .app-content { background: #fff !important; color: var(--ls-ink); }
    .app-header, .mobile-nav, .impersonation-banner, .provider-credits-banner, .help-chat, .notification-toast-region,
    .site-footer nav, .mud-snackbar-location-bottom-right, .mud-snackbar-location-bottom-left, .mud-snackbar-location-top-right,
    .mud-snackbar-location-top-center, .mud-snackbar-location-bottom-center, .mud-tooltip-root .mud-popover, .mud-overlay,
    .media-nav, .campaign-generate-bar, .walkthrough-play, .photo-fix-button,
    button, .mud-button-root, .mud-icon-button, .mud-fab, input[type="file"] { display: none !important; }
    .app-content { padding-top: 0 !important; }
    .page-container { max-width: none !important; padding: 0 !important; }
    .print-brand { align-items: baseline; border-bottom: 2px solid var(--ls-accent); display: flex !important; gap: 12px; justify-content: space-between; margin-bottom: 18px; padding-bottom: 8px; }
    .print-brand strong { color: var(--ls-primary); font-family: var(--ls-font-display); font-size: 1.1rem; }
    .print-brand span { color: var(--ls-muted); font-size: .8rem; }
    .site-footer { border-top-color: var(--ls-line); justify-content: center; margin-top: 18px; padding: 10px 0 0; }
    .workspace-hero, .admin-hero, .account-story, .article-cta, .property-hero.no-cover, .help-chat-header, .cls-map-core-chip {
        background: #fff !important; border: 1px solid var(--ls-line-strong); box-shadow: none !important; color: var(--ls-ink) !important;
    }
    .workspace-hero *, .admin-hero *, .account-story *, .article-cta *, .property-hero.no-cover * { color: inherit !important; }
    /* The landing hero's floating photo collage is decoration and spills across pages, so it stays off paper. */
    .workspace-hero::after, .visual-glow, .hero-visual { display: none !important; }
    /* A cover photo is part of the listing, so it prints even when the browser skips background images. */
    .property-hero:not(.no-cover), .property-card-cover, .attention-thumb { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .founding-offer, .mud-appbar, [style*="position: sticky"] { position: static !important; }
    .mud-paper, .mud-card { box-shadow: none !important; }
    .mud-card, figure, img, video, table tr { break-inside: avoid; }
    h1, h2, h3, h4, h5, h6 { break-after: avoid; }
    a { color: inherit; }
}

/* Post to social media (SocialPostingV1): beside each finished campaign video. Tokens only, so dark mode follows. */
.social-post { border-top: 1px solid var(--ls-line); margin-top: 16px; padding-top: 14px; }
.social-post-title { color: var(--ls-accent-strong); font-weight: 650; }
.social-connect-card { background: linear-gradient(135deg, var(--ls-surface-muted), var(--ls-accent-soft)); border: 1px solid var(--ls-line); border-radius: 14px; padding: 16px; }
.social-connect-head { align-items: center; display: flex; gap: 14px; margin-bottom: 14px; }
.social-connect-icon { align-items: center; background: var(--ls-accent); border-radius: 12px; color: var(--mud-palette-secondary-text); display: inline-flex; flex: 0 0 auto; height: 44px; justify-content: center; width: 44px; }
.social-connect-heading { font-weight: 650; }
.social-connect-sub { color: var(--ls-muted); font-size: .9rem; }
.social-connect-buttons, .social-connect-more { display: flex; flex-wrap: wrap; gap: 8px; }
.social-connect-more { align-items: center; margin-top: 12px; }
.social-connect-button { align-items: center; background: var(--mud-palette-surface); border: 1px solid var(--ls-line-strong); border-radius: 999px; color: var(--mud-palette-text-primary); display: inline-flex; font-weight: 600; gap: 8px; padding: 6px 14px 6px 6px; text-decoration: none; }
.social-connect-button:hover, .social-connect-button:focus-visible { border-color: var(--ls-accent); }
.social-connect-button.is-small { font-size: .85rem; padding: 3px 10px 3px 3px; }
.social-badge { align-items: center; border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 auto; height: 26px; justify-content: center; width: 26px; }
.social-badge-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.social-badge-facebook { background: #1877f2; }
.social-badge-tiktok { background: #010101; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.social-badge-youtube { background: #ff0000; }
.social-post-targets { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.social-post-targets legend { margin-bottom: 6px; padding: 0; }
.social-target { align-items: center; border: 1px solid var(--ls-line-strong); border-radius: 12px; cursor: pointer; display: inline-flex; gap: 8px; padding: 6px 12px 6px 8px; }
.social-target.is-selected { background: var(--ls-accent-soft); border-color: var(--ls-accent); }
.social-target input { accent-color: var(--ls-accent); }
.social-target-account { color: var(--ls-muted); display: block; font-size: .8rem; }
.social-schedule { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; max-width: 280px; }
.social-schedule-input { background: var(--mud-palette-surface); border: 1px solid var(--ls-line-strong); border-radius: 8px; color: var(--mud-palette-text-primary); color-scheme: inherit; font: inherit; padding: 8px 10px; }
.social-post-choice { border: 1px dashed var(--ls-accent); border-radius: 12px; margin-bottom: 12px; padding: 12px; }
.social-post-history { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.social-post-history li { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.social-history-text { font-size: .9rem; }
.social-manage { margin-top: 12px; }
.social-manage ul { list-style: none; margin: 6px 0 0; padding: 0; }
.social-manage-problem { color: var(--ls-error); }

/* Home: "What CLS does" capability cards. */
.what-cls-intro { color: var(--ls-muted); margin: 14px auto 0; max-width: 720px; }
.what-cls-list { color: var(--ls-muted); line-height: 1.6; list-style: none; margin: 0; padding: 0; }
.what-cls-list li { padding: 6px 0 6px 22px; position: relative; }
.what-cls-list li::before { background: var(--ls-accent); border-radius: 50%; content: ""; height: 7px; left: 4px; position: absolute; top: 15px; width: 7px; }

@media (max-width: 900px) {
    .workspace-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .workspace-side { position: static; }
    .workspace-side ul { display: flex; overflow-x: auto; padding-bottom: 4px; }
    .workspace-side li { flex: none; }
}

/* Launch Plan: the drafted plan, the listing hub and the lead setup list beside a render. Built from the settings-group
   look (one card, a divider between rows) so the plan reads like the Campaign tab it writes to. */
.launch-plan { margin: 8px 0 24px; }
.launch-plan-lines { list-style: none; margin: 0 0 8px; padding: 4px 18px; border: 1px solid var(--ls-line); border-radius: 16px; background: var(--ls-surface); }
.launch-plan-lines > li { padding: 0 0 14px; }
.launch-plan-lines > li + li { border-top: 1px solid var(--ls-line); }
.launch-plan-lines > li > .settings-group .settings-group-head { padding-bottom: 6px; }
.launch-plan-fixed { display: flex; align-items: center; gap: 14px; padding: 16px 0 6px; }
.launch-plan-label { display: block; font-weight: 650; }
.launch-plan-value { display: block; color: var(--ls-muted); font-size: .88rem; }
.launch-plan-reason, .launch-plan-blocker { display: block; margin-left: 40px; font-size: .84rem; }
.launch-plan-reason { color: var(--ls-muted); }
.launch-plan-blocker { color: var(--ls-error); font-weight: 600; margin-top: 4px; }
.launch-plan-lines[data-testid="launch-plan-needs-agent"] > li,
.launch-plan-lines[data-testid="launch-plan-suggested"] > li { padding: 14px 0; }
.launch-plan-lines[data-testid="launch-plan-needs-agent"] .launch-plan-reason,
.launch-plan-lines[data-testid="launch-plan-suggested"] .launch-plan-reason,
.launch-plan-lines[data-testid="launch-plan-suggested"] .launch-plan-blocker { margin: 2px 0 8px; }
.launch-plan-lines[data-testid="launch-plan-suggested"] .launch-plan-label { display: inline; margin-right: 10px; }
.launch-plan-lines[data-testid="launch-plan-suggested"] a { font-weight: 600; }
.launch-plan-blockers { background: var(--ls-accent-soft); border: 1px solid var(--ls-accent); border-radius: 12px; color: var(--ls-ink); font-size: .86rem; margin: 16px 0 0; max-width: 640px; padding: 8px 12px 8px 30px; }
.launch-plan-blockers li + li { margin-top: 3px; }

.listing-hub-actions { display: flex; justify-content: flex-end; margin: 16px 0 10px; }
.listing-hub { margin: 0 0 24px; }
.listing-hub-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.listing-hub-stage { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--ls-line); border-radius: 14px; background: var(--ls-surface); }
.listing-hub-stage:hover { border-color: var(--ls-primary-border); }
.listing-hub-stage:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.listing-hub-stage.is-selected { border-color: var(--mud-palette-primary); box-shadow: inset 0 0 0 1px var(--mud-palette-primary); background: var(--ls-primary-soft); }
.listing-hub-stage-title { font-weight: 650; }
.listing-hub-stage-state { align-self: flex-start; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; background: var(--ls-surface-muted); color: var(--ls-muted); }
.listing-hub-stage.is-done .listing-hub-stage-state { background: var(--ls-success-soft); color: var(--ls-success); }
.listing-hub-stage.is-next .listing-hub-stage-state { background: var(--ls-accent-soft); color: var(--ls-accent-strong); }
.listing-hub-stage-summary { color: var(--ls-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-hub-body { border: 1px solid var(--ls-line); border-radius: 16px; background: var(--ls-surface); padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.listing-hub-links { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.listing-hub-table { border-collapse: collapse; font-size: .9rem; width: 100%; }
.listing-hub-table th { color: var(--ls-muted); font-size: .78rem; font-weight: 650; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.listing-hub-table th, .listing-hub-table td { border-bottom: 1px solid var(--ls-line); padding: 8px 10px 8px 0; }
.listing-hub-back { display: inline-block; font-size: .88rem; font-weight: 600; margin: 14px 0 10px; }

.render-lead-setup { border: 1px solid var(--ls-line); border-radius: 16px; background: var(--ls-surface-muted); margin: 16px 0; padding: 16px 18px; }
.render-lead-setup-steps { list-style: none; margin: 0; padding: 0; }
.render-lead-setup-steps > li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 0; }
.render-lead-setup-steps > li + li { border-top: 1px solid var(--ls-line); }
.render-lead-setup-title { font-weight: 650; flex: 1 1 100%; }
.render-lead-setup-description { color: var(--ls-muted); font-size: .86rem; flex: 1 1 260px; }
.render-lead-setup-steps > li > a { background: var(--ls-primary-soft); border: 1px solid var(--ls-primary-border); border-radius: 8px; font-size: .86rem; font-weight: 650; padding: 5px 12px; text-decoration: none; }
.render-lead-setup-skip { background: none; border: 0; color: var(--ls-muted); cursor: pointer; font: inherit; font-size: .86rem; padding: 5px 4px; text-decoration: underline; text-underline-offset: 2px; }
.render-lead-setup-steps > li.is-done .render-lead-setup-title { color: var(--ls-success); }

@media (max-width: 760px) {
    .launch-plan-lines { padding: 2px 14px; }
    .launch-plan-fixed { gap: 10px; padding: 12px 0 6px; }
    .launch-plan-reason, .launch-plan-blocker { margin-left: 36px; }
    .listing-hub-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
    .listing-hub-stage { flex: 0 0 150px; scroll-snap-align: start; }
    .listing-hub-body { padding: 14px; }
    .render-lead-setup { padding: 14px; }
}
