/* ========================================================================
   Personal Operations OS — Modern responsive UI system
   Central visual refresh only. Business logic and module behavior unchanged.
   ======================================================================== */

:root {
    --sidebar-width: 282px;
    --background: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #f1f5f9;
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-color: #e2e8f0;
    --app-border: #e2e8f0;
    --app-surface: #ffffff;
    --app-subtle: #f8fafc;
    --app-text: #0f172a;
    --app-muted: #64748b;
    --primary: #4f46e5;
    --primary-strong: #4338ca;
    --primary-soft: #eef2ff;
    --success: #15803d;
    --success-soft: #ecfdf3;
    --warning: #b45309;
    --warning-soft: #fff7ed;
    --danger: #b91c1c;
    --danger-soft: #fff1f2;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .035);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .055);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, .08);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
}

html {
    min-height: 100%;
    background: var(--background);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: #c7d2fe;
    color: #1e1b4b;
}

.ui-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.ui-icon-sprite symbol,
.sidebar-icon,
.mobile-bottom-navigation svg,
.topbar-icon-link svg,
.mobile-menu-button svg,
.sidebar-close-button svg,
.sidebar-install-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* App shell */
.operations-layout {
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% -20%, rgba(99, 102, 241, .08), transparent 34%),
        var(--background);
}

.operations-sidebar {
    width: var(--sidebar-width);
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent 22%),
        #0b1220;
    border-right: 1px solid rgba(148, 163, 184, .12);
    box-shadow: 12px 0 32px rgba(15, 23, 42, .06);
    scrollbar-color: rgba(148, 163, 184, .28) transparent;
    scrollbar-width: thin;
}

.sidebar-header {
    min-height: 82px;
    padding: 16px 18px;
    border-bottom-color: rgba(148, 163, 184, .12);
    background: rgba(11, 18, 32, .96);
    position: sticky;
    top: 0;
    z-index: 2;
}

.sidebar-brand-link {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .28);
    font-size: 12px;
    letter-spacing: .03em;
}

.sidebar-brand strong {
    color: #f8fafc;
    font-size: 13.5px;
    font-weight: 760;
    letter-spacing: -.01em;
}

.sidebar-brand span {
    margin-top: 4px;
    color: #7f8da4;
    font-size: 10.5px;
}

.sidebar-close-button {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 11px;
    color: #cbd5e1;
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.sidebar-close-button svg {
    width: 19px;
    height: 19px;
}

.sidebar-navigation {
    padding: 13px 12px 20px;
}

.sidebar-section-label {
    margin: 22px 11px 8px;
    color: #66758d;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
}

.sidebar-section-label:first-child {
    margin-top: 7px;
}

.sidebar-link {
    position: relative;
    min-height: 44px;
    margin-bottom: 3px;
    padding: 0 12px;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #9aa7ba;
    font-size: 12.5px;
    font-weight: 560;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.sidebar-link:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, .08);
    border-color: rgba(148, 163, 184, .08);
}

.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(99, 102, 241, .22), rgba(99, 102, 241, .10));
    border-color: rgba(129, 140, 248, .18);
    font-weight: 700;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #818cf8;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: .88;
}

.sidebar-link.active .sidebar-icon {
    color: #a5b4fc;
    opacity: 1;
}

.sidebar-footer {
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border-top-color: rgba(148, 163, 184, .12);
    background: rgba(11, 18, 32, .96);
}

.sidebar-install-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 0 12px;
    border: 1px solid rgba(129, 140, 248, .24);
    border-radius: 11px;
    background: rgba(99, 102, 241, .12);
    color: #c7d2fe;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
}

.sidebar-install-button svg {
    width: 16px;
    height: 16px;
}

.sidebar-user {
    margin-bottom: 10px;
    padding: 3px 2px;
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .1);
}

.sidebar-user-copy {
    min-width: 0;
}

.sidebar-user strong {
    color: #e5e7eb;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user span {
    color: #738197;
    font-size: 9.5px;
}

.sidebar-logout {
    min-height: 39px;
    border-color: rgba(248, 113, 113, .13);
    border-radius: 10px;
    color: #fca5a5;
    background: rgba(127, 29, 29, .06);
    font-weight: 700;
}

.sidebar-logout:hover {
    border-color: rgba(248, 113, 113, .22);
    background: rgba(127, 29, 29, .14);
    color: #fecaca;
}

.operations-main {
    margin-left: var(--sidebar-width);
}

.operations-topbar {
    height: 76px;
    padding: 0 30px;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .015);
}

.topbar-left {
    min-width: 0;
}

.topbar-title-group {
    min-width: 0;
}

.topbar-context {
    color: #94a3b8;
    font-size: 9px;
    letter-spacing: .14em;
}

