@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);
}

: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;
    background: linear-gradient(135deg, var(--ls-accent-light), var(--ls-accent));
    border-radius: 12px;
    color: var(--ls-night);
    box-shadow: 0 8px 24px rgba(var(--ls-primary-rgb), .32);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.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; }
.guest-actions .mud-button-root:first-child { 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; }
.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-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; }
.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 h2 { font-family: var(--ls-font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; 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; }
.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-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-walkthrough, #media-unplaced, #media-extra, #listing-videos { scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 64px); }
.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(--ls-on-night); }
.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-primary); 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%; }
.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); }
.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-primary); }
.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-primary)); 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-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; }
.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; }
.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; }
@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); }
.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 { stroke: var(--ls-primary); stroke-linecap: round; stroke-width: 2.5; }
.map-edge.is-assumed { stroke: var(--ls-subtle); stroke-dasharray: 5 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(--ls-on-night); }
.map-direction.is-active .mud-icon-root { color: var(--ls-accent-light); }
.map-direction:disabled { cursor: progress; opacity: .6; }
.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(--ls-on-night); 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; }

@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; }
    .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-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; }
    .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: 56px 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: #F1EEE6; }
.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; }
.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-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) {
    .help-chat-launcher { bottom: 16px; padding: 11px 15px; right: 16px; }
    .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; }
}
