/*
 * Wesellmart responsive design foundation.
 * Loaded last so public, Professional, and Ops surfaces share one visual language.
 */

:root {
    --wsm-primary: #0d9488;
    --wsm-primary-dark: #0f766e;
    --wsm-primary-deep: #115e59;
    --wsm-primary-soft: #ccfbf1;
    --wsm-navy: #0f172a;
    --wsm-navy-soft: #1e293b;
    --wsm-canvas: #f6f8fa;
    --wsm-surface: #ffffff;
    --wsm-surface-soft: #f8fafc;
    --wsm-text: #0f172a;
    --wsm-muted: #64748b;
    --wsm-border: #e2e8f0;
    --wsm-focus: rgba(13, 148, 136, 0.24);
    --wsm-radius-sm: 8px;
    --wsm-radius: 12px;
    --wsm-radius-lg: 16px;
    --wsm-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --wsm-shadow-raised: 0 18px 42px rgba(15, 23, 42, 0.1);
    --wsm-content: 1200px;

    --app-bg: var(--wsm-canvas);
    --app-panel: var(--wsm-surface);
    --app-panel-soft: var(--wsm-surface-soft);
    --app-ink: var(--wsm-text);
    --app-muted: var(--wsm-muted);
    --app-border: var(--wsm-border);
    --app-primary: var(--wsm-primary);
    --app-primary-strong: var(--wsm-primary-dark);

    --pdb-blue: var(--wsm-primary);
    --pdb-blue-d: var(--wsm-primary-dark);
    --pdb-purple: var(--wsm-navy-soft);
    --pdb-bg: var(--wsm-canvas);
    --pdb-radius: var(--wsm-radius);
    --pdb-shadow: var(--wsm-shadow-soft);

    --navy: var(--wsm-navy);
    --navy-2: var(--wsm-navy-soft);
    --blue: var(--wsm-primary);
    --purple: var(--wsm-primary-deep);
    --bg: var(--wsm-canvas);
    --card: var(--wsm-surface);
    --text: var(--wsm-text);
    --muted: var(--wsm-muted);
    --border: var(--wsm-border);
    --ops-shadow: var(--wsm-shadow-raised);
    --ops-shadow-soft: var(--wsm-shadow-soft);
}

html {
    text-size-adjust: 100%;
}

body {
    background: var(--wsm-canvas);
    overflow-x: hidden;
}

img,
svg,
canvas {
    max-width: 100%;
}

iframe,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    max-width: 100%;
}

:where(
    .app-main,
    .app-content,
    .app-panel,
    .app-hero-card,
    .app-topbar,
    .app-topbar > *,
    .app-section-header > *,
    .app-grid > *,
    .app-metric-grid > *,
    .app-lead-grid > *,
    .pro-lead-explorer > *,
    .app-pack-grid > *,
    .app-detail-grid > *,
    .ops-page-grid > *,
    .ops-dashboard-grid > *,
    .ops-analytics-grid > *,
    .ops-stat-grid > *,
    .pdb-stat-grid > *,
    .pdb-charts-row > *,
    .pdb-lists-row > *
) {
    min-width: 0;
}

/* Professional lead explorer */
.pro-lead-map-toggle {
    display: none;
    margin-bottom: 1rem;
}

.pro-lead-explorer {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1.18fr);
}

.pro-lead-list {
    grid-template-columns: 1fr;
}

.pro-lead-map-panel {
    background: var(--app-panel-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--wsm-radius-lg);
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    position: sticky;
    top: 1rem;
}

.pro-lead-map-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.pro-lead-map-heading strong {
    color: var(--app-ink);
    display: block;
    font-size: 1rem;
}

.pro-lead-map {
    background:
        radial-gradient(circle at 30% 35%, rgba(13, 148, 136, 0.12), transparent 28%),
        var(--wsm-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--wsm-radius);
    height: min(66vh, 620px);
    min-height: 440px;
    overflow: hidden;
    width: 100%;
    z-index: 0;
}

