
.upgrade-gate-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(7, 10, 9, 0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    animation: fadeIn 0.2s ease both;
}

.upgrade-gate {
    display: grid;
    gap: 1rem;
    max-width: 28rem;
    max-height: calc(100dvh - 2rem);
    padding: 2rem;
    overflow-y: auto;
    border-radius: var(--radius-large);
    border: 1.5px solid rgba(195, 142, 56, 0.22);
    background: linear-gradient(180deg, rgba(30, 42, 38, 0.98), rgba(18, 25, 23, 0.99));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.25s ease both;
}

.upgrade-gate h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.upgrade-gate p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.upgrade-gate-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.upgrade-gate-actions > * {
    width: 100%;
    text-align: center;
}

/* ===== Demo Badge ===== */

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-badge::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(195, 142, 56, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Demo Scenario Controls ===== */

.demo-scenario-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.9rem;
}

.demo-scenario-controls select {
    flex: 1;
    min-width: 0;
}

.demo-scenario-controls .secondary-button {
    white-space: nowrap;
    padding-inline: 0.75rem;
}

/* ===== Public Growth Pages ===== */

.landing-text-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.landing-text-link:hover {
    color: var(--text-primary);
}

.public-footer {
    gap: 1rem;
}

.public-footer-brand {
    display: grid;
    gap: 0.25rem;
}

.public-footer-brand span {
    color: var(--text-secondary);
    max-width: 32rem;
}