.topbar-left strong {
    margin-top: 3px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 760;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-button,
.topbar-icon-link {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: #475569;
    box-shadow: var(--shadow-xs);
}

.mobile-menu-button svg,
.topbar-icon-link svg {
    width: 19px;
    height: 19px;
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-icon-link {
    display: inline-flex;
    text-decoration: none;
}

.topbar-icon-link:hover,
.topbar-icon-link.is-active {
    color: var(--primary);
    border-color: #c7d2fe;
    background: var(--primary-soft);
}

.topbar-install-button {
    min-height: 40px;
    padding: 0 14px;
    border-color: #c7d2fe;
    border-radius: 11px;
    background: #f5f7ff;
    color: var(--primary-strong);
    transition: background .16s ease, border-color .16s ease;
}

.topbar-install-button:hover {
    border-color: #a5b4fc;
    background: #eef2ff;
}

.security-indicator {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #dcfce7;
    background: #f0fdf4;
    color: #166534;
    font-size: 10.5px;
}

.security-indicator span {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
}

.operations-content {
    width: min(1480px, calc(100% - 56px));
    padding: 34px 0 72px;
}

.operations-page {
    min-width: 0;
}

.operations-flash-stack:empty {
    display: none;
}

/* Typography and page headers */
.page-introduction {
    gap: 28px;
    margin-bottom: 24px;
}

.page-introduction > div:first-child {
    min-width: 0;
}

.page-introduction h1 {
    margin: 6px 0 8px;
    color: var(--text);
    font-size: clamp(27px, 2.1vw, 34px);
    font-weight: 790;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.page-introduction p {
    max-width: 760px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.eyebrow,
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid #dbe3ff;
    border-radius: 999px;
    background: #f5f7ff;
    color: #4f46e5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.page-introduction-actions,
.page-actions,
.settings-actions,
.task-filter-actions,
.project-filter-actions,
.goal-filter-actions,
.review-filter-actions,
.asset-filter-actions,
.relationship-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

/* Buttons */
.btn,
button.btn {
    min-height: 42px;
    padding: 0 15px;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 730;
    line-height: 1;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: #4f46e5;
    background: linear-gradient(180deg, #5b55e7, #4f46e5);
    color: #fff;
    box-shadow: 0 7px 16px rgba(79, 70, 229, .18);
}

.btn-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 9px 20px rgba(79, 70, 229, .22);
}

.btn-secondary {
    border-color: var(--border);
    background: #fff;
    color: #334155;
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-sm {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 11px;
}

.danger-button,
.btn-danger {
    min-height: 40px;
    border-radius: 10px;
    background: #be123c;
    color: #fff;
}

/* Common surfaces */
.settings-card,
.dashboard-section,
.project-card,
.task-row,
.goal-card,
.review-card,
.identity-card,
.area-card,
.asset-card,
.migration-item-card,
.notification-channel-setting-card,
.backup-action-card,
.project-overview-card,
.goal-overview-card,
.identity-workspace-summary-card,
.identity-history-summary-card,
.review-reflection-block,
.session-card,
.quick-action-card,
.metric-card {
    border-color: var(--border) !important;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-xs);
}

.settings-card,
.dashboard-section {
    border-radius: var(--radius-lg);
}

.settings-card {
    padding: 23px;
    margin-bottom: 20px;
}

.dashboard-section {
    padding: 22px;
    margin-bottom: 20px;
}

.dashboard-section:hover,
.settings-card:hover {
    box-shadow: 0 9px 28px rgba(15, 23, 42, .045);
}

.section-heading {
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2,
.settings-card-heading h2,
.project-section-header h2 {
    color: var(--text);
    font-size: 16px;
    font-weight: 760;
    letter-spacing: -.015em;
}

.section-heading p,
.settings-card-heading p {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.text-link {
    color: var(--primary);
    font-weight: 730;
}

/* Metrics */
.metric-grid,
.dashboard-goal-metrics,
.task-metric-grid,
.goal-overview-grid,
.project-overview-grid,
.identity-workspace-summary-grid,
.identity-history-summary-grid {
    gap: 12px;
}

.metric-card {
    position: relative;
    min-height: 126px;
    padding: 18px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.metric-card::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    right: -32px;
    top: -34px;
    border-radius: 50%;
    background: rgba(99, 102, 241, .035);
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
    box-shadow: var(--shadow-sm);
}

.metric-card-attention {
    border-color: #fed7aa !important;
    background: linear-gradient(180deg, #fff, #fffaf4);
}

.metric-label {
    color: #64748b;
    font-size: 9.5px;
    font-weight: 820;
    letter-spacing: .065em;
}

.metric-value {
    margin: 11px 0 7px;
    color: #0f172a;
    font-size: 25px;
    font-weight: 790;
    letter-spacing: -.035em;
}

.metric-card small {
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.45;
}

/* Forms */
.operations-main input[type="text"],
.operations-main input[type="email"],
.operations-main input[type="password"],
.operations-main input[type="search"],
.operations-main input[type="url"],
.operations-main input[type="number"],
.operations-main input[type="date"],
.operations-main input[type="datetime-local"],
.operations-main input[type="time"],
.operations-main input[type="tel"],
.operations-main select,
.operations-main textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7dee9;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #172033;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, .015);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.operations-main textarea {
    min-height: 118px;
    line-height: 1.6;
    resize: vertical;
}

.operations-main input:focus,
.operations-main select:focus,
.operations-main textarea:focus {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .11) !important;
}

.operations-main input::placeholder,
.operations-main textarea::placeholder {
    color: #a1aaba;
}

.operations-main label,
.form-group label,
.filter-field label {
    color: #334155;
    font-size: 11.5px;
    font-weight: 720;
}

.form-help,
.settings-description {
    color: #7b8798;
    line-height: 1.6;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

/* Lists and cards */
.projects-grid,
.asset-card-grid,
.notes-grid,
.goals-grid {
    gap: 14px;
}

.project-card,
.asset-card,
.goal-card,
.review-card,
.identity-card,
.area-card {
    border-radius: 16px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.project-card:hover,
.asset-card:hover,
.goal-card:hover,
.review-card:hover,
.identity-card:hover,
.area-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1 !important;
    box-shadow: var(--shadow-sm);
}

.task-list,
.session-list,
.dashboard-goal-list,
.activity-list {
    gap: 8px;
}

.task-row {
    border-radius: 14px;
    transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.task-row:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}

.dashboard-goal-item,
.goal-project-item,
.review-linked-item {
    min-height: 54px;
    padding: 11px 12px;
    border-radius: 11px;
    transition: background .14s ease, transform .14s ease;
}

.dashboard-goal-item:hover,
.goal-project-item:hover,
.review-linked-item:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.quick-action-card {
    min-height: 104px;
    border-radius: 14px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe !important;
    box-shadow: var(--shadow-sm);
}

/* Tables */
.table-responsive {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-xs);
    scrollbar-width: thin;
}

.data-table,
.table-responsive table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.data-table th,
.table-responsive th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    color: #64748b;
    font-size: 9.5px;
    font-weight: 820;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td,
.table-responsive td {
    padding: 13px;
    border-bottom: 1px solid #edf1f6;
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
}

.data-table tr:last-child td,
.table-responsive tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover td,
.table-responsive tbody tr:hover td {
    background: #fafcff;
}

/* Alerts and status */
.alert {
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
    font-size: 12.5px;
}

.alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alert-warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.alert-danger,
.alert-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.health-status,
.current-badge,
.area-status,
.project-badge,
.project-priority,
.task-status,
.task-priority,
.goal-status,
.goal-priority,
.review-badge,
.identity-badge,
.asset-status {
    border-radius: 999px;
}

.empty-state,
.notes-empty-state,
.attachment-empty-state {
    border: 1px dashed #d8e0eb;
    border-radius: 14px;
    background: #fbfcfe;
}

.operations-pagination {
    margin-top: 20px;
}

/* Filters */
.task-filter-card,
.project-filter-card,
.goal-filter-card,
.review-filter-card,
.identity-filter-card,
.asset-filter-card,
.notes-filter-card {
    padding: 16px;
    background: rgba(255,255,255,.94);
}

.task-filters,
.project-filters,
.goal-filters,
.review-filters,
.identity-filters,
.asset-filters,
.notes-filters {
    gap: 10px;
}

/* Native-feeling mobile bottom navigation (hidden on desktop) */
.mobile-bottom-navigation {
    display: none;
}

/* Auth surfaces */
.auth-body {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 18% 8%, rgba(99, 102, 241, .13), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(14, 165, 233, .08), transparent 24%),
        #f4f7fb;
}

.auth-wrapper {
    max-width: 455px;
}

.auth-brand {
    margin-bottom: 20px;
}

.auth-brand .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .2);
}

.auth-brand h1 {
    color: #0f172a;
    font-size: 17px;
    font-weight: 780;
    letter-spacing: -.02em;
}

.auth-brand p {
    color: #8290a3;
    font-size: 11px;
}

.auth-card {
    padding: 30px;
    border-color: #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .09);
}

.auth-card-header h2 {
    color: #0f172a;
    font-size: 25px;
    font-weight: 790;
    letter-spacing: -.03em;
}

.auth-card-header p {
    color: #64748b;
    font-size: 13px;
}

.auth-body .form-group input {
    min-height: 48px;
    border-color: #d7dee9;
    border-radius: 12px;
}

.auth-body .form-group input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .11);
}

.auth-body .btn {
    min-height: 46px;
    border-radius: 12px;
}

