/* ============================================================================
   SB Design System — Liquid Glass
   ----------------------------------------------------------------------------
   The shared stylesheet for every SB Blazor surface (Time Tracker, Project
   Management, the Admin hub). Served from the Sb.DesignSystem RCL at
   _content/Sb.DesignSystem/sb.css — link it BEFORE the app's own app.css so
   product-specific styles can override.

   Contents: brand tokens, gradient-orb ambient background, the glass mixin,
   MudBlazor chrome re-skin (appbar, drawer, cards, buttons, inputs, tables,
   dialogs, popovers, ...), the sb-brand / mkt-footer lockups, the sb-landing
   auth-card system, sb-status error pages, and the dashboard glass system.

   The www marketing site (sites/www, Statiq) mirrors the :root tokens in
   marketing.css by hand — it is static-built and cannot consume an RCL.
   ============================================================================ */

/* -- SB brand tokens (mirror sites/www marketing.css :root) ----------------- */
:root {
    --mkt-primary:      #007AFF;
    --mkt-primary-2:    #3395FF;
    --mkt-primary-soft: rgba(0, 122, 255, 0.08);
    --mkt-text:         #1D1D1F;
    --mkt-text-soft:    #6E6E73;
    --mkt-text-faint:   #8E8E93;
    --mkt-bg:           #F8F9FB;
    --mkt-surface:      #FFFFFF;
    --mkt-surface-soft: rgba(255, 255, 255, 0.72);
    --mkt-border:       rgba(60, 60, 67, 0.12);
    --mkt-border-soft:  rgba(60, 60, 67, 0.06);
    --mkt-success:      #34C759;
    --mkt-warning:      #FF9500;
    --mkt-error:        #FF3B30;
    --mkt-radius:       16px;
    --mkt-radius-sm:    10px;
    --mkt-shadow-sm:    0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    --mkt-shadow-lg:    0 12px 36px rgba(0, 122, 255, 0.10), 0 2px 8px rgba(0,0,0,0.06);
}

/* -- Base ----------------------------------------------------------------- */
html, body {
    margin: 0;
    background: var(--mkt-bg);
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient orbs — the ambient background shared with www (sites/www). Fixed so
   they stay put while the app scrolls; sit behind all content (z-index 0). */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(140px);
    opacity: 0.5;
}
body::before {
    top: -240px;
    left: -200px;
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(51, 149, 255, 0.32), transparent 70%);
}
body::after {
    top: 420px;
    right: -260px;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.20), transparent 70%);
}

/* Let the orbs read through the layout — content sits above at z-index 1. */
.mud-layout {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.mud-main-content {
    /* Keep MudBlazor's default `padding-top` (clears the fixed AppBar); zero
       only the other three sides for the flush layout. Resetting `padding: 0`
       caused content — including the SbCutoverBanner — to render behind
       the AppBar. */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    background: transparent !important;
}

/* -- Glass mixin (reusable via class) ------------------------------------- */
.glass,
.mud-appbar,
.mud-drawer,
.mud-card,
.mud-paper:not(.mud-popover-paper),
.mud-dialog .mud-dialog-content,
.mud-dialog .mud-paper {
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

/* -- AppBar --------------------------------------------------------------- */
.mud-appbar {
    background: rgba(248, 249, 251, 0.78) !important;
    color: var(--mkt-text) !important;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
    box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04) !important;
}

.mud-appbar .mud-icon-button {
    color: var(--mkt-primary) !important;
}

.mud-appbar .mud-typography {
    color: var(--mkt-text) !important;
}

/* Text buttons used as appbar nav (e.g. the Admin hub's Overview / Billing). */
.mud-appbar .mud-button-text {
    color: var(--mkt-text);
    font-weight: 500;
}

.mud-appbar .mud-button-text:hover {
    color: var(--mkt-primary) !important;
    background: var(--mkt-primary-soft) !important;
}

/* -- Drawer --------------------------------------------------------------- */
.mud-drawer {
    background: rgba(251, 251, 253, 0.65) !important;
    border-right: 0.5px solid rgba(60, 60, 67, 0.12) !important;
    box-shadow: none !important;
}

.mud-drawer-header {
    background: transparent !important;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.08);
}