.pro-lead-map.is-unavailable {
    align-items: center;
    color: var(--app-muted);
    display: flex;
    font-weight: 750;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.app-lead-card.is-map-active {
    border-color: var(--wsm-primary);
    box-shadow: 0 0 0 3px var(--wsm-focus), var(--wsm-shadow-soft);
}

/* Professional decision workspace */
.pro-action-hero,
.pro-matching-summary {
    align-items: center;
    background:
        radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.2), transparent 34%),
        linear-gradient(135deg, var(--wsm-navy), #17344c);
    border-radius: var(--wsm-radius-lg);
    color: #ffffff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.pro-action-hero h2,
.pro-matching-summary h2 {
    color: #ffffff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin: 0.25rem 0 0.5rem;
}

.pro-action-hero p,
.pro-matching-summary p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 720px;
}

.pro-action-hero .app-eyebrow,
.pro-matching-summary .app-eyebrow {
    color: #5eead4;
}

.pro-action-hero-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pro-action-hero .app-button.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.pro-work-grid,
.pro-detail-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pro-detail-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.pro-decision-panel {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 7rem;
}

.pro-decision-panel form,
.pro-decision-panel .app-button {
    width: 100%;
}

.pro-priority-list {
    display: grid;
    gap: 0.75rem;
}