/* Large desktop optimization */
@media (min-width: 1500px) {
    :root {
        --sidebar-width: 292px;
    }

    .operations-content {
        width: min(1560px, calc(100% - 72px));
        padding-top: 40px;
    }

    .dashboard-goal-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

    .asset-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

/* Tablet */
@media (max-width: 1180px) {
    .operations-content {
        width: calc(100% - 42px);
    }

    .page-introduction {
        flex-direction: column;
    }

    .page-introduction-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    :root {
        --sidebar-width: min(88vw, 338px);
    }

    body.sidebar-visible {
        overflow: hidden;
    }

    .operations-sidebar {
        left: 0;
        width: var(--sidebar-width);
        transform: translateX(calc(-100% - 14px));
        border-radius: 0 22px 22px 0;
        box-shadow: 22px 0 55px rgba(2, 6, 23, .28);
        transition: transform .24s cubic-bezier(.2,.8,.2,1);
    }

    .operations-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-close-button {
        display: inline-flex;
    }

    .sidebar-overlay {
        display: block;
        visibility: hidden;
        opacity: 0;
        position: fixed;
        inset: 0;
        z-index: 900;
        background: rgba(2, 6, 23, .52);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        transition: opacity .2s ease, visibility .2s ease;
    }

    .sidebar-overlay.visible {
        visibility: visible;
        opacity: 1;
    }

    .operations-main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .operations-topbar {
        height: calc(64px + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 16px 0;
    }

    .topbar-context {
        display: none;
    }

    .topbar-left strong {
        margin-top: 0;
        font-size: 15px;
    }

    .topbar-install-button,
    .security-indicator {
        display: none;
    }

    .operations-content {
        width: calc(100% - 30px);
        padding: 24px 0 calc(100px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-navigation {
        position: fixed;
        z-index: 850;
        left: 12px;
        right: 12px;
        bottom: max(10px, env(safe-area-inset-bottom));
        height: 66px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: stretch;
        padding: 5px 7px;
        border: 1px solid rgba(203, 213, 225, .88);
        border-radius: 21px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 16px 44px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06);
        backdrop-filter: blur(18px) saturate(145%);
        -webkit-backdrop-filter: blur(18px) saturate(145%);
    }

    .mobile-bottom-link {
        position: relative;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: #7b8798;
        text-decoration: none;
        cursor: pointer;
        font-size: 9px;
        font-weight: 700;
    }

    .mobile-bottom-link > svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-link.active {
        color: #4338ca;
    }

    .mobile-bottom-link.active:not(.mobile-bottom-home) {
        background: #f5f7ff;
    }

    .mobile-bottom-home {
        padding-top: 5px;
    }

    .mobile-home-icon {
        width: 38px;
        height: 38px;
        margin-top: -22px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 4px solid #f4f7fb;
        border-radius: 14px;
        background: #0f172a;
        color: #fff;
        box-shadow: 0 9px 22px rgba(15, 23, 42, .22);
    }

    .mobile-bottom-home.active .mobile-home-icon {
        background: #4f46e5;
    }

    .mobile-home-icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-home > span:last-child {
        margin-top: -1px;
    }

    .metric-grid,
    .task-metric-grid,
    .dashboard-goal-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-section-grid {
        grid-template-columns: 1fr;
    }
}

/* Phone / PWA */
@media (max-width: 640px) {
    .operations-topbar {
        padding-left: 12px;
        padding-right: 12px;
        border-bottom-color: rgba(226, 232, 240, .72);
    }

    .mobile-menu-button,
    .topbar-icon-link {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }

    .topbar-status {
        gap: 0;
    }

    .operations-content {
        width: calc(100% - 22px);
        padding-top: 18px;
    }

    .page-introduction {
        gap: 14px;
        margin-bottom: 18px;
    }

    .page-introduction h1 {
        margin-top: 7px;
        font-size: 25px;
        letter-spacing: -.035em;
    }

    .page-introduction p {
        font-size: 12.5px;
        line-height: 1.6;
    }

    .page-introduction-actions,
    .page-actions {
        width: calc(100vw - 22px);
        margin-left: calc((100vw - 22px - 100%) / -2);
        padding: 0 11px 3px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .page-introduction-actions::-webkit-scrollbar,
    .page-actions::-webkit-scrollbar {
        display: none;
    }

    .page-introduction-actions .btn,
    .page-actions .btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .btn,
    button.btn {
        min-height: 44px;
        padding: 0 14px;
        font-size: 12px;
    }

    .settings-card,
    .dashboard-section {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .section-heading {
        gap: 10px;
        margin-bottom: 14px;
    }

    .section-heading h2 {
        font-size: 15px;
    }

    .section-heading p {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.5;
    }

    .section-heading > .text-link,
    .section-heading > a.text-link {
        white-space: nowrap;
        font-size: 10.5px;
    }

    .metric-grid,
    .task-metric-grid,
    .dashboard-goal-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
    }

    .metric-card {
        min-height: 108px;
        padding: 14px;
        border-radius: 14px;
    }

    .metric-label {
        font-size: 8.5px;
    }

    .metric-value {
        margin: 9px 0 5px;
        font-size: 21px;
    }

    .metric-card small {
        font-size: 9.5px;
        line-height: 1.35;
    }

    .projects-grid,
    .asset-card-grid,
    .notes-grid,
    .goals-grid,
    .areas-grid,
    .settings-grid,
    .quick-action-grid,
    .backup-action-grid,
    .notification-channel-settings-grid,
    .report-section-grid {
        grid-template-columns: 1fr !important;
        gap: 11px;
    }

    .project-card,
    .asset-card,
    .goal-card,
    .review-card,
    .identity-card,
    .area-card,
    .task-row {
        border-radius: 15px;
    }

    .task-row,
    .project-card,
    .asset-card,
    .goal-card,
    .review-card,
    .identity-card {
        padding: 14px;
    }

    .dashboard-goal-item,
    .goal-project-item,
    .review-linked-item {
        min-height: 52px;
        padding: 10px;
    }

    .dashboard-goal-item strong,
    .goal-project-item strong {
        font-size: 11.5px;
    }

    .dashboard-goal-item small,
    .goal-project-item span {
        font-size: 9.5px;
    }

    .operations-main input[type="text"],
    .operations-main input[type="email"],
    .operations-main input[type="password"],
    .operations-main input[type="search"],
    .operations-main input[type="url"],
    .operations-main input[type="number"],
    .operations-main input[type="date"],
    .operations-main input[type="datetime-local"],
    .operations-main input[type="time"],
    .operations-main input[type="tel"],
    .operations-main select,
    .operations-main textarea {
        min-height: 46px;
        border-radius: 12px;
        font-size: 16px; /* Prevent iOS auto-zoom */
    }

    .table-responsive {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: 13px;
    }

    .data-table th,
    .table-responsive th {
        padding: 10px 11px;
        font-size: 9px;
    }

    .data-table td,
    .table-responsive td {
        padding: 11px;
        font-size: 11px;
    }

    .filter-card,
    .task-filter-card,
    .project-filter-card,
    .goal-filter-card,
    .review-filter-card,
    .identity-filter-card,
    .asset-filter-card,
    .notes-filter-card {
        padding: 13px;
    }

    .task-filters,
    .project-filters,
    .goal-filters,
    .review-filters,
    .identity-filters,
    .asset-filters,
    .notes-filters {
        grid-template-columns: 1fr !important;
    }

    .task-filter-actions,
    .project-filter-actions,
    .goal-filter-actions,
    .review-filter-actions,
    .identity-filter-actions,
    .asset-filter-actions,
    .notes-filter-actions {
        width: 100%;
        justify-content: stretch;
    }

    .task-filter-actions .btn,
    .project-filter-actions .btn,
    .goal-filter-actions .btn,
    .review-filter-actions .btn,
    .identity-filter-actions .btn,
    .asset-filter-actions .btn,
    .notes-filter-actions .btn {
        flex: 1 1 auto;
    }

    .mobile-bottom-navigation {
        left: 8px;
        right: 8px;
        bottom: max(7px, env(safe-area-inset-bottom));
    }

    .auth-body {
        align-items: flex-start;
        padding: calc(28px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
    }

    .auth-brand {
        margin: 6px 4px 18px;
    }

    .auth-card {
        padding: 23px 19px;
        border-radius: 20px;
    }
}

@media (max-width: 420px) {
    .metric-grid,
    .task-metric-grid,
    .dashboard-goal-metrics {
        grid-template-columns: 1fr !important;
    }

    .metric-card {
        min-height: 98px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading > .text-link,
    .section-heading > a.text-link {
        align-self: flex-start;
    }
}

/* Installed PWA refinements */
@media (display-mode: standalone) {
    .operations-topbar {
        background: rgba(255,255,255,.94);
    }

    .topbar-install-button,
    .sidebar-install-button {
        display: none !important;
    }

    .mobile-bottom-navigation {
        bottom: max(7px, env(safe-area-inset-bottom));
    }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Dashboard navigation and command-center density */
.dashboard-section-tabs {
    position: sticky;
    top: 86px;
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: -6px 0 18px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 14px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    scrollbar-width: none;
}
.dashboard-section-tabs::-webkit-scrollbar { display: none; }
.dashboard-section-tabs a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 10px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 740;
    text-decoration: none;
}
.dashboard-section-tabs a:hover,
.dashboard-section-tabs a:focus-visible {
    background: #eef2ff;
    color: #4338ca;
    outline: none;
}
.dashboard-introduction .page-introduction-actions {
    max-width: 760px;
}
[id^="dashboard-"] { scroll-margin-top: 138px; }

@media (max-width: 900px) {
    .dashboard-section-tabs {
        top: calc(70px + env(safe-area-inset-top));
        width: 100%;
        margin-bottom: 14px;
        border-radius: 13px;
    }
}

@media (max-width: 640px) {
    .dashboard-section-tabs {
        width: calc(100vw - 22px);
        margin-left: calc((100vw - 22px - 100%) / -2);
        padding-left: 11px;
        padding-right: 11px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: 0 8px 18px rgba(15,23,42,.035);
    }
    .dashboard-section-tabs a { min-height: 32px; }
    .dashboard-introduction .page-introduction-actions { max-width: none; }
}

/* Phase 21 — customer authentication and onboarding */
.auth-card-wide {
    width: min(760px, 100%);
}

.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    font-size: 13px;
}

.auth-link-row a,
.auth-footer-copy a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.auth-link-row a:hover,
.auth-footer-copy a:hover {
    text-decoration: underline;
}

.auth-footer-copy {
    margin: 20px 0 0;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

.auth-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-consent-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.onboarding-security-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
}

.onboarding-security-summary > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.onboarding-security-summary strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
}

.onboarding-security-summary .is-current {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.onboarding-security-summary .is-current strong {
    background: #4f46e5;
    color: #fff;
}

@media (max-width: 640px) {
    .auth-link-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .onboarding-security-summary {
        grid-template-columns: 1fr;
    }
}

.auth-wrapper.auth-wrapper-wide {
    max-width: 760px;
}

.auth-body .form-group select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7dee9;
    border-radius: 12px;
    padding: 0 13px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
}

.auth-body .form-group select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .11);
}

/* --------------------------------------------------------------------------
   Phase 22 · SaaS Plan Catalog
   -------------------------------------------------------------------------- */
.operations-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4f46e5;
}

.badge-muted {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.badge-info {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

@media (max-width: 1180px) {
    .operations-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .operations-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== 
   Phase 24 · SaaS Account & Usage Center
   ========================================================================== */

.saas-account-tabs {
    display: flex;
    gap: 6px;
    margin: -4px 0 22px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    scrollbar-width: none;
}

.saas-account-tabs::-webkit-scrollbar { display: none; }

.saas-account-tabs a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: .18s ease;
}

.saas-account-tabs a:hover {
    color: #0f172a;
    background: #f8fafc;
}

.saas-account-tabs a.active {
    color: #312e81;
    background: #eef2ff;
    box-shadow: inset 0 0 0 1px #c7d2fe;
}

.saas-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 22px;
    padding: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 18%, rgba(99, 102, 241, .15), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
}

.saas-account-hero.is-trial {
    border-color: #c7d2fe;
    background:
        radial-gradient(circle at 90% 10%, rgba(124, 58, 237, .2), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f5f3ff 100%);
}

.saas-account-hero.is-owner {
    border-color: #bfdbfe;
    background:
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, .18), transparent 30%),
        linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}