/* -- Cards & Paper -------------------------------------------------------- */
.mud-card,
.mud-paper {
    background: var(--mkt-surface) !important;
    border: 1px solid var(--mkt-border-soft) !important;
    box-shadow: var(--mkt-shadow-sm) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.mud-card-header {
    padding: 20px 20px 8px 20px;
}

.mud-card-content {
    padding: 8px 20px 20px 20px;
}

/* -- Nav links ------------------------------------------------------------ */
.mud-nav-link {
    border-radius: 10px !important;
    margin: 2px 8px !important;
    padding: 8px 12px !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.mud-nav-link:hover {
    background: rgba(0, 122, 255, 0.08) !important;
}

.mud-nav-link.active {
    background: rgba(0, 122, 255, 0.12) !important;
    color: var(--mkt-primary) !important;
    font-weight: 600;
}

.mud-nav-link.active .mud-nav-link-icon {
    color: var(--mkt-primary) !important;
}

.mud-nav-group-text {
    border-radius: 10px !important;
    margin: 2px 8px !important;
    padding: 8px 12px !important;
}

/* -- Buttons -------------------------------------------------------------- */
.mud-button-filled {
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.2) !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    transition: all 0.2s ease;
}

.mud-button-filled:hover {
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3) !important;
    transform: translateY(-0.5px);
}

.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #3395FF 0%, #007AFF 100%) !important;
}