.pro-priority-row {
    align-items: center;
    background: var(--app-panel-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--wsm-radius);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.pro-priority-row > div {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.pro-priority-row strong,
.pro-contact-grid strong {
    color: var(--app-ink);
}

.pro-priority-row small {
    color: var(--app-muted);
    font-weight: 700;
}

.pro-performance-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.pro-performance-summary > div {
    background: var(--app-panel-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--wsm-radius);
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
}

.pro-performance-summary span,
.pro-contact-grid span {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pro-performance-summary strong {
    color: var(--app-ink);
    font-size: 1.45rem;
}

.pro-performance-summary small {
    color: var(--app-muted);
    font-weight: 700;
}

.pro-matching-summary {
    align-items: start;
    display: grid;
}

.pro-matching-summary .pro-performance-summary {
    margin: 0;
    width: 100%;
}

.pro-matching-summary .pro-performance-summary > div {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.pro-matching-summary .pro-performance-summary span,
.pro-matching-summary .pro-performance-summary small {
    color: rgba(255, 255, 255, 0.62);
}

.pro-matching-summary .pro-performance-summary strong {
    color: #ffffff;
}

.pro-secondary-charts {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
}

.pro-detail-section {
    border-top: 1px solid var(--app-border);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.pro-detail-section h3 {
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 900;
}

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

.pro-contact-grid > * {
    background: var(--app-panel-soft);
    border: 1px solid var(--app-border);
    border-radius: var(--wsm-radius);
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    text-decoration: none;
}

.pro-pipeline-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pro-pipeline-card {
    background: var(--app-panel);
    border: 1px solid var(--app-border);
    border-radius: var(--wsm-radius);
    box-shadow: var(--wsm-shadow-soft);
    color: var(--app-muted);
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    text-decoration: none;
}

.pro-pipeline-card strong {
    color: var(--app-ink);
    font-size: 1.6rem;
}

.pro-pipeline-card.active,
.pro-pipeline-card:hover {
    border-color: var(--wsm-primary);
    box-shadow: 0 0 0 3px var(--wsm-focus);
}

.pro-guidance-note {
    background: var(--wsm-primary-soft);
    border-radius: var(--wsm-radius);
    color: var(--wsm-primary-deep);
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding: 0.9rem;
}

.auth-main {
    min-width: 0;
    width: 100%;
}

:where(
    .app-content,
    .app-panel,
    .app-hero-card,
    .app-list-row,
    .app-action-row,
    .app-table-row,
    .lead-card,
    .lead-detail-card,
    .ops-panel,
    .ops-stat-card,
    .pdb-chart-card,
    .pdb-list-card,
    .pdb-stat-card
) {
    overflow-wrap: anywhere;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--wsm-focus);
    outline-offset: 3px;
}

.container,
.wsm-container {
    width: min(100% - 2rem, var(--wsm-content));
}

.btn,
.app-button,
.ops-btn,
.pdb-btn-view,
.pdb-btn-credits {
    border-radius: var(--wsm-radius-sm);
    min-height: 44px;
}

.btn-primary,
.app-button.primary,
.ops-btn-primary,
.pdb-btn-credits {
    background: var(--wsm-primary);
    border-color: var(--wsm-primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.app-button.primary:hover,
.ops-btn-primary:hover,
.pdb-btn-credits:hover {
    background: var(--wsm-primary-dark);
    border-color: var(--wsm-primary-dark);
    color: #ffffff;
}

/* Public experience */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.section-hero {
    background:
        radial-gradient(circle at 15% 15%, rgba(13, 148, 136, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
    min-height: auto;
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-center {
    max-width: 980px;
}

.hero-center-title {
    color: var(--wsm-navy);
    font-size: clamp(2.55rem, 7vw, 5rem);
    line-height: 1.02;
}

.hero-em,
.section-kicker {
    color: var(--wsm-primary-dark);
}

.hero-pill-form {
    border: 1px solid rgba(13, 148, 136, 0.14);
    box-shadow: var(--wsm-shadow-raised);
}

.hero-pill-field,
.hero-pill-btn {
    min-height: 64px;
}

.svc-card,
.testimonial-card,
.dark-pro-banner {
    border-color: var(--wsm-border);
    box-shadow: var(--wsm-shadow-soft);
}

.svc-card {
    scroll-snap-align: start;
}

.svc-carousel-scroll {
    scroll-snap-type: x proximity;
}

.dark-pro-banner {
    background: var(--wsm-navy);
}

.footer-grid {
    gap: clamp(1.5rem, 4vw, 3rem);
}

/* Shared application shell */
.app-shell {
    background: var(--wsm-canvas);
    grid-template-columns: 264px minmax(0, 1fr);
}

.app-shell .app-sidebar {
    background:
        radial-gradient(circle at 12% 0%, rgba(13, 148, 136, 0.2), transparent 30%),
        linear-gradient(180deg, var(--wsm-navy) 0%, #111f33 100%);
    border-right: 0;
    box-shadow: 6px 0 24px rgba(15, 23, 42, 0.12);
    color: #ffffff;
    gap: 1rem;
    height: 100vh;
    overflow-y: auto;
    padding: 1.25rem 1rem;
}

.app-shell .app-brand {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    min-height: 56px;
    padding: 0.2rem 0.5rem 1rem;
}

.app-shell .app-brand:hover,
.app-shell .app-brand:focus {
    color: #ffffff;
}

.app-shell .app-brand-logo {
    filter: brightness(0) invert(1);
}

.app-shell .app-sidebar-label,
.app-shell .pro-nav-label,
.app-shell .ops-nav-label {
    color: rgba(255, 255, 255, 0.48);
}

.app-shell .app-nav-item {
    border: 1px solid transparent;
    border-radius: var(--wsm-radius-sm);
    color: rgba(255, 255, 255, 0.72);
    min-height: 44px;
    padding: 0.62rem 0.65rem;
}

.app-shell .app-nav-item:hover,
.app-shell .app-nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.app-shell .app-nav-item.active {
    background: var(--wsm-primary);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.22);
    color: #ffffff;
}

.app-shell .app-nav-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
}

.app-shell .app-nav-icon svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 15px;
}

.app-shell .app-sidebar-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.app-sidebar-card-caption {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.app-main {
    min-width: 0;
    padding: 0;
}

.app-topbar {
    background: rgba(246, 248, 250, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--wsm-border);
    gap: 1rem;
    margin: 0;
    padding: 1.25rem clamp(1rem, 2.5vw, 2rem);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-topbar h1,
.app-shell--ops .app-topbar h1 {
    color: var(--wsm-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.025em;
}

.app-subtitle {
    color: var(--wsm-muted);
    margin-bottom: 0;
}

.app-content,
.app-messages,
.app-shell--ops .app-content,
.app-shell--ops .app-messages {
    margin-inline: auto;
    max-width: 1540px;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    width: 100%;
}

.app-content {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 2rem;
    padding-top: 1.5rem;
}

.app-panel,
.pdb-stat-card,
.pdb-chart-card,
.pdb-credits-card,
.pdb-list-card,
.ops-stat-card,
.ops-panel {
    background: var(--wsm-surface);
    border: 1px solid var(--wsm-border);
    border-radius: var(--wsm-radius);
    box-shadow: var(--wsm-shadow-soft);
}

.pdb-stat-card:hover,
.ops-stat-card:hover {
    border-color: rgba(13, 148, 136, 0.28);
}

.pdb-stat-icon.blue,
.pdb-stat-icon.purple,
.tone-blue,
.tone-purple {
    background: var(--wsm-primary-soft);
    color: var(--wsm-primary-dark);
}

.pdb-badge-new,
.ops-health-badge.warning,
.status-submitted,
.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.ops-panel-header a,
.ops-row-action,
.pdb-card-header a,
.pdb-btn-view:hover {
    color: var(--wsm-primary-dark);
}

.ops-period-filter,
.pdb-filter-select,
.ops-notification,
.pro-sidebar-toggle,
.ops-sidebar-toggle {
    min-height: 44px;
}

.app-shell--ops {
    background: var(--wsm-canvas);
    grid-template-columns: 264px minmax(0, 1fr);
}

.app-shell--ops .app-main {
    padding: 0;
}

.app-shell--ops .app-topbar {
    background: rgba(246, 248, 250, 0.9);
    margin: 0;
    padding: 1.25rem clamp(1rem, 2.5vw, 2rem);
}

.app-shell--ops .app-nav-item.active {
    background: var(--wsm-primary);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.22);
}

.ops-avatar {
    background: var(--wsm-primary);
}

.ops-btn-primary {
    background: var(--wsm-primary);
}

.ops-filter-bar input:focus,
.ops-filter-bar select:focus {
    border-color: var(--wsm-primary);
    box-shadow: 0 0 0 3px var(--wsm-focus);
}

.ops-rank-list em {
    background: linear-gradient(90deg, var(--wsm-primary), var(--wsm-primary-dark));
}

.ops-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: #cbd5e1 transparent;
    width: 100%;
}

.pdb-chart-period {
    font-size: 0.8rem;
    min-height: 34px;
}

.pdb-chart-wrap-primary {
    height: 240px;
}

.pdb-empty-full {
    width: 100%;
}

.notification-message {
    white-space: pre-line;
}

.notification-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.ops-health-banner-inline {
    margin-bottom: 0;
    margin-top: 0.85rem;
}

.ops-billing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.ops-muted {
    color: var(--wsm-muted);
}

@media (max-width: 1199.98px) {
    .app-shell {
        grid-template-columns: 244px minmax(0, 1fr);
    }

    .app-shell--ops {
        grid-template-columns: 244px minmax(0, 1fr);
    }

    .ops-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pro-lead-explorer {
        grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
    }
}

@media (max-width: 991.98px) {
    .container,
    .wsm-container {
        width: min(100% - 1.5rem, var(--wsm-content));
    }

    .navbar-collapse {
        background: #ffffff;
        border: 1px solid var(--wsm-border);
        border-radius: var(--wsm-radius);
        box-shadow: var(--wsm-shadow-raised);
        margin-top: 0.75rem;
        padding: 0.75rem;
    }

    .navbar .nav-link,
    .navbar .join-btn {
        min-height: 48px;
        width: 100%;
    }

    .app-shell,
    .app-shell--ops {
        display: block;
    }

    .app-shell .app-sidebar,
    .app-shell--ops .app-sidebar {
        height: 100dvh;
        left: -300px;
        position: fixed;
        top: 0;
        width: 280px;
        z-index: 100;
    }

    .app-shell .app-sidebar.is-open,
    .app-shell--ops .app-sidebar.is-open {
        left: 0;
        box-shadow: 12px 0 36px rgba(15, 23, 42, 0.3);
    }

    .app-topbar,
    .app-shell--ops .app-topbar {
        align-items: flex-start;
        flex-direction: column;
        position: sticky;
    }

    .app-topbar-actions,
    .app-shell--ops .app-topbar-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .app-hero-card {
        align-items: stretch;
        flex-direction: column;
    }

    .app-hero-balance {
        min-width: 0;
        width: 100%;
    }

    .app-filter-bar,
    .questionnaire-meta-grid,
    .questionnaire-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pro-summary,
    .credit-pack-grid,
    .lead-meta-grid.detail,
    .lead-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdb-stat-grid,
    .pdb-charts-row,
    .pdb-lists-row,
    .ops-stat-grid,
    .ops-dashboard-grid,
    .ops-analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-panel-wide,
    .ops-health-panel,
    .ops-responses-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .pdb-charts-row .pdb-chart-card:first-child {
        grid-column: 1 / -1;
    }

    .pro-lead-map-toggle {
        display: inline-flex;
    }

    .pro-lead-explorer {
        grid-template-columns: 1fr;
    }

    .pro-lead-map-panel {
        display: none;
        position: static;
    }

    .pro-lead-map-panel.is-open {
        display: grid;
        grid-row: 1;
    }

    .pro-lead-map {
        height: min(58vh, 520px);
        min-height: 360px;
    }

    .pro-action-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .pro-action-hero-actions {
        width: 100%;
    }

    .pro-work-grid,
    .pro-detail-layout,
    .pro-secondary-charts {
        grid-template-columns: 1fr;
    }

    .pro-decision-panel {
        position: static;
    }

    .pro-performance-summary,
    .pro-pipeline-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .section-hero {
        padding: 3.5rem 0 4rem;
    }

    .hero-center-title br {
        display: none;
    }

    .hero-pill-form {
        border-radius: var(--wsm-radius-lg);
        padding: 0.6rem;
    }

    .hero-pill-grid {
        grid-template-columns: 1fr;
    }

    .hero-pill-field,
    .hero-pill-btn {
        border: 1px solid var(--wsm-border);
        border-radius: var(--wsm-radius-sm);
        min-height: 56px;
        width: 100%;
    }

    .hero-checkmarks {
        align-items: flex-start;
        display: grid;
        gap: 0.6rem;
        justify-content: center;
    }

    .svc-carousel-nav {
        display: none;
    }

    .svc-carousel-scroll {
        margin-inline: -0.75rem;
        padding-inline: 0.75rem;
    }

    .dark-pro-banner {
        grid-template-columns: 1fr;
    }

    .dark-pro-photo {
        min-height: 240px;
    }

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

    .app-topbar,
    .app-shell--ops .app-topbar {
        padding: 0.9rem 1rem;
    }

    .app-content,
    .app-messages,
    .app-shell--ops .app-content,
    .app-shell--ops .app-messages {
        padding-inline: 0.85rem;
    }

    .app-topbar-actions > *,
    .pdb-topbar-right,
    .pdb-filter-form,
    .ops-period-filter {
        max-width: 100%;
    }

    .app-grid.two,
    .app-grid.settings,
    .app-lead-grid,
    .app-pack-grid,
    .app-quick-links,
    .app-filter-bar,
    .questionnaire-meta-grid,
    .questionnaire-field-grid,
    .pro-summary,
    .credit-pack-grid,
    .lead-meta-grid,
    .lead-meta-grid.detail,
    .lead-contact-grid,
    .lead-detail-list,
    .lead-detail-list.compact,
    .join-service-grid,
    .join-service-choice-grid,
    .join-steps,
    .join-trust-row {
        grid-template-columns: 1fr;
    }

    .app-section-header,
    .app-list-row,
    .app-action-row,
    .lead-card-topline,
    .lead-actions,
    .lead-detail-heading,
    .transaction-row,
    .questionnaire-row-header,
    .questionnaire-row-actions,
    .questionnaire-choice-heading,
    .questionnaire-choice-row,
    .questionnaire-save-row {
        align-items: stretch;
        flex-direction: column;
    }

    .app-section-header,
    .app-card-actions,
    .lead-actions,
    .questionnaire-row-actions {
        flex-wrap: wrap;
    }

    .app-card-actions > *,
    .lead-actions > *,
    .lead-actions form,
    .questionnaire-row-actions > *,
    .questionnaire-save-row > * {
        max-width: 100%;
    }

    .ops-filter-bar {
        align-items: stretch;
    }

    .ops-filter-field {
        flex-basis: calc(50% - 0.65rem);
    }

    .ops-filter-actions {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .pdb-stat-grid,
    .pdb-charts-row,
    .pdb-lists-row,
    .ops-stat-grid,
    .ops-dashboard-grid,
    .ops-analytics-grid {
        grid-template-columns: 1fr;
    }

    .pdb-charts-row .pdb-chart-card:first-child {
        grid-column: auto;
    }

    .pdb-list-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pdb-list-info {
        min-width: calc(100% - 52px);
    }

    .pdb-list-title {
        white-space: normal;
    }

    .pdb-list-actions {
        justify-content: flex-end;
        padding-left: 52px;
        width: 100%;
    }

    .notification-actions {
        flex-wrap: wrap;
        padding-left: 0;
        width: 100%;
    }

    .ops-admin-chip {
        width: auto;
    }

    .ops-table {
        min-width: 680px;
    }
}

@media (max-width: 575.98px) {
    .container,
    .wsm-container {
        width: min(100% - 1rem, var(--wsm-content));
    }

    .brand-logo {
        max-width: 150px;
    }

    .hero-center-title {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }

    .hero-center-copy {
        font-size: 1rem;
    }

    .section-block {
        padding: 3.5rem 0;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-topbar-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .app-topbar-actions .app-logout-form,
    .app-topbar-actions .app-button,
    .ops-period-filter,
    .pdb-topbar-right {
        width: 100%;
    }

    .app-topbar-actions > *,
    .app-section-header > *,
    .app-card-actions > *,
    .app-card-actions form,
    .lead-actions > *,
    .lead-actions form,
    .lead-detail-heading > *,
    .pro-actions > *,
    .wizard-actions > *,
    .ops-filter-actions > *,
    .questionnaire-row-actions > *,
    .questionnaire-save-row > * {
        width: 100%;
    }

    .app-button,
    .ops-btn,
    .pro-actions .btn,
    .wizard-actions .btn,
    .lead-actions .btn,
    .lead-detail-heading .btn {
        justify-content: center;
        width: 100%;
    }

    .app-detail-grid,
    .app-table-row {
        grid-template-columns: 1fr;
    }

    .pro-lead-map {
        height: 54vh;
        min-height: 300px;
    }

    .pro-action-hero-actions,
    .pro-priority-row {
        align-items: stretch;
        flex-direction: column;
    }

    .pro-action-hero-actions .app-button,
    .pro-priority-row .app-button {
        width: 100%;
    }

    .pro-performance-summary,
    .pro-pipeline-summary,
    .pro-contact-grid {
        grid-template-columns: 1fr;
    }

    .app-panel,
    .app-hero-card,
    .lead-card,
    .lead-detail-card,
    .pro-card,
    .wizard-card,
    .onboarding-card {
        padding: 1rem;
    }

    .app-list-row,
    .app-action-row,
    .app-check-list div,
    .transaction-row {
        gap: 0.65rem;
    }

    .ops-filter-field,
    .ops-filter-actions {
        flex-basis: 100%;
        min-width: 0;
    }

    .ops-pagination {
        flex-wrap: wrap;
    }

    .ops-meta-grid {
        grid-template-columns: 1fr;
    }

    .ops-meta-grid div {
        border-bottom: 1px solid var(--wsm-border);
        border-right: 0;
        padding-inline: 0;
    }

    .ops-meta-grid div:last-child {
        border-bottom: 0;
    }

    .ops-table {
        min-width: 620px;
    }

    .ops-table-compact {
        min-width: 560px;
    }

    .onboarding-stepper {
        gap: 0.5rem;
    }

    .pdb-filter-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .pdb-filter-select {
        width: 100%;
    }

    .ops-stat-card,
    .pdb-stat-card {
        min-height: 104px;
    }

    .ops-panel,
    .pdb-chart-card,
    .pdb-list-card,
    .pdb-credits-card {
        padding: 0.85rem;
    }

    .ops-donut-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 359.98px) {
    .container,
    .wsm-container {
        width: min(100% - 0.75rem, var(--wsm-content));
    }

    .app-shell .app-sidebar,
    .app-shell--ops .app-sidebar {
        width: calc(100vw - 24px);
    }

    .app-content,
    .app-messages,
    .app-shell--ops .app-content,
    .app-shell--ops .app-messages {
        padding-inline: 0.6rem;
    }

    .app-topbar,
    .app-shell--ops .app-topbar {
        padding-inline: 0.75rem;
    }

    .auth-main {
        padding-inline: 0.75rem;
    }

    .hero-center-title {
        font-size: 2.15rem;
    }

    .svc-card {
        min-width: calc(100vw - 2rem);
        width: calc(100vw - 2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