.saas-account-hero.is-billing {
    border-color: #bae6fd;
    background:
        radial-gradient(circle at 92% 10%, rgba(14, 165, 233, .16), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.saas-account-hero h2 {
    margin: 6px 0 9px;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.saas-account-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.saas-plan-kicker {
    color: #6366f1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.saas-plan-orb {
    width: 126px;
    height: 126px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 20px 45px rgba(79, 70, 229, .12);
    text-align: center;
}

.saas-plan-orb strong {
    color: #312e81;
    font-size: 27px;
    line-height: 1;
    letter-spacing: -.04em;
}

.saas-plan-orb span {
    margin-top: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.saas-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.saas-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.saas-summary-grid.is-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
}

.saas-summary-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.saas-summary-card > span {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.saas-summary-card strong {
    display: block;
    color: #0f172a;
    font-size: 21px;
    line-height: 1.2;
}

.saas-summary-card small {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.saas-summary-card.is-warning { border-color: #fde68a; background: #fffbeb; }
.saas-summary-card.is-danger { border-color: #fecaca; background: #fff7f7; }

.saas-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.saas-meter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.saas-meter-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fbfdff;
}

.saas-meter-card.is-near { border-color: #fde68a; background: #fffdf5; }
.saas-meter-card.is-over { border-color: #fecaca; background: #fff7f7; }

.saas-meter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.saas-meter-head strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.saas-meter-head small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.saas-meter-head > span {
    flex: 0 0 auto;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.saas-meter-track {
    height: 8px;
    margin: 14px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef6;
}

.saas-meter-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.saas-meter-card.is-near .saas-meter-track > span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.saas-meter-card.is-over .saas-meter-track > span { background: linear-gradient(90deg, #ef4444, #fb7185); }

.saas-meter-card p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.saas-account-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.saas-feature-list {
    display: grid;
    gap: 9px;
    margin: 4px 0 16px;
}

.saas-feature-list.compact > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 9px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
}

.saas-feature-state {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.saas-feature-state.yes { color: #047857; background: #d1fae5; }
.saas-feature-state.no { color: #94a3b8; background: #e2e8f0; }

.saas-action-list {
    display: grid;
    gap: 8px;
}

.saas-action-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 55px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    text-decoration: none;
}

.saas-action-list a:hover { border-color: #c7d2fe; background: #f8faff; }
.saas-action-list strong { color: #0f172a; font-size: 12px; }
.saas-action-list span { color: #94a3b8; font-size: 11px; text-align: right; }

.saas-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 22px;
}

.saas-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 23px;
    border: 1px solid #dfe6f1;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}

.saas-plan-card.is-current {
    border-color: #a5b4fc;
    box-shadow: 0 18px 42px rgba(79, 70, 229, .12);
}

.saas-plan-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.saas-plan-card h2 {
    margin: 5px 0 0;
    color: #0f172a;
    font-size: 23px;
    letter-spacing: -.03em;
}

.saas-current-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.saas-plan-description {
    min-height: 42px;
    margin: 11px 0 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.saas-price-block {
    min-height: 69px;
    margin-bottom: 17px;
    padding: 14px;
    border-radius: 13px;
    background: #f8fafc;
}

.saas-price-block strong {
    display: block;
    color: #0f172a;
    font-size: 19px;
}

.saas-price-block strong small { color: #64748b; font-size: 11px; font-weight: 600; }
.saas-price-block span { display: block; margin-top: 5px; color: #94a3b8; font-size: 11px; }

.saas-plan-highlights {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.saas-plan-highlights > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px dashed #e2e8f0;
    color: #64748b;
    font-size: 11px;
}

.saas-plan-highlights strong { color: #0f172a; }
.saas-plan-card .btn-block { margin-top: auto; }
.btn.is-disabled { opacity: .55; pointer-events: none; }

.saas-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.saas-detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.saas-detail-list dt { color: #64748b; font-size: 12px; }
.saas-detail-list dd { margin: 0; color: #0f172a; font-size: 12px; font-weight: 700; text-align: right; }

.saas-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}
.saas-status-pill.neutral { color: #475569; background: #e2e8f0; }

.saas-step-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: billing-step;
}

.saas-step-list li {
    position: relative;
    padding: 10px 10px 10px 42px;
    border-radius: 11px;
    background: #f8fafc;
    counter-increment: billing-step;
}

.saas-step-list li::before {
    content: counter(billing-step);
    position: absolute;
    left: 10px;
    top: 10px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 10px;
    font-weight: 900;
}

.saas-step-list strong { display: block; color: #0f172a; font-size: 12px; }
.saas-step-list span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; line-height: 1.45; }

.saas-empty-state {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.saas-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 24px;
}

.saas-empty-state h2 { margin: 0; color: #0f172a; }
.saas-empty-state p { max-width: 650px; color: #64748b; line-height: 1.6; }

.saas-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.saas-security-card {
    display: block;
    min-height: 190px;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.saas-security-card:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.saas-security-card > span {
    display: inline-flex;
    margin-bottom: 18px;
    color: #818cf8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.saas-security-card h2 { margin: 0 0 8px; color: #0f172a; font-size: 18px; }
.saas-security-card p { color: #64748b; font-size: 12px; line-height: 1.55; }
.saas-security-card strong { color: #4338ca; font-size: 11px; }

.saas-topbar-plan {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.saas-topbar-plan strong { color: #0f172a; font-size: 11px; }
.saas-topbar-plan span { color: #64748b; font-size: 10px; font-weight: 700; }
.saas-topbar-plan.is-trial { border-color: #c7d2fe; background: #f5f3ff; }
.saas-topbar-plan.is-trial strong { color: #5b21b6; }

.saas-trial-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.saas-trial-strip a {
    flex: 0 0 auto;
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 1500px) {
    .saas-meter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .saas-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-meter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .saas-account-tabs {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: 12px;
    }

    .saas-account-tabs a { min-height: 42px; padding: 0 13px; }

    .saas-account-hero {
        grid-template-columns: 1fr;
        padding: 21px;
        border-radius: 17px;
    }

    .saas-plan-orb {
        width: 100%;
        height: auto;
        min-height: 76px;
        flex-direction: row;
        gap: 8px;
        border-radius: 14px;
    }

    .saas-plan-orb strong { font-size: 22px; }
    .saas-plan-orb span { margin-top: 0; }

    .saas-summary-grid,
    .saas-summary-grid.is-small,
    .saas-meter-grid,
    .saas-account-two-column,
    .saas-security-grid {
        grid-template-columns: 1fr;
    }

    .saas-plan-card { padding: 19px; border-radius: 16px; }
    .saas-section-heading { display: block; }
    .saas-section-heading .btn { margin-top: 12px; width: 100%; }
    .saas-action-list a { align-items: flex-start; }
    .saas-action-list span { max-width: 44%; }
    .saas-topbar-plan span { display: none; }
    .saas-trial-strip { align-items: flex-start; }
}

/* ========================================================================
   Phase 25 — SaaS Super Admin Console
   ======================================================================== */
.saas-admin-tabs { margin-bottom: 18px; }

.saas-admin-hero,
.saas-admin-customer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px 26px;
    margin-bottom: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #eef2ff 100%);
    box-shadow: var(--shadow-sm);
}

.saas-admin-hero h2,
.saas-admin-customer-hero h2 {
    margin: 6px 0 5px;
    font-size: clamp(22px, 2vw, 30px);
}

.saas-admin-hero p,
.saas-admin-customer-hero p {
    margin: 0;
    max-width: 780px;
    color: var(--muted);
}

.saas-admin-hero-stat,
.saas-admin-customer-id {
    min-width: 150px;
    padding: 17px 19px;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: rgba(255,255,255,.86);
    text-align: right;
}

.saas-admin-hero-stat strong,
.saas-admin-customer-id strong {
    display: block;
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
}

.saas-admin-hero-stat span,
.saas-admin-customer-id span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.saas-admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.saas-admin-metric-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.saas-admin-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.saas-admin-list { display: grid; gap: 8px; }
.saas-admin-list > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: inherit;
    text-decoration: none;
}
.saas-admin-list > a:hover { border-color: #c7d2fe; background: #fff; }
.saas-admin-list strong,
.saas-admin-list span,
.saas-admin-list small { display: block; }
.saas-admin-list span,
.saas-admin-list small { color: var(--muted); font-size: 12px; }
.saas-admin-list-meta { text-align: right; }

.saas-admin-plan-distribution {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.saas-admin-plan-distribution > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}
.saas-admin-plan-distribution strong { font-size: 20px; }

.saas-admin-filter-card { margin-bottom: 18px; }
.saas-admin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.saas-admin-filters label,
.saas-admin-inline-fields label { display: grid; gap: 6px; }
.saas-admin-filters label > span,
.saas-admin-inline-fields label > span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.saas-admin-filter-actions { display: flex; gap: 8px; }

.saas-admin-table td strong,
.saas-admin-table td small { display: block; }
.saas-admin-table td small { margin-top: 3px; color: var(--muted); }

.saas-admin-action-stack { display: grid; gap: 12px; }
.saas-admin-action-stack form {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}
.saas-admin-action-stack h3 { margin: 0; font-size: 15px; }
.saas-admin-action-stack p { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.saas-admin-action-stack textarea { resize: vertical; }
.saas-admin-inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

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

.saas-admin-audit-list { display: grid; gap: 8px; }
.saas-admin-audit-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}
.saas-admin-audit-list strong,
.saas-admin-audit-list span,
.saas-admin-audit-list small { display: block; }
.saas-admin-audit-list span,
.saas-admin-audit-list small { color: var(--muted); font-size: 12px; }
.saas-admin-audit-list > div > div:last-child { min-width: 130px; text-align: right; }

@media (max-width: 1200px) {
    .saas-admin-metric-grid,
    .saas-admin-metric-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-admin-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .saas-admin-hero,
    .saas-admin-customer-hero,
    .saas-admin-two-column,
    .saas-admin-metric-grid,
    .saas-admin-metric-grid.compact,
    .saas-admin-plan-distribution,
    .saas-admin-filters,
    .admin-usage-grid,
    .saas-admin-inline-fields {
        grid-template-columns: 1fr;
    }
    .saas-admin-hero-stat,
    .saas-admin-customer-id { width: 100%; text-align: left; }
    .saas-admin-filter-actions { grid-column: auto; }
    .saas-admin-filter-actions .btn { flex: 1; }
    .saas-admin-list > a,
    .saas-admin-audit-list > div { align-items: flex-start; }
    .saas-admin-list-meta,
    .saas-admin-audit-list > div > div:last-child { text-align: right; }
    .saas-admin-action-stack form { padding: 13px; }
}

.saas-admin-table .status-badge,
.saas-admin-customer-hero .status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.saas-admin-table .status-active,
.saas-admin-customer-hero .status-active { background: var(--success-soft); border-color: #bbf7d0; color: var(--success); }
.saas-admin-table .status-suspended,
.saas-admin-customer-hero .status-suspended,
.saas-admin-table .status-disabled,
.saas-admin-customer-hero .status-disabled { background: var(--danger-soft); border-color: #fecdd3; color: var(--danger); }
.saas-admin-table .status-pending_verification,
.saas-admin-customer-hero .status-pending_verification { background: var(--warning-soft); border-color: #fed7aa; color: var(--warning); }


/* Phase 26 — SaaS billing ledger */
.saas-billing-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.saas-billing-totals>div{padding:16px;border:1px solid var(--ui-border,#dbe3ee);border-radius:14px;background:var(--ui-surface-soft,#f8fafc);display:flex;flex-direction:column;gap:4px}.saas-billing-totals strong{font-size:1.15rem}.saas-billing-totals span{font-size:.78rem;opacity:.7}.pagination-wrap{margin-top:16px}
.saas-price-editor-list{display:grid;gap:14px}.saas-price-editor{padding:16px;border:1px solid var(--ui-border,#dbe3ee);border-radius:16px;background:var(--ui-surface-soft,#f8fafc)}

/* Phase 27 payment gateway architecture */
.saas-gateway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.saas-gateway-card{border:1px solid var(--border-color,#dbe3ee);border-radius:16px;padding:18px;background:var(--card-bg,#fff);display:flex;flex-direction:column;gap:14px}.saas-gateway-card>div:first-child{display:flex;flex-direction:column;gap:4px}.saas-gateway-card span{font-size:.85rem;color:var(--muted-text,#64748b)}.saas-capability-row{display:flex;gap:6px;flex-wrap:wrap}.saas-capability-row span{padding:4px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.72rem;font-weight:700}@media(max-width:900px){.saas-gateway-grid{grid-template-columns:1fr}}


/* Phase 31 — complete SaaS subscription lifecycle */
.saas-subscription-list{display:grid;gap:14px}
.saas-subscription-card{padding:18px;border:1px solid var(--border,#dbe3ee);border-radius:16px;background:var(--surface,#fff);display:grid;gap:14px}
.saas-subscription-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.saas-subscription-card>header h3{margin:0 0 3px;font-size:1rem}
.saas-subscription-card>header p{margin:0;color:var(--muted,#64748b);font-size:.82rem}
.saas-subscription-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.saas-subscription-meta>div{padding:11px 12px;border:1px solid var(--border,#dbe3ee);border-radius:12px;background:var(--surface-soft,#f8fafc);display:flex;flex-direction:column;gap:3px}
.saas-subscription-meta span{font-size:.72rem;color:var(--muted,#64748b);text-transform:uppercase;letter-spacing:.035em;font-weight:700}
.saas-subscription-meta strong{font-size:.88rem;overflow-wrap:anywhere}
.saas-subscription-warning{padding:11px 13px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:.84rem}
.saas-subscription-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.saas-inline-form{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:0}
.saas-inline-form label{display:grid;gap:5px;font-size:.76rem;font-weight:700;color:var(--muted,#64748b)}
.saas-inline-form select{min-width:220px;min-height:42px}
@media(max-width:900px){.saas-subscription-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.saas-subscription-card>header{flex-direction:column}.saas-subscription-meta{grid-template-columns:1fr}.saas-subscription-actions,.saas-inline-form{align-items:stretch;flex-direction:column}.saas-inline-form label,.saas-inline-form select,.saas-inline-form .btn,.saas-subscription-actions .btn{width:100%}}

/* Phase 32 — printable SaaS billing documents */
.billing-document-shell{max-width:980px;margin:0 auto}.billing-document-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.billing-document{background:#fff;color:#172033;border:1px solid #dfe5ec;border-radius:18px;padding:2rem;box-shadow:0 16px 45px rgba(15,23,42,.08)}.billing-document-header{display:flex;justify-content:space-between;gap:2rem;align-items:flex-start;padding-bottom:1.5rem;border-bottom:1px solid #e5eaf0}.billing-document-header h1{margin:.25rem 0 0;color:#111827}.billing-document-number{text-align:right;display:grid;gap:.35rem}.billing-document-number strong{font-size:1.15rem}.billing-document-number span{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}.billing-document-parties{display:grid;grid-template-columns:1fr 1fr;gap:2rem;padding:1.5rem 0}.billing-document-parties h2{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;margin:0 0 .5rem;color:#64748b}.billing-document-parties p{margin:0;line-height:1.7}.billing-document .table-responsive{margin-top:.5rem}.billing-document table{width:100%;border-collapse:collapse}.billing-document th,.billing-document td{padding:.8rem;border-bottom:1px solid #e5eaf0;text-align:left}.billing-document th{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.billing-document-totals{margin-left:auto;margin-top:1.25rem;width:min(100%,360px)}.billing-document-totals>div{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0}.billing-document-totals .total{font-size:1.08rem;border-top:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;padding:.8rem 0;margin:.35rem 0}.billing-document-footer{margin-top:2rem;padding-top:1rem;border-top:1px solid #e5eaf0;color:#64748b;font-size:.82rem;overflow-wrap:anywhere}.billing-receipt-amount{margin:1rem 0 1.5rem;padding:1.25rem;border:1px solid #dfe5ec;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.billing-receipt-amount span{color:#64748b}.billing-receipt-amount strong{font-size:1.5rem}
@media(max-width:700px){.billing-document{padding:1.15rem;border-radius:14px}.billing-document-header,.billing-document-parties{grid-template-columns:1fr;display:grid;gap:1rem}.billing-document-number{text-align:left}.billing-document-actions{justify-content:stretch}.billing-document-actions .btn{flex:1}.billing-receipt-amount{align-items:flex-start;flex-direction:column}}
@media print{body{background:#fff!important}.sidebar,.topbar,.mobile-bottom-nav,.mobile-more-backdrop,.mobile-more-sheet,.no-print,.saas-trial-strip{display:none!important}.app-shell,.app-main,.main-content{display:block!important;margin:0!important;padding:0!important;width:100%!important}.billing-document-shell{max-width:none!important}.billing-document{border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}.billing-document a{color:inherit;text-decoration:none}@page{margin:14mm}}

/* Phase 33 — tenant privacy, encrypted backup and deletion controls */
.privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.privacy-card{display:flex;flex-direction:column;gap:14px}.privacy-list{margin:0;padding-left:1.1rem;color:var(--muted,#64748b);display:grid;gap:6px}.privacy-form{display:grid;gap:12px}.privacy-form label:not(.form-check){display:grid;gap:6px}.privacy-form label>span{font-size:.78rem;font-weight:800;color:var(--text-soft,#475569);text-transform:uppercase;letter-spacing:.03em}.privacy-note,.privacy-locked p,.privacy-retention-note p{margin:0;color:var(--muted,#64748b);font-size:.84rem;line-height:1.6}.privacy-locked,.privacy-retention-note{padding:14px;border:1px solid var(--border,#dbe3ee);border-radius:14px;background:var(--surface-soft,#f8fafc)}.privacy-backup-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid var(--border,#dbe3ee)}.privacy-backup-row:last-child{border-bottom:0}.privacy-backup-row strong,.privacy-backup-row span{display:block}.privacy-backup-row span{margin-top:3px;color:var(--muted,#64748b);font-size:.8rem}.privacy-alert{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border-radius:15px;margin-bottom:18px}.privacy-alert.danger{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}.privacy-alert p{margin:4px 0 0}.privacy-danger-zone{border-color:#fecdd3}.privacy-danger-zone h2{color:#9f1239}@media(max-width:820px){.privacy-grid{grid-template-columns:1fr}.privacy-alert,.privacy-backup-row{align-items:stretch;flex-direction:column}.privacy-alert .btn,.privacy-backup-row .btn{width:100%}}

/* Phase 34 — SaaS analytics & support operations */
.saas-analytics-range{display:flex;align-items:end}.saas-analytics-range label{display:grid;gap:6px}.saas-analytics-range span{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#64748b)}.saas-analytics-money-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.saas-analytics-money-grid>div{display:grid;gap:4px;padding:15px;border:1px solid var(--border,#dbe3ee);border-radius:14px;background:var(--surface-soft,#f8fafc)}.saas-analytics-money-grid>div>span{font-size:.72rem;font-weight:800;color:var(--muted,#64748b);letter-spacing:.06em}.saas-analytics-money-grid strong{font-size:1.08rem}.saas-analytics-money-grid small{color:var(--muted,#64748b);line-height:1.45}.saas-funnel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.saas-funnel-grid>div{padding:15px;border:1px solid var(--border,#dbe3ee);border-radius:14px;background:var(--surface-soft,#f8fafc);display:grid;gap:5px}.saas-funnel-grid span{font-size:.72rem;font-weight:800;text-transform:uppercase;color:var(--muted,#64748b)}.saas-funnel-grid strong{font-size:1.35rem}.support-detail-list{display:grid;gap:0;margin:0}.support-detail-list>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid var(--border,#dbe3ee)}.support-detail-list dt{color:var(--muted,#64748b);font-weight:700}.support-detail-list dd{margin:0;text-align:right}.support-case-summary{margin-top:14px;padding:14px;border:1px solid var(--border,#dbe3ee);border-radius:13px;background:var(--surface-soft,#f8fafc);white-space:pre-wrap}.support-note-list{display:grid;gap:10px;margin-top:18px}.support-note-list article{padding:14px;border:1px solid var(--border,#dbe3ee);border-radius:14px;background:var(--surface-soft,#f8fafc)}.support-note-list header{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.support-note-list header span{color:var(--muted,#64748b);font-size:.78rem}.support-note-list p{margin:0;white-space:pre-wrap;line-height:1.55}.support-impersonation-banner{position:sticky;top:0;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 18px;border-bottom:1px solid #f59e0b;background:#fffbeb;color:#92400e;box-shadow:0 4px 18px rgba(146,64,14,.08)}.support-impersonation-banner>div{display:grid;gap:2px}.support-impersonation-banner strong{font-size:.75rem;letter-spacing:.06em}.support-impersonation-banner span{font-size:.82rem}.support-impersonation-banner form{margin:0;flex:0 0 auto}
@media(max-width:900px){.saas-funnel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.support-impersonation-banner{position:relative;align-items:stretch;flex-direction:column}.support-impersonation-banner .btn{width:100%}.saas-analytics-range{width:100%}.saas-analytics-range label,.saas-analytics-range select{width:100%}}
@media(max-width:620px){.saas-funnel-grid{grid-template-columns:1fr}.support-detail-list>div{align-items:flex-start;flex-direction:column;gap:4px}.support-detail-list dd{text-align:left}}

/* Phase 35 — Public enquiry admin inbox */
.admin-contact-filters,
.filters-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr) auto;gap:14px;align-items:end}.filter-submit{margin-bottom:20px}.two-column-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px}.status-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#eef2f6;font-size:10px;font-weight:800;text-transform:capitalize}.status-new{background:#eef3ff;color:#3c5cc5}.status-in-progress{background:#fff4dd;color:#9c6410}.status-resolved{background:#eaf8f2;color:#197a59}.status-spam{background:#f1f2f4;color:#666}.message-body{margin-top:22px;padding:18px;background:#f7f9fb;border-radius:12px;line-height:1.7;font-size:13px;overflow-wrap:anywhere}.pagination-wrap{padding-top:16px}.btn-sm{padding:8px 11px;font-size:11px}@media(max-width:820px){.filters-row,.two-column-grid{grid-template-columns:1fr}}

/* ========================================================================
   Phase 36 — SaaS Mobile / PWA Experience
   ======================================================================== */
.pwa-network-banner{position:fixed;z-index:2200;left:50%;top:max(12px,env(safe-area-inset-top));transform:translateX(-50%);width:min(620px,calc(100% - 28px));display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 15px;border:1px solid #fed7aa;border-radius:13px;background:#fff7ed;color:#9a4d09;box-shadow:0 14px 38px rgba(15,23,42,.15);font-size:13px;font-weight:750;line-height:1.45}.pwa-network-banner[hidden]{display:none}.pwa-network-banner.is-restored{border-color:#bbf7d0;background:#f0fdf4;color:#18724b}.pwa-network-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 12%,transparent)}
.pwa-sheet-open{overflow:hidden}.pwa-install-backdrop{position:fixed;z-index:2300;inset:0;padding:24px;display:grid;place-items:center;background:rgba(2,6,23,.58);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.pwa-install-backdrop[hidden]{display:none}.pwa-install-sheet{position:relative;width:min(100%,500px);max-height:min(760px,calc(100dvh - 48px));overflow:auto;padding:28px;border:1px solid #dfe6ef;border-radius:24px;background:#fff;color:#0f172a;box-shadow:0 32px 90px rgba(2,6,23,.28)}.pwa-install-close{position:absolute;right:16px;top:14px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:11px;background:#f1f5f9;color:#475569;font:700 24px/1 inherit;cursor:pointer}.pwa-install-kicker{display:block;padding-right:48px;color:#4f46e5;font-size:11px;font-weight:900;letter-spacing:.12em}.pwa-install-sheet h2{margin:10px 42px 10px 0;font-size:28px;line-height:1.08;letter-spacing:-.035em}.pwa-install-sheet>p{margin:0;color:#64748b;font-size:14px;line-height:1.7}.pwa-install-sheet ol{display:grid;gap:10px;margin:22px 0;padding:0;list-style:none}.pwa-install-sheet li{display:grid;grid-template-columns:36px 1fr;gap:12px;padding:13px;border:1px solid #e4e9f0;border-radius:14px;background:#f8fafc}.pwa-install-sheet li>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:900}.pwa-install-sheet li strong,.pwa-install-sheet li small{display:block}.pwa-install-sheet li strong{font-size:14px}.pwa-install-sheet li small{margin-top:3px;color:#64748b;font-size:12px;line-height:1.5}.pwa-install-done,.auth-install-button{width:100%;min-height:46px;border:0;border-radius:12px;background:#0f172a;color:#fff;font:800 13px/1 inherit;cursor:pointer}.auth-install-button{margin-top:16px;background:#eef2ff;color:#4338ca;border:1px solid #dfe4ff}.auth-install-button[hidden]{display:none}

@media(max-width:900px){
    .mobile-bottom-navigation{height:70px}.mobile-bottom-link{min-height:56px;font-size:10.5px}.mobile-bottom-link>svg{width:21px;height:21px}.mobile-home-icon{width:40px;height:40px}.sidebar-link{min-height:44px}.sidebar-section-label{font-size:10px}.sidebar-user strong{font-size:13px}.sidebar-user span{font-size:11px}
    .operations-content{padding-bottom:calc(108px + env(safe-area-inset-bottom))}
    .btn,button,input,select,textarea{touch-action:manipulation}
}
@media(max-width:640px){
    .operations-content{width:calc(100% - 20px);padding-top:16px}.page-introduction h1{font-size:27px}.page-introduction p{font-size:14px;line-height:1.65}.eyebrow{font-size:10.5px}.content-card{border-radius:16px}.form-group label,.form-label{font-size:12px}.form-group input,.form-group select,.form-group textarea,input.form-control,select.form-control,textarea.form-control{font-size:16px;min-height:46px}.btn{min-height:44px;font-size:13px}.metric-label{font-size:11px}.metric-card small,.muted-text{font-size:12px;line-height:1.55}.mobile-bottom-navigation{left:8px;right:8px;bottom:max(7px,env(safe-area-inset-bottom));border-radius:19px}.mobile-bottom-link{font-size:10.5px}.pwa-network-banner{top:max(8px,env(safe-area-inset-top));font-size:12px}.pwa-install-backdrop{padding:12px;place-items:end center}.pwa-install-sheet{width:100%;max-height:calc(100dvh - 24px);padding:25px 20px calc(22px + env(safe-area-inset-bottom));border-radius:23px 23px 18px 18px}.pwa-install-sheet h2{font-size:25px}.auth-card{padding:25px 21px}.auth-card-header p{font-size:14px;line-height:1.6}.auth-public-links{font-size:12px!important}
}
@media(display-mode:standalone){
    body.operations-body,body.auth-body{overscroll-behavior-y:none}.operations-topbar{padding-top:max(env(safe-area-inset-top),4px)}.operations-content{padding-bottom:calc(112px + env(safe-area-inset-bottom))}.auth-wrapper{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.pwa-network-banner,.pwa-install-backdrop,.pwa-install-sheet{transition:none!important}}

/* SaaS billing gateway availability diagnostics */
.saas-gateway-unavailable-wrap{margin-top:18px;padding-top:16px;border-top:1px dashed var(--border-color,#dbe3ee)}
.saas-gateway-card.is-unavailable{background:rgba(148,163,184,.08);border-style:dashed;box-shadow:none}
.saas-gateway-card.is-unavailable>div:first-child strong{display:flex;align-items:center;gap:8px}
.saas-gateway-card.is-unavailable>div:first-child strong:before{content:'!';display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:rgba(245,158,11,.14);color:#b45309;font-size:.78rem;font-weight:800}
.saas-gateway-reasons{margin:0;padding-left:20px;display:grid;gap:7px;color:var(--muted-text,#64748b);font-size:.86rem;line-height:1.45}

/* V1 Blog + SEO administration */
.blog-admin-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.72fr);gap:18px;align-items:start}.blog-admin-grid>aside{display:grid;gap:18px}.blog-editor-card{min-width:0}.blog-rich-editor{min-height:480px;padding:22px;border:1px solid var(--border,#dbe3ee);border-radius:0 0 14px 14px;background:#fff;font-size:15px;line-height:1.75;outline:none;overflow-wrap:anywhere}.blog-rich-editor:focus{border-color:#7c8fea;box-shadow:0 0 0 3px rgba(79,70,229,.08)}.blog-rich-editor h2{font-size:28px;line-height:1.25;margin:30px 0 12px}.blog-rich-editor h3{font-size:21px;line-height:1.3;margin:24px 0 10px}.blog-rich-editor blockquote{margin:22px 0;padding:13px 18px;border-left:4px solid #6378db;background:#f7f8ff;color:#4b5563}.blog-rich-editor pre{overflow:auto;padding:15px;border-radius:12px;background:#0f172a;color:#e2e8f0}.blog-editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;border:1px solid var(--border,#dbe3ee);border-bottom:0;border-radius:14px 14px 0 0;background:#f8fafc}.blog-editor-toolbar button{min-width:38px;min-height:34px;padding:0 10px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#334155;font-family:inherit;font-size:12px;line-height:1;font-weight:700;cursor:pointer}.blog-editor-toolbar button:hover{background:#eef2ff;border-color:#cbd5ff}.blog-current-image{margin:0 0 14px;max-width:480px;border:1px solid var(--border,#dbe3ee);border-radius:14px;overflow:hidden;background:#f8fafc}.blog-current-image.small{max-width:260px}.blog-current-image img{display:block;width:100%;max-height:280px;object-fit:cover}.blog-danger-card{border-color:#fecaca}.blog-category-layout{display:grid;grid-template-columns:minmax(300px,.62fr) minmax(0,1.38fr);gap:18px;align-items:start}.blog-filter-form{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,.7fr) minmax(180px,.85fr) auto;gap:12px;align-items:end}.blog-filter-action{min-width:92px}.blog-admin-table td strong,.blog-admin-table td small{display:block}.blog-admin-table td small{margin-top:3px;color:var(--muted,#64748b)}.seo-helper-badge{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:9px;font-weight:850;vertical-align:middle}.seo-preview{margin-top:16px;padding:16px;border:1px solid #dbe3ee;border-radius:14px;background:#fff}.seo-preview>span{display:block;margin-bottom:9px;color:#64748b;font-size:9px;font-weight:850;letter-spacing:.1em}.seo-preview>strong{display:block;color:#1a0dab;font-size:17px;font-weight:500;line-height:1.3}.seo-preview>small{display:block;margin-top:4px;color:#188038;font-size:11px;word-break:break-all}.seo-preview>p{margin:6px 0 0;color:#4d5156;font-size:12px;line-height:1.5}.seo-admin-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.7fr);gap:18px;align-items:start}.seo-admin-layout>main,.seo-admin-layout>aside{display:grid;gap:18px}.seo-asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.seo-asset-card{display:grid;gap:10px;padding:14px;border:1px solid var(--border,#dbe3ee);border-radius:14px;background:#f8fafc}.seo-asset-card>strong{font-size:13px}.seo-asset-card>small{color:var(--muted,#64748b);font-size:11px;line-height:1.5}.seo-asset-preview{height:110px;display:grid;place-items:center;overflow:hidden;border:1px dashed #cbd5e1;border-radius:11px;background:#fff;color:#94a3b8;font-size:11px}.seo-asset-preview.favicon{height:76px}.seo-asset-preview.favicon img{width:48px;height:48px;object-fit:contain}.seo-asset-preview.wide{height:130px}.seo-asset-preview img{max-width:100%;max-height:100%;object-fit:contain}.notification-toggle.compact{padding:8px 10px}.seo-page-list{display:grid;gap:10px}.seo-page-panel{border:1px solid var(--border,#dbe3ee);border-radius:14px;background:#fff;overflow:hidden}.seo-page-panel summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}.seo-page-panel summary::-webkit-details-marker{display:none}.seo-page-panel summary>span:first-child{display:grid;gap:2px}.seo-page-panel summary small{color:var(--muted,#64748b);font-size:11px}.seo-page-fields{padding:16px;border-top:1px solid var(--border,#dbe3ee);background:#fbfcfe}.seo-technical-note{padding:13px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff}.seo-technical-note strong{font-size:12px;color:#1d4ed8}.seo-technical-note p{margin:5px 0 0;color:#475569;font-size:11px;line-height:1.55}.seo-status-list{display:grid;gap:0;margin:0;padding:0;list-style:none}.seo-status-list li{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--border,#dbe3ee);font-size:12px}.seo-status-list li span{color:var(--muted,#64748b)}.seo-status-list li strong{font-size:11px;color:#166534;text-align:right}.seo-save-bar{position:sticky;bottom:10px;z-index:20;margin-top:18px;padding:12px 16px;border:1px solid #dbe3ee;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 12px 32px rgba(15,23,42,.12);backdrop-filter:blur(10px);display:flex;align-items:center;gap:14px}.seo-save-bar span{color:var(--muted,#64748b);font-size:11px}
@media(max-width:1080px){.blog-admin-grid,.seo-admin-layout{grid-template-columns:1fr}.blog-admin-grid>aside,.seo-admin-layout>aside{grid-template-columns:repeat(2,minmax(0,1fr))}.seo-admin-layout>aside .settings-card:last-child{grid-column:1/-1}.seo-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.blog-category-layout,.blog-filter-form{grid-template-columns:1fr}.blog-admin-grid>aside,.seo-admin-layout>aside,.seo-asset-grid{grid-template-columns:1fr}.blog-rich-editor{min-height:380px;font-size:16px}.seo-save-bar{bottom:82px;align-items:stretch;flex-direction:column}.seo-save-bar .btn{width:100%}}

/* V1.1 Blog editor reliability + usability */
.blog-content-field{margin-top:20px}.blog-content-label-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:10px}.blog-content-label-row>div:first-child{display:grid;gap:4px}.blog-content-label-row label{margin:0}.blog-content-label-row small{color:var(--muted,#64748b);font-size:12px;line-height:1.5}.blog-editor-stats{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.blog-editor-stats span{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#64748b;font-size:10px;font-weight:700}.blog-editor-stats b{color:#334155}.blog-editor-shell{overflow:hidden;border:1px solid #dbe3ee;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.035)}.blog-editor-toolbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:10px 11px;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;background:#f8fafc}.blog-editor-toolbar button{min-width:38px;min-height:36px;padding:0 10px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#334155;font-family:inherit;font-size:12px;line-height:1;font-weight:700;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}.blog-editor-toolbar button:hover{background:#eef2ff;border-color:#c7d2fe;transform:translateY(-1px)}.blog-editor-toolbar button:focus-visible{outline:3px solid rgba(79,70,229,.16);outline-offset:1px}.blog-editor-divider{width:1px;height:24px;margin:0 2px;background:#dbe3ee}.blog-editor-mode-button{margin-left:auto!important;background:#eef2ff!important;color:#4338ca!important;border-color:#c7d2fe!important}.blog-rich-editor,.blog-editor-source{display:block;width:100%;min-height:520px;margin:0;padding:26px 28px;border:0!important;border-radius:0!important;background:#fff;color:#1e293b;font-family:inherit;font-size:16px;line-height:1.8;font-weight:400;outline:none;resize:vertical;box-shadow:none!important}.blog-rich-editor{overflow-y:auto;overflow-wrap:anywhere}.blog-rich-editor:focus,.blog-editor-source:focus{background:#fff;box-shadow:inset 0 0 0 3px rgba(79,70,229,.08)!important}.blog-rich-editor:empty:before{content:attr(data-placeholder);color:#94a3b8;pointer-events:none}.blog-rich-editor p{margin:0 0 17px}.blog-rich-editor h2{font-size:29px;line-height:1.25;margin:34px 0 13px;color:#0f172a}.blog-rich-editor h3{font-size:22px;line-height:1.3;margin:27px 0 11px;color:#172033}.blog-rich-editor ul,.blog-rich-editor ol{padding-left:26px;margin:0 0 19px}.blog-rich-editor li{margin:5px 0}.blog-rich-editor blockquote{margin:24px 0;padding:15px 19px;border-left:4px solid #6378db;background:#f7f8ff;color:#475569;border-radius:0 10px 10px 0}.blog-editor-source{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.7;background:#0f172a;color:#e2e8f0;tab-size:2}.blog-editor-shell.is-source-mode .blog-editor-toolbar [data-command],.blog-editor-shell.is-source-mode .blog-editor-toolbar [data-blog-link]{opacity:.42;pointer-events:none}.blog-editor-shell.is-source-mode .blog-editor-mode-button{background:#4338ca!important;color:#fff!important}.blog-editor-help{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:9px;color:#64748b;font-size:11px;line-height:1.5}.blog-editor-help span:last-child{color:#166534}.blog-rich-editor[hidden],.blog-editor-source[hidden]{display:none!important}
@media(max-width:760px){.blog-content-label-row{align-items:flex-start;flex-direction:column}.blog-editor-stats{justify-content:flex-start}.blog-rich-editor,.blog-editor-source{min-height:430px;padding:20px 18px;font-size:16px}.blog-editor-toolbar{padding:8px}.blog-editor-toolbar button{min-height:38px}.blog-editor-mode-button{margin-left:0!important}.blog-editor-divider{display:none}.blog-editor-help{display:grid;gap:4px}}

/* SaaS notification provider console ----------------------------------- */
.notification-provider-admin-page .notification-provider-architecture-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}

.notification-provider-admin-page .notification-provider-architecture-grid > div {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 16px;
    border: 1px solid #e3e8f1;
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #f8faff);
    box-shadow: 0 7px 22px rgba(15, 23, 42, .045);
}

.notification-provider-admin-page .notification-provider-architecture-grid > div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
}

.notification-provider-admin-page .notification-provider-architecture-grid strong,
.notification-provider-admin-page .notification-provider-architecture-grid span,
.notification-provider-admin-page .notification-provider-architecture-grid small {
    display: block;
}

.notification-provider-admin-page .notification-provider-architecture-grid strong {
    color: #172033;
    font-size: 15px;
}

.notification-provider-admin-page .notification-provider-architecture-grid span {
    margin-top: 8px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 750;
}

.notification-provider-admin-page .notification-provider-architecture-grid small {
    margin-top: 6px;
    color: #7b8799;
    font-size: 11px;
    line-height: 1.5;
}

.notification-provider-admin-page .notification-provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.notification-provider-admin-page .notification-provider-card {
    margin: 0;
    border-radius: 19px;
}

.notification-provider-admin-page .notification-provider-card:first-child {
    grid-column: 1 / -1;
}

.notification-provider-admin-page .notification-provider-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.notification-provider-admin-page .notification-channel-master-toggle {
    margin: 14px 0 18px;
    padding: 13px 14px;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    background: #f9fbff;
}

.notification-provider-admin-page .notification-provider-password {
    max-width: 480px;
    margin-top: 18px;
}

@media (max-width: 980px) {
    .notification-provider-admin-page .notification-provider-architecture-grid,
    .notification-provider-admin-page .notification-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-provider-admin-page .notification-provider-card:first-child {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .notification-provider-admin-page .notification-provider-architecture-grid,
    .notification-provider-admin-page .notification-provider-grid {
        grid-template-columns: 1fr;
    }
}


/* Trusted 2FA browser option */
.auth-trusted-device-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 18px;
    padding: 14px 15px;
    border: 1px solid #dbe4f0;
    border-radius: 13px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
}
.auth-trusted-device-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    accent-color: #4f46e5;
}
.auth-trusted-device-row span {
    display: grid;
    gap: 4px;
}
.auth-trusted-device-row strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
}
.auth-trusted-device-row small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

/* Direct Super Admin notification provider credentials + live tests */
.notification-provider-admin-page .notification-provider-direct-note {
    margin: 16px 0 20px;
}
.notification-provider-admin-page .notification-provider-heading-status {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    flex-direction: column;
}
.notification-provider-admin-page .notification-provider-secret-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}
.notification-provider-admin-page .notification-provider-secret-badge.is-saved {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}
.notification-provider-admin-page .notification-provider-secret-badge.is-missing {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}
.notification-provider-admin-page .notification-provider-secret-field {
    margin-top: 17px;
    padding: 15px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: linear-gradient(145deg,#f8fbff,#fff);
}
.notification-provider-admin-page .notification-provider-secret-field label::after {
    content: "Encrypted";
    display: inline-flex;
    margin-left: 7px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 9px;
    font-weight: 850;
    vertical-align: middle;
}
.notification-provider-admin-page .notification-provider-clear-secret {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 13px;
    padding: 11px 13px;
    border: 1px dashed #fecaca;
    border-radius: 12px;
    background: #fffafa;
    cursor: pointer;
}
.notification-provider-admin-page .notification-provider-clear-secret input {
    margin-top: 3px;
}
.notification-provider-admin-page .notification-provider-clear-secret span,
.notification-provider-admin-page .notification-provider-clear-secret strong,
.notification-provider-admin-page .notification-provider-clear-secret small {
    display: block;
}
.notification-provider-admin-page .notification-provider-clear-secret strong {
    color: #991b1b;
    font-size: 12px;
}
.notification-provider-admin-page .notification-provider-clear-secret small {
    margin-top: 2px;
    color: #7f1d1d;
    font-size: 10.5px;
    line-height: 1.45;
}
.notification-provider-admin-page .notification-provider-test-panel {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(220px,.7fr);
    gap: 14px;
    align-items: end;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 15px;
    background: linear-gradient(145deg,#eff6ff,#f8fbff);
}
.notification-provider-admin-page .notification-provider-test-copy {
    display: grid;
    gap: 5px;
}
.notification-provider-admin-page .notification-provider-test-copy > strong {
    color: #172033;
    font-size: 13px;
}
.notification-provider-admin-page .notification-provider-test-copy > small {
    max-width: 640px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}
.notification-provider-admin-page .notification-provider-test-recipient {
    margin: 0;
}
.notification-provider-admin-page .notification-provider-last-test {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px 12px;
    padding-top: 12px;
    border-top: 1px solid #dbeafe;
}
.notification-provider-admin-page .notification-provider-last-test strong {
    font-size: 11px;
}
.notification-provider-admin-page .notification-provider-last-test span {
    color: #64748b;
    font-size: 10.5px;
}
.notification-provider-admin-page .notification-provider-last-test small {
    grid-column: 1 / -1;
    color: #9f1239;
    font-size: 10.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.notification-provider-admin-page .notification-provider-last-test.is-passed strong { color: #166534; }
.notification-provider-admin-page .notification-provider-last-test.is-failed strong { color: #b91c1c; }
.notification-provider-admin-page .notification-provider-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
@media (max-width: 760px) {
    .notification-provider-admin-page .notification-provider-test-panel {
        grid-template-columns: 1fr;
    }
    .notification-provider-admin-page .notification-provider-heading-status {
        align-items: flex-start;
    }
    .notification-provider-admin-page .notification-provider-card-heading {
        flex-direction: column;
    }
    .notification-provider-admin-page .notification-provider-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .notification-provider-admin-page .notification-provider-actions .btn {
        width: 100%;
    }
}