.mud-button-filled.mud-button-filled-error {
    background: linear-gradient(180deg, #FF5E57 0%, #FF3B30 100%) !important;
    box-shadow: 0 1px 4px rgba(255, 59, 48, 0.2) !important;
}

.mud-button-filled.mud-button-filled-success {
    background: linear-gradient(180deg, #4CD964 0%, #34C759 100%) !important;
    box-shadow: 0 1px 4px rgba(52, 199, 89, 0.2) !important;
}

.mud-button-filled.Mui-disabled,
.mud-button-filled:disabled {
    background: rgba(118, 118, 128, 0.18) !important;
    box-shadow: none !important;
    transform: none !important;
}

.mud-button-outlined {
    border-radius: 12px !important;
    border-color: rgba(60, 60, 67, 0.18) !important;
    text-transform: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.mud-button-outlined:hover {
    background: rgba(0, 122, 255, 0.06) !important;
    border-color: rgba(0, 122, 255, 0.3) !important;
}

.mud-button-text {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

/* -- Segmented control ------------------------------------------------------
   iOS-style switcher for exclusive view choices (e.g. Day/Week/Month). Plain
   <button type="button"> children; mark the active one with class="active"
   and aria-pressed. Preferred over MudToggleGroup, whose Material chrome
   fights the glass theme. */
.sb-seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(118, 118, 128, 0.12);
}
.sb-seg button {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mkt-text-soft);
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sb-seg button:hover { color: var(--mkt-text); }
.sb-seg button.active {
    background: #fff;
    color: var(--mkt-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10), 0 0.5px 0 rgba(0, 0, 0, 0.04);
}

/* -- Toggle Group --------------------------------------------------------- */
.mud-toggle-group {
    border-radius: 12px !important;
    background: rgba(118, 118, 128, 0.08) !important;
    border: none !important;
    padding: 2px !important;
}

.mud-toggle-item {
    border-radius: 10px !important;
    border: none !important;
    text-transform: none !important;
    font-weight: 500 !important;
    color: #3C3C43 !important;
    transition: all 0.25s ease;
}

.mud-toggle-item .mud-typography,
.mud-toggle-item .mud-toggle-item-content {
    color: inherit !important;
}

.mud-toggle-item.mud-toggle-item-selected,
.mud-toggle-item.mud-selected-item {
    background: #FFFFFF !important;
    color: var(--mkt-primary) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0.5px 0 rgba(0, 0, 0, 0.04) !important;
    font-weight: 600 !important;
}

.mud-toggle-item.mud-toggle-item-selected .mud-typography,
.mud-toggle-item.mud-selected-item .mud-typography {
    color: var(--mkt-primary) !important;
}

/* -- Chips ---------------------------------------------------------------- */
.mud-chip {
    border-radius: 20px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.mud-chip.mud-chip-outlined {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 0.5px solid rgba(0, 122, 255, 0.3) !important;
    color: var(--mkt-primary) !important;
}

/* -- Links ---------------------------------------------------------------- */
.mud-link {
    color: var(--mkt-primary) !important;
    font-weight: 500;
}

/* -- Inputs / Selects / Pickers ------------------------------------------- */
.mud-input-outlined .mud-input-outlined-border {
    border-radius: 12px !important;
    border-color: rgba(60, 60, 67, 0.18) !important;
    transition: border-color 0.2s ease;
}

.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(0, 122, 255, 0.4) !important;
}

.mud-input.mud-input-outlined.mud-input-adorned-end {
    border-radius: 12px;
}

.mud-select .mud-input-outlined .mud-input-outlined-border {
    border-radius: 12px !important;
}

/* -- Tables / DataGrid ----------------------------------------------------- */
.mud-table,
.mud-data-grid {
    border-radius: 16px !important;
    overflow: hidden;
    border: 0.5px solid rgba(60, 60, 67, 0.12);
}

.mud-table-head .mud-table-cell,
.mud-simple-table thead th {
    background: rgba(118, 118, 128, 0.04) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem;
    color: var(--mkt-text-soft);
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.12) !important;
}

.mud-table-body .mud-table-row:hover {
    background: rgba(0, 122, 255, 0.04) !important;
}

.mud-table-cell,
.mud-simple-table td {
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.08) !important;
}

/* -- Dialogs -------------------------------------------------------------- */
.mud-dialog {
    border-radius: 20px !important;
    overflow: hidden;
}

.mud-dialog .mud-paper {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12),
                0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.mud-dialog-title {
    padding: 20px 24px 8px 24px !important;
}

.mud-dialog-content {
    padding: 8px 24px 16px 24px !important;
}

.mud-dialog-actions {
    padding: 8px 24px 20px 24px !important;
}

/* -- Overlay / Backdrop --------------------------------------------------- */
.mud-overlay-dark {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* -- Popover -------------------------------------------------------------- */
.mud-popover-paper {
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* -- Snackbar ------------------------------------------------------------- */
.mud-snackbar {
    border-radius: 14px !important;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

/* -- Progress ------------------------------------------------------------- */
.mud-progress-linear {
    border-radius: 8px !important;
    overflow: hidden;
}

.mud-progress-linear .mud-progress-linear-bar {
    border-radius: 8px;
}

/* -- Menu ----------------------------------------------------------------- */
.mud-menu .mud-list {
    border-radius: 14px !important;
}

/* Menus measure their width before the item margins below apply — without
   this, the 2×6px margins overflow the popover and surface a horizontal
   scrollbar inside every menu. */
.mud-popover .mud-list {
    overflow-x: hidden;
}

.mud-menu-item {
    border-radius: 8px !important;
    margin: 2px 6px !important;
    transition: background 0.15s ease;
}

.mud-menu-item:hover {
    background: rgba(0, 122, 255, 0.08) !important;
}

/* -- Checkbox ------------------------------------------------------------- */
.mud-checkbox .mud-icon-root {
    border-radius: 6px;
}

/* -- Alert ---------------------------------------------------------------- */
.mud-alert {
    border-radius: 12px !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

/* -- Dividers ------------------------------------------------------------- */
.mud-divider {
    border-color: rgba(60, 60, 67, 0.12) !important;
}

/* -- Badge ---------------------------------------------------------------- */
.mud-badge-content {
    font-weight: 600 !important;
    font-size: 0.7rem !important;
}

/* -- Scrollbar (WebKit) --------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* -- Blazor error UI ------------------------------------------------------ */
#blazor-error-ui {
    background: #ffeaa7;
    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;
}

/* ============================================================================
   Brand lockup + footer — shared with the www marketing site (sites/www) so
   every surface reads as the same brand. Brand mark sits in the AppBar; the
   footer renders at the bottom of MainLayout.
   ============================================================================ */
.sb-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
}
.sb-brand-mark { display: inline-flex; line-height: 0; }
.sb-brand-text {
    font-weight: 700;
    font-size: 17px;
    color: var(--mkt-text);
    letter-spacing: -0.01em;
}

.mkt-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.mkt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}
.mkt-brand-mark { display: inline-flex; line-height: 0; }
.mkt-brand-text {
    font-weight: 700;
    font-size: 17px;
    color: var(--mkt-text);
    letter-spacing: -0.01em;
}
.mkt-footer {
    border-top: 1px solid var(--mkt-border-soft);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    padding: 56px 0 32px;
    position: relative;
    z-index: 1;
    margin-top: 64px;
}
.mkt-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .mkt-footer-grid { grid-template-columns: 1fr 1fr; }
}
.mkt-footer-tag { color: var(--mkt-text-soft); font-size: 14px; margin-top: 12px; max-width: 320px; }
.mkt-footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mkt-text-faint);
    margin: 0 0 12px;
}
.mkt-footer-col a {
    display: block;
    color: var(--mkt-text);
    font-size: 14px;
    text-decoration: none !important;
    padding: 5px 0;
}
.mkt-footer-col a:hover { color: var(--mkt-primary); }
.mkt-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--mkt-border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--mkt-text-faint);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================================
   Anonymous landing (home) — the branded sign-in screen anonymous/stale visitors
   land on instead of being bounced. Split hero: product pitch (left) + sign-in
   card (right) over the gradient orbs, with a cross-sell suite strip below.
   Stacks card-first under 900px — a phone visitor is almost always a returning
   user who just wants Sign in. The --single variant is the standalone card used
   by signed-out, waiting, and other one-card auth moments.
   ============================================================================ */
