@import url('app-fonts-local.css');
:root {
    --hh-navy: #0B3D5C;
    --hh-navy-deep: #0A2540;
    --hh-teal: #0E7490;
    --hh-success: #0F766E;
    --hh-warning: #B45309;
    --hh-error: #B91C1C;
    --hh-slate: #334155;
    --hh-muted: #64748B;
    --hh-bg: #F1F5F9;
    --hh-surface: #FFFFFF;
    --hh-border: #E2E8F0;
    --hh-appbar-height: 56px;
}

/* Theme picker */
.theme-swatch {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    display: inline-block;
}
.theme-card {
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
    height: 100%;
}
.theme-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.theme-card-selected {
    border-color: var(--hh-teal) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hh-teal) 35%, transparent);
}

/* Greyed-out “coming soon” nav */
.nav-soon {
    opacity: 0.55;
}
.nav-soon .mud-nav-link-text::after {
    content: " \00B7  soon";
    font-size: 0.7em;
    opacity: 0.8;
}

/* Hub attention strip */
.hh-attention-strip {
    border-left: 3px solid var(--hh-warning);
    background: color-mix(in srgb, var(--hh-warning) 8%, var(--hh-surface));
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* To Do list dashboard cards */
.todo-list-card {
    background: linear-gradient(180deg, var(--hh-surface) 0%, color-mix(in srgb, var(--hh-bg) 55%, var(--hh-surface)) 100%);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.todo-list-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: color-mix(in srgb, var(--hh-teal) 40%, var(--hh-border)) !important;
    transform: translateY(-1px);
}
.todo-list-card-alert {
    border-left: 3px solid var(--hh-error) !important;
}
.todo-list-metrics .mud-typography-body2 {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.25;
}
.todo-metric-hot {
    color: var(--hh-error);
    font-weight: 700;
}
.todo-preview-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    color: var(--hh-slate);
    line-height: 1.35;
}
.todo-preview-list li {
    margin-bottom: 0.15rem;
}
.todo-preview {
    border-top: 1px dashed var(--hh-border);
    padding-top: 0.5rem;
}

.project-card {
    background: linear-gradient(180deg, var(--hh-surface) 0%, color-mix(in srgb, var(--hh-bg) 55%, var(--hh-surface)) 100%);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.project-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: color-mix(in srgb, var(--hh-teal) 40%, var(--hh-border)) !important;
    transform: translateY(-1px);
}

.project-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .project-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .project-board {
        grid-template-columns: 1fr;
    }
}

.project-board-col {
    min-height: 200px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid var(--hh-border);
    border-radius: 12px;
    padding: 0.55rem;
}