.public-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.landing-fit-grid,
.landing-resource-grid,
.landing-faq-grid,
.public-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-fit-card,
.landing-resource-card,
.landing-faq-card,
.public-article-card,
.public-callout {
    padding: 1.15rem 1rem 1.2rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(195, 142, 56, 0.14);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.landing-fit-card h3,
.landing-resource-card strong,
.landing-faq-card h3,
.public-article-card h2,
.public-callout strong {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
}

.landing-fit-card p,
.landing-resource-card span,
.landing-faq-card p,
.public-article-card p,
.public-callout span {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.landing-resource-card {
    display: grid;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-resource-card:hover {
    transform: translateY(-1px);
    border-color: rgba(195, 142, 56, 0.36);
    background: rgba(195, 142, 56, 0.04);
}

.public-content-shell {
    display: grid;
    gap: 1.5rem;
    width: min(100%, 74rem);
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.public-content-hero {
    display: grid;
    gap: 1rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border-radius: var(--radius-large);
    border: 1px solid rgba(195, 142, 56, 0.2);
    background:
        radial-gradient(ellipse at 20% 60%, rgba(195, 142, 56, 0.09) 0%, transparent 55%),
        radial-gradient(circle at top right, rgba(195, 142, 56, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(29, 40, 37, 0.96), rgba(13, 18, 17, 0.98));
}

.public-content-hero h1 {
    margin: 0;
    max-width: 16ch;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 0.95;
}

.public-content-hero p {
    margin: 0;
    max-width: 50rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.public-content-hero .landing-hero-actions {
    margin-top: 0.2rem;
    grid-template-columns: 1.4fr 1fr;
}

.public-content-hero .landing-hero-actions > * {
    width: 100%;
}

.public-callout {
    display: grid;
    gap: 0.4rem;
}

.public-checklist {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.public-checklist li + li {
    margin-top: 0.35rem;
}

.public-shell {
    gap: 0.9rem;
}

.public-panel {
    width: min(var(--page-width-wide), 100%);
    margin: 0 auto;
}

.public-marketing-header {
    display: grid;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(202, 214, 205, 0.08);
    background: rgba(10, 14, 13, 0.72);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.public-marketing-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.public-marketing-nav a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.public-marketing-nav a:hover,
.public-marketing-nav a.is-active {
    color: var(--text-primary);
    border-color: rgba(226, 173, 87, 0.24);
    background: rgba(226, 173, 87, 0.08);
}

.landing-gate-page,
.marketing-page {
    display: grid;
    gap: 1rem;
}

.landing-gate-page {
    min-height: calc(100vh - 10rem);
}

.landing-gate {
    position: relative;
    display: grid;
    align-items: stretch;
    gap: 1.25rem;
    min-height: calc(100vh - 18rem);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(226, 173, 87, 0.12);
    background: rgba(9, 13, 12, 0.72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.landing-gate-image,
.landing-gate-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-gate-image {
    background-image: url("/images/landing/demo-dashboard.png");
    background-position: center;
    background-size: cover;
    transform: scale(1.08);
    filter: blur(16px) saturate(0.78);
    opacity: 0.58;
}

.landing-gate-scrim {
    background:
        radial-gradient(circle at 50% 50%, rgba(17, 23, 21, 0.2), rgba(8, 11, 10, 0.82) 62%),
        linear-gradient(135deg, rgba(195, 142, 56, 0.12), transparent 35%, rgba(10, 13, 12, 0.8) 68%);
}

.landing-gate-copy,
.landing-best-fit-card,
.marketing-hero,
.marketing-grid,
.marketing-detail-band,
.marketing-preview-card,
.pricing-focus-card {
    position: relative;
    z-index: 1;
}

.landing-gate-copy {
    display: grid;
    gap: 1.35rem;
    justify-items: center;
    text-align: center;
    max-width: 34rem;
    margin: 0 auto;
}

.landing-gate-copy h1,
.marketing-hero-copy h1,
.marketing-feature-card h2,
.marketing-detail-card h2 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 0.98;
    text-wrap: balance;
}

.landing-gate-copy h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    letter-spacing: -0.025em;
}

.landing-gate-copy p,
.marketing-hero-copy p,
.marketing-feature-card p,
.marketing-detail-card span,
.pricing-focus-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.landing-gate-actions,
.marketing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.landing-gate-actions > *,
.marketing-hero-actions > * {
    min-width: 10rem;
}

.landing-inline-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.landing-best-fit-card,
.landing-proof-card,
.marketing-preview-card,
.marketing-feature-card,
.marketing-detail-card,
.pricing-focus-card {
    border-radius: var(--radius-large);
    border: 1px solid rgba(202, 214, 205, 0.12);
    background: rgba(14, 18, 17, 0.7);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.landing-best-fit-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 1.15rem;
    align-self: start;
    justify-items: center;
    text-align: center;
    max-width: 24rem;
    margin: 1rem auto 0;
}

.landing-proof-card {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    align-self: stretch;
}

.landing-proof-header {
    display: grid;
    gap: 0.35rem;
}

.landing-proof-header strong {
    font-size: 1.08rem;
    line-height: 1.35;
}

.landing-proof-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: calc(var(--radius-medium) + 2px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.landing-proof-metrics {
    display: grid;
    gap: 0.8rem;
}

.landing-proof-metrics > div {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-proof-metrics > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.landing-proof-metrics span {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-proof-metrics strong {
    font-size: 0.98rem;
}

.landing-best-fit-header {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.landing-best-fit-header strong {
    font-size: 1.08rem;
}

.landing-best-fit-list {
    display: grid;
    gap: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

.landing-best-fit-list > div {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-sell-band {
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.landing-sell-band--alt {
    background: rgba(195, 142, 56, 0.05);
    border-top-color: rgba(195, 142, 56, 0.14);
}

.landing-sell-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-sell-grid--centered {
    justify-items: center;
    text-align: center;
}

.landing-sell-item {
    display: grid;
    gap: 0.35rem;
}

.landing-sell-item--wide {
    max-width: 56rem;
}

.landing-sell-item strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.landing-sell-item span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.marketing-page {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.marketing-hero,
.marketing-grid,
.marketing-detail-band {
    display: grid;
    gap: 1rem;
}

.marketing-hero {
    padding: 1rem 0 0.35rem;
}

.marketing-hero-copy {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.marketing-hero-copy h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    letter-spacing: -0.025em;
    max-width: 14ch;
}

.marketing-preview-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.marketing-preview-label,
.pricing-focus-kicker {
    color: var(--text-muted);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.marketing-preview-card img {
    display: block;
    width: 100%;
    border-radius: calc(var(--radius-medium) + 2px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.marketing-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.marketing-preview-tile {
    overflow: hidden;
    border-radius: calc(var(--radius-medium) + 2px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 16, 15, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.marketing-preview-tile:hover {
    border-color: rgba(226, 173, 87, 0.28);
    transform: translateY(-1px);
}

.marketing-preview-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.marketing-preview-clickable {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    outline: none;
}

.lightbox-dialog img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.marketing-preview-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(17, 24, 22, 0.88);
    color: #f5efe0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(30, 40, 37, 0.96);
}

.marketing-grid {
    grid-template-columns: 1fr;
}

.marketing-feature-card,
.marketing-detail-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.2rem 1.1rem;
}

.marketing-feature-card {
    background: linear-gradient(160deg, rgba(195, 142, 56, 0.05) 0%, transparent 50%);
}

.marketing-feature-card h2,
.marketing-detail-card h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.marketing-detail-list {
    display: grid;
    gap: 0.9rem;
}

.marketing-detail-list > div {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marketing-detail-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.marketing-detail-list strong {
    font-size: 0.98rem;
}

.pricing-focus-card {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    padding: 1.35rem 1.2rem;
}

.pricing-focus-amount {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.3rem);
    line-height: 0.95;
}

.pricing-focus-amount span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-left: 0.35rem;
}

.public-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: center;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0.2rem 0.35rem calc(0.85rem + env(safe-area-inset-bottom));
    color: var(--text-secondary);
}

.public-footer-brand strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.public-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.public-footer-links {
    gap: 0.5rem 0.75rem;
}

.public-footer-links--legal {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.public-footer-links a,
.public-footer-meta a {
    color: var(--text-secondary);
}

.public-footer-links a:hover,
.public-footer-meta a:hover {
    color: var(--text-primary);
}

@media (max-width: 959px) {
    .landing-fit-grid,
    .landing-resource-grid,
    .landing-faq-grid,
    .public-article-grid {
        grid-template-columns: 1fr;
    }

    .public-content-hero h1 {
        max-width: none;
    }

    .landing-gate {
        min-height: auto;
    }

    .landing-gate-copy h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .landing-gate-actions,
    .marketing-hero-actions {
        flex-direction: column;
    }

    .landing-gate-actions > *,
    .marketing-hero-actions > * {
        width: 100%;
    }

    .landing-proof-card {
        width: 100%;
    }

    .public-footer {
        gap: 0.75rem;
        text-align: left;
    }

    .public-footer-brand,
    .public-footer-meta,
    .public-footer-links {
        justify-content: start;
    }
}

@media (min-width: 981px) {
    .public-marketing-header {
        grid-template-columns: auto 1fr;
        justify-content: space-between;
    }

    .public-marketing-nav {
        justify-content: end;
    }

    .landing-gate-copy {
        justify-items: start;
        text-align: left;
        margin: 0;
    }

    .landing-gate-actions,
    .landing-best-fit-header,
    .landing-best-fit-list {
        justify-content: start;
        justify-items: start;
        text-align: left;
    }

    .landing-best-fit-card {
        margin: 0;
    }

    .marketing-hero {
        grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
        align-items: end;
        gap: 1.5rem;
    }

    .marketing-grid,
    .marketing-detail-band {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .marketing-detail-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-sell-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-sell-grid--centered {
        grid-template-columns: 1fr;
    }

    .public-footer {
        grid-template-columns: 1fr;
    }

    .public-footer-links {
        justify-content: center;
    }
}

/* ===== 2026-03 Workflow Refresh ===== */

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.public-marketing-header {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 28px;
}

.landing-brand {
    gap: 0.65rem;
}

.public-footer {
    justify-items: center;
    text-align: center;
    gap: 0.55rem;
    padding-top: 1rem;
}

.public-footer-meta a {
    color: #16110a;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
}

.public-footer-meta a.public-footer-support-link {
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.public-footer-links {
    justify-content: center;
}

.public-footer--demo {
    width: auto;
    margin: 0 2rem 2rem;
    border-top: 1px solid rgba(202, 214, 205, 0.08);
}

.topbar-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.topbar-brand-lockup .brand-logo,
.brand-mark .brand-logo {
    width: auto;
    height: 5rem;
    max-width: min(48vw, 16rem);
}

.topbar-signin-link {
    border-color: rgba(226, 173, 87, 0.28);
    color: var(--accent-strong);
}

.sidebar-stack {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.sidebar-scenario-panel {
    padding: 1rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-scenario-picker {
    min-width: 16rem;
    display: grid;
    gap: 0.35rem;
}

.page-header--dashboard .page-actions {
    align-items: stretch;
    justify-content: flex-end;
}

.page-actions--dashboard {
    width: min(100%, 42rem);
    flex-wrap: wrap;
    row-gap: 0.75rem;
}

.page-actions--dashboard > .dashboard-scenario-picker {
    flex: 1 1 16rem;
    min-width: min(100%, 18rem);
}

.page-actions--dashboard > .secondary-button,
.page-actions--dashboard > .primary-button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}

.dashboard-record-row {
    gap: 0.85rem;
    padding: 1rem;
    border-bottom: 0;
    border-radius: var(--radius-small);
    border: 1px solid rgba(202, 214, 205, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.invoice-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.invoice-trust-note,
.invoice-admin-override-list {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(202, 214, 205, 0.12);
}

.invoice-admin-override-list {
    display: grid;
    gap: 0.65rem;
}

.invoice-admin-override-item {
    display: grid;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.estimate-action-row {
    margin-top: 1rem;
}

.proposal-line-description,
.proposal-line-notes {
    min-width: 0;
}

.proposal-line-description__text,
.proposal-line-notes {
    display: block;
}

.dashboard-record-row + .dashboard-record-row {
    margin-top: 0.75rem;
}

.dashboard-record-top,
.dashboard-record-end {
    gap: 0.65rem;
}

.record-card--selected {
    border-color: rgba(226, 173, 87, 0.32);
    box-shadow: 0 0 0 1px rgba(226, 173, 87, 0.14);
}

.panel-divider {
    height: 1px;
    margin: 0.4rem 0 0.8rem;
    background: linear-gradient(90deg, rgba(226, 173, 87, 0.2), transparent);
}

.modal-dialog {
    width: min(100%, 34rem);
}

.modal-dialog--wide {
    width: min(100%, 52rem);
}

.modal-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-dialog-close {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    padding: 0;
}

.modal-dialog-body {
    display: grid;
    gap: 1rem;
}

@media (max-width: 640px) {
    .upgrade-gate-backdrop {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .upgrade-gate {
        width: 100%;
        max-height: calc(100dvh - 1.5rem);
        padding: 1.25rem;
    }
}

.landing-gate-grid {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
    width: 100%;
    align-self: stretch;
    align-content: start;
}

.landing-public-column {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-content: start;
}

.landing-proof-card--wide {
    width: 100%;
}

.marketing-detail-band--wide {
    grid-template-columns: 1fr;
}

.marketing-detail-card--full {
    grid-column: 1 / -1;
}

.marketing-detail-card--feature-grid {
    grid-column: 1 / -1;
}

.marketing-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 0;
}

.marketing-feature-grid-item {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    padding: 1.1rem 1.25rem 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marketing-feature-grid-item strong {
    font-size: 0.95rem;
    color: var(--color-text-primary, #e8e0d4);
}

.marketing-feature-grid-item span {
    font-size: 0.88rem;
    color: var(--color-text-muted, rgba(232, 224, 212, 0.55));
    line-height: 1.5;
}

.pricing-focus-card--spotlight {
    border-color: rgba(226, 173, 87, 0.24);
    background: linear-gradient(180deg, rgba(36, 46, 42, 0.9), rgba(19, 26, 24, 0.92));
}

.sign-in-grid--single {
    justify-items: center;
    align-content: center;
    min-height: 55vh;
}

.sign-in-form-panel--centered {
    width: min(100%, 42rem);
}

.auth-note-stack {
    width: min(100%, 42rem);
}

.auth-copy-band--centered {
    justify-items: center;
    text-align: center;
}

.legal-card {
    width: min(100%, 52rem);
}

/* Dedicated layout for legal/informational pages (privacy, terms). */
/* Replaces sign-in CSS class reuse. */
.legal-page-shell {
    display: grid;
    gap: 1rem;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.legal-page-body {
    display: grid;
    gap: 1rem;
    justify-items: center;
    align-content: center;
    min-height: 55vh;
}

.legal-page-panel {
    display: grid;
    gap: 1rem;
    padding: 1.4rem 1.2rem;
    width: min(100%, 52rem);
    border-radius: var(--radius-medium);
    border: 1px solid rgba(226, 173, 87, 0.16);
    background: linear-gradient(180deg, rgba(33, 42, 38, 0.5), rgba(17, 23, 21, 0.35));
}

.legal-page-panel h2 {
    margin: 0.4rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7vw, 2.4rem);
}

/* SEO page secondary content sections */
.public-step-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: public-steps;
}

.public-step-list li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0 0.65rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--surface-border);
    color: var(--text-secondary);
    line-height: 1.65;
    counter-increment: public-steps;
}

.public-step-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.public-step-list li::before {
    content: counter(public-steps);
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--accent-strong);
    line-height: 1.4;
}

.public-step-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.public-def-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.public-def-list > div {
    padding: 0.75rem 0;
    border-top: 1px solid var(--surface-border);
}

.public-def-list > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.public-def-list dt {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.public-def-list dd {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.public-feature-pairs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.public-feature-pairs > div {
    display: grid;
    gap: 0.3rem;
}

.public-feature-pairs strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.public-feature-pairs span {
    color: var(--text-secondary);
    line-height: 1.65;
}

.report-preview-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.4rem;
    border-radius: var(--radius-large);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: linear-gradient(180deg, rgba(34, 43, 39, 0.4), rgba(15, 20, 18, 0.2));
}

.report-preview-header {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(202, 214, 205, 0.08);
}

.report-preview-header h2 {
    margin: 0.25rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.report-preview-meta {
    display: grid;
    gap: 0.3rem;
    color: var(--text-secondary);
}

.report-preview-summary {
    display: grid;
    gap: 0.45rem;
}

.report-preview-summary p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.report-preview-list {
    display: grid;
    gap: 1rem;
}

.report-preview-section {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(202, 214, 205, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.report-preview-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.report-preview-section-header span {
    color: var(--text-secondary);
}

.report-preview-condition {
    align-self: start;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(195, 142, 56, 0.1);
    border: 1px solid rgba(226, 173, 87, 0.22);
}

.report-preview-recommendations {
    display: grid;
    gap: 0.75rem;
}

.invoice-line-link strong {
    color: var(--text-primary);
}

.invoice-line-link:hover strong {
    color: var(--accent-strong);
}

@media (min-width: 981px) {
    .public-marketing-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .landing-gate-grid {
        grid-template-columns: minmax(22rem, 0.95fr) minmax(18rem, 1.05fr);
        align-items: stretch;
        gap: 1.25rem;
    }

    .landing-public-column {
        min-width: 0;
    }

    .landing-gate-copy {
        justify-items: start;
        text-align: left;
        max-width: 31rem;
        margin: 0;
    }

    .landing-gate-actions {
        justify-content: start;
    }

    .landing-best-fit-card {
        justify-items: start;
        text-align: left;
        max-width: 31rem;
        margin: 0;
    }

    .landing-proof-card--wide {
        min-height: 100%;
    }

    .report-preview-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
    }

    .report-preview-section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }
}

@media (max-width: 959px) {
    .public-footer--demo {
        margin: 0 1rem 1rem;
    }

    .page-actions--dashboard,
    .auth-note-stack,
    .sign-in-form-panel--centered,
    .legal-card,
    .legal-page-panel {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .public-feature-pairs {
        grid-template-columns: 1fr;
    }
    .print-shell {
        padding: 1rem;
    }

    .print-document {
        padding: 1.25rem 1rem 1.5rem;
        border-radius: 18px;
    }

    .print-header,
    .print-footer {
        gap: 0.9rem;
    }

    .print-meta {
        text-align: left;
    }

    .print-stamp {
        top: 1rem;
        right: 1rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
    }

    .print-table thead {
        display: none;
    }

    .print-table,
    .print-table tbody,
    .print-table tr,
    .print-table td {
        display: block;
        width: 100%;
    }

    .print-table tr {
        padding: 0.9rem 0;
        border-bottom: 1px solid #d6d2c8;
    }

    .print-table td {
        padding: 0.2rem 0;
        border: 0;
        text-align: left;
    }

    .print-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #5b645d;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .estimate-action-row {
        position: sticky;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        z-index: 8;
        padding: 0.85rem;
        border-radius: 18px;
        border: 1px solid rgba(202, 214, 205, 0.14);
        background: rgba(18, 28, 23, 0.94);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(16px);
    }

    .proposal-line-description__text,
    .proposal-line-notes {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

@media print {
    body {
        background: white;
    }

    .print-actions {
        display: none;
    }

    .print-document {
        box-shadow: none;
        margin: 0;
        max-width: none;
        padding: 0;
        border-radius: 0;
    }

    .print-document-frame {
        box-shadow: none;
        margin: 0;
        width: 100%;
        min-height: 0;
        border-radius: 0;
    }
}

/* ── Accessibility utilities ──────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── WorkIndex restructure ───────────────────────────────────── */
.work-index {
    display: grid;
    gap: 0.75rem;
}

.work-index__controls {
    display: grid;
    gap: 0.6rem;
}

.work-index__search-row {
    display: flex;
    align-items: stretch;
}

.work-index__search {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.work-index__search input {
    width: 100%;
    padding-right: 2.5rem;
}

.work-index__clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.15s, background 0.15s;
}

.work-index__clear:hover {
    color: var(--text-primary, #e8ede9);
    background: rgba(255, 255, 255, 0.07);
}

.work-index__clear svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.work-index__filters {
    display: grid;
    gap: 0.5rem;
}

.work-index__panel {
    /* inherits .panel styles */
}

.work-index__results {
    display: grid;
    gap: 0.9rem;
}

.work-index__paging {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ── Lead card link variant ──────────────────────────────────── */
.record-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.record-card--link:hover {
    border-color: rgba(195, 142, 56, 0.35);
    background: rgba(195, 142, 56, 0.04);
}

.record-card-summary {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Dashboard scenario controls card ───────────────────────── */
.demo-controls-card {
    margin-bottom: 0.25rem;
}

.demo-controls-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.demo-controls-card-inner .dashboard-scenario-picker {
    display: grid;
    gap: 0.3rem;
    font-size: 0.82rem;
    flex: 1;
    min-width: 10rem;
}

.demo-controls-card-inner .dashboard-scenario-picker span {
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Activity row links ──────────────────────────────────────── */
a.dashboard-record-row {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ── Print error escape ──────────────────────────────────────── */
.print-error {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
    justify-items: start;
}

/* ── Demo segment landing grid ───────────────────────────────── */
.demo-segment-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.demo-segment-card {
    display: grid;
    gap: 0.6rem;
    padding: 1.4rem 1.2rem 1.2rem;
    border-radius: var(--radius-medium);
    border: 1px solid rgba(202, 214, 205, 0.1);
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    color: inherit;
}

.demo-segment-card:hover {
    border-color: rgba(195, 142, 56, 0.35);
    background: rgba(195, 142, 56, 0.04);
}

.demo-segment-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.demo-segment-card-title {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.demo-segment-card-bullets {
    margin: 0;
    padding: 0 0 0 1.1rem;
    display: grid;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.demo-segment-card-cta {
    display: block;
    margin-top: 0.4rem;
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ── Collapsible ISA section ─────────────────────────────────── */
.collapsible-section {
    margin: 0;
}

.collapsible-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    list-style: none;
    user-select: none;
    border-top: 1px solid rgba(202, 214, 205, 0.08);
    margin-bottom: 0.5rem;
}

.collapsible-section-header::-webkit-details-marker { display: none; }
.collapsible-section-header::before { content: "▶"; font-size: 0.7rem; transition: transform 0.15s; }
.collapsible-section[open] > .collapsible-section-header::before { transform: rotate(90deg); }

.collapsible-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
}

.collapsible-section[open] .collapsible-hint { display: none; }

/* Quick-quote FAB — mobile dashboard shortcut */
.quick-quote-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.15s, box-shadow 0.15s;
}
.quick-quote-fab:hover,
.quick-quote-fab:focus {
    background: var(--color-primary-dark, #1d4ed8);
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}
.quick-quote-fab span { font-size: 1.2rem; line-height: 1; }

/* Route stop list — schedule page */
.route-stop-card .record-meta-grid { margin-top: 0.5rem; }
.route-stop-number {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}
.route-stop-address {
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--color-primary, #2563eb);
}
.route-stop-access {
    font-style: italic;
    color: var(--text-muted);
}

/* Crew job view — field-first mobile card */
.crew-view-filter {
    margin-bottom: 1.25rem;
}
.crew-view-filter label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 18rem;
}
.crew-job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.crew-job-card {
    background: var(--surface-raised, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.625rem;
    padding: 1.1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.crew-job-card--done {
    opacity: 0.65;
}
.crew-job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.15rem;
}
.crew-job-number {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.crew-job-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.crew-job-customer {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.crew-job-address {
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: underline;
    text-decoration-color: var(--color-primary, #2563eb);
}
.crew-job-time {
    font-size: 0.88rem;
    color: var(--text-secondary, #374151);
}
.crew-job-access,
.crew-job-scope,
.crew-job-crew {
    font-size: 0.88rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.crew-job-access {
    font-style: italic;
    color: var(--text-muted);
}
.crew-job-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.crew-view-footer-note {
    margin-top: 2rem;
    font-size: 0.82rem;
    text-align: center;
    padding: 0 1rem;
}

/* Welcome / segment onboarding page */
.welcome-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--surface-page, #f8fafc);
}
.welcome-card {
    background: var(--surface-raised, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    max-width: 680px;
    width: 100%;
}
.welcome-header {
    margin-bottom: 2rem;
    text-align: center;
}
.welcome-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.welcome-header p {
    color: var(--text-muted);
    font-size: 1rem;
}
.welcome-segment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.welcome-segment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.1rem 0.75rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 0.625rem;
    background: var(--surface-page, #f8fafc);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.12s, background 0.12s;
}
.welcome-segment-card:hover {
    border-color: var(--color-primary, #2563eb);
}
.welcome-segment-card--selected {
    border-color: var(--color-primary, #2563eb);
    background: var(--color-primary-tint, #eff6ff);
}
.welcome-segment-icon {
    font-size: 1.6rem;
}
.welcome-segment-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}
.welcome-segment-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.welcome-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}
.welcome-continue {
    min-width: 12rem;
}
.welcome-skip {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Inspection round page */
.inspection-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.inspection-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 10rem;
}
.inspection-property-panel {
    margin-bottom: 1.25rem;
}
.inspection-property-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.inspection-property-header h2 {
    margin: 0;
    font-size: 1.1rem;
}
.inspection-zone-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.inspection-zone-card {
    border: 1px solid var(--border-color, #e5e7eb);
    border-left: 4px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    padding: 0.9rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--surface-raised, #fff);
}
.inspection-zone-card--ok { border-left-color: #22c55e; }
.inspection-zone-card--needs-attention { border-left-color: #f59e0b; }
.inspection-zone-card--flagged { border-left-color: #ef4444; }
.inspection-zone-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.inspection-zone-name {
    font-size: 0.95rem;
}
.inspection-zone-status-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.inspection-status-btn {
    font-size: 0.78rem;
    padding: 0.28rem 0.6rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}
.inspection-status-btn.active-ok { background: #dcfce7; border-color: #22c55e; }
.inspection-status-btn.active-warn { background: #fef3c7; border-color: #f59e0b; }
.inspection-status-btn.active-flag { background: #fee2e2; border-color: #ef4444; }
.inspection-zone-condition {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.inspection-zone-note {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.375rem;
    background: var(--surface-page, #f8fafc);
}
.inspection-summary-bar {
    position: sticky;
    bottom: 0;
    background: var(--surface-raised, #fff);
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding: 0.65rem 1.25rem;
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    flex-wrap: wrap;
}
.inspection-summary-bar .warn { color: #92400e; }
.inspection-summary-bar .flag { color: #991b1b; }

/* Site Walkthrough page */
.walkthrough-progress-bar {
    margin-bottom: 1.25rem;
}

.walkthrough-progress-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.walkthrough-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.walkthrough-stat strong {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.walkthrough-stat span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.walkthrough-stat--ok strong { color: #22c55e; }
.walkthrough-stat--warn strong { color: #f59e0b; }
.walkthrough-stat--flag strong { color: #ef4444; }
.walkthrough-stat--muted strong { color: var(--text-secondary); }

.walkthrough-progress-track {
    height: 6px;
    border-radius: 3px;
    background: var(--border-subtle, rgba(255,255,255,0.08));
    display: flex;
    overflow: hidden;
    gap: 2px;
}

.walkthrough-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.walkthrough-progress-fill--ok { background: #22c55e; }
.walkthrough-progress-fill--warn { background: #f59e0b; }
.walkthrough-progress-fill--flag { background: #ef4444; }

.walkthrough-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.walkthrough-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 10rem;
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.walkthrough-filters label select {
    font-size: 0.88rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-small);
    border: 1px solid var(--border-color);
    background: var(--surface-raised);
    color: var(--text-primary);
}

.walkthrough-property-section {
    margin-bottom: 1.25rem;
}

.walkthrough-property-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}

.walkthrough-property-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.walkthrough-zone-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.walkthrough-zone-card {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 0.9rem 1rem;
    background: var(--surface-raised);
    transition: border-color 0.15s ease;
}

.walkthrough-zone-card--ok { border-left-color: #22c55e; }
.walkthrough-zone-card--needs-attention { border-left-color: #f59e0b; }
.walkthrough-zone-card--flagged { border-left-color: #ef4444; }

.walkthrough-zone-main {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.walkthrough-zone-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.walkthrough-zone-name {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-primary);
}

.walkthrough-zone-condition {
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.walkthrough-zone-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.walkthrough-status-group {
    display: flex;
    gap: 0.35rem;
}

.walkthrough-status-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.walkthrough-status-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.walkthrough-status-btn--ok {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #22c55e;
}

.walkthrough-status-btn--warn {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #f59e0b;
}

.walkthrough-status-btn--flag {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.walkthrough-zone-note {
    font-size: 0.83rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    background: var(--surface-page);
    color: var(--text-primary);
    width: 16rem;
    max-width: 100%;
}

/* Service templates page */
.service-template-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.service-template-card {
    padding: 1.1rem 1.25rem 1rem;
}
.service-template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.service-template-name {
    font-size: 1rem;
    font-weight: 600;
}
.service-template-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}
.service-template-scope {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}
.service-template-form-panel {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}
.form-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.service-template-upgrade-note ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}
.service-template-upgrade-note li {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

/* Dashboard segment quick links */
.dashboard-segment-quicklinks {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0 var(--content-padding, 1.5rem) 1.5rem;
}
.segment-quicklink-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-medium, 8px);
    border: 1px solid rgba(195, 142, 56, 0.2);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary, #ccc);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.segment-quicklink-card:hover {
    background: rgba(195, 142, 56, 0.1);
    border-color: rgba(195, 142, 56, 0.5);
    color: var(--text-primary, #fff);
}
.segment-quicklink-icon {
    font-size: 1rem;
    line-height: 1;
}

/* E-signature modal */
.sign-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}
.sign-checkbox-label input[type="checkbox"] {
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}
.sign-modal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* Crew work log */
.crew-work-log-form {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-medium, 8px);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}
.crew-work-log-form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}
.crew-work-log-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.crew-work-log-done {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-medium, 8px);
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.3);
    font-size: 0.875rem;
}
.crew-work-log-notes {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #ccc);
}

/* Zone/type group selection bar in proposal builder */
.zone-select-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}
.zone-select-chip {
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    border: 1px solid rgba(195, 142, 56, 0.3);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary, #ccc);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.zone-select-chip:hover {
    background: rgba(195, 142, 56, 0.12);
    border-color: rgba(195, 142, 56, 0.5);
    color: var(--text-primary, #fff);
}
.zone-select-chip--active {
    background: rgba(195, 142, 56, 0.2);
    border-color: rgba(195, 142, 56, 0.7);
    color: var(--text-primary, #fff);
}

/* Multi-crew dispatch board */
.crew-board-date-heading {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0 var(--content-padding, 1.5rem) 1rem;
}
.crew-board-date-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}
.crew-board {
    display: grid;
    grid-template-columns: repeat(var(--crew-columns, 2), 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-large, 12px);
    overflow: hidden;
    margin: 0 var(--content-padding, 1.5rem) 1.5rem;
}
.crew-board-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    background: rgba(195, 142, 56, 0.1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.875rem;
}
.crew-board-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.02);
    min-height: 120px;
}
.crew-board-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem 0;
}
.crew-board-card {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-medium, 8px);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
}
.crew-board-card--done {
    opacity: 0.6;
    border-color: rgba(80, 200, 120, 0.3);
    background: rgba(80, 200, 120, 0.05);
}
.crew-board-card--cancelled {
    opacity: 0.4;
    text-decoration: line-through;
}
.crew-board-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.crew-board-card-property {
    font-size: 0.9rem;
}
.crew-board-card-customer {
    font-size: 0.8rem;
}
.crew-board-card-scope {
    font-size: 0.8rem;
    color: var(--text-secondary, #ccc);
    margin-top: 0.1rem;
}
.crew-board-card-address {
    font-size: 0.8rem;
    color: var(--link-color, #60a5fa);
    text-decoration: none;
    margin-top: 0.1rem;
}
.crew-board-card-status {
    margin-top: 0.3rem;
    align-self: flex-start;
    font-size: 0.72rem;
}
.crew-board-unassigned-note {
    padding: 0 var(--content-padding, 1.5rem) 0.5rem;
    font-size: 0.85rem;
}
.crew-board-demo-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem var(--content-padding, 1.5rem);
    background: rgba(195, 142, 56, 0.06);
    border-top: 1px solid rgba(195, 142, 56, 0.15);
    font-size: 0.875rem;
    color: var(--text-secondary, #ccc);
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .crew-board {
        grid-template-columns: 1fr;
    }
}

/* Trial banner */
.trial-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem var(--content-padding, 1.5rem);
    background: rgba(195, 142, 56, 0.1);
    border-bottom: 1px solid rgba(195, 142, 56, 0.2);
    font-size: 0.875rem;
    color: var(--text-secondary, #ccc);
    flex-wrap: wrap;
}
.trial-banner-link {
    margin-left: auto;
    color: var(--color-accent, #c38e38);
    text-decoration: none;
    font-weight: 500;
}
.trial-banner-link:hover {
    text-decoration: underline;
}

/* ─── Icon button ───────────────────────────────────────────────────────────── */
.icon-button {
    background: transparent;
    border: 1px solid rgba(202, 214, 205, 0.2);
    color: var(--text-primary);
    border-radius: var(--radius-small);
    padding: 0.3rem 0.65rem;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}

.icon-button:hover {
    background: rgba(202, 214, 205, 0.07);
    border-color: rgba(202, 214, 205, 0.35);
}

/* ─── Detail page layout ────────────────────────────────────────────────────── */
@media (min-width: 700px) {
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.detail-card--full {
    grid-column: 1 / -1;
}

.detail-card--map {
    padding-bottom: 0.75rem;
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.detail-card-header .detail-card-title {
    margin: 0;
}

.detail-card-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(202, 214, 205, 0.08);
}

.detail-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.88rem;
}

.detail-row dt {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row dd {
    margin: 0;
    word-break: break-word;
}

.detail-count {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 400;
}

.detail-chip {
    display: inline-block;
    background: rgba(202, 214, 205, 0.08);
    color: var(--text-secondary);
    border-radius: 3px;
    padding: 0.12rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .detail-row {
        grid-template-columns: 7rem 1fr;
    }
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb-sep {
    color: rgba(202, 214, 205, 0.3);
}

/* ─── Property map ──────────────────────────────────────────────────────────── */
.property-map-container {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-small);
    overflow: hidden;
    background: rgba(202, 214, 205, 0.05);
}

/* ─── Property list (customer detail) ──────────────────────────────────────── */
.property-list {
    display: grid;
    gap: 0.4rem;
}

.property-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(202, 214, 205, 0.04);
    border: 1px solid rgba(202, 214, 205, 0.08);
    border-radius: var(--radius-small);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: background 0.1s;
}

.property-list-item:hover {
    background: rgba(202, 214, 205, 0.08);
}

.property-list-name {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.property-list-meta {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ─── Crew member list ──────────────────────────────────────────────────────── */
.member-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.member-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(202, 214, 205, 0.07);
    font-size: 0.88rem;
}

.member-list-item:last-child {
    border-bottom: none;
}

.member-name {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.member-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    font-size: 0.8rem;
}

/* ─── Capture grid ──────────────────────────────────────────────────────────── */
.capture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.capture-thumbnail--placeholder {
    background: rgba(202, 214, 205, 0.05);
    border: 1px dashed rgba(202, 214, 205, 0.15);
    border-radius: var(--radius-small);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.capture-notes {
    font-size: 0.78rem;
    margin: 0.3rem 0 0;
}

/* ─── Tappable record card ──────────────────────────────────────────────────── */
.record-card--tappable {
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.record-card--tappable:hover {
    border-color: rgba(202, 214, 205, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

/* ─── Property access strip ─────────────────────────────────────────────────── */
.property-access-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    font-size: 0.82rem;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-small);
    background: rgba(226, 173, 87, 0.06);
    border: 1px solid rgba(226, 173, 87, 0.18);
}

.property-access-gate {
    font-weight: 600;
    color: var(--accent-strong);
    white-space: nowrap;
}

.property-access-notes {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 32ch;
}

/* ─── TRAQ risk matrix ──────────────────────────────────────────────────────── */
.traq-matrix { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 2px; margin: 8px 0; font-size: 12px; }
.traq-matrix .header { font-weight: 600; padding: 4px; text-align: center; color: var(--text-muted); }
.traq-matrix .row-header { font-weight: 600; padding: 4px; color: var(--text-muted); }
.traq-matrix .cell { padding: 6px 4px; text-align: center; border-radius: 3px; background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.traq-matrix .cell.active { outline: 2px solid var(--accent); outline-offset: -1px; }
.traq-matrix .risk-low { background: rgba(79, 157, 105, 0.2); color: #9ed0ad; }
.traq-matrix .risk-moderate { background: rgba(214, 160, 70, 0.2); color: #f0c87e; }
.traq-matrix .risk-high { background: rgba(214, 110, 40, 0.22); color: #f0a07e; }
.traq-matrix .risk-extreme { background: rgba(197, 106, 85, 0.22); color: #f0b3a4; }
.traq-risk-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-weight: 600; font-size: 13px; }
.traq-risk-badge.risk-low { background: rgba(79, 157, 105, 0.18); color: #9ed0ad; }
.traq-risk-badge.risk-moderate { background: rgba(214, 160, 70, 0.18); color: #f0c87e; }
.traq-risk-badge.risk-high { background: rgba(214, 110, 40, 0.2); color: #f0a07e; }
.traq-risk-badge.risk-extreme { background: rgba(197, 106, 85, 0.18); color: #f0b3a4; }

/* ─── Calendar ──────────────────────────────────────────────────────────────── */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: rgba(202, 214, 205, 0.1);
    border: 1px solid rgba(202, 214, 205, 0.12);
    border-radius: var(--radius-medium);
    overflow: hidden;
}

.calendar-grid--full {
    margin-top: 0.5rem;
}

.calendar-dow {
    background: var(--background-elevated);
    padding: 0.45rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-align: center;
}

.calendar-cell {
    background: var(--background-base, #111715);
    min-height: 5rem;
    padding: 0.35rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: background 0.12s;
}

.calendar-cell--other {
    opacity: 0.35;
    pointer-events: none;
}

.calendar-cell--today .calendar-day {
    background: var(--accent-primary);
    color: var(--background-base);
    border-radius: 999px;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.calendar-cell--selected {
    background: rgba(202, 214, 205, 0.07);
    outline: 2px solid rgba(202, 214, 205, 0.3);
    outline-offset: -2px;
}

.calendar-cell--has-jobs:hover {
    background: rgba(202, 214, 205, 0.05);
}

.calendar-day {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 1.5rem;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.calendar-event {
    background: rgba(94, 170, 107, 0.15);
    color: var(--accent-primary, #5eaa6b);
    border-radius: 3px;
    padding: 0.12rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: default;
}

.calendar-event--more {
    background: rgba(202, 214, 205, 0.08);
    color: var(--text-secondary);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .calendar-cell {
        min-height: 3.5rem;
        padding: 0.2rem;
    }

    .calendar-event {
        display: none;
    }

    .calendar-cell--has-jobs::after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent-primary, #5eaa6b);
        margin: 2px auto 0;
    }
}

/* ─── Schedule calendar section ─────────────────────────────────────────────── */
.schedule-calendar-section {
    padding: 1rem;
    background: var(--background-elevated, #1a1f1c);
    border: 1px solid rgba(202, 214, 205, 0.12);
    border-radius: var(--radius-medium);
    margin-bottom: 1.25rem;
}

.schedule-calendar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.schedule-calendar-header .calendar-month-label {
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
}

.calendar-today-btn {
    margin-left: auto;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

.schedule-day-panel {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(202, 214, 205, 0.1);
}

.schedule-day-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── Landing page dark band ────────────────────────────────────────────────── */
.landing-sell-band--dark {
    background: rgba(0, 0, 0, 0.25);
}

/* ─── Learn More page ───────────────────────────────────────────────────────── */
.learn-more-workflow {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 0;
}

.learn-more-workflow-heading,
.learn-more-screenshots-heading,
.learn-more-segments-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    text-align: center;
}

.learn-more-workflow-sub {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.92rem;
}

.learn-more-workflow-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.learn-more-workflow-steps li {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 1rem;
    align-items: start;
}

.learn-more-step-num {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent-primary, #5eaa6b);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.learn-more-workflow-steps li strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.learn-more-workflow-steps li p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.learn-more-screenshots {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.learn-more-screenshots-heading {
    margin-bottom: 1.5rem;
}

.learn-more-screenshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.learn-more-screenshot-item {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.learn-more-screenshot-item img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.learn-more-screenshot-item figcaption {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
}

.learn-more-screenshot-cta {
    text-align: center;
}

.learn-more-segments {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.learn-more-segments-heading {
    margin-bottom: 1.5rem;
}

.learn-more-segment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.learn-more-segment-item {
    display: grid;
    gap: 0.35rem;
}

.learn-more-segment-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.learn-more-segment-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (min-width: 700px) {
    .learn-more-screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .learn-more-segment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    .learn-more-screenshot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