.sb-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
}
.sb-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 56px;
    align-items: center;
    width: 100%;
}

/* Pitch column */
.sb-landing-pitch {
    text-align: left;
}
.sb-landing-brandline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
}
.sb-landing-brandline svg { display: block; }
.sb-landing-brandline span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--mkt-text);
}
.sb-landing-headline {
    font-size: 38px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--mkt-text);
    margin: 0 0 14px;
}
.sb-landing-lede {
    font-size: 16px;
    line-height: 1.55;
    color: var(--mkt-text-soft);
    margin: 0 0 28px;
    max-width: 46ch;
}
.sb-landing-pillars {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sb-landing-pillar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}
.sb-landing-pillar-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--mkt-primary-soft);
    color: var(--mkt-primary);
}
.sb-landing-pillar-icon .mud-icon-root { font-size: 21px; }
.sb-landing-pillar strong {
    display: block;
    font-size: 15px;
    font-weight: 650;
    color: var(--mkt-text);
    margin-bottom: 2px;
}
.sb-landing-pillar p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--mkt-text-soft);
    margin: 0;
}
.sb-landing-trial {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mkt-text-faint);
    margin: 0;
}

/* Sign-in card */
.sb-landing-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 44px 36px;
    text-align: center;
}
.sb-landing-mark {
    display: inline-flex;
    line-height: 0;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 20px rgba(0, 122, 255, 0.28));
}
.sb-landing-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mkt-text);
    margin: 0 0 8px;
}
.sb-landing-tag {
    font-size: 15px;
    line-height: 1.5;
    color: var(--mkt-text-soft);
    margin: 0 0 28px;
}
.sb-landing-cta {
    margin-bottom: 16px;
}
.sb-landing-alt {
    font-size: 14px;
    color: var(--mkt-text-soft);
    margin: 0 0 6px;
}
.sb-landing-alt a {
    color: var(--mkt-primary);
    font-weight: 600;
    text-decoration: none;
}
.sb-landing-alt a:hover { text-decoration: underline; }
.sb-landing-alt-sub {
    font-size: 12.5px;
    color: var(--mkt-text-faint);
    margin: 0;
}

/* Suite cross-sell strip */
.sb-landing-suite {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--mkt-border-soft);
}
.sb-landing-suite-tag {
    font-size: 13px;
    color: var(--mkt-text-faint);
}
.sb-landing-suite-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mkt-text-soft);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--mkt-border);
    background: rgba(255, 255, 255, 0.6);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.sb-landing-suite-link:hover {
    color: var(--mkt-primary);
    border-color: var(--mkt-primary);
    text-decoration: none;
}