.project-board-col.urgent { border-top: 3px solid #b91c1c; }
.project-board-col.high { border-top: 3px solid #b45309; }
.project-board-col.medium { border-top: 3px solid #0369a1; }
.project-board-col.low { border-top: 3px solid #64748b; }

.project-board-col-header {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.project-board-empty {
    min-height: 88px;
    border: 1px dashed var(--hh-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hh-muted, #64748b);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
}

.project-tile {
    aspect-ratio: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.65rem;
    margin-bottom: 0.55rem;
    border-radius: 12px;
    border: 1px solid var(--hh-border);
    background: var(--hh-surface, #fff);
    cursor: pointer;
    touch-action: pan-y;
}

.project-tile-handle {
    display: flex;
    align-items: center;
    align-self: flex-start;
    flex-shrink: 0;
    margin: -0.15rem 0 0 -0.15rem;
    padding: 0.15rem;
    color: var(--hh-muted, #64748b);
    cursor: grab;
    touch-action: none;
}

.project-tile-copy {
    min-width: 0;
}

.project-tile.is-draggable {
    cursor: grab;
}

.project-tile.is-draggable:active {
    cursor: grabbing;
}

.project-tile.is-alert {
    border-left: 3px solid var(--hh-error, #b91c1c);
}

.project-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.project-tile-rank-input {
    width: 3.1rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 1px solid var(--hh-border);
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hh-teal, #0e7490);
    background: color-mix(in srgb, var(--hh-teal, #0e7490) 14%, var(--hh-surface, #fff));
}

.project-tile-rank-input:focus {
    outline: 2px solid color-mix(in srgb, var(--hh-teal, #0e7490) 45%, transparent);
    outline-offset: 1px;
}

.project-tile-flag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--hh-error, #b91c1c);
}

.project-tile-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tile-desc,
.project-tile-meta {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--hh-muted, #64748b);
}

.project-tile-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tile-bar {
    margin-top: auto;
}

.project-tile-open {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: var(--hh-teal, #0e7490);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.project-card-rank {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--hh-teal, #0e7490) 14%, var(--hh-surface, #fff));
    color: var(--hh-teal, #0e7490);
}

@media (max-width: 640px) {
    .project-board {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .project-board-col {
        min-height: 0;
        padding: 0.35rem 0.4rem 0.1rem;
    }

    .project-board-col-header {
        margin-bottom: 0.35rem;
    }

    .project-board-empty {
        min-height: 36px;
        margin-bottom: 0.35rem;
    }

    .project-tile {
        aspect-ratio: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
        padding: 0.28rem 0.4rem;
        margin-bottom: 0.35rem;
    }

    .project-tile-handle {
        align-self: center;
        margin: 0;
        padding: 0.35rem 0.15rem;
    }

    .project-tile-top {
        flex: 0 0 auto;
    }

    .project-tile-copy {
        flex: 1;
    }

    .project-tile-desc,
    .project-tile-meta,
    .project-tile-bar {
        display: none;
    }

    .project-tile-name {
        -webkit-line-clamp: 1;
        font-size: 0.875rem;
    }

    .project-tile-flag {
        display: none;
    }

    .project-tile-open {
        margin-left: auto;
        padding: 0.35rem 0.15rem;
    }

    .project-tile-rank-input {
        width: 2.6rem;
        height: 1.55rem;
    }
}

/* UPC label print dialog */
.upc-print-preview {
    display: flex;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--hh-border);
    border-radius: 8px;
}
.upc-print-preview svg {
    max-width: 100%;
    height: auto;
}
.upc-print-code {
    font-family: Consolas, ui-monospace, monospace;
    font-weight: 600;
    letter-spacing: 0.04em;
}

html, body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background: var(--hh-bg);
    color: #0F172A;
}

/* Page chrome */
.page-header {
    margin-bottom: 1.25rem;
}

.page-header .mud-typography-h4 {
    letter-spacing: -0.02em;
}

.chart-card {
    border: 1px solid var(--hh-border);
    border-radius: 10px;
    background: var(--hh-surface);
    height: 100%;
}

.chart-card .chart-card-title {
    color: var(--hh-slate);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.chart-panel {
    position: relative;
    width: 100%;
    min-height: 180px;
}

.chart-panel canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-empty {
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--hh-border);
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.6);
}

/* KPI / stat cards */
.stat-card {
    border: 1px solid var(--hh-border);
    border-radius: 10px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    height: 100%;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.stat-card:hover {
    border-color: rgba(11, 61, 92, 0.25);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.stat-card-clickable {
    cursor: pointer;
}

.stat-card-label {
    color: var(--hh-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.7rem !important;
}

.stat-card-value {
    margin-top: 0.35rem;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--hh-navy-deep);
}

.stat-card-sub {
    color: var(--hh-muted);
    margin-top: 0.25rem;
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon.tone-primary {
    background: rgba(11, 61, 92, 0.1);
    color: var(--hh-navy);
}

.stat-card-icon.tone-secondary {
    background: rgba(14, 116, 144, 0.12);
    color: var(--hh-teal);
}

.stat-card-icon.tone-success {
    background: rgba(15, 118, 110, 0.12);
    color: var(--hh-success);
}

.stat-card-icon.tone-warning {
    background: rgba(180, 83, 9, 0.12);
    color: var(--hh-warning);
}

.stat-card-icon.tone-error {
    background: rgba(185, 28, 28, 0.1);
    color: var(--hh-error);
}

.stat-card-icon.tone-neutral {
    background: rgba(100, 116, 139, 0.12);
    color: var(--hh-muted);
}

/* App bar — keep controls visible, avoid covering content */
.hh-appbar.mud-appbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    min-height: var(--hh-appbar-height);
    z-index: 1200;
    color: #F8FAFC;
}

.hh-appbar .mud-toolbar {
    min-height: var(--hh-appbar-height);
    gap: 0.35rem;
    flex-wrap: nowrap;
    color: #F8FAFC;
}

.hh-appbar-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: #F8FAFC !important;
}

.hh-appbar-user {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 1;
    color: #F8FAFC !important;
}

/* Org picker sits on a dark app bar — force light label/value/helper (not black-on-navy). */
.hh-appbar .org-selector-wrap {
    min-width: 0;
}
.hh-appbar .hh-org-select-field {
    min-width: 140px;
    max-width: 240px;
}
.hh-appbar .org-selector-wrap .mud-input-control,
.hh-appbar .org-selector-wrap .mud-input-label,
.hh-appbar .org-selector-wrap .mud-input-slot,
.hh-appbar .org-selector-wrap .mud-select-input,
.hh-appbar .org-selector-wrap .mud-input-root,
.hh-appbar .org-selector-wrap input,
.hh-appbar .org-selector-wrap .mud-input-helper-text,
.hh-appbar .org-selector-wrap .mud-icon-root,
.hh-appbar .org-selector-wrap .mud-typography {
    color: #F8FAFC !important;
}
.hh-appbar .org-selector-wrap .mud-input-helper-text {
    font-weight: 600;
    opacity: 0.95;
}
.hh-appbar .org-selector-wrap .mud-input-outlined-border {
    border-color: rgba(248, 250, 252, 0.5) !important;
}

.hh-workspace-banner {
    position: relative;
    z-index: 1;
    background: rgba(11, 61, 92, 0.06);
    border: 1px solid rgba(11, 61, 92, 0.14);
    border-radius: 8px;
    margin-bottom: 0.85rem;
}

.hh-banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.hh-banner-workspace {
    min-width: 0;
    flex: 0 1 auto;
}

.hh-banner-workspace-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-banner-role {
    display: none;
}

@media (min-width: 900px) {
    .hh-banner-role {
        display: inline-flex;
    }
}

.hh-banner-hubs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.hh-banner-hub-btn.mud-button-root {
    text-transform: none;
    min-width: 0;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.hh-banner-hub-btn .mud-button-label {
    gap: 0.25rem;
}

.hh-banner-hub-btn .mud-icon-root {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

.hh-banner-actions {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .hh-banner-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .hh-banner-workspace {
        width: 100%;
    }
    .hh-banner-workspace-name {
        max-width: none;
    }
    .hh-banner-hubs {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 0.3rem;
    }
    .hh-banner-hub-btn.mud-button-root {
        width: 100%;
        justify-content: center;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        font-size: 0.72rem;
        min-height: 36px;
    }
    .hh-banner-actions {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hh-banner-hubs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hh-banner-hub-btn .mud-button-start-icon,
    .hh-banner-hub-btn .mud-button-icon-start {
        display: none;
    }
}

.hh-ai-dialog.mud-dialog {
    width: min(640px, calc(100vw - 1.5rem)) !important;
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    background: #fff !important;
    color: #0f172a !important;
    color-scheme: light;
    border-radius: 14px;
    overflow: hidden;
}
.hh-ai-dialog .mud-dialog-title,
.hh-ai-dialog .mud-dialog-content,
.hh-ai-dialog .mud-dialog-actions {
    background: #fff !important;
    color: #0f172a !important;
}
.hh-ai-dialog .mud-dialog-content {
    padding: 0 0.75rem 0.25rem !important;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
}
.hh-ai-dialog .mud-dialog-actions {
    padding: 0 !important;
    border-top: 1px solid #e2e8f0;
}
.hh-ai-dialog .mud-typography,
.hh-ai-dialog .mud-text-secondary {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a;
}
.hh-ai-dialog .mud-icon-button .mud-icon-root {
    color: #0f172a !important;
}
.hh-ai-dialog-title {
    padding-right: 0.5rem;
}
.hh-ai-dialog-body {
    display: flex;
    flex-direction: column;
    max-height: min(62vh, 560px);
    min-height: 18rem;
}
.hh-ai-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0.35rem 0 0.2rem;
}
.hh-ai-hint {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #334155;
}
.hh-ai-native-select,
.hh-ai-native-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff !important;
    color: #0f172a !important;
    font: inherit;
}
.hh-ai-native-select option {
    background: #ffffff;
    color: #0f172a;
}
.hh-ai-native-select:disabled,
.hh-ai-native-textarea:disabled {
    background: #f1f5f9 !important;
    color: #334155 !important;
}
.hh-ai-native-textarea {
    resize: vertical;
    min-height: 4.2rem;
    font-family: inherit;
}
.hh-ai-fields {
    flex-shrink: 0;
    max-height: 42%;
    overflow-y: auto;
}
.hh-ai-scope-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}
.hh-ai-scope-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}
.hh-ai-scope-badge.all {
    background: rgba(14, 116, 144, 0.14);
    color: #0e7490;
}
.hh-ai-scope-badge.one {
    background: #e2e8f0;
    color: #334155;
}
.hh-ai-transcript {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.85rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 12rem;
    background: #f8fafc;
    border-radius: 8px;
}
.hh-ai-empty {
    padding: 0.35rem 0.15rem 0.5rem;
}
.hh-ai-bubble {
    max-width: 94%;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
}
.hh-ai-bubble-role {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    opacity: 0.75;
}
.hh-ai-bubble-text {
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: inherit;
}
.hh-ai-bubble.user {
    align-self: flex-end;
    background: rgba(14, 116, 144, 0.14);
    color: #0f172a;
}
.hh-ai-bubble.bot {
    align-self: flex-start;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hh-ai-composer {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding: 0.75rem;
    flex-shrink: 0;
    background: #fff;
}
.hh-ai-composer-field {
    flex: 1 1 auto;
    min-width: 0;
}
.hh-ai-composer .hh-ai-native-textarea {
    margin-bottom: 0;
}
.hh-ai-composer .hh-ai-label {
    margin-top: 0;
}
/* Main content clears fixed/dense app bar so banner is never covered */
.hh-main-content {
    padding-top: calc(var(--hh-appbar-height) + 12px) !important;
}

.hh-main-content.mud-main-content,
.mud-layout > .mud-main-content {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.hh-legal-footer {
    margin-top: auto;
    margin-bottom: 0;
    padding: 0.65rem 0.25rem 0.5rem;
    border-top: 1px solid var(--hh-border);
    color: #334155;
    font-size: 0.75rem;
    line-height: 1.35;
    flex-shrink: 0;
}
.hh-legal-footer-text,
.hh-legal-footer .mud-typography {
    color: #334155 !important;
}
.hh-legal-footer-link,
.hh-legal-footer a {
    color: #0B3D5C !important;
    font-weight: 600;
}

/* ========== Drawer nav: everything flush left, compact ========== */
.mud-drawer.hh-drawer .mud-drawer-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mud-drawer .hh-nav-menu.mud-navmenu,
.mud-drawer .hh-nav-menu {
    --hh-nav-icon: 18px;
    --hh-nav-row: 34px;
    padding: 4px 4px 8px 4px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Force left alignment for every nav row (Mud defaults can center content) */
.mud-drawer .hh-nav-menu .mud-nav-link,
.mud-drawer .hh-nav-menu .mud-nav-link .mud-nav-link-text {
    justify-content: flex-start !important;
    text-align: left !important;
}

.mud-drawer .hh-nav-menu .mud-nav-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: var(--hh-nav-row) !important;
    height: auto !important;
    padding: 4px 8px 4px 10px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    font-size: 0.8125rem !important;
    line-height: 1.2 !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.mud-drawer .hh-nav-menu .mud-nav-link .mud-nav-link-icon,
.mud-drawer .hh-nav-menu .mud-nav-link .mud-nav-link-icon .mud-icon-root,
.mud-drawer .hh-nav-menu .mud-nav-link .mud-icon-root {
    font-size: var(--hh-nav-icon) !important;
    width: var(--hh-nav-icon) !important;
    height: var(--hh-nav-icon) !important;
    min-width: var(--hh-nav-icon) !important;
    max-width: var(--hh-nav-icon) !important;
    margin: 0 !important;
    flex: 0 0 var(--hh-nav-icon) !important;
}

/* Section groups — full width, left-aligned like flat links */
.hh-nav-group {
    margin: 0;
    width: 100%;
}

.hh-nav-group-header {
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 6px;
    min-height: var(--hh-nav-row);
    box-sizing: border-box;
}

.hh-nav-group-header:hover {
    background: rgba(148, 163, 184, 0.12);
}

.hh-nav-group-active > .hh-nav-group-header {
    background: rgba(14, 116, 144, 0.18);
}

.hh-nav-group-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #E2E8F0;
    cursor: pointer;
    text-align: left;
    padding: 4px 4px 4px 10px;
    margin: 0;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    min-width: 0;
    min-height: var(--hh-nav-row);
    box-sizing: border-box;
}

.hh-nav-group-main:hover {
    color: #F8FAFC;
}

.hh-nav-group-icon,
.hh-nav-group-icon.mud-icon-root,
.hh-nav-group-main .mud-icon-root {
    color: #94A3B8;
    flex: 0 0 var(--hh-nav-icon) !important;
    font-size: var(--hh-nav-icon) !important;
    width: var(--hh-nav-icon) !important;
    height: var(--hh-nav-icon) !important;
    min-width: var(--hh-nav-icon) !important;
    max-width: var(--hh-nav-icon) !important;
    margin: 0 !important;
}

.hh-nav-group-active .hh-nav-group-icon,
.hh-nav-group-active .hh-nav-group-main .mud-icon-root {
    color: #5EEAD4;
}

.hh-nav-group-title {
    flex: 1 1 auto;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8125rem;
    font-weight: 500;
}

.hh-nav-group-toggle {
    flex: 0 0 28px;
    width: 28px;
    height: var(--hh-nav-row);
    border: 0;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.hh-nav-group-toggle .mud-icon-root {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.hh-nav-group-toggle:hover {
    color: #F8FAFC;
    background: rgba(148, 163, 184, 0.1);
}

/* Children: tiny indent only — still left, not pushed mid-drawer */
.hh-nav-sub {
    margin: 0;
    padding: 0;
    width: 100%;
}

.mud-drawer .hh-nav-menu .hh-nav-sub .mud-nav-link {
    min-height: 30px !important;
    /* Only 12px extra from left — hierarchy without centering */
    padding: 3px 8px 3px 22px !important;
    font-size: 0.8125rem !important;
    margin: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

.mud-drawer .hh-nav-menu .hh-nav-sub .mud-nav-link .mud-nav-link-icon,
.mud-drawer .hh-nav-menu .hh-nav-sub .mud-nav-link .mud-icon-root {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    margin: 0 !important;
    flex: 0 0 16px !important;
}

/* Dismissible / collapsible page disclaimers */
.hh-disclaimer {
    border: 1px solid rgba(180, 83, 9, 0.35);
    background: rgba(255, 251, 235, 0.95);
    border-radius: 8px;
    overflow: hidden;
}

.hh-disclaimer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    padding: 0.45rem 0.75rem;
    font: inherit;
    color: inherit;
}

.hh-disclaimer-toggle:hover {
    background: rgba(180, 83, 9, 0.06);
}

.hh-disclaimer-icon {
    color: #B45309;
    flex-shrink: 0;
}

.hh-disclaimer-summary {
    flex: 1;
    font-size: 0.8rem;
    color: #57534E;
    min-width: 0;
}

.hh-disclaimer-body {
    padding: 0 0.75rem 0.65rem 0.75rem;
    border-top: 1px solid rgba(180, 83, 9, 0.15);
}

/* Home Hub landing — compact */
.hh-landing-hero {
    background: linear-gradient(135deg, #0A2540 0%, #0B3D5C 55%, #0E7490 100%);
    color: #F8FAFC;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.hh-landing-hero .mud-typography-subtitle1 {
    color: #F8FAFC !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.hh-landing-hero .mud-typography-caption {
    color: rgba(248, 250, 252, 0.8) !important;
    display: block;
    margin-top: 0.15rem;
}

.hh-section-tile {
    border: 1px solid var(--hh-border);
    border-radius: 8px;
    background: var(--hh-surface);
    padding: 0.65rem 0.75rem;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.hh-section-tile:hover {
    border-color: rgba(11, 61, 92, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.hh-section-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    background: rgba(11, 61, 92, 0.08);
    color: var(--hh-navy);
}

.hh-section-tile-icon .mud-icon-root {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.hh-section-tile-icon.kitchen { background: rgba(14, 116, 144, 0.12); color: #0E7490; }
.hh-section-tile-icon.space { background: rgba(15, 118, 110, 0.12); color: #0F766E; }
.hh-section-tile-icon.finance { background: rgba(180, 83, 9, 0.12); color: #B45309; }
.hh-section-tile-icon.work { background: rgba(11, 61, 92, 0.1); color: #0B3D5C; }

.hh-section-tile-body {
    min-width: 0;
}

.hh-section-tile-body .mud-typography-subtitle2 {
    margin: 0 !important;
    line-height: 1.2 !important;
}

.hh-hub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.hh-hub-links .mud-button-root {
    text-transform: none;
}

.mud-drawer .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background: rgba(14, 116, 144, 0.22) !important;
    color: #F8FAFC !important;
    font-weight: 600;
}

/* Auth / empty layout polish */
.auth-shell {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: 1.25rem 0 0.5rem;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(14, 116, 144, 0.18), transparent 55%),
        radial-gradient(900px 400px at 100% 0%, rgba(11, 61, 92, 0.2), transparent 50%),
        var(--hh-bg);
}

.auth-register-cta.mud-button-root {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-card {
    border: 1px solid var(--hh-border);
    border-radius: 12px;
}

/* Calendar: day cells clip; chips ellipsize. Grid min-width:auto lets long titles overflow neighbors. */
.cal-chip-meal { background: rgba(15, 118, 110, 0.16); }
.cal-chip-todo { background: rgba(3, 105, 161, 0.14); }
.cal-chip-project { background: rgba(180, 83, 9, 0.16); }
.cal-chip-other { background: rgba(100, 116, 139, 0.12); }

.cal-month-grid,
.cal-week-grid {
    display: grid;
    min-width: 0;
}
.cal-month-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.cal-week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.cal-dow {
    padding: 6px 8px;
    font-weight: 600;
    text-align: center;
    color: var(--hh-muted);
    min-width: 0;
}
.cal-day-cell,
.cal-week-cell {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.cal-day-cell {
    min-height: 110px;
    max-height: 148px;
    padding: 4px;
    cursor: pointer;
}
.cal-week-cell {
    min-height: 280px;
    max-height: 420px;
    padding: 8px;
}
.cal-day-cell.cal-day-outside {
    opacity: 0.55;
    background: var(--mud-palette-background-grey);
}
.cal-day-cell.cal-day-today,
.cal-week-cell.cal-day-today {
    border: 2px solid var(--mud-palette-primary);
}
.cal-day-cell.cal-day-today {
    background: rgba(11, 61, 92, 0.08);
}
.cal-week-cell.cal-day-today {
    background: rgba(11, 61, 92, 0.06);
}
.cal-day-num {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    flex-shrink: 0;
    color: var(--hh-navy-deep);
}
.cal-day-today .cal-day-num {
    font-weight: 700;
}
.cal-day-events {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}
.cal-week-cell .cal-day-events {
    overflow-x: hidden;
    overflow-y: auto;
}
.cal-day-more {
    font-size: 0.7rem;
    opacity: 0.8;
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-event-chip-wrap.mud-tooltip-root,
.cal-event-chip-wrap {
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cal-event-chip {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.72rem;
    line-height: 1.2;
    margin-bottom: 3px;
    padding: 3px 5px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.cal-event-chip:hover {
    border-color: rgba(11, 61, 92, 0.35);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

@media (max-width: 700px) {
    .cal-month-grid,
    .cal-week-grid {
        grid-template-columns: repeat(7, minmax(72px, 1fr));
    }
}

/* app-v0.31.5 (Hubprobe prod-0312 minor 4): the range row (< label > Today) was 384 px wide (label min-width 200 px),
   so /calendar scrolled sideways by 22 px at 390. The label keeps 200 px on wider screens and shrinks on phones;
   the month/week grids keep scrolling inside their own panel. */
.cal-range-nav {
    min-width: 0;
    max-width: 100%;
}
.cal-range-label.mud-typography {
    min-width: 200px;
    text-align: center;
}
@media (max-width: 599.98px) {
    .cal-range-nav {
        flex: 1 1 100%;
        gap: 0 !important;
    }
    .cal-range-label.mud-typography {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tables sit cleaner on slate background */
.mud-table {
    border-radius: 10px;
    overflow: hidden;
}

/* Loading / error */
#blazor-error-ui {
    background: #FEF3C7;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

@media (max-width: 900px) {
    .hh-mode-chip {
        display: none !important;
    }
    .hh-appbar-title {
        max-width: 7.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hh-appbar-user {
        display: none !important;
    }
    .hh-appbar .org-selector-wrap {
        max-width: 150px;
        flex: 1 1 auto;
    }
    .hh-appbar .hh-org-select-field {
        min-width: 0;
        max-width: 150px;
    }
    .hh-appbar .org-selector-wrap .mud-input-helper-text {
        display: none;
    }
}

/* Parent rows that open a children popup */
.todo-row-has-children {
    background: linear-gradient(90deg, rgba(14, 116, 144, 0.04) 0%, transparent 48%);
}

.todo-row-has-children:hover {
    background: linear-gradient(90deg, rgba(14, 116, 144, 0.08) 0%, rgba(241, 245, 249, 0.6) 55%);
}

.child-count-chip {
    cursor: pointer;
    font-weight: 600;
}

/* Children popup */
.child-items-dialog-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(14, 116, 144, 0.12);
    color: var(--hh-teal);
}

.child-items-progress-bar {
    height: 8px !important;
}

.child-items-empty {
    border-style: dashed !important;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.5);
}

.child-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: min(52vh, 480px);
    overflow-y: auto;
    padding-right: 2px;
}

.child-item-card {
    border-radius: 10px !important;
    border-color: var(--hh-border) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: var(--hh-surface);
}

.child-item-card:hover {
    border-color: rgba(14, 116, 144, 0.35) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.child-item-card.is-done {
    background: rgba(241, 245, 249, 0.65);
    opacity: 0.92;
}

.child-item-card.is-overdue:not(.is-done) {
    border-left: 3px solid var(--hh-error) !important;
}

.child-item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.65rem 0.55rem;
}

.child-item-check {
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.child-item-body {
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.child-item-title.done-title {
    text-decoration: line-through;
    color: var(--hh-muted);
}

.child-item-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.15rem;
}

.child-item-meta .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--hh-muted);
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--hh-border);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.child-item-meta .meta-pill .mud-icon-root {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.child-item-meta .meta-overdue {
    color: var(--hh-error);
    border-color: rgba(185, 28, 28, 0.25);
    background: rgba(185, 28, 28, 0.06);
}

.child-item-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

/* Priority drag-and-drop lists */
.priority-drop-list {
    min-height: 48px;
}

.priority-row {
    border-radius: 10px !important;
    border-color: var(--hh-border) !important;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.priority-row:hover {
    border-color: rgba(14, 116, 144, 0.35) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.priority-row.is-done {
    background: rgba(241, 245, 249, 0.65);
}

.priority-row-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.65rem 0.6rem;
}

.child-item-drag {
    cursor: grab;
    padding-top: 0.35rem;
    flex-shrink: 0;
}

.child-item-drag:active {
    cursor: grabbing;
}

.child-drop-zone {
    min-height: 40px;
    gap: 0.55rem;
}

.child-drop-ok {
    outline: 2px dashed rgba(14, 116, 144, 0.45);
    outline-offset: 2px;
    border-radius: 8px;
}

.child-dragging {
    opacity: 0.55;
}

/* Striving 4 Solutions front door */
.s4s-landing {
    --s4s-bg0: #070b18;
    --s4s-bg1: #0f172a;
    --s4s-ink: #e2e8f0;
    --s4s-muted: #94a3b8;
    --s4s-cyan: #22d3ee;
    --s4s-indigo: #818cf8;
    --s4s-violet: #c084fc;
    --s4s-pink: #f472b6;
    --s4s-teal: #2dd4bf;
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(34, 211, 238, 0.22), transparent 55%),
        radial-gradient(800px 480px at 95% 8%, rgba(168, 85, 247, 0.28), transparent 50%),
        radial-gradient(700px 420px at 70% 100%, rgba(244, 114, 182, 0.16), transparent 55%),
        linear-gradient(165deg, #070b18 0%, #111827 42%, #0b1224 100%);
    color: var(--s4s-ink);
}

.s4s-bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.s4s-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

.s4s-orb-a {
    width: 280px;
    height: 280px;
    left: -60px;
    top: 120px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.7), transparent 70%);
}

.s4s-orb-b {
    width: 320px;
    height: 320px;
    right: -80px;
    top: 40px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.75), transparent 70%);
}

.s4s-orb-c {
    width: 260px;
    height: 260px;
    right: 18%;
    bottom: 8%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.55), transparent 70%);
}

.s4s-grid-glow {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
}

.s4s-page {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2.9rem;
}

.s4s-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.25);
}

.s4s-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.s4s-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
    overflow: hidden;
}

.s4s-mark svg { display: block; width: 100%; height: 100%; }

.s4s-brand-name,
.s4s-brand-sub {
    display: block;
}

.s4s-brand-name {
    white-space: nowrap; /* app-v0.31.7 (Sightline v4): never wraps at 390px */
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: 0.95rem;
    color: #f8fafc;
}

.s4s-brand-sub {
    margin-top: 0.18rem;
    color: var(--s4s-muted);
    font-size: 0.75rem;
}

.s4s-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.s4s-who {
    color: var(--s4s-muted);
    font-size: 0.8rem;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s4s-text-btn {
    border: 0;
    background: transparent;
    color: var(--s4s-cyan);
    font-weight: 650;
    cursor: pointer;
    padding: 0.4rem 0.2rem;
}

.s4s-hero {
    margin: 0 0 1.35rem;
    padding: 1.1rem 1.2rem 1.15rem;
    border-radius: 1.35rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(15, 23, 42, 0.55);
    border: none;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(14px);
}

.s4s-hero-copy { min-width: 0; }

.s4s-main h1 {
    margin: 0.25rem 0 0.55rem;
    font-size: clamp(1.55rem, 3.6vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 720;
    max-width: 14ch;
    color: #f8fafc;
    background: linear-gradient(105deg, #f8fafc 20%, #a5f3fc 55%, #c4b5fd 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.s4s-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--s4s-cyan);
}

.s4s-lead {
    margin: 0;
    max-width: 32rem;
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.45;
}

.s4s-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.s4s-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.s4s-chip:nth-child(2) {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.35);
}

.s4s-chip:nth-child(3) {
    background: rgba(244, 114, 182, 0.14);
    border-color: rgba(244, 114, 182, 0.35);
}

.s4s-hero-art {
    display: flex;
    justify-content: center;
}

.s4s-hero-svg {
    width: min(100%, 340px);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(99, 102, 241, 0.35));
}

.s4s-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.s4s-card {
    position: relative;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.2rem;
    padding: 1.3rem 1.25rem 1.15rem;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.s4s-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--s4s-cyan), var(--s4s-indigo), var(--s4s-pink));
    opacity: 0.85;
}

/* app-v0.20.57: the lift is for a real hovering pointer only. On phones a tap left the card stuck in :hover (lifted), so it
   looked like it reacted while nothing happened. Touch gets a pressed state instead (see .s4s-card-link below). */
@media (hover: hover) and (pointer: fine) {
    .s4s-card:hover {
        transform: translateY(-4px);
        border-color: rgba(165, 243, 252, 0.35);
        box-shadow:
            0 22px 50px rgba(2, 6, 23, 0.5),
            0 0 0 1px rgba(34, 211, 238, 0.12);
    }
}

/* Home Hub / Business Hub: the title link stretches over the whole card (one tap anywhere opens the hub); the card's
   buttons and links stay on top and keep their own actions. */
.s4s-card-link {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.s4s-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
}

.s4s-card-link:focus-visible { outline: none; }
.s4s-card:has(.s4s-card-link:focus-visible) { outline: 2px solid #67e8f9; outline-offset: 3px; }
.s4s-card:has(.s4s-card-link:active) { border-color: rgba(165, 243, 252, 0.45); background-color: rgba(34, 211, 238, 0.06); }

.s4s-card .s4s-card-actions,
.s4s-card .s4s-deck-stamp {
    position: relative;
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .s4s-card-link:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
}

.s4s-card-home::before { background: linear-gradient(90deg, #14b8a6, #0ea5e9); }
.s4s-card-business::before { background: linear-gradient(90deg, #6366f1, #22d3ee); }
.s4s-card-home-stead::before { background: linear-gradient(90deg, #f59e0b, #84cc16); }
.s4s-card-shop::before { background: linear-gradient(90deg, #ec4899, #a855f7); }

.s4s-card-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.s4s-card-icon svg { display: block; width: 100%; height: 100%; }

.s4s-card-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.s4s-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.s4s-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
    flex: 1 1 auto;
}

.s4s-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.s4s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* app-v0.31.7 (Hubprobe t0317 minor): was 43.2px; 44px touch target */
    box-sizing: border-box;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .s4s-btn:hover { transform: translateY(-1px); }
}
.s4s-btn:disabled { opacity: 0.7; cursor: progress; }

.s4s-btn-fill {
    background: linear-gradient(120deg, #22d3ee, #6366f1 55%, #a855f7);
    color: #0b1020;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.s4s-card-home .s4s-btn-fill {
    background: linear-gradient(120deg, #2dd4bf, #0ea5e9);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
}

.s4s-card-business .s4s-btn-fill {
    background: linear-gradient(120deg, #818cf8, #22d3ee);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}

.s4s-btn-line {
    background: rgba(15, 23, 42, 0.35);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.35);
}

.s4s-btn-line:hover {
    border-color: rgba(165, 243, 252, 0.55);
    background: rgba(34, 211, 238, 0.1);
}


.s4s-deck-stamp {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: #94a3b8;
}
.s4s-foot {
    margin-top: 1.9rem;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 42rem;
}

.s4s-foot p { margin: 0; }
/* app-v0.31.7 (Sightline v5): MudBlazor's global "a { color: var(--mud-palette-text-primary) }" turned the footer links
   near-black on the dark landing once the app loaded. Keep them light (AA on #0d1425) and keep the phone on one line. */
.s4s-foot a { color: #e2e8f0; text-decoration: underline; text-underline-offset: 2px; }
.s4s-foot a:hover, .s4s-foot a:focus-visible { color: #ffffff; }
.s4s-foot a[href^="tel:"] { white-space: nowrap; }
.s4s-foot-llc {
    margin-top: 0.55rem !important;
    font-weight: 650;
    color: #cbd5e1;
}

@media (min-width: 900px) {
    .s4s-page { padding-top: 1.35rem; }
    .s4s-grid { grid-template-columns: 1fr 1fr; gap: 1.05rem; }
    .s4s-hero {
        grid-template-columns: 1.2fr 0.8fr;
        padding: 1.25rem 1.35rem;
        gap: 1.1rem;
    }
    .s4s-main h1 { max-width: 14ch; }
}

@media (max-width: 640px) {
    .s4s-bar { align-items: center; } /* app-v0.31.7: was flex-start, which dropped the brand below the links */
    .s4s-who { display: none; }
    .s4s-main h1 { max-width: none; }
    .s4s-btn { flex: 1 1 auto; }
    .s4s-hero-art { display: none; }
}

@media (max-width: 480px) {
    .s4s-bar-back { display: none; } /* app-v0.31.7: the brand already links home; keeps the bar on one line */
    .s4s-bar { padding-left: 0.55rem; padding-right: 0.55rem; gap: 0.5rem; }
}

/* app-v0.31.7 (Sightline v4): landing hero link, /examples second paragraph, /privacy sections, no-JS /examples cards. */
.s4s-hero-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.95rem; }
.s4s-hero-copy .s4s-lead + p { margin: 0.75rem 0 0; max-width: 40rem; color: #94a3b8; line-height: 1.5; }
.s4s-legal {
    margin: 0 0 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    line-height: 1.55;
    max-width: 52rem;
}
.s4s-legal h2,
.s4s-legal .s4s-privacy-note > .mud-typography-h6:first-child { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: #f8fafc; }
.s4s-legal h3 { margin: 0.9rem 0 0.35rem; font-size: 0.95rem; color: #e2e8f0; }
.s4s-legal p, .s4s-legal ul { margin: 0 0 0.6rem; }
.s4s-legal .mud-typography { color: inherit; }
.s4s-legal .mud-switch .mud-typography, .s4s-legal label { color: #e2e8f0; }
.s4s-legal a { color: #67e8f9; }
.s4s-legal code { color: #e2e8f0; }
.s4s-static-cards .s4s-card h2 a { color: inherit; text-decoration: none; }

/* Hub chooser (Home vs Business) */
.hub-chooser {
    max-width: 960px;
    margin: 0 auto;
}
.hub-chooser-public {
    padding: 1.5rem 0.5rem 2rem;
}
@media (min-width: 900px) {
    .hub-chooser-public {
        padding-top: 2.5rem;
    }
}
.hub-chooser-hero {
    margin-bottom: 0.5rem;
}
.hub-choice-card {
    border-radius: 12px !important;
    cursor: pointer;
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    border-color: var(--hh-border) !important;
}
.hub-choice-card:hover {
    border-color: rgba(14, 116, 144, 0.45) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
.hub-choice-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hub-choice-icon.tone-home {
    background: rgba(11, 61, 92, 0.1);
    color: var(--hh-navy);
}
.hub-choice-icon.tone-business {
    background: rgba(14, 116, 144, 0.12);
    color: var(--hh-teal);
}
.hub-choice-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--hh-slate);
    font-size: 0.875rem;
    line-height: 1.55;
}
.hub-choice-list li {
    margin-bottom: 0.25rem;
}

/* Project kanban */
.kanban-board {
    width: 100%;
}
.kanban-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}
@media (max-width: 900px) {
    .kanban-columns {
        grid-template-columns: 1fr;
    }
}
.kanban-col {
    min-height: 220px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid var(--hh-border);
    border-radius: 10px;
    padding: 0.55rem;
}
.kanban-col-header {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--hh-navy-deep);
}
.kanban-card {
    border-radius: 8px !important;
    background: #fff !important;
    cursor: grab;
}
.kanban-card:active {
    cursor: grabbing;
}

/* UPC entry (scan / generate / camera) */
.upc-entry-field {
    width: 100%;
}
.upc-entry-field .mud-input-control {
    margin-bottom: 0;
}
.upc-camera-panel {
    border: 1px solid var(--hh-border);
    border-radius: 10px;
    background: #0f172a0a;
    padding: 0.65rem;
    max-width: 420px;
}
.upc-camera-viewport {
    width: 100%;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}
.upc-camera-viewport video {
    width: 100% !important;
    border-radius: 8px;
}
.upc-check-ok {
    color: var(--hh-success) !important;
}
.upc-check-warn {
    color: var(--hh-warning) !important;
}
.upc-camera-help-steps {
    margin: 0.35rem 0 0 1.1rem;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.45;
}
.upc-camera-help-steps li {
    margin-bottom: 0.25rem;
}

/* Offline queue banner */
.offline-status-bar {
    border-radius: 10px !important;
    border-color: #F59E0B !important;
    background: #FFFBEB !important;
}
.upc-package-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
}

/* Recipes: keep MudTabs headers clickable; avoid leftover panel/overlays intercepting Add/Integrations. */
.mud-tabs.hh-recipes-tabs .mud-tabs-panels {
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.mud-tabs.hh-recipes-tabs .mud-tabs-toolbar {
    position: relative;
    z-index: 2;
}
/* app-v0.30.0: Recipes tabs on phones: wrap into rows so every tab (incl. Shared with me) and its label is visible. */
@media (max-width: 760px) {
    .mud-tabs.hh-recipes-tabs .mud-tabs-tabbar-content { overflow: visible !important; }
    .mud-tabs.hh-recipes-tabs .mud-tabs-tabbar-wrapper { flex-wrap: wrap !important; transform: none !important; width: 100% !important; }
    .mud-tabs.hh-recipes-tabs .mud-tabs-scroll-button { display: none !important; }
    .mud-tabs.hh-recipes-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root { flex: 1 1 auto; display: flex; }
    .mud-tabs.hh-recipes-tabs .mud-tab { min-width: 0 !important; flex: 1 1 auto; width: 100%; max-width: none; padding: 6px 6px !important; font-size: 0.78rem; white-space: nowrap; }
    .mud-tabs.hh-recipes-tabs .mud-tab .mud-tab-icon-text { margin-right: 4px !important; font-size: 1.1rem; }
    .mud-tabs.hh-recipes-tabs .mud-tab-slider { display: none !important; }
    .mud-tabs.hh-recipes-tabs .mud-tab.mud-tab-active { box-shadow: inset 0 -2px 0 var(--mud-palette-primary); }
}
/* app-v0.30.0: Archive / Restore button on Library rows (Owner/Admin). */
.hh-recipes-tabs .mud-list-item:has(.hh-recipe-archive) { position: relative; padding-right: 96px; }
.hh-recipe-archive { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }


/* --- Examples / POC gallery sites (Sightline punch-up) --- */
.poc-gallery-page .s4s-main { padding-bottom: 3rem; }
.poc-site { min-height: 100vh; color: #0f172a; background: #f8fafc; }
.poc-tone-contractor { --poc-accent: #ea580c; --poc-accent-2: #1e3a5f; --poc-surface: #fff7ed; }
.poc-tone-crew { --poc-accent: #a3e635; --poc-accent-2: #18181b; --poc-surface: #f7fee7; }
.poc-tone-landscape { --poc-accent: #15803d; --poc-accent-2: #365314; --poc-surface: #f0fdf4; }
.poc-tone-handyman { --poc-accent: #b87333; --poc-accent-2: #334155; --poc-surface: #f1f5f9; }
.poc-tone-equipment { --poc-accent: #f59e0b; --poc-accent-2: #0f2744; --poc-surface: #f8fafc; }

.poc-nav { position: sticky; top: 0; z-index: 20; background: rgba(15,23,42,0.92); backdrop-filter: blur(10px); color: #fff; }
.poc-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.poc-nav-brand { font-size: 1rem; letter-spacing: -0.02em; }
.poc-nav-links { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; font-size: 0.9rem; }
.poc-nav-links a { color: #e2e8f0; text-decoration: none; font-weight: 600; }
.poc-nav-links a:hover { color: #fff; }
.poc-nav-quiet { opacity: 0.7; font-weight: 500 !important; }

.poc-hero-bleed {
    min-height: clamp(320px, 48vw, 440px);
    background-image: var(--poc-hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}
.poc-hero-scrim {
    min-height: inherit;
    background: linear-gradient(105deg, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.45) 55%, rgba(15,23,42,0.2) 100%);
    display: flex;
    align-items: flex-end;
}
.poc-hero-copy { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 2.25rem; width: 100%; }
.poc-hero-copy h1 { margin: 0.35rem 0 0.4rem; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
.poc-tagline { margin: 0; font-size: 1.25rem; font-weight: 650; opacity: 0.95; }
.poc-hero-sub { margin: 0.75rem 0 1.25rem; max-width: 42rem; line-height: 1.55; opacity: 0.92; }
.poc-pill { display: inline-block; margin: 0; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgba(255,255,255,0.16); font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; }
.poc-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.poc-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.15rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.poc-btn-primary { background: var(--poc-accent); color: #0f172a; }
.poc-tone-contractor .poc-btn-primary { color: #fff; }
.poc-tone-handyman .poc-btn-primary { color: #fff; }
.poc-tone-crew .poc-btn-primary { color: #14532d; }
.poc-tone-landscape .poc-btn-primary { color: #fff; }
.poc-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }

.poc-trust { background: var(--poc-accent-2); color: #fff; }
.poc-trust-inner { max-width: 1100px; margin: 0 auto; padding: 0.85rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9rem; font-weight: 600; }
.poc-trust-inner span::before { content: "✓ "; opacity: 0.85; }

.poc-section, .poc-foot { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.5rem; }
.poc-section-wide { max-width: 1200px; }
.poc-section h2 { margin-top: 0; color: var(--poc-accent-2); letter-spacing: -0.02em; }
.poc-lead { font-size: 1.05rem; line-height: 1.55; color: #334155; max-width: 48rem; }
.poc-task-note { color: #64748b; font-size: 0.95rem; margin-bottom: 0.75rem; }
.poc-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.poc-service-card { background: var(--poc-surface); border: 1px solid rgba(15,23,42,0.08); border-radius: 12px; padding: 0.95rem 1rem; font-weight: 650; box-shadow: 0 4px 14px rgba(15,23,42,0.04); }
.poc-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: 100%; }
@media (max-width: 800px) { .poc-photo-grid { grid-template-columns: 1fr; } }
.poc-photo { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(15,23,42,0.08); }
.poc-photo img { display: block; width: 100%; height: 220px; object-fit: cover; background: #e2e8f0; }
.poc-photo figcaption { padding: 0.85rem 1rem 1.05rem; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.92rem; }
.poc-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.65rem; color: #334155; line-height: 1.5; }
.poc-review-list { display: grid; gap: 0.75rem; }
@media (min-width: 800px) { .poc-review-list { grid-template-columns: repeat(3, 1fr); } }
.poc-review { background: #fff; border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 6px 18px rgba(15,23,42,0.06); }
.poc-review footer { color: #64748b; font-size: 0.9rem; margin-top: 0.5rem; }
.poc-stars { color: #ca8a04; letter-spacing: 0.05em; }
.poc-pricing { font-size: 1.05rem; color: #334155; background: var(--poc-surface); border-radius: 12px; padding: 1rem 1.15rem; border: 1px dashed rgba(15,23,42,0.15); }
.poc-cta-band { background: linear-gradient(120deg, var(--poc-accent-2), color-mix(in srgb, var(--poc-accent-2) 70%, var(--poc-accent))); color: #fff; margin: 0.5rem 0; }
.poc-cta-band-inner { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.poc-cta-band h2 { margin: 0 0 0.35rem; color: #fff; }
.poc-cta-band p { margin: 0; opacity: 0.92; }
.poc-contact { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.poc-review-soft details summary { cursor: pointer; font-weight: 650; color: #64748b; }
.poc-foot { color: #64748b; font-size: 0.88rem; padding-bottom: 2.5rem; }
.poc-foot-note { font-size: 0.8rem; opacity: 0.9; }
.poc-foot a { color: var(--poc-accent-2); }
.poc-admin { padding-top: 1rem; padding-bottom: 2rem; }

.s4s-card-examples {
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 18px 40px rgba(15, 23, 42, 0.18);
}
.poc-thumb-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; margin: 0.85rem 0 0.45rem; }
.poc-thumb-row img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center 35%; border-radius: 10px; display: block; background: #1e293b; min-height: 72px; }
.poc-gallery-card-thumb { width: 100%; height: 200px; object-fit: cover; object-position: center 35%; border-radius: 12px; margin-bottom: 0.85rem; background: #1e293b; display: block; }


/* Examples login on landing: center card over landing gradient (not hub --hh-bg void) */
.s4s-landing .auth-shell {
    min-height: calc(100vh - 0px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
    background: transparent;
}
.s4s-landing .auth-shell .mud-container {
    width: 100%;
}
.s4s-landing .auth-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)), rgba(15, 23, 42, 0.82) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 1.1rem !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55) !important;
}
.s4s-landing .auth-card .mud-input-label,
.s4s-landing .auth-card .mud-typography,
.s4s-landing .auth-card .mud-input-slot {
    color: inherit;
}

.poc-owner-hint {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8125rem; font-weight: 650; letter-spacing: normal;
  color: #f8fafc !important; background: #111827;
  border: 1px solid rgba(248,250,252,0.35); border-radius: 999px;
  padding: 6px 12px; opacity: 1 !important; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.poc-owner-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; flex-shrink: 0; }
.poc-owner-hint:hover, .poc-owner-hint:focus-visible {
  border-color: rgba(251,191,36,0.8); color: #f8fafc !important; outline: none;
}
.poc-hero-bleed h1, .poc-hero-copy h1, .pk-detail h1, .pk-detail-grid h1 { outline: none !important; }
.poc-hero-bleed h1:focus, .poc-hero-copy h1:focus, .pk-detail h1:focus { outline: none !important; box-shadow: none !important; }
.poc-admin { color: #0f172a; }
.poc-admin .mud-typography, .poc-admin .mud-input-label, .poc-admin label { color: #0f172a !important; }
.poc-admin .mud-typography-body2, .poc-admin .mud-typography-caption, .poc-admin .mud-typography-overline {
  color: #334155 !important; opacity: 1 !important;
}
.poc-admin .mud-paper, .poc-admin .mud-tabs, .poc-admin .mud-table-container {
  background: #ffffff !important; color: #0f172a !important;
  border: 1px solid rgba(15,23,42,0.1);
}
.poc-admin .mud-simple-table th { color: #0f172a !important; font-weight: 700; background: #f8fafc; }
.poc-admin .mud-simple-table td { color: #1e293b !important; }
.poc-admin-banner {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #111827; color: #f8fafc; border: 1px solid rgba(248,250,252,0.35);
  border-radius: 999px; padding: 6px 12px; font-size: 0.8125rem; font-weight: 650;
}
.poc-admin-banner::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.s4s-landing .auth-card a.mud-link, .s4s-landing .auth-card .mud-link {
  color: #fde68a !important; font-weight: 700; text-decoration: underline;
}
/* app-v0.31.7 (Sightline v5): sample-login "Log in" and "Back to ..." are 44px touch targets. */
.auth-card .poc-login-submit { min-height: 44px; }
/* app-v0.31.7 (Hubprobe t0317 minor): hub sign-in submit buttons ("Sign in to Examples" was 37px) are 44px too. */
.auth-card button[type="submit"].mud-button-root { min-height: 44px; }
.s4s-landing .auth-back {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; margin-top: 1rem; padding: 0.45rem 0.9rem;
  background: #111827; color: #f8fafc !important; border: 1px solid rgba(248,250,252,0.4);
  border-radius: 999px; font-weight: 700; text-decoration: none !important;
}
.pk-sticky-ctas {
  position: sticky; bottom: 0; z-index: 15;
  display: flex; gap: 0.5rem; justify-content: stretch;
  padding: 0.65rem 0.85rem; background: rgba(15,23,42,0.96);
  border-top: 1px solid rgba(248,250,252,0.2);
}
.pk-sticky-ctas a { flex: 1; text-align: center; }
.pk-quoting {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 10px; padding: 0.65rem 0.85rem; font-weight: 700; margin-bottom: 0.75rem;
}
.pk-map a { color: #fbbf24; font-weight: 700; }
.pk-card { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.pk-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15,23,42,0.12); }
.pk-phone-hours { font-size: 0.85rem; color: #cbd5e1; font-weight: 600; }
.poc-thumb-row { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

.poc-tone-equipment .poc-btn-primary { color: #0f172a; }
.pk-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .pk-card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pk-card-grid { grid-template-columns: 1fr; } }
.pk-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(15,23,42,0.08); display: flex; flex-direction: column; }
.pk-card img { width: 100%; height: 160px; object-fit: cover; background: #e2e8f0; }
.pk-card-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.pk-card-body h3 { margin: 0; font-size: 1.05rem; color: #0f2744; }
.pk-meta { margin: 0; color: #64748b; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pk-price { margin: 0; font-weight: 800; color: #0f2744; font-size: 1.1rem; }
.pk-price-lg { font-size: 1.6rem; }
.pk-spec { margin: 0 0 0.5rem; color: #475569; font-size: 0.9rem; }
.pk-card-cta { margin-top: auto; align-self: flex-start; }
.pk-more { text-align: right; }
.pk-more a { color: #0f2744; font-weight: 700; }
.pk-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 700px) { .pk-cat-grid { grid-template-columns: 1fr 1fr; } }
.pk-cat { position: relative; border-radius: 12px; overflow: hidden; min-height: 120px; color: #fff; text-decoration: none; font-weight: 750; display: flex; align-items: flex-end; }
.pk-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-cat span { position: relative; z-index: 1; padding: 0.85rem 1rem; width: 100%; background: linear-gradient(transparent, rgba(15,39,68,0.85)); }
.pk-loc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: center; }
@media (max-width: 800px) { .pk-loc { grid-template-columns: 1fr; } }
.pk-map { background: #0f2744; color: #e2e8f0; border-radius: 14px; min-height: 180px; display: flex; align-items: center; justify-content: center; font-weight: 650; }
.pk-brands { color: #475569; font-size: 0.95rem; line-height: 1.6; }
.pk-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; position: sticky; top: 52px; z-index: 5; background: #f8fafc; padding: 0.5rem 0; }
.pk-filters select { padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; }
.pk-detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .pk-detail-grid { grid-template-columns: 1fr; } }
.pk-gallery { display: grid; gap: 0.5rem; }
.pk-gallery img { width: 100%; border-radius: 12px; max-height: 280px; object-fit: cover; }
.pk-crumb { color: #64748b; }
.pk-crumb a { color: #0f2744; font-weight: 650; }
.pk-detail-ctas { margin: 1rem 0; }
.pk-btn-dark { color: #0f2744 !important; border-color: #0f2744 !important; }
.pk-seller { margin-top: 1rem; padding: 1rem; background: #f1f5f9; border-radius: 12px; }
.pk-sticky-cta { display: none; }
@media (max-width: 800px) {
  .pk-sticky-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; position: sticky; bottom: 0; background: #0f2744; padding: 0.65rem; z-index: 30; }
  .pk-sticky-cta a { color: #fff; text-align: center; font-weight: 750; text-decoration: none; padding: 0.55rem; border-radius: 8px; background: rgba(245,158,11,0.95); color: #0f172a; }
}
.pk-form { display: grid; gap: 0.75rem; max-width: 520px; }
.pk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .pk-two { grid-template-columns: 1fr; } }
.pk-about-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; margin: 0.5rem 0 1rem; }


/* --- Homestead-bar craft (trade palettes kept) --- */
.poc-site {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  --poc-cream: #fdf9f0;
  --poc-ink: #0f172a;
}
.poc-site .poc-hero-copy h1,
.poc-site .poc-section h2,
.poc-site .poc-nav-brand,
.pk-detail h1,
.pk-about h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.poc-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--poc-accent);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.poc-hero-bleed { min-height: clamp(380px, 70vh, 560px); }
.poc-nav-cta {
  padding: 0.4rem 0.9rem !important;
  font-size: 0.82rem !important;
  border-width: 0 !important;
  color: #0f172a !important;
}
.poc-tone-contractor .poc-nav-cta,
.poc-tone-handyman .poc-nav-cta,
.poc-tone-landscape .poc-nav-cta { color: #fff !important; }
.poc-tone-crew .poc-nav-cta { color: #14532d !important; }

.poc-band-cream { background: var(--poc-cream); }
.poc-band-white { background: #fff; }
.poc-band-deep {
  background: var(--poc-accent-2);
  color: #f8fafc;
}
.poc-band-deep h2 { color: #fff !important; }
.poc-band-deep .poc-steps { color: #e2e8f0; }
.poc-band-deep.poc-section { max-width: none; padding-left: 0; padding-right: 0; }
.poc-band-deep.poc-section > * { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.poc-section, .poc-foot, .poc-hero-copy, .poc-trust-inner, .poc-cta-band-inner { max-width: 1100px; }
.poc-photo, .poc-service-card, .poc-review, .pk-card {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}
.poc-photo img, .pk-card img { display: block; width: 100%; }
.poc-service-card, .poc-review { padding: 1rem 1.15rem; }
.poc-cta-band {
  background: linear-gradient(120deg, var(--poc-accent-2), color-mix(in srgb, var(--poc-accent-2) 55%, var(--poc-accent)));
}
.poc-foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 700px) { .poc-foot-grid { grid-template-columns: 1fr; } }
.poc-foot { max-width: none; background: #0f172a; color: #cbd5e1; padding: 2rem 1.5rem 2.5rem; }
.poc-foot a { color: #fbbf24; }
.poc-foot .poc-pill { background: rgba(255,255,255,0.12); }

.poc-gallery-card-thumb { height: 240px !important; }
.pk-search {
  padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid #cbd5e1; min-width: 180px; flex: 1;
}
.pk-result-count { color: #475569; font-weight: 650; display: flex; gap: 0.75rem; align-items: center; }
.pk-clear {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 0.25rem 0.7rem;
  font-weight: 700; cursor: pointer;
}
.pk-card { color: inherit; text-decoration: none; }
.pk-card .pk-card-cta { pointer-events: none; }
.poc-tone-equipment .poc-eyebrow { color: #fbbf24; }

/* landscaping sample lean cream/forest */
.poc-tone-landscape { --poc-accent: #2f6b45; --poc-accent-2: #1e4a35; --poc-surface: #fdf9f0; }


/* equipment sample Phase A — app shell, gallery, owner demo, contrast */
.pk-sample-banner {
  background: #0f2744;
  color: #f8fafc;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
}
.pk-app-nav .poc-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.pk-nav-search { flex: 1 1 160px; max-width: 240px; }
.pk-nav-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(15,23,42,0.35);
  color: #f8fafc;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}
.pk-nav-search input::placeholder { color: #94a3b8; }
.pk-owner-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
  border-radius: 999px;
  padding: 0.35rem 0.75rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  opacity: 1 !important;
}
.pk-owner-chip::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #fbbf24;
}
.pk-owner-chip:hover { background: #1e293b !important; border-color: #fbbf24 !important; }
.pk-owner-chip-foot { margin-top: 0.5rem; }
.pk-eyebrow-hi { color: #fde68a !important; font-weight: 800; letter-spacing: 0.08em; }
.pk-hero .poc-hero-copy { background: transparent; box-shadow: none; }
.pk-hero-link { margin: 0.75rem 0 0; }
.pk-hero-link a { color: #fde68a; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pk-band { background: #fff; }
.pk-band-alt { background: #f1f5f9; }
.pk-card-media { position: relative; }
.pk-card-media img, .pk-card img { width: 100%; height: 170px; object-fit: cover; background: #e2e8f0; }
.pk-photo-count {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  background: rgba(15,23,42,0.78); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.45rem; border-radius: 999px;
}
.pk-photo-count-lg { font-size: 0.8rem; padding: 0.3rem 0.55rem; }
.pk-gallery-wrap { display: flex; flex-direction: column; gap: 0.55rem; }
.pk-gallery-main {
  position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden;
  cursor: zoom-in; background: #e2e8f0;
}
.pk-gallery-main img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.pk-gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.4rem; }
.pk-thumb {
  border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: #e2e8f0; cursor: pointer;
}
.pk-thumb.is-active { border-color: #f59e0b; }
.pk-thumb img { width: 100%; height: 64px; object-fit: cover; display: block; }
.pk-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(2,6,23,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.pk-lightbox img { max-width: min(1100px, 96vw); max-height: 88vh; border-radius: 12px; object-fit: contain; }
.pk-lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: #fff; border: 0; border-radius: 999px; padding: 0.45rem 0.9rem; font-weight: 700; cursor: pointer;
}
.pk-sticky-cta {
  /* app-v0.31.7 (Sightline v3 #4): no display override here, so the bar stays phone-only (display:none above, grid at max-width 800px). */
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: rgba(15,39,68,0.96);
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.pk-sticky-cta a {
  text-align: center; color: #0f172a; background: #fbbf24; font-weight: 800;
  text-decoration: none; padding: 0.65rem 0.4rem; border-radius: 10px;
}
.pk-sticky-cta a:nth-child(2), .pk-sticky-cta a:nth-child(3) {
  background: transparent; color: #f8fafc; border: 1px solid rgba(255,255,255,0.35);
}
.pk-related { max-width: none !important; width: 100%; }
.pk-related .pk-card-grid { max-width: 1100px; margin: 0 auto; }
.pk-sell-band {
  background-image: linear-gradient(90deg, rgba(15,39,68,0.88), rgba(15,39,68,0.55)), var(--pk-sell-image);
  background-size: cover; background-position: center;
  color: #f8fafc;
}
.pk-sell-band h2, .pk-sell-band p { color: #f8fafc; }
.pk-owner-demo-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.25rem;
}
.pk-owner-demo-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pk-kpi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.75rem; margin-bottom: 1.25rem;
}
@media (max-width: 800px) { .pk-kpi-grid { grid-template-columns: 1fr 1fr; } }
.pk-kpi {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.pk-kpi-val { font-size: 1.6rem; font-weight: 800; color: #0f2744; }
.pk-kpi-lbl { color: #64748b; font-size: 0.85rem; font-weight: 600; }
.pk-owner-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 900px) { .pk-owner-split { grid-template-columns: 1fr; } }
.pk-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.pk-table th, .pk-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #e2e8f0; text-align: left; font-size: 0.9rem; }
.pk-table th { background: #f8fafc; color: #0f172a; font-weight: 700; }
.pk-card-static { cursor: default; }
.pk-card-static:hover { transform: none; }
.poc-tone-equipment .poc-nav-quiet { color: #e2e8f0 !important; opacity: 1; }
.poc-foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }


/* Grok Imagine + Sightline v0.2.4 / Phase A recheck */
.poc-pill-compact {
  font-size: 0.68rem;
  padding: 0.12rem 0.5rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.pk-sample-banner-slim {
  font-size: 0.7rem;
  padding: 0.22rem 0.6rem;
  letter-spacing: 0.03em;
}
.poc-build-stamp {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.poc-nav-signup {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.75) !important;
  background: transparent !important;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 999px;
  text-decoration: none !important;
}
.poc-nav-signup:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }

/* Eyebrow WCAG AA on hero photos */
.poc-eyebrow {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 0 12px rgba(0,0,0,.35);
  background: rgba(15,23,42,.42);
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.12em;
}
.poc-tone-equipment .poc-eyebrow,
.pk-eyebrow-hi {
  color: #fde68a !important;
  background: rgba(15,39,68,.55);
}

/* Examples gallery card outline polish */
.s4s-card-examples-outline,
.poc-gallery-page .s4s-card {
  border: 1px solid rgba(148,163,184,.35);
  box-shadow: 0 10px 28px rgba(15,23,42,.12), inset 0 0 0 1px rgba(255,255,255,.04);
  outline: 1px solid rgba(99,102,241,.18);
  outline-offset: 0;
}
.poc-gallery-page .s4s-card:hover {
  border-color: rgba(129,140,248,.55);
  outline-color: rgba(129,140,248,.35);
}

/* SAMPLE admin contrast (equipment sample owner demo) */
.pk-owner-demo,
.poc-admin.pk-owner-demo {
  color: #0f172a;
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.75rem;
}
.pk-owner-demo h1,
.pk-owner-demo h2,
.pk-owner-demo .mud-typography-h4,
.pk-owner-demo .mud-typography-h6 {
  color: #0f172a !important;
}
.pk-owner-demo .poc-lead,
.pk-owner-demo .mud-typography-body2,
.pk-owner-demo .pk-kpi-lbl,
.pk-owner-demo p {
  color: #334155 !important;
}
.pk-owner-demo a { color: #1d4ed8 !important; font-weight: 650; }
.pk-owner-demo .poc-admin-banner {
  background: #0f2744;
  color: #f8fafc;
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pk-owner-demo .pk-table th { color: #0f172a; background: #e2e8f0; }
.pk-owner-demo .pk-table td { color: #1e293b; }
.pk-owner-demo .pk-kpi { background: #fff; border-color: #cbd5e1; }
.pk-owner-demo .pk-kpi-val { color: #0f2744; }

/* Lightbox prev/next */
.pk-lightbox { outline: none; }
.pk-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.pk-lightbox-prev { left: 1rem; }
.pk-lightbox-next { right: 1rem; }
.pk-lightbox-nav:hover { background: #fff; }


/* Owner admin header contrast (WCAG AA) — business name + Public site on dark band */
.poc-admin-contrast,
.poc-admin {
  color: #0f172a;
}
.poc-admin .mud-typography-h4,
.poc-admin .mud-typography-h5,
.poc-admin .mud-typography-h6,
.poc-admin h1,
.poc-admin h2,
.poc-admin h3,
.poc-admin h4 {
  color: #f8fafc !important;
}
.poc-admin .mud-button-outlined,
.poc-admin .mud-button-text,
.poc-admin a.mud-button-root {
  color: #f8fafc !important;
  border-color: rgba(248,250,252,.65) !important;
}
.poc-admin .mud-button-outlined:hover,
.poc-admin .mud-button-text:hover {
  background: rgba(248,250,252,.12) !important;
  color: #fff !important;
}
.poc-admin .mud-typography-body2,
.poc-admin .mud-alert {
  color: #e2e8f0 !important;
}
/* When admin content sits on light cards inside, restore dark text */
.poc-admin .mud-tabs,
.poc-admin .mud-paper,
.poc-admin .mud-table,
.poc-admin .mud-simple-table,
.poc-admin .pk-kpi,
.poc-admin .pk-table {
  color: #0f172a;
}
.poc-admin .mud-tabs .mud-typography-h4,
.poc-admin .mud-paper .mud-typography-h4,
.poc-admin .mud-paper h1,
.poc-admin .mud-paper h2 {
  color: #0f172a !important;
}
/* Header strip: force light text on dark admin chrome */
.poc-admin > .d-flex,
.poc-admin .pk-owner-demo-head {
  color: #f8fafc;
}
.poc-admin > .d-flex .mud-typography-h4,
.poc-admin .pk-owner-demo-head .mud-typography-h4,
.poc-admin .pk-owner-demo-head h1 {
  color: #f8fafc !important;
}
.poc-admin > .d-flex .mud-typography-body2,
.poc-admin .pk-owner-demo-head .mud-typography-body2,
.poc-admin .pk-owner-demo-head .poc-lead {
  color: #cbd5e1 !important;
}

.poc-admin {
  background: #0f172a;
  min-height: 60vh;
  border-radius: 0;
}


/* v0.2.9 quote Year/Make/Model row */
.pk-ymm-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .pk-ymm-row { grid-template-columns: 1fr; }
}


/* Examples / POC Log out control (button styled like quiet nav link) */
button.poc-nav-quiet,
button.poc-nav-logout {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.poc-nav-quiet:hover,
button.poc-nav-logout:hover {
  opacity: 0.85;
}


/* Customer portal header on the dark landing band (WCAG AA >= 4.5:1).
   "Public site" / "Log out" beside "Switch to owner view" were #0f172a on ~#0b1220 (about 1.1:1). */
.poc-portal-head .mud-typography,
.poc-portal-head .mud-typography-overline,
.poc-portal-head .mud-typography-body2 {
  color: #e2e8f0;
}
.poc-portal-head .mud-typography-h4 {
  color: #f8fafc;
}
.poc-portal-head .mud-button-outlined,
.poc-portal-head .mud-button-text {
  color: #f8fafc !important;
  border-color: rgba(248, 250, 252, .8) !important;
}
.poc-portal-head .mud-button-outlined:hover,
.poc-portal-head .mud-button-text:hover,
.poc-portal-head .mud-button-outlined:focus-visible,
.poc-portal-head .mud-button-text:focus-visible {
  background: rgba(248, 250, 252, .14) !important;
  color: #fff !important;
}
.poc-portal-head .mud-button-root:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 2px;
}
/* Project list meta line: readable on both the white card and the selected (primary) row. */
.poc-portal .poc-portal-proj-meta {
  font-size: .8rem;
  color: #475569;
}
.poc-portal .mud-theme-primary .poc-portal-proj-meta {
  color: #e2e8f0;
}

/* Examples gallery: brand logo chip over a site's thumbnail (a sample POC, app-v0.4.0) */
.poc-gallery-thumb-wrap { position: relative; }
.poc-gallery-card-logo { position: absolute; left: 12px; bottom: calc(0.85rem + 12px); width: 72px; height: 72px; padding: 5px; border-radius: 50%; background: #fff; border: 2px solid #E58A3A; box-shadow: 0 4px 14px rgba(0,0,0,.25); object-fit: contain; }
.poc-gallery-card-logo.poc-gallery-card-logo-quiet { left: auto; bottom: auto; top: 10px; right: 10px; width: 44px; height: 44px; padding: 3px; border-width: 1px; border-color: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.22); }

/* Sign-in cards: Striving 4 Solutions logo above the heading + inline form error (app-v0.4.2) */
.auth-logo { display: flex; width: fit-content; align-items: center; gap: 0.7rem; margin: 0 0 1.1rem; color: inherit; text-decoration: none; }
.auth-logo:focus-visible { outline: 3px solid #22d3ee; outline-offset: 4px; border-radius: 0.8rem; }
.auth-logo .auth-logo-mark { width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; }
.auth-logo-name { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; line-height: 1.1; color: #0f172a; }
.s4s-landing .auth-card .auth-logo-name { color: #f8fafc; }
.auth-form-error { margin: -0.4rem 0 0.9rem; padding: 0.55rem 0.75rem; border-radius: 0.55rem; font-weight: 700; font-size: 0.92rem;
    background: #fff1f2; color: #9f1239; border: 1px solid #fda4af; }
.auth-form-error-link { color: inherit; text-decoration: underline; font-weight: 800; }

/* POC feedback attachments on Home Hub tasks (app-v0.6.1) */
.tatt { margin-top: 6px; font-size: 0.85rem; }
.tatt-head { display: flex; align-items: center; gap: 4px; color: var(--mud-palette-text-secondary); font-weight: 600; margin-bottom: 4px; }
.tatt-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.tatt-thumb { display: block; width: 96px; height: 96px; padding: 0; border: 1px solid var(--mud-palette-lines-default, #cbd5e1); border-radius: 10px;
    overflow: hidden; background: var(--mud-palette-background-gray, #e2e8f0); cursor: zoom-in; }
.tatt-compact .tatt-thumb { width: 64px; height: 64px; border-radius: 8px; }
.tatt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tatt-thumb:hover, .tatt-thumb:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 1px; }
.tatt-doc { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px 5px 6px; border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default, #cbd5e1); background: var(--mud-palette-surface, #fff); }
.tatt-ext { min-width: 38px; padding: 2px 6px; border-radius: 6px; background: #e0e7ff; color: #3730a3; font-size: 0.7rem; font-weight: 700; text-align: center; }
.tatt-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mud-palette-text-primary); }
.tatt-size { color: var(--mud-palette-text-secondary); font-size: 0.78rem; white-space: nowrap; }
.tatt-link { font-weight: 600; color: var(--mud-palette-primary); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.tatt-status { color: var(--mud-palette-text-secondary); }
.tatt-error { color: var(--mud-palette-error); }
.tatt-retry { margin-left: 6px; border: 0; background: none; color: var(--mud-palette-primary); text-decoration: underline; cursor: pointer; }
/* Lightbox is a MudDialog (app-v0.6.2) so it is never trapped inside a drag-drop row. */
.mud-dialog.tatt-lb-dialog { background: transparent; box-shadow: none; width: auto; max-width: min(1200px, calc(100vw - 32px)); margin: 16px; }
.mud-dialog.tatt-lb-dialog .tatt-lb-content { padding: 0; overflow: visible; }
.tatt-lb-backdrop { background-color: rgba(2, 6, 23, 0.82) !important; backdrop-filter: none; }
.tatt-figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 8px; cursor: default; }
.tatt-figure img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; background: #0f172a; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.tatt-figure figcaption { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #f8fafc; }
.tatt-figure .tatt-link { color: #93c5fd; }
.tatt-cap-name { font-weight: 700; overflow-wrap: anywhere; }
/* app-v0.13.4: task detail popup cards (thumbnail + name + Open / Download) and the paperclip count on rows and kanban cards. */
.tatt-card { display: inline-flex; flex-direction: column; gap: 4px; width: 132px; }
.tatt-card .tatt-thumb { width: 132px; height: 104px; }
.tatt-card-meta { display: flex; flex-direction: column; min-width: 0; }
.tatt-card-meta .tatt-name { max-width: 132px; font-size: 0.8rem; }
.tatt-card-links { display: flex; gap: 10px; }
.tatt-card-links .tatt-link { display: inline-block; min-height: 24px; line-height: 24px; }
.tatt-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
    line-height: 18px; vertical-align: middle; background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; white-space: nowrap; }

.tatt-cap-meta { color: #cbd5e1; font-size: 0.8rem; }
.tatt-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 1rem; }
.tatt-close:hover { background: rgba(255,255,255,.3); }
/* Phones (app-v0.6.2): the file name gets the first line of the chip, size + View/Download wrap to the next. */
@media (max-width: 600px) {
    .tatt-doc { display: flex; flex-wrap: wrap; width: 100%; row-gap: 4px; }
    .tatt-name { flex: 1 1 calc(100% - 54px); min-width: 0; max-width: none; }
    .tatt-doc .tatt-size { margin-left: 46px; }
}

/* Owner tools accent per POC tone (app-v0.7.1, a sample POC owner ops). Text colours reuse the AA feedback palettes
   (poc-feedback.css), so active tabs and filled buttons stay readable on the white owner panels. */
.poc-admin { --poc-admin-accent: #1d4ed8; }
.poc-admin-tone-contractor { --poc-admin-accent: #c2410c; }
.poc-admin-tone-crew { --poc-admin-accent: #3f6212; }
.poc-admin-tone-landscape { --poc-admin-accent: #166534; }
.poc-admin-tone-handyman { --poc-admin-accent: #7c4a1e; }
.poc-admin-tone-equipment { --poc-admin-accent: #0f2744; }
.poc-admin-tone-craft { --poc-admin-accent: #6d28d9; }
.poc-admin-tone-appliance { --poc-admin-accent: #0B5F6E; }
.poc-admin-tone-bakery { --poc-admin-accent: #9B2C5A; }
.poc-admin-tone-grooming { --poc-admin-accent: #1B3A6B; }
.poc-admin-tone-fixit { --poc-admin-accent: #262626; }
.poc-admin .mud-tabs .mud-tab.mud-tab-active { color: var(--poc-admin-accent) !important; }
.poc-admin .mud-tabs .mud-tab-slider { background: var(--poc-admin-accent) !important; }
.poc-admin .mud-tabs-panels .mud-button-filled.mud-button-filled-primary { background-color: var(--poc-admin-accent) !important; color: #fff !important; }
.poc-admin .mud-tabs-panels .mud-simple-table th { border-bottom: 2px solid var(--poc-admin-accent); }
/* Owner tabs stay clickable (app-v0.7.4, Hubprobe v0.7.2 #1). MudBlazor 9 renders each tab panel as display:contents,
   so PanelClass="pa-4" never applied and a MudGrid's -24px top gutter pulled the add forms (Quotes, Expenses,
   Job calendar) 24px up over the tab bar, where the grid items swallowed every click on the tabs. Pad the panel
   container itself and keep the tab bar above the panel content in every case. */
.poc-admin .mud-tabs .mud-tabs-tabbar { position: relative; z-index: 3; }
.poc-admin .mud-tabs .mud-tabs-panels { position: relative; z-index: 1; padding: 24px 16px 16px; }
.poc-photo-upload .mud-input-control { margin-top: 0; }

/* Owner tab panels are white (app-v0.7.3). The dark-chrome rules above give light text to body2, h5/h6, alerts and
   outlined/text buttons so they read on the navy header band; inside the white tab panels they fell to about 1.05-1.23:1.
   Restore AA (4.5:1 or better on #fff) inside .mud-tabs and use the site accent for outlined/text buttons and focus. */
.poc-admin .mud-tabs .mud-typography-h5,
.poc-admin .mud-tabs .mud-typography-h6,
.poc-admin .mud-tabs .mud-typography-body1,
.poc-admin .mud-tabs h5,
.poc-admin .mud-tabs h6 { color: #0f172a !important; }
.poc-admin .mud-tabs .mud-typography-body2 { color: #334155 !important; }
.poc-admin .mud-tabs .mud-typography-caption { color: #475569 !important; }
.poc-admin .mud-tabs .mud-alert,
.poc-admin .mud-tabs .mud-alert .mud-alert-message { color: #0f172a !important; }
.poc-admin .mud-tabs .mud-button-outlined,
.poc-admin .mud-tabs .mud-button-text {
  color: var(--poc-admin-accent) !important;
  border-color: var(--poc-admin-accent) !important;
}
.poc-admin .mud-tabs .mud-button-outlined:hover,
.poc-admin .mud-tabs .mud-button-text:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--poc-admin-accent) !important;
}
.poc-admin .mud-tabs .mud-input-numeric-spin .mud-button-text { color: #334155 !important; }
.poc-admin .mud-tabs .mud-input.mud-input-outlined .mud-input-outlined-border { border-color: #64748b !important; }
.poc-admin .mud-tabs .mud-input.mud-input-outlined:hover .mud-input-outlined-border { border-color: #0f172a !important; }
.poc-admin .mud-tabs .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
  border-color: var(--poc-admin-accent) !important;
  border-width: 2px;
}


/* In-page jumps (/pocs/{slug}#jobs) land below the sticky header. */
.poc-site section[id] { scroll-margin-top: 104px; }
@media (max-width: 640px) { .poc-site section[id] { scroll-margin-top: 68px; } }

/* --- Phone header (app-v0.7.5, Sightline phone check) ---
   Trade POCs (the four trade samples): under 640px the sticky header is one ~56px row
   (brand + Call + Menu); the links open in a panel under it. equipment sample's app nav stops being sticky on phones. */
.poc-nav-call, .poc-nav-toggle { display: none; }
@media (max-width: 640px) {
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-inner { flex-wrap: nowrap; gap: 0.5rem; padding: 0.5rem 0.75rem 0.5rem 1rem; min-height: 56px; box-sizing: border-box; position: relative; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-brand { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call,
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; flex: none;
    min-height: 44px; min-width: 44px; padding: 0 0.8rem; border-radius: 999px; box-sizing: border-box;
    font: inherit; font-size: 0.9rem; font-weight: 800; text-decoration: none; cursor: pointer;
  }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call { background: var(--poc-accent); color: #0f172a; border: 2px solid transparent; }
  .poc-tone-contractor :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call,
  .poc-tone-handyman :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call,
  .poc-tone-landscape :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call { color: #fff; }
  .poc-tone-handyman :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call { background: #8a5426; } /* white 6.3:1 */
  .poc-tone-contractor :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call { background: #c2410c; } /* white 5.2:1 */
  .poc-tone-crew :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call { color: #14532d; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-toggle { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call:focus-visible,
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 0.35rem 1rem 0.9rem; background: #0f172a; box-shadow: 0 14px 28px rgba(2, 6, 23, 0.45);
    max-height: calc(100vh - 56px); overflow-y: auto; font-size: 1rem;
  }
  :is(.poc-nav-trade, .pk-app-nav).is-open .poc-nav-links { display: flex; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > a,
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > button { display: flex; align-items: center; min-height: 44px; padding: 0 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > .poc-nav-quiet { opacity: 1; color: #e2e8f0; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > .poc-nav-cta { justify-content: center; margin: 0.6rem 0 0.35rem; border-bottom: 0; min-height: 44px; font-size: 0.95rem !important; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > .poc-owner-hint { align-self: flex-start; margin-top: 0.6rem; }
  .poc-tone-handyman :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > .poc-nav-cta { background: #8a5426; }
  .poc-tone-contractor :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > .poc-nav-cta { background: #c2410c; }
  /* equipment sample (app-v0.9.2, Hubprobe FAIL A): sticky again, but one ~60px row (name + Call + Menu) like the trade POCs. */
  /* Keep the last lines and the footer clear of the round Feedback bubble (Sightline item 4). */
  .poc-site .poc-foot { padding-bottom: calc(2.5rem + 72px); }
}


/* --- Sign-in fields: autofill-aware floating labels (app-v0.7.5, Sightline) ---
   s4s-auth-form.js adds .s4s-filled when a field holds a value Blazor has not seen yet (browser autofill); the
   :has(:autofill) rules cover the first paint before the script runs. The label floats onto the notched border and
   the field gets a little headroom so the floated label is never clipped. */
@keyframes s4s-autofill { from { opacity: 1; } to { opacity: 1; } }
.auth-card input:-webkit-autofill { animation: s4s-autofill 1ms; }
.auth-card .mud-input-control { margin-top: 6px; }
/* Typed values were near-black on the dark card; light text (browser autofill keeps its own colours). */
.s4s-landing .auth-card .mud-input > input.mud-input-root { color: #f8fafc !important; caret-color: #f8fafc; }
.auth-card .mud-input-control.s4s-filled > .mud-input-control-input-container > label.mud-input-label-outlined {
  transform: translate(14px, -6px) scale(0.75) !important; max-width: calc((100% - 14px) / .75);
}
.auth-card .mud-input-control:has(input:-webkit-autofill) > .mud-input-control-input-container > label.mud-input-label-outlined {
  transform: translate(14px, -6px) scale(0.75) !important; max-width: calc((100% - 14px) / .75);
}
.auth-card .mud-input-control.s4s-filled .mud-input.mud-input-outlined > .mud-input-outlined-border legend { width: auto; padding: 0 5px; }
.auth-card .mud-input-control:has(input:-webkit-autofill) .mud-input.mud-input-outlined > .mud-input-outlined-border legend { width: auto; padding: 0 5px; }

/* --- equipment sample phone header + "All examples" exit link (app-v0.9.2, Hubprobe v0.9.0) --- */
.pk-nav-panel { display: contents; }
.pk-nav-phone-only { display: none !important; }
@media (max-width: 640px) {
  .pk-app-nav .poc-nav-inner { flex-wrap: nowrap; }
  .pk-app-nav .pk-nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.75rem 1rem 0.9rem; background: #0f172a; box-shadow: 0 14px 28px rgba(2, 6, 23, 0.45);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .pk-app-nav.is-open .pk-nav-panel { display: flex; }
  .pk-app-nav .pk-nav-panel .poc-nav-links {
    display: flex; position: static; box-shadow: none; padding: 0; max-height: none; overflow: visible; background: transparent;
  }
  .pk-app-nav .pk-nav-search { flex: none; max-width: none; margin-bottom: 0.35rem; }
  .pk-app-nav .pk-nav-search input { min-height: 44px; font-size: 1rem; box-sizing: border-box; }
  .pk-app-nav .poc-nav-links > .pk-phone-hours { order: 50; padding: 0.6rem 0.25rem 0; }
  .pk-app-nav .poc-nav-links > .pk-owner-chip { margin: 0; border-radius: 0 !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; padding: 0 0.25rem !important; }
  .pk-app-nav .poc-nav-call { background: #fbbf24; color: #0f172a; }
  .pk-nav-phone-only { display: flex !important; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-links > .poc-nav-exit { margin-top: 0.35rem; border-top: 1px solid rgba(255,255,255,0.18); }
}

/* Small phones (<= 400px, app-v0.10.1, Sightline): Call is an icon-only 44x44 phone button so the business name keeps its
   full width and size (construction sample, a sample POC and landscaping sample truncated at 390). Above 400px the 'Call' text stays. */
@media (max-width: 400px) {
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call { width: 44px; height: 44px; min-width: 44px; padding: 0; gap: 0; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call > span { display: none; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-call > svg { width: 20px; height: 20px; }
  :is(.poc-nav-trade, .pk-app-nav) .poc-nav-inner { padding-left: 0.85rem; padding-right: 0.6rem; }
}

/* Sign-in cards: a floated label sits on a solid chip the colour of the card, so the outline never runs through it
   (Chrome autofill floated the label without opening the border notch, so it looked struck through). (app-v0.10.1) */
.s4s-landing .auth-card .mud-input.mud-shrink ~ label.mud-input-label-outlined,
.s4s-landing .auth-card .mud-input:focus-within ~ label.mud-input-label-outlined,
.s4s-landing .auth-card .mud-input-control.s4s-filled > .mud-input-control-input-container > label.mud-input-label-outlined {
  transform: translate(10px, -7px) scale(0.75) !important;
  background: #1b2436; color: #e2e8f0 !important; padding: 0 6px; border-radius: 6px; line-height: 1.25; z-index: 2;
}
/* Separate rules: a browser without :has()/:autofill drops only its own rule, never the chip above. */
.s4s-landing .auth-card .mud-input-control:has(input:-webkit-autofill) > .mud-input-control-input-container > label.mud-input-label-outlined {
  transform: translate(10px, -7px) scale(0.75) !important;
  background: #1b2436; color: #e2e8f0 !important; padding: 0 6px; border-radius: 6px; line-height: 1.25; z-index: 2;
}
.s4s-landing .auth-card .mud-input-control:has(input:autofill) > .mud-input-control-input-container > label.mud-input-label-outlined {
  transform: translate(10px, -7px) scale(0.75) !important;
  background: #1b2436; color: #e2e8f0 !important; padding: 0 6px; border-radius: 6px; line-height: 1.25; z-index: 2;
}

/* ========== app-v0.10.6: app bar exactly 56px, picker caption on one line, phone title/picker, Ask AI clearance ========== */
/* The 1px bottom rule was a border on top of the 56px toolbar (bar = 57px). Draw it inside instead. */
.hh-appbar.mud-appbar {
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.15) !important;
    height: var(--hh-appbar-height);
    min-height: var(--hh-appbar-height);
    box-sizing: border-box;
}
.hh-appbar .mud-toolbar {
    height: var(--hh-appbar-height);
    min-height: var(--hh-appbar-height);
}
.hh-appbar .hh-org-select-field.mud-input-control {
    margin-top: 0;
    margin-bottom: 0;
}
/* "Home Hub only" / "Business Hub only": one line beside the picker, inside the bar; hidden when space runs out. */
.hh-appbar .hh-org-scope {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: #F8FAFC;
    opacity: 0.9;
}
@media (max-width: 1100px) {
    .hh-appbar .hh-org-scope {
        display: none;
    }
}
.hh-appbar-title .hh-title-short {
    display: none;
}
@media (max-width: 600px) {
    .hh-appbar .mud-toolbar {
        gap: 0.15rem;
        padding-left: 8px;
        padding-right: 8px;
    }
    .hh-appbar .mud-toolbar > .flex-grow-1 {
        display: none;
    }
    .hh-appbar-title {
        max-width: none;
        overflow: visible;
        font-size: 0.95rem !important;
        flex: 0 0 auto;
    }
    .hh-appbar-title .hh-title-long {
        display: none;
    }
    .hh-appbar-title .hh-title-short {
        display: inline;
    }
    .hh-appbar .org-selector-wrap {
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
    }
    .hh-appbar .hh-org-select {
        width: 100%;
        min-width: 0;
    }
    .hh-appbar .hh-org-select > .mud-select {
        flex: 1 1 auto;
        min-width: 0;
    }
    .hh-appbar .hh-org-select-field {
        min-width: 0;
        max-width: none;
    }
    /* The banner's "Manage" button does the same job; the room goes to the workspace name. */
    .hh-appbar .hh-org-select > .mud-tooltip-root {
        display: none;
    }
    .hh-appbar .org-selector-wrap input.mud-input-root,
    .hh-appbar .org-selector-wrap .mud-select-input {
        font-size: 0.8rem !important;
    }
    /* Bigger tap target for Switch / Workspace / Manage on phones. */
    .hh-banner-actions .mud-button-root {
        min-height: 40px;
    }
}

/* ========== app-v0.10.7: picker inside the bar, scrollbar gutter, phone title gap, Ask AI edge tab, gallery titles ========== */
/* Keep the scrollbar's space on every page so the bar (and the picker) do not jump ~8px between short and long pages.
   overflow-y: scroll rather than scrollbar-gutter: stable - Chromium with hidden scrollbars (headless screenshots)
   still reserved a ~10px empty gutter beside the app bar with scrollbar-gutter; this is 0px there and a steady
   scrollbar on desktops with classic scrollbars. */
html {
    overflow-y: scroll;
}
/* Workspace picker: a dense outlined field centred in the 56px bar, so its floating label ("Location" / "Organization")
   sits inside the bar instead of being cut off at the top. */
.hh-appbar .org-selector-wrap,
.hh-appbar .hh-org-select {
    align-self: center;
    align-items: center;
}
.hh-appbar .hh-org-select-field.mud-input-control {
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
}
.hh-appbar .hh-org-select-field .mud-input-label-outlined.mud-input-label-inputcontrol {
    line-height: 1.15;
}
@media (max-width: 600px) {
    /* A clear gap between the short title ("Business") and the picker outline. */
    .hh-appbar-title {
        margin-right: 0.5rem !important;
    }
}
/* Examples gallery: one-line card titles on desktop ("a sample POC" used to wrap). */
@media (min-width: 900px) {
    /* app-v0.31.7 (Sightline v5): long names wrap to two lines instead of "..." after one. */
    .poc-gallery-page .s4s-card h2.poc-gallery-card-title {
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    }
}

/* ========== app-v0.10.8: stable picker x, gallery card alignment + skeletons, warehouse md layout, phone grids/tabs ========== */
/* The picker now follows the title (spacer moved after it); a fixed-width title keeps its x the same in Home and Business. */
@media (min-width: 601px) {
    .hh-appbar-title {
        flex: 0 0 auto;
        width: 9.5rem;
        margin-right: 0.75rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (min-width: 601px) and (max-width: 900px) {
    .hh-appbar-title {
        width: 7.5rem;
    }
}
@media (max-width: 600px) {
    .hh-appbar-title {
        min-width: 3.9rem;
    }
}
/* Examples gallery: equal-height cards, buttons pinned to the bottom, skeleton cards while loading. */
.poc-gallery-page .poc-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    align-items: stretch;
}
.poc-gallery-page .poc-gallery-card {
    height: 100%;
}
/* Card paragraphs were flex-grow: 1, so free space was shared out unevenly (titles at different heights). Natural
   heights instead; the free space goes above the pinned buttons. */
.poc-gallery-page .poc-gallery-card > * {
    flex: 0 0 auto;
}
/* One fixed line for the kicker keeps titles level. */
.poc-gallery-page .poc-gallery-card .s4s-card-kicker {
    height: 1.25rem;
    line-height: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.poc-gallery-page .poc-gallery-card .poc-gallery-actions,
.poc-gallery-page .poc-gallery-skel .s4s-card-actions {
    margin-top: auto;
    padding-top: 1.15rem;
}
.poc-skel-block,
.poc-skel-line,
.poc-skel-btn {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.26), rgba(148, 163, 184, 0.12));
    background-size: 200% 100%;
    animation: poc-skel 1.3s ease-in-out infinite;
    border-radius: 8px;
}
.poc-skel-line {
    height: 0.85rem;
    margin: 0.55rem 0;
}
.poc-skel-line.poc-skel-title {
    height: 1.4rem;
}
.poc-skel-btn {
    display: inline-block;
    width: 6.5rem;
    height: 2.4rem;
    border-radius: 999px;
}
@keyframes poc-skel {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .poc-skel-block, .poc-skel-line, .poc-skel-btn { animation: none; }
}
/* /warehouse + /inventory: Add stock / Remove (FIFO) stay on one line. */
.hh-adjust-actions {
    flex-wrap: nowrap;
}
.hh-adjust-actions .mud-button-root {
    white-space: nowrap;
    flex: 0 0 auto;
}
/* Inventory tabs: long labels on wide screens, short ones on phones. */
.hh-inv-tabs .hh-tab-short {
    display: none;
}
.hh-inv-tabs .hh-tab-icon {
    margin-right: 0.4rem;
}
@media (max-width: 600px) {
    .hh-inv-tabs .hh-tab-long,
    .hh-inv-tabs .hh-tab-icon {
        display: none;
    }
    .hh-inv-tabs .hh-tab-short {
        display: inline;
    }
    .hh-inv-tabs .mud-tab {
        min-width: 0 !important; /* MudTabs sets min-width: 160px inline */
        padding-left: 10px;
        padding-right: 10px;
        flex: 1 1 auto;
    }
    /* app-v0.10.9: two equal columns; an odd last button spans the full row (5 buttons = 2 + 2 + 1). */
    .hh-hub-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hh-hub-links > * {
        grid-column: auto;
        min-width: 0;
    }
    .hh-hub-links > *:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ========== app-v0.10.9: Ask AI in the app bar, POC requests table, heading focus ========== */
/* Ask AI is an app-bar button (no longer floating over the page), so nothing can sit under it at any width. */
.hh-ai-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    height: 32px;
    margin: 0 0.35rem;
    padding: 0 0.8rem 0 0.6rem;
    border: 1px solid rgba(248, 250, 252, 0.45);
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.85);
    color: #fff;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.hh-ai-bar-btn:hover {
    background: #0f766e;
}
.hh-ai-bar-btn:focus-visible {
    outline: 2px solid #f8fafc;
    outline-offset: 2px;
}
.hh-ai-bar-icon.mud-icon-root {
    color: #fff !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
}
@media (max-width: 600px) {
    /* Phones: a round icon button between the picker and the feedback button. */
    .hh-ai-bar-btn {
        width: 32px;
        padding: 0;
        margin: 0 0.15rem 0 0.25rem;
        justify-content: center;
    }
    .hh-ai-bar-label {
        display: none;
    }
}
/* POC admin requests: the request title gets the room (customer + status stay on one line). */
.poc-requests-table td.poc-request-title {
    min-width: 12rem;
}
/* Headings focused by navigation (FocusOnNavigate / page code, tabindex=-1) show no outline; real controls keep theirs. */
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h1:focus:not(:focus-visible) {
    outline: none !important;
}

/* ========== app-v0.10.10: visible keyboard focus, POC requests table ========== */
/* MudBlazor's reset removes focus outlines from links and buttons (a:focus-visible / button:focus { outline: none }),
   so keyboard users saw no ring anywhere. Every link, button, tab and focusable control gets one on :focus-visible
   (keyboard only - mouse clicks stay clean). Components with their own ring (a sample POC, POC portal, Ask AI) keep theirs. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="link"]:focus-visible,
.mud-button-root:focus-visible,
.mud-nav-link:focus-visible,
.mud-chip:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}
.poc-requests-table td.poc-request-customer {
    max-width: 12rem;
}
.poc-request-customer-short {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: help;
}
.poc-requests-table td.poc-request-status {
    min-width: 6.5rem;
}

/* ========== app-v0.10.11: Ask AI composer full width ========== */
.hh-ai-dialog .mud-dialog-actions {
    padding: 0;
}
.hh-ai-composer {
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
}
.hh-ai-composer-field {
    width: 100%;
}
.hh-ai-composer > .mud-button-root {
    align-self: flex-end;
}

/* app-v0.10.12: POC request panel actions wrap in the 5/12 column (1280px+) instead of clipping Archive / Delete request. */
.poc-request-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.poc-request-actions .poc-request-status-select { flex: 0 0 170px; min-width: 150px; }
.poc-request-actions .poc-request-notes { flex: 1 1 calc(100% - 190px); min-width: 160px; }
.poc-request-actions > .mud-button-root { flex: 0 0 auto; }
/* app-v0.10.13: the POC Give feedback side tab (fixed to the right edge, about 48px wide) no longer covers the right edge of the
   owner tools (e.g. the Owner notes field at 1024). Below 1440 the container reaches the tab, so it keeps a right gutter; phones use the round bubble. */
@media (min-width: 641px) and (max-width: 1439.98px) {
    .poc-admin.pa-4 { padding-right: 64px !important; }
    /* keep all six owner-tool tabs visible at 1024 with the gutter (MudTabs sets min-width:160px inline) */
    .poc-admin .mud-tabs-tabbar .mud-tab { min-width: 120px !important; }
}

/* ---- Business Hub > Analytics (app-v0.12.0) ---- */
.an-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.an-live { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--mud-palette-surface); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.an-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; align-self: center; }
.an-live-dot.on { background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: an-pulse 2s infinite; }
@keyframes an-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.an-live-num { font-size: 1.6rem; font-weight: 600; line-height: 1; }
.an-live-label { font-size: .8rem; color: var(--mud-palette-text-secondary); }
.an-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.an-filters .mud-input-control { margin: 0; }
.an-f-site { flex: 1 1 220px; max-width: 320px; }
.an-f-range, .an-f-gran { flex: 0 1 170px; }
.an-f-date { flex: 0 1 160px; }
.an-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.an-kpis > *, .an-grid > * { min-width: 0; }
.an-kpi-label { font-size: .78rem; color: var(--mud-palette-text-secondary); text-transform: uppercase; letter-spacing: .03em; }
.an-kpi-value { font-size: 1.7rem; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.an-kpi-delta { font-size: .8rem; font-weight: 600; margin-top: 2px; }
.an-kpi-delta.up { color: #15803d; } .an-kpi-delta.down { color: #b91c1c; } .an-kpi-delta.flat { color: #64748b; }
.an-kpi-vs { font-weight: 400; color: var(--mud-palette-text-secondary); }
.an-kpi-sub { font-size: .75rem; color: var(--mud-palette-text-secondary); margin-top: 4px; }
.an-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.an-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .an-grid { grid-template-columns: 1fr 1fr; } }
.an-table-wrap { overflow-x: auto; max-height: 360px; overflow-y: auto; }
.an-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.an-table th { text-align: left; font-weight: 600; color: var(--mud-palette-text-secondary); font-size: .75rem; padding: 6px 8px; border-bottom: 1px solid var(--mud-palette-lines-default); position: sticky; top: 0; background: var(--mud-palette-surface); }
.an-table td { padding: 6px 8px; border-bottom: 1px solid var(--mud-palette-table-lines, rgba(148, 163, 184, .2)); vertical-align: top; }
.an-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-table .an-path { word-break: break-word; max-width: 360px; }
.an-table .an-empty { color: var(--mud-palette-text-secondary); text-align: center; padding: 14px; }
.an-click { cursor: pointer; } .an-click:hover { background: rgba(14, 116, 144, .06); }
.an-site-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; font-size: .7rem; background: rgba(14, 116, 144, .1); color: #0e7490; white-space: nowrap; }
.an-foot code { font-size: .8rem; }
@media (max-width: 600px) {
    .an-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .an-kpi-value { font-size: 1.35rem; }
    .an-f-site, .an-f-range, .an-f-gran, .an-f-date { flex: 1 1 100%; max-width: none; }
    .an-table { font-size: .8rem; }
    .an-table td, .an-table th { padding: 5px 6px; }
}

/* Plain-language privacy notes (app-v0.12.0) */
.s4s-privacy-note h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.s4s-privacy-note ul { margin: 6px 0 10px 20px; }
.s4s-privacy-note li { margin: 3px 0; }

/* First-party analytics footer note + opt-out banner (app-v0.12.4) */
.s4s-an-foot-note {
    margin: 0.65rem 0 0;
    max-width: 42rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--hh-muted, #64748b);
}
.s4s-an-foot-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* app-v0.31.7 (Sightline nit): "Opt out" never splits across two lines (it did at 390). */
.s4s-an-foot-note a.s4s-an-optout { white-space: nowrap; }
/* app-v0.17.1: AA contrast in the hub footer. the sample shop stylesheet applies opacity .85 to every .s4s-an-foot-note; undo it here only. */
.hh-legal-footer .s4s-an-foot-note { opacity: 1; color: #475569; }
/* app-v0.31.7 (Sightline v5): the analytics note on the dark landing / privacy / examples footer was #64748b (3.9:1). */
.s4s-foot .s4s-an-foot-note { opacity: 1; color: #94a3b8; }
/* app-v0.31.7 (Hubprobe t0317 FAIL 1): the sample-site footer (.poc-foot, #0f172a) on equipment sample and every PocSite tone
   (equipment, contractor, crew, landscape, handyman) showed the note at #64748b x 0.85 = 3.06:1. Match the footer text: 12.0:1. */
.poc-foot .s4s-an-foot-note { opacity: 1; color: #cbd5e1; }
.s4s-an-banner {
    position: fixed;
    z-index: 4000;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(92vw, 36rem);
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #0B3D5C;
    color: #F8FAFC;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}
.s4s-an-banner a { color: #7dd3fc; margin-right: 0.35rem; }
.s4s-an-banner button {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

/* app-v0.19.1 (Sitewright P2): the signed-out / wrong-login portal banners sit on the dark S4S landing background
   (#0A1525). MudBlazor's light "text" alert colors (#024F78 info) measured about 2:1 there; these are AA
   (>= 4.5:1; info about 8.6:1, warning about 10:1). */
.s4s-landing .mud-alert.poc-portal-gate { border: 1px solid rgba(156, 201, 240, 0.35); }
.s4s-landing .mud-alert-text-info.poc-portal-gate { background-color: rgba(156, 201, 240, 0.10); }
.s4s-landing .mud-alert-text-info.poc-portal-gate,
.s4s-landing .mud-alert-text-info.poc-portal-gate .mud-alert-message,
.s4s-landing .mud-alert-text-info.poc-portal-gate .mud-alert-icon { color: #9CC9F0; }
.s4s-landing .mud-alert-text-warning.poc-portal-gate { background-color: rgba(252, 211, 77, 0.10); border-color: rgba(252, 211, 77, 0.35); }
.s4s-landing .mud-alert-text-warning.poc-portal-gate,
.s4s-landing .mud-alert-text-warning.poc-portal-gate .mud-alert-message,
.s4s-landing .mud-alert-text-warning.poc-portal-gate .mud-alert-icon { color: #FCD34D; }

/* app-v0.20.3 (Sitewright a sample POC a): request photo thumbnails in the owner queue + the request detail. */
.poc-request-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 8px; border: 1px solid rgba(0,0,0,.12); }
.poc-request-photo { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid rgba(0,0,0,.12); }

/* app-v0.20.6 (Hubprobe Pets B): at phone widths the owner request queue keeps Status visible. Each row becomes two
   lines: customer + status on top, the request (thumbnail, title) under it, instead of a third column cut off. */
@media (max-width: 480px) {
    .poc-requests-table .mud-table-container { overflow-x: visible; }
    .poc-requests-table thead { display: none; }
    .poc-requests-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
    .poc-requests-table tbody td { border: 0 !important; padding: 2px 10px !important; min-width: 0 !important; max-width: none !important; }
    .poc-requests-table td.poc-request-customer { grid-column: 1; grid-row: 1; font-weight: 600; }
    .poc-requests-table td.poc-request-status { grid-column: 2; grid-row: 1; white-space: nowrap; text-align: right; }
    .poc-requests-table td.poc-request-title { grid-column: 1 / -1; grid-row: 2; }
}

/* app-v0.20.8/0.20.10: the shared Quotes table at phone widths - each quote becomes a two-column card so Status stays on
   screen. Prefixed with div.mud-simple-table so it beats MudBlazor's own simple-table display rules. */
@media (max-width: 480px) {
    div.mud-simple-table.poc-quotes-table table, div.mud-simple-table.poc-quotes-table table tbody { display: block !important; width: 100%; }
    div.mud-simple-table.poc-quotes-table table thead { display: none !important; }
    div.mud-simple-table.poc-quotes-table table tbody tr { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
    div.mud-simple-table.poc-quotes-table table tbody td { display: block !important; border: 0 !important; padding: 2px 8px !important; white-space: normal !important; min-width: 0 !important; }
    div.mud-simple-table.poc-quotes-table table tbody td:nth-child(2), div.mud-simple-table.poc-quotes-table table tbody td:nth-child(5) { grid-column: 1 / -1; }
}

/* app-v0.20.14 (Hubprobe a sample POC): in-app photo viewer for the owner queue; above the admin tab bar. */
.poc-photo-open { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.poc-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 10, 10, .9); display: flex; align-items: center; justify-content: center; padding: 16px; outline: none; }
.poc-viewer figure { margin: 0; text-align: center; color: #fff; max-width: min(1100px, 100%); }
.poc-viewer img { max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain; border-radius: 8px; background: #fff; display: block; margin: 0 auto; }
.poc-viewer figcaption { margin-top: 10px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.poc-viewer-close { background: #fff; color: #111; border: 0; border-radius: 6px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
/* While a photo viewer is open, the sticky admin tab bar drops below it. */
body:has(.poc-viewer, .fx-owner-lightbox) .mud-tabs-tabbar,
body:has(.poc-viewer, .fx-owner-lightbox) .mud-tabs-header { z-index: 0 !important; }

/* app-v0.20.14 (Hubprobe a sample POC 390): the app-v0.20.6 phone layout above never took effect - MudBlazor's
   ".mud-simple-table table thead/tr/td" rules are more specific - so the header stayed and the customer and status
   cells ran together ("QuinnEstimate visit set"). Same layout, selectors that win. */
@media (max-width: 480px) {
    .mud-simple-table.poc-requests-table table thead { display: none; }
    .mud-simple-table.poc-requests-table table,
    .mud-simple-table.poc-requests-table table tbody { display: block; width: 100%; }
    .mud-simple-table.poc-requests-table table * tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
    .mud-simple-table.poc-requests-table table * tr > td { display: block; overflow-wrap: anywhere; }
    .mud-simple-table.poc-requests-table table * tr > td.poc-request-status { white-space: normal; max-width: 48vw; }
}

/* app-v0.20.24: POC site guide (Components/PocGuide.razor). Bar on every signed-in POC page, card on the POC home page,
   one-time "New" callout. Scoped under .s4s-landing so per-POC global h2/section/button rules never restyle it.
   Contrast (AA): bar #fff on #0f2a44 14.9:1; card text #0f172a / #334155 on #eef4ff 16:1 / 9.4:1; meta #475569 6.8:1;
   badge #713f12 on #fde68a 7.3:1; buttons #fff on #0f2a44 and #0f2a44 on #fff 14.9:1. */
.s4s-landing .pg-bar, .s4s-landing .pg-card, .s4s-landing .pg-callout-layer {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box; letter-spacing: normal; text-transform: none; text-align: left;
}
.s4s-landing .pg-bar *, .s4s-landing .pg-card *, .s4s-landing .pg-callout-layer * { box-sizing: border-box; }
/* app-v0.31.30: owner-desk callout docked in the page flow (never over the desk's buttons). */
.s4s-landing .pg-callout-docked, .s4s-landing .pg-callout-docked * { box-sizing: border-box; }
@media (max-width: 600px) { .s4s-landing .pg-callout-docked .pg-callout-actions { width: 100%; } }
.s4s-landing .pg-bar { position: relative; z-index: 5; background: #0f2a44; color: #fff; width: 100%; }
.s4s-landing .pg-bar-inner {
    max-width: 1200px; margin: 0 auto; padding: 6px 16px; min-height: 44px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.s4s-landing .pg-bar-text { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; line-height: 1.35; font-weight: 600; color: #fff; min-width: 0; }
.s4s-landing .pg-bar-icon { display: inline-flex; flex: none; }
.s4s-landing .pg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px;
    border-radius: 10px; font: 700 .95rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer;
    border: 2px solid transparent; text-decoration: none; white-space: normal; text-transform: none; letter-spacing: normal;
    box-shadow: none; width: auto; margin: 0;
}
.s4s-landing .pg-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.s4s-landing .pg-btn[disabled] { opacity: .75; cursor: progress; }
.s4s-landing .pg-btn-light { background: #fff; color: #0f2a44; border-color: #fff; }
.s4s-landing .pg-btn-light:hover { background: #e2ecfa; border-color: #e2ecfa; }
.s4s-landing .pg-btn-dark { background: #0f2a44; color: #fff; border-color: #0f2a44; }
.s4s-landing .pg-btn-dark:hover { background: #1d4170; border-color: #1d4170; }
.s4s-landing .pg-btn-ghost { background: #fff; color: #0f2a44; border-color: #0f2a44; }
.s4s-landing .pg-btn-ghost:hover { background: #eef4ff; }
.s4s-landing .pg-error { margin: 0; padding: 0 16px 8px; max-width: 1200px; margin-inline: auto; color: #fecaca; font-size: .9rem; font-weight: 600; }
.s4s-landing .pg-card .pg-error-card { padding: 6px 0 0; color: #b91c1c; }

.s4s-landing .pg-card-wrap { position: relative; z-index: 4; background: #0f2a44; padding: 10px 16px; width: 100%; box-sizing: border-box; }
.s4s-landing .pg-card {
    position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    max-width: 1168px; margin: 0 auto;
    padding: 16px 52px 16px 20px; border-radius: 14px; background: #eef4ff; color: #0f172a;
    border: 1px solid #b9c9e4; box-shadow: 0 6px 18px rgba(15, 42, 68, .10);
}
.s4s-landing .pg-card-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 12px; background: #0f2a44; color: #fff;
}
.s4s-landing .pg-card-text { flex: 1 1 260px; min-width: 0; }
.s4s-landing .pg-card h2.pg-card-title { margin: 0 0 4px; padding: 0; font: 800 1.2rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #0f172a; text-transform: none; letter-spacing: normal; }
.s4s-landing .pg-card p.pg-card-body { margin: 0; font-size: .98rem; line-height: 1.5; color: #334155; }
.s4s-landing .pg-card-actions { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.s4s-landing .pg-card-meta { font-size: .82rem; color: #475569; font-weight: 600; }
/* app-v0.20.29: close (x) collapses the card to the slim row. 44px target; #334155 on #eef4ff 9.4:1. */
.s4s-landing .pg-card button.pg-card-close {
    position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; min-width: 0; margin: 0; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px;
    background: transparent; color: #334155; cursor: pointer; box-shadow: none;
}
.s4s-landing .pg-card button.pg-card-close:hover { background: #dbe6f7; }
.s4s-landing .pg-card button.pg-card-close:focus-visible { outline: 3px solid #f59e0b; outline-offset: 0; }
/* Slim one-line row (after the first download or the close button): icon, "Your site guide", Download. */
.s4s-landing .pg-card-wrap-slim { padding: 6px 16px; }
.s4s-landing .pg-card.pg-card-slim { flex-wrap: nowrap; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 12px; box-shadow: none; }
.s4s-landing .pg-slim-icon { flex: none; display: inline-flex; color: #0f2a44; }
.s4s-landing .pg-slim-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .95rem; line-height: 1.3; color: #0f172a; }
.s4s-landing .pg-btn.pg-btn-slim { flex: none; min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.s4s-landing .pg-card-slim .pg-error-slim { position: absolute; left: 14px; right: 14px; top: 100%; margin-top: 4px; padding: 4px 8px; background: #fff; border-radius: 8px; }

.s4s-landing .pg-callout { border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); max-height: calc(100vh - 32px); overflow-y: auto; }
.s4s-landing .pg-callout p.pg-callout-badge {
    display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: #fde68a; color: #713f12;
    font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.s4s-landing .pg-callout h2.pg-callout-title { margin: 0 0 8px; font: 800 1.3rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #0f172a; text-transform: none; letter-spacing: normal; }
.s4s-landing .pg-callout p.pg-callout-body { margin: 0; font-size: 1rem; line-height: 1.55; color: #334155; }
/* Download comes first in the DOM; row-reverse shows "Got it" left, Download right on wider screens. */
.s4s-landing .pg-callout-actions { margin-top: 20px; display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .s4s-landing .pg-desk { display: none; }
    .s4s-landing .pg-bar-inner { padding: 6px 12px; gap: 8px; }
    .s4s-landing .pg-bar .pg-btn { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
    .s4s-landing .pg-card-wrap { padding: 8px 12px; }
    .s4s-landing .pg-card { padding: 12px; gap: 10px; }
    .s4s-landing .pg-card-text { padding-right: 30px; }
    .s4s-landing .pg-card-icon { width: 40px; height: 40px; border-radius: 10px; }
    .s4s-landing .pg-card-text { flex: 1 1 0; }
    .s4s-landing .pg-card h2.pg-card-title { font-size: 1.05rem; margin-bottom: 2px; }
    .s4s-landing .pg-card p.pg-card-body { font-size: .9rem; line-height: 1.4; }
    .s4s-landing .pg-card-actions { width: 100%; flex-direction: row; align-items: center; gap: 10px; }
    .s4s-landing .pg-card-actions .pg-btn { flex: 0 0 auto; min-height: 40px; padding: 6px 14px; }
    .s4s-landing .pg-card-meta { flex: 1 1 auto; min-width: 0; font-size: .78rem; text-align: right; }
    .s4s-landing .pg-card-wrap-slim { padding: 6px 12px; }
    .s4s-landing .pg-card.pg-card-slim { padding: 4px 6px 4px 12px; }
    /* Callout buttons stacked full width, Download on top. */
    .s4s-landing .pg-callout { padding: 20px; }
    .s4s-landing .pg-callout-actions { flex-direction: column; align-items: stretch; gap: 8px; }
    .s4s-landing .pg-callout-actions .pg-btn { width: 100%; min-height: 44px; }
}

/* app-v0.20.37: owner tab strip (all POC admins). When MudTabs overflows and shows scroll
   arrows, a tab can sit half past the edge and read as clipped mid-word. Fade whichever edge
   still has hidden tabs so a partly visible tab fades out instead of being cut off. */
.poc-admin .mud-tabs-tabbar-inner:has(> .mud-tabs-scroll-button) > .mud-tabs-tabbar-content {
    /* app-v0.20.39: wider fade (a fixed 56px left most of a cut tab readable); capped at 22% so the 390 strip keeps its middle clear. */
    --poc-tab-fade-l: min(120px, 22%);
    --poc-tab-fade-r: min(120px, 22%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--poc-tab-fade-l), #000 calc(100% - var(--poc-tab-fade-r)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--poc-tab-fade-l), #000 calc(100% - var(--poc-tab-fade-r)), transparent 100%);
}
.poc-admin .mud-tabs-tabbar-inner:has(button[aria-label="Scroll tabs left"]:disabled) > .mud-tabs-tabbar-content { --poc-tab-fade-l: 0px; }
.poc-admin .mud-tabs-tabbar-inner:has(button[aria-label="Scroll tabs right"]:disabled) > .mud-tabs-tabbar-content { --poc-tab-fade-r: 0px; }

/* app-v0.20.40 (Conner via Helm): owner "Website & visitors" (Components/SiteVisitorsPanel.razor) - every POC's owner tools. */
.sv { --sv-ink: #0f172a; --sv-muted: #475569; --sv-line: #e2e8f0; --sv-bg: #ffffff; --sv-soft: #f1f5f9; --sv-accent: #2563eb;
      color: var(--sv-ink); background: var(--sv-bg); border-radius: 12px; padding: 16px; }
.sv h2.sv-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 4px; color: var(--sv-ink); }
/* app-v0.20.43: the dark owner-tools theme forces light headings (.poc-admin h2/h3 !important); keep the panel's own dark ink on its white cards. */
.poc-admin .sv h2, .poc-admin .sv h3, .poc-admin .sv .sv-title { color: var(--sv-ink) !important; }
/* app-v0.20.45 (Sightline F1): panel headings are dark from the first frame - never faded or animated in from transparent. */
.sv h2, .sv h3, .sv .sv-title { color: var(--sv-ink) !important; opacity: 1 !important; animation: none !important; transition: none !important; }
.sv-switch-text { display: flex; flex-direction: column; gap: 2px; }
.sv-switch-help { font-weight: 400; font-size: .82rem; color: var(--sv-muted); }
.sv-sub, .sv-muted { color: var(--sv-muted); }
.sv-sub { margin: 0; font-size: .92rem; max-width: 62ch; }
.sv-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.sv-range { display: flex; gap: 6px; flex-wrap: wrap; }
.sv-chip { border: 1px solid var(--sv-line); background: var(--sv-bg); color: var(--sv-ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; cursor: pointer; min-height: 36px; }
.sv-chip.on { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; font-weight: 600; }
.sv-chip:focus-visible, .sv-btn:focus-visible, .sv-switch input:focus-visible + .sv-track { outline: 3px solid #f59e0b; outline-offset: 2px; }
.sv-controls { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--sv-soft); border-radius: 10px; }
.sv-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; position: relative; }
.sv-switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.sv-track { width: 44px; height: 24px; border-radius: 999px; background: #94a3b8; position: relative; flex: none; transition: background .15s; }
.sv-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sv-switch input:checked + .sv-track { background: var(--sv-accent); }
.sv-switch input:checked + .sv-track::after { transform: translateX(20px); }
.sv-device { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sv-device-text { font-size: .88rem; color: var(--sv-muted); }
.sv-btn { border: 1px solid var(--sv-accent); color: var(--sv-accent); background: var(--sv-bg); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; min-height: 36px; }
.sv-btn[disabled] { opacity: .6; cursor: default; }
.sv-note { font-size: .88rem; color: var(--sv-muted); margin: 8px 2px 14px; }
.sv-error { color: #b91c1c; font-weight: 600; }
.sv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sv-kpi { border: 1px solid var(--sv-line); border-radius: 10px; padding: 10px 12px; }
.sv-kpi-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--sv-muted); }
.sv-kpi-value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.sv-kpi-delta { font-size: .8rem; color: var(--sv-muted); }
.sv-kpi-delta.up { color: #15803d; } .sv-kpi-delta.down { color: #b91c1c; }
.sv-empty { margin: 12px 0 0; padding: 10px 12px; background: var(--sv-soft); border-radius: 8px; color: var(--sv-muted); }
.sv-chart { display: flex; align-items: flex-end; gap: 2px; height: 90px; margin-top: 14px; padding: 0 2px; border-bottom: 1px solid var(--sv-line); box-sizing: content-box !important; } /* 0.20.45 P7: same height inside a sample POC's border-box theme */
.sv-bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.sv-bar span { display: block; width: 100%; background: var(--sv-accent); border-radius: 3px 3px 0 0; opacity: .85; }
.sv-chart-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--sv-muted); margin: 4px 2px 0; }
.sv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sv-card { border: 1px solid var(--sv-line); border-radius: 10px; padding: 12px; min-width: 0; }
.sv-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--sv-ink); }
.sv-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sv-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--sv-muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--sv-line); }
.sv-table td { padding: 6px; border-bottom: 1px solid var(--sv-soft); overflow-wrap: anywhere; }
.sv-table .n { text-align: right; white-space: nowrap; width: 1%; }
.sv-dev { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; margin: 8px 0; }
.sv-dev-label { font-weight: 600; }
.sv-dev-bar { height: 10px; background: var(--sv-soft); border-radius: 999px; overflow: hidden; }
.sv-dev-bar span { display: block; height: 100%; background: var(--sv-accent); }
.sv-dev-n { font-size: .88rem; white-space: nowrap; }
.sv-small { font-size: .8rem; margin: 6px 0 0; }
@media (max-width: 700px) {
  .sv { padding: 12px; }
  /* app-v0.20.45 (Sightline P2/P3): one full-width segmented range row; stat cards as full-width rows with the short comparison. */
  .sv-head > div:first-child { flex: 1 1 100%; }
  .sv-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; flex: 1 1 100%; }
  .sv-range .sv-chip { border-radius: 0; margin-left: -1px; padding: 6px 4px; white-space: nowrap; }
  .sv-range .sv-chip:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
  .sv-range .sv-chip:last-child { border-radius: 0 10px 10px 0; }
  .sv-chip-pre { display: none; }
  .sv-kpis { grid-template-columns: 1fr; gap: 8px; }
  .sv-kpi { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label value" "delta value"; align-items: center; column-gap: 12px; padding: 8px 12px; }
  .sv-kpi-label { grid-area: label; font-size: .74rem; }
  .sv-kpi-value { grid-area: value; font-size: 1.5rem; }
  .sv-kpi-delta { grid-area: delta; font-size: .78rem; }
  /* app-v0.20.46 (Hubprobe): the floating feedback bubble sits at the right edge - keep the toggle panel's text clear of it. */
  .sv-controls { padding-right: 64px; }
  /* app-v0.20.52 (Hubprobe): and the panel itself ends short of the bubble (it overlapped its top-right corner on contractor sample and a sample POC). */
  .sv-controls { margin-right: 24px; padding-right: 16px; }
  /* a sample POC's owner card is wider (32px side padding), so its panel stops a little earlier. */
  body:has(.zk-head) .sv-controls { margin-right: 48px; }
  .sv-grid { grid-template-columns: 1fr; }
  .sv-controls { flex-direction: column; align-items: flex-start; }
}

/* app-v0.20.49: to-do attachments (task detail) */
.tatt-todo .tatt-head { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tatt-linkbtn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.tatt-linkbtn:disabled { opacity: .5; cursor: default; }
.tatt-archived { opacity: .6; }
/* Tenant payments (app-v0.21.0) */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.pay-card .mud-input-helper-text { white-space: normal; }
.pay-url { font-size: 12px; word-break: break-all; padding: 4px 6px; border-radius: 4px; background: var(--mud-palette-background-gray); flex: 1 1 auto; }
.pay-audit td { font-size: 13px; vertical-align: top; }
@media (max-width: 600px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-audit th:nth-child(4), .pay-audit td:nth-child(4), .pay-audit th:nth-child(6), .pay-audit td:nth-child(6) { display: none; }
}
.pay-grid > .pay-card-plaid { align-self: start; height: auto !important; min-height: 0 !important; }
.pay-card button:disabled, .pay-card button:disabled .mud-button-label, .pay-card button:disabled .mud-icon-root { color: #6b7280 !important; }
/* app-v0.37.47: Test / Live key tabs, the setup checklist and the Advanced section on the Stripe and PayPal cards. */
.pay-slot-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.pay-slot-tab { border: 1px solid #94a3b8; background: #fff; color: #1f2937; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; min-height: 36px; }
.pay-slot-tab-on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; font-weight: 600; }
.pay-slot-tab:disabled { opacity: .6; cursor: default; }
.pay-slot-tab:focus-visible, .pay-advanced summary:focus-visible { outline: 3px solid #1e3a8a; outline-offset: 2px; }
.pay-checklist { border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.pay-steps { list-style: none; margin: 0; padding: 0; }
.pay-step { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.pay-step-mark { flex: 0 0 1.4rem; font-weight: 700; text-align: center; }
.pay-step-ok .pay-step-mark { color: #166534; }
.pay-step-fail .pay-step-mark { color: #b91c1c; }
.pay-step-warn .pay-step-mark { color: #92400e; }
.pay-step-word { font-size: .8rem; color: #475569; }
.pay-step-detail { font-size: .8rem; }
.pay-advanced summary { cursor: pointer; font-size: .85rem; color: #1e3a8a; min-height: 28px; }
.zk-refund-restock { display: flex; gap: 8px; align-items: center; margin: .5rem 0; }
.pay-live-switch .mud-switch-label, .pay-live-switch.mud-disabled .mud-typography, .pay-live-switch .mud-typography { color: #6b7280 !important; }
.pay-chip-untested, .pay-chip-untested .mud-chip-content { color: #9a3412 !important; }
.pay-private { color: #6b7280; font-style: italic; }
.pay-audit-cards { display: none; }
.pay-audit-card { border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.pay-ac-title { font-weight: 600; font-size: 14px; }
.pay-ac-meta { color: #6b7280; font-size: 12px; margin-top: 2px; }
.pay-ac-result { font-size: 13px; margin-top: 6px; }
@media (max-width: 599.98px) {
  .pay-audit { display: none; }
  .pay-audit-cards { display: block; }
}

/* app-v0.21.0 Payment methods: sample-site page sits on the dark landing layout; keep card text dark on the white cards. */
.poc-paymethods .chart-card, .poc-paymethods .chart-card .mud-typography, .poc-paymethods .chart-card .mud-typography-h6 { color: #0f172a !important; }
.poc-paymethods .chart-card .mud-text-secondary { color: #475569 !important; }
.poc-paymethods .chart-card .mud-button-outlined-primary, .poc-paymethods .chart-card .mud-button-outlined-primary .mud-button-label { color: #1d4ed8 !important; border-color: #1d4ed8 !important; }
.pay-on-switch { margin: -4px 0 4px; }
.pay-cashapp-box { border: 1px dashed #94a3b8; border-radius: 10px; padding: 12px; max-width: 420px; }

/* ---- Shared item editor (app-v0.23.0): ItemEditorDialog / ItemEditorService ---- */
.item-editor .item-editor-title { min-width: 0; }
.item-editor .item-editor-heading { min-width: 0; }
.item-editor .item-editor-h { line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.item-editor--sheet.mud-dialog { border-radius: 0; }
.item-editor--sheet .mud-dialog-title { position: sticky; top: 0; z-index: 2; background: var(--mud-palette-surface); border-bottom: 1px solid var(--mud-palette-lines-default); padding: 8px 12px; }
.item-editor--sheet .item-editor-content { padding: 12px; overflow-y: auto; flex: 1 1 auto; }
.item-editor--sheet .mud-dialog-actions { position: sticky; bottom: 0; z-index: 2; background: var(--mud-palette-surface); border-top: 1px solid var(--mud-palette-lines-default); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.item-editor--sheet.mud-dialog { display: flex; flex-direction: column; height: 100%; height: 100dvh; max-height: 100dvh; margin: 0 !important; top: 0; }
.mud-dialog-container:has(.item-editor--sheet) { align-items: stretch; padding: 0; }
/* app-v0.24.0: every list in both hubs opens items here (ItemEditorInline + ItemEditorDialog, docs/ITEM-EDITOR.md). */
.item-editor:not(.item-editor--sheet).mud-dialog { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.item-editor:not(.item-editor--sheet) > .mud-dialog-content.item-editor-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.item-editor:not(.item-editor--sheet) > .mud-dialog-actions { border-top: 1px solid var(--mud-palette-lines-default); }
.item-editor .item-editor-actions { width: 100%; }
.item-editor .item-editor-primary { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.item-editor--sheet.mud-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0 !important; }
.item-editor--sheet .mud-dialog-actions .mud-button-root:not(.mud-icon-button) { min-height: 44px; }
.item-editor--sheet .mud-dialog-content.item-editor-content { min-height: 0; }
/* app-v0.25.5: rows that open the item pop-up on a click (journal entries, mileage trips). */
.journal-row { cursor: pointer; }
.ml-trip.ml-trip-open { cursor: pointer; }
.ml-trip.ml-trip-open:hover, .ml-trip.ml-trip-open:focus-visible { border-color: var(--mud-palette-primary); outline: none; }
/* Journal lines on a phone: one card per line (account, then Debit / Credit side by side, then memo) so nothing is cut off. */
@media (max-width: 600px) {
    .journal-lines.mud-simple-table table, .journal-lines table tbody, .journal-lines table tfoot { display: block !important; width: 100% !important; min-width: 0 !important; }
    .journal-lines table thead { display: none !important; }
    .journal-lines thead { display: none; }
    .journal-lines tbody tr { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
    .journal-lines tbody td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
    .journal-lines tbody td:nth-child(1) { grid-column: 1 / -1; }
    .journal-lines tbody td:nth-child(1) .mud-select { min-width: 0 !important; }
    .journal-lines tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
    .journal-lines tbody td:nth-child(3) { grid-column: 2; grid-row: 2; }
    .journal-lines tbody td:nth-child(5) { grid-column: 3; grid-row: 2; align-self: end; }
    .journal-lines tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
    .journal-lines tbody td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--mud-palette-text-secondary); margin-bottom: 2px; }
    .journal-lines tfoot tr { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-top: 8px; }
    .journal-lines tfoot td { padding: 0 !important; border: 0 !important; }
}

/* ---- Hatch Tracker (app-v0.23.0) ---- */
.hatch-card { cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; height: 100%; }
.hatch-card:hover, .hatch-card:focus-visible { box-shadow: 0 2px 10px rgba(0,0,0,.12); border-color: var(--mud-palette-primary); outline: none; }
.hatch-card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hatch-stage-lockdown { border-left: 4px solid var(--mud-palette-warning); }
.hatch-stage-hatching { border-left: 4px solid var(--mud-palette-success); }
.hatch-stage-incubating { border-left: 4px solid var(--mud-palette-info); }
.hatch-next { color: var(--mud-palette-warning-darken); }
.hatch-day-big { text-align: center; min-width: 76px; }
.hatch-day-big .mud-typography-h3 { line-height: 1; font-weight: 600; }
.hatch-rows { display: flex; flex-direction: column; gap: 6px; }
.hatch-row { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; padding: 10px 36px 10px 12px;
    border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); color: inherit; font: inherit; cursor: pointer; }
.hatch-row:hover, .hatch-row:focus-visible { border-color: var(--mud-palette-primary); background: var(--mud-palette-action-default-hover); outline: none; }
.hatch-row-title { font-weight: 600; font-size: .9rem; }
.hatch-row-detail { font-size: .875rem; }
.hatch-row-notes { font-size: .8rem; color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hatch-row-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--mud-palette-text-secondary); }
.hatch-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.hatch-photo { padding: 0; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.hatch-label-preview { display: inline-block; padding: 12px; background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 8px, #e5e7eb 8px, #e5e7eb 16px); border-radius: 8px; max-width: 100%; overflow-x: auto; }
.hatch-label-preview .hl { display: flex; align-items: center; gap: .08in; padding: .06in; box-sizing: border-box; background: #fff; color: #000; box-shadow: 0 1px 4px rgba(0,0,0,.2); border-radius: 3px; overflow: hidden; }
.hatch-label-preview .hl-qr { flex: 0 0 auto; }
.hatch-label-preview .hl-text { flex: 1 1 auto; min-width: 0; overflow: hidden; font-family: "Segoe UI", Roboto, Arial, sans-serif; }
/* app-v0.25.2: sizes come from hatch-tracker.js (scaled to the label, then shrunk to fit one line); never cut off. */
.hatch-label-preview .hl-code { font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; }
.hatch-label-preview .hl-line { line-height: 1.25; white-space: nowrap; overflow: hidden; }
.hatch-link { word-break: break-all; }
/* app-v0.25.2 */
.hatch-reminder-overdue, .hatch-reminder-today { border-left: 3px solid var(--mud-palette-warning); background: rgba(255,152,0,.06); }
.hatch-tabnav { display: none; }
@media (max-width: 600px) {
    .hatch-tabnav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .hatch-tabnav::-webkit-scrollbar { display: none; }
    .hatch-tabnav-btn { flex: 0 0 auto; border: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
                        border-radius: 16px; padding: 4px 12px; font-size: .85rem; cursor: pointer; white-space: nowrap; }
    .hatch-tabnav-btn.active { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }
    .hatch-tabs .mud-tabs-tabbar { display: none; }
}
.hatch-facts th { width: 110px; vertical-align: top; color: var(--mud-palette-text-secondary); font-weight: 500; }
.hatch-stats-table .num { text-align: right; }
@media (max-width: 600px) {
    .hatch-stats-table .hide-xs { display: none; }
    .hatch-upcoming .mud-chip { height: auto; min-height: 24px; max-width: 100%; white-space: normal; text-align: left; padding-top: 3px; padding-bottom: 3px; }
}

/* To Dos v2 (app-v0.26.0): one flat list with collapsible sections (Pages/Todos.razor). */
.todo-v2-quick-target { max-width: 220px; min-width: 160px; }
.todo-v2-search { max-width: 280px; }
.todo-v2-selectbar { position: sticky; top: 64px; z-index: 5; padding: 6px 10px; border-radius: 8px;
    background: var(--mud-palette-primary-lighten, #e3f2fd); background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface)); }
.todo-v2-board { display: flex; flex-direction: column; gap: 4px; }
.todo-v2-section-head { display: flex; align-items: center; gap: 8px; padding: 10px 4px 4px; border-bottom: 1px solid var(--mud-palette-lines-default); margin-top: 8px; }
.todo-v2-main-head { margin-top: 0; }
.todo-v2-section-head.is-archived { opacity: .65; }
.todo-v2-collapse { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 2px; cursor: pointer;
    color: inherit; font: inherit; font-weight: 600; font-size: 1rem; border-radius: 6px; text-align: left; }
.todo-v2-collapse:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.todo-v2-section-name { overflow-wrap: anywhere; }
.todo-v2-zone { min-height: 40px; border-radius: 8px; padding: 2px 0; }
.todo-v2-zone-collapsed { min-height: 14px; border: 1px dashed transparent; }
.todo-v2-drop-ok { outline: 2px dashed var(--mud-palette-primary); outline-offset: -2px; background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent); }
.todo-v2-drop-no { outline: 2px dashed var(--mud-palette-error); outline-offset: -2px; }
.todo-v2-dragging { opacity: .5; }
.todo-v2-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; cursor: pointer;
    background: var(--mud-palette-surface); border: 1px solid transparent; }
.todo-v2-row:hover { border-color: var(--mud-palette-lines-default); }
.todo-v2-row.is-selected { border-color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface)); }
.todo-v2-row.is-done .todo-v2-title { text-decoration: line-through; opacity: .65; }
.todo-v2-drag { cursor: grab; display: inline-flex; }
.todo-v2-main { flex: 1 1 auto; min-width: 0; }
.todo-v2-title { overflow-wrap: anywhere; line-height: 1.3; }
.todo-v2-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--mud-palette-text-secondary); }
.todo-v2-meta:empty { display: none; }
.todo-v2-overdue { color: var(--mud-palette-error); font-weight: 600; }
.todo-v2-pri { color: var(--mud-palette-warning-darken, #e65100); font-weight: 600; }
/* app-v0.26.11: "Waits on: <title>" chip and the Archived / Done flag in Show archived. */
.todo-v2-waits { display: inline-flex; align-items: center; gap: 2px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 0 6px; border-radius: 10px; background: rgba(2, 132, 199, .10); color: var(--mud-palette-info-darken, #0369a1); }
/* app-v0.26.12: MudDropZone keeps an absolutely positioned 20 px "preview-start" strip over the top of the first row of
   every zone. It swallowed clicks on that row's title (Hubprobe: first click lost). It only takes pointer events while a
   drag is in progress (todos.js sets body.todo-v2-dragging). */
.todo-v2-zone > .mud-drop-item-preview-start { pointer-events: none; }
body.todo-v2-dragging .todo-v2-zone > .mud-drop-item-preview-start { pointer-events: auto; }
.todo-v2-state { padding: 0 6px; border-radius: 10px; font-weight: 600; }
.todo-v2-state.is-done { background: rgba(22, 163, 74, .12); color: #15803d; }
.todo-v2-state.is-archived { background: rgba(100, 116, 139, .16); color: #475569; }
.todo-v2-actions { display: flex; align-items: center; gap: 4px; }
.todo-v2-menu-label { opacity: .7; font-size: .8rem; }
@media (max-width: 600px) {
    .todo-v2-quick-target, .todo-v2-search { max-width: none; width: 100%; }
    .todo-v2-selectbar { top: 56px; }
    .todo-v2-row { padding: 6px 4px; }
}
@media (hover: none) { .todo-v2-drag { display: none; } }
/* app-v0.26.9 (Hubprobe To Dos v2 r2 #3): rows drag by the handle only (todos.js), so a title click always opens the pop-up. */
.todo-v2-drag { padding: 6px 2px; margin: -6px 0; touch-action: none; }
.todo-v2-drag:active { cursor: grabbing; }

/* app-v0.30.1: "Shared by …" / "Shared: …" chips never overflow a narrow dialog: shrink to the line, ellipsis, full text on tooltip. */
.hh-shared-title { min-width: 0; max-width: 100%; }
.hh-shared-title-text { min-width: 0; overflow-wrap: anywhere; }
.hh-shared-chip-tip { min-width: 0; max-width: 100%; display: flex; }
.mud-chip.hh-shared-chip { max-width: 100%; min-width: 0; }
.mud-chip.hh-shared-chip .mud-chip-content { min-width: 0; max-width: 100%; overflow: hidden; }
.hh-shared-chip .hh-chip-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* app-v0.31.0 Inventory edit places (G) and UPC print (H): wrap cleanly at 390 px, no sideways scroll. */
.inv-edit-place-shelf { flex: 1 1 200px; min-width: 0; max-width: 100%; }
.inv-edit-place-qty { flex: 0 0 110px; width: 110px; }
.inv-upc-code { word-break: break-all; font-size: 0.85rem; }
.inv-upc-cell, .inv-edit-upcs, .inv-edit-place-row { max-width: 100%; }

/* app-v0.31.0 Homestead Blueprints / Music / Video libraries: fit 390 px, no sideways scroll. */
.media-lib { max-width: 100%; overflow-x: hidden; }
.media-lib-title { overflow-wrap: anywhere; min-width: 0; }
.media-lib-num { flex: 1 1 100px; min-width: 90px; max-width: 160px; }
.media-lib-file { max-width: 100%; }
.media-lib-player video { display: block; width: 100%; max-width: 100%; max-height: 70vh; background: #000; border-radius: 6px; }
/* app-v0.31.1: Family Shares. Tabs stay on one row at 390 px; rows wrap long emails and titles. */
.family-shares .family-shares-tabs .mud-tab { min-width: 0; padding: 6px 10px; text-transform: none; }
@media (max-width: 600px) { .family-shares .family-shares-tabs .mud-tab { font-size: 0.8rem; padding: 6px 8px; } .family-shares .mud-paper { padding: 10px !important; } }
/* app-v0.31.2: all three tabs fit at 390 px (Hubprobe t0311: the Share tab was off-screen). MudTabs gives each tab an
   inline min-width of 160 px and an icon; on phones drop both so "Shared with me", "Shared by me" and "Share" share one row. */
@media (max-width: 600px) {
    .family-shares .family-shares-tabs .mud-tab { min-width: 0 !important; flex: 1 1 auto; padding: 6px 6px; font-size: 0.78rem; letter-spacing: 0; }
    .family-shares .family-shares-tabs .mud-tab .mud-icon-root { display: none; }
    .family-shares .family-shares-tabs .mud-tabs-tabbar-wrapper { width: 100%; }
    .family-shares .family-shares-tabs .mud-tabs-scroll-button { display: none; }
}

/* POC hotfix (Sightline v3): equipment sample footer at phone width. The phone number wrapped as "(574) 555-" / "3636" and all four
   columns were squeezed side by side; keep numbers on one line and stack to 2 columns under 600px, 1 under 380px. */
.poc-tone-equipment .poc-foot a[href^="tel:"], .pk-tel, .pk-hero-link a { white-space: nowrap; }
@media (max-width: 600px) {
  .poc-tone-equipment .poc-foot .poc-foot-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .poc-tone-equipment .poc-foot .poc-foot-grid > div:first-child, .poc-tone-equipment .poc-foot .poc-foot-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .poc-tone-equipment .poc-foot .poc-foot-grid { grid-template-columns: 1fr; }
}

/* app-v0.31.8 (10DLC): /sms example banner, print/store sign and message flow. Fixed colours on purpose so they pass AA on any
   page tone: white on #1e3a8a is 10.4:1, #0f172a on #ffffff is 17.9:1, #0f172a on #e2e8f0 is 14.5:1. No images. */
.s4s-sms-banner { background: #1e3a8a; color: #ffffff; border-radius: 12px; padding: 14px 18px; margin: 8px 0 20px; font-weight: 600; }
.s4s-sms-banner p { margin: 0; color: #ffffff; }
.s4s-sms-sign { background: #ffffff; color: #0f172a; border: 4px solid #0f172a; border-radius: 8px; padding: 22px; max-width: 520px; margin: 8px 0 20px; text-align: center; }
.s4s-sms-sign p { color: #0f172a; margin: 0 0 10px; }
.s4s-sms-sign .s4s-sms-sign-title { font-size: 1.35rem; font-weight: 800; }
.s4s-sms-sign .s4s-sms-sign-cta { font-size: 1.6rem; font-weight: 700; }
.s4s-sms-sign .s4s-sms-sign-fine { font-size: 0.9rem; margin-bottom: 6px; }
.s4s-sms-flow { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.s4s-sms-msg { border-radius: 14px; padding: 10px 14px; max-width: 85%; }
.s4s-sms-msg.s4s-sms-in { align-self: flex-end; background: #e2e8f0; color: #0f172a; }
.s4s-sms-msg.s4s-sms-out { align-self: flex-start; background: #1e3a8a; color: #ffffff; }
.s4s-sms-who { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 2px; color: inherit; }
.s4s-sms-text { display: block; color: inherit; }
.s4s-sms-reply { background: #e2e8f0; color: #0f172a; border-radius: 10px; padding: 10px 14px; max-width: 640px; }
/* app-v0.31.9: SMS consent checkbox (account settings + register). Text uses the theme's primary text color (AA on every
   theme); links inherit it and are underlined, and get a 44px-tall hit area via ::after without changing line height. */
.s4s-sms-consent-box { min-height: 44px; align-items: flex-start; }
.s4s-sms-consent-box .mud-checkbox-label, .s4s-sms-consent-text { color: var(--mud-palette-text-primary); font-size: 0.95rem; line-height: 1.5; }
.s4s-sms-consent-box .mud-button-root { min-width: 44px; min-height: 44px; }
.s4s-sms-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; position: relative; display: inline; }
.s4s-sms-link::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
.s4s-sms-link:focus-visible { outline: 3px solid var(--mud-palette-primary); outline-offset: 2px; border-radius: 2px; }
.s4s-sms-tap { min-height: 44px; }
/* app-v0.31.9 public /sms sign-up form: white card, slate-900 text (AA on any page background), 44px targets */
.s4s-sms-form { background: #ffffff; color: #0f172a; border: 2px solid #1e3a8a; border-radius: 12px; padding: 18px; max-width: 640px; margin: 8px 0 20px; position: relative; }
.s4s-sms-form p, .s4s-sms-form label, .s4s-sms-form span { color: #0f172a; }
.s4s-sms-form .s4s-sms-link { color: #1e3a8a; }
.s4s-sms-form .s4s-sms-link:focus-visible, .s4s-sms-form input:focus-visible, .s4s-sms-form button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.s4s-sms-form-field { display: block; font-weight: 700; margin-bottom: 4px; }
.s4s-sms-form-input { display: block; width: 100%; max-width: 340px; min-height: 44px; padding: 8px 12px; font-size: 1rem; color: #0f172a; background: #ffffff; border: 2px solid #475569; border-radius: 8px; margin-bottom: 12px; box-sizing: border-box; }
.s4s-sms-form-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; line-height: 1.5; font-size: 0.95rem; cursor: pointer; }
.s4s-sms-form-check input[type="checkbox"] { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: #1e3a8a; padding: 10px; box-sizing: content-box; }
.s4s-sms-form-note { font-size: 0.95rem; margin: 0 0 12px; }
.s4s-sms-form-submit { min-height: 44px; min-width: 44px; padding: 10px 20px; font-size: 1rem; font-weight: 700; color: #ffffff; background: #1e3a8a; border: 0; border-radius: 8px; cursor: pointer; }
.s4s-sms-form-submit:disabled { opacity: 0.7; cursor: wait; }
.s4s-sms-form-status { margin: 10px 0 0; min-height: 1.5em; }
.s4s-sms-form-done { font-weight: 700; font-size: 1.1rem; margin: 0; }
.s4s-sms-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.s4s-sms-settings [data-testid="sms-status"] { color: var(--mud-palette-text-primary); }

/* app-v0.31.12 (built as 0.31.6): Family Shares sections by type. The chip row wraps at 390px; section titles stay compact. */
.family-shares .family-section-chips .mud-chip { margin: 2px; }
.family-shares .family-section-title { font-size: 1.05rem; }
.family-shares .family-section-empty { font-size: 0.85rem; }
@media (max-width: 420px) { .family-shares .family-section-chips .mud-chip { font-size: 0.75rem; height: 26px; padding: 0 8px; } }
/* app-v0.36.16: Share-tab library list. Cards stack on a phone; titles and "shared with" names wrap instead of scrolling sideways. */
.family-shares .family-share-options { display: flex; flex-direction: column; gap: 8px; max-width: 100%; min-width: 0; }
.family-shares .family-share-option { min-width: 0; max-width: 100%; }
.family-shares .family-share-option-who { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 600px) {
    .family-shares .family-share-option .mud-button-root { width: 100%; min-height: 44px; }
    .family-shares .family-share-kind, .family-shares .family-share-form .mud-input-control { max-width: 100%; min-width: 0; }
}
/* app-v0.32.1 instructions reader (cook mode) */
.hh-reader { outline: none; max-width: 1100px; margin: 0 auto; }
.hh-reader-step { border-width: 2px; }
.hh-reader-done { opacity: .55; text-decoration: line-through; }
.hh-reader-ingredients .mud-checkbox { margin: 0; }
@media (max-width: 599.98px) { .hh-reader-title { font-size: 1.6rem !important; } .hh-reader-step { padding: 12px !important; } }

/* app-v0.36.6 (Conner 8:27 PM): recipe list thumbnails. Same 48x48 box at every width (checked at 390 and 1280). */
.recipe-thumb { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; }
.recipe-thumb-img { display: block; width: 48px; height: 48px; object-fit: cover; }
.recipe-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--mud-palette-background-gray, #eee); color: var(--mud-palette-text-secondary, #777); }
/* app-v0.36.8 (Supervisor): 44px tap targets on Projects > Show archived (the switch, View and Restore). */
.mud-button-root.tap-44 { min-height: 44px; min-width: 44px; box-sizing: border-box; }
.tap-44.mud-input-control, .tap-44 .mud-switch, .mud-switch.tap-44 { min-height: 44px; }
.tap-44 .mud-switch, .mud-switch.tap-44 { display: inline-flex; align-items: center; }
.project-archived-table td { vertical-align: middle; }
/* app-v0.36.9: LIMITED INTRODUCTORY OFFER (Components/PocIntroOffer.razor), public home band + owner card. AA contrast on
   #0f2a44: white 14.5:1, #fde68a 11.6:1, #dbe7f5 12.3:1; badge #422006 on #fde68a 10.9:1. Tap targets 44px. */
.s4s-landing .pio, .s4s-landing .pio * { box-sizing: border-box; }
.s4s-landing .pio { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: normal; text-transform: none; text-align: left; background: #0f2a44; color: #fff; }
.s4s-landing .pio-band { width: 100%; border-top: 4px solid #f59e0b; }
.s4s-landing .pio-owner { border-radius: 12px; border-left: 6px solid #f59e0b; margin: 0 0 16px; }
.s4s-landing .pio-inner {
    max-width: 1200px; margin: 0 auto; padding: 20px 16px; display: flex; flex-wrap: wrap; gap: 16px 24px;
    align-items: center; justify-content: space-between;
}
.s4s-landing .pio-text { flex: 1 1 420px; min-width: 0; }
.s4s-landing .pio-badge {
    display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; background: #fde68a; color: #422006;
    font: 800 .82rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .06em;
}
.s4s-landing .pio-title { margin: 0 0 8px; color: #fff; font: 800 1.35rem/1.25 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.s4s-landing .pio-list { margin: 0 0 8px; padding: 0 0 0 1.2em; color: #fff; font: 400 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; list-style: disc; }
.s4s-landing .pio-list li { margin: 2px 0; color: #fff; }
.s4s-landing .pio-list strong { color: #fde68a; font-weight: 800; }
.s4s-landing .pio-note { margin: 0; color: #dbe7f5; font: 400 .92rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.s4s-landing .pio-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; min-width: 0; }
.s4s-landing .pio-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px 18px;
    border-radius: 10px; border: 2px solid #fff; font: 700 1rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-decoration: none; text-align: center;
    white-space: normal; box-shadow: none; margin: 0; cursor: pointer;
}
.s4s-landing .pio-btn-light, .s4s-landing .pio-btn-light:visited { background: #fff; color: #0f2a44; }
.s4s-landing .pio-btn-light:hover { background: #e2ecfa; border-color: #e2ecfa; color: #0f2a44; }
.s4s-landing .pio-btn-ghost, .s4s-landing .pio-btn-ghost:visited { background: transparent; color: #fff; }
.s4s-landing .pio-btn-ghost:hover { background: #1d4170; color: #fff; }
.s4s-landing .pio-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media (max-width: 600px) {
    .s4s-landing .pio-actions { width: 100%; }
    .s4s-landing .pio-btn { flex: 1 1 100%; }
    .s4s-landing .pio-title { font-size: 1.15rem; }
    /* keep both buttons clear of the round Feedback button (bottom-right, fixed) at the end of the page */
    .s4s-landing .pio-band .pio-inner { padding-bottom: 84px; }
}
/* app-v0.36.13 (Hubprobe t0369 note 3): at phone width the round Feedback button is fixed 12px from the right edge and
   52px wide (poc-feedback.css, max-width 640px), so it crossed the Call / Email buttons while they scrolled past it.
   The band now keeps a right lane for it: buttons end 8px left of the bubble (12 + 52 + 8 = 72px from the edge, minus
   the 16px inner padding = 56px). The buttons keep min-height 44px. */
@media (max-width: 640px) {
    .s4s-landing .pio-band .pio-actions { padding-right: calc(56px + env(safe-area-inset-right, 0px)); }
}