/* Single-card variant — signed-out and other standalone auth moments reuse the
   landing card without the hero grid. Self-sufficient (carries the flex layout)
   so it also works outside AuthLayout, e.g. inside the Admin hub's MainLayout. */
.sb-landing--single {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    gap: 20px;
}
.sb-landing-foot {
    font-size: 13px;
    color: var(--mkt-text-faint);
    margin: 0;
}
/* Forms and alerts inside the centered card read left-aligned. */
.sb-landing-card form,
.sb-landing-card .mud-alert {
    text-align: left;
}

@media (max-width: 900px) {
    .sb-landing { padding: 28px 16px; }
    .sb-landing-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sb-landing-card {
        order: -1;
        max-width: 440px;
        margin: 0 auto;
    }
    .sb-landing-pitch {
        text-align: center;
        max-width: 480px;
        margin: 0 auto;
    }
    .sb-landing-lede { margin-left: auto; margin-right: auto; }
    .sb-landing-headline { font-size: 30px; }
    .sb-landing-pillars { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ============================================================================
   Status pages (403 / 404 / error) — one calm pattern across the suite.
   ============================================================================ */
.sb-status {
    text-align: center;
    max-width: 480px;
    margin: 14vh auto 3rem;
    padding: 0 16px;
}
.sb-status-code {
    font-size: 84px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--mkt-primary);
    opacity: 0.18;
    margin: 0 0 10px;
}
.sb-status-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mkt-text);
    margin: 0 0 8px;
}
.sb-status-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--mkt-text-soft);
    margin: 0;
}
.sb-status-meta {
    font-size: 12.5px;
    color: var(--mkt-text-faint);
    margin: 10px 0 0;
}
.sb-status-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ============================================================================
   Dashboard glass system — KPI tiles and content cards that are TRANSLUCENT
   (unlike the global solid .mud-card) so the gradient orbs read through. This
   is where the Liquid Glass theme becomes visible inside the apps.
   ============================================================================ */
.dash-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.dash-page-header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mkt-text);
    line-height: 1.2;
    margin: 0;
}
.dash-page-header p {
    font-size: 14px;
    color: var(--mkt-text-soft);
    margin: 2px 0 0;
}
.dash-section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mkt-text-faint);
    margin: 4px 0 10px 2px;
}

/* Translucent content card — pair with MudCard/MudPaper via Class="dash-card".
   !important to beat the global solid .mud-card surface override above. */
.mud-card.dash-card,
.mud-paper.dash-card {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow: var(--mkt-shadow-sm) !important;
}

/* KPI tile — a plain div, deliberately NOT MudPaper, so it escapes the global
   card overrides. Structure: label / big tabular number / fine-print sub, with
   a tinted icon chip pinned top-right. */
.dash-kpi {
    position: relative;
    height: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--mkt-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
.dash-kpi-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mkt-text-soft);
    margin: 0 0 6px;
    padding-right: 40px; /* clear the icon chip */
}
.dash-kpi-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--mkt-text);
    font-variant-numeric: tabular-nums;
    margin: 0;
}
/* Text-on-light variants tuned for contrast (not the raw palette hues). */
.dash-kpi-value--success { color: #1E8E3E; }
.dash-kpi-value--warning { color: #B25000; }
.dash-kpi-value--error   { color: #D70015; }
.dash-kpi-sub {
    font-size: 12.5px;
    color: var(--mkt-text-faint);
    margin: 4px 0 0;
}
.dash-kpi-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mkt-primary-soft);
    color: var(--mkt-primary);
}
.dash-kpi--alert {
    border-color: rgba(255, 59, 48, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.12), var(--mkt-shadow-sm);
}
.dash-kpi--alert .dash-kpi-icon {
    background: rgba(255, 59, 48, 0.10);
    color: #D70015;
}

@media (max-width: 599.98px) {
    .dash-kpi { padding: 14px 16px; }
    .dash-kpi-value { font-size: 24px; }
}
