:root {
    /* Design system foundation v1: tokens semanticos canonicos. */
    --color-background: #f8fafc;
    --color-background-accent: rgba(148, 163, 184, 0.12);
    --color-foreground: #0f172a;
    --color-foreground-muted: #64748b;
    --color-foreground-subtle: #94a3b8;
    --color-surface: #ffffff;
    --color-surface-muted: #f8fafc;
    --color-surface-subtle: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-strong: #cfd8e6;
    --color-border-subtle: #eef2f7;
    --color-primary: #e11d48;
    --color-primary-hover: #be123c;
    --color-primary-soft: #ffe4e6;
    --color-secondary: #eef2f7;
    --color-secondary-hover: #e4eaf3;
    --color-success: #10b981;
    --color-success-strong: #065f46;
    --color-success-soft: #dcfce7;
    --color-success-border: #86efac;
    --color-warning: #f59e0b;
    --color-warning-strong: #92400e;
    --color-warning-soft: #fef3c7;
    --color-warning-border: #fde68a;
    --color-error: #ef4444;
    --color-error-strong: #991b1b;
    --color-error-soft: #fee2e2;
    --color-error-border: #fecaca;
    --color-info: #2563eb;
    --color-info-soft: #dbeafe;
    --color-info-border: #bfdbfe;
    --color-disabled: #94a3b8;
    --color-disabled-surface: #f1f5f9;
    --color-readonly-surface: #f8fafc;
    --font-family-base: "Manrope", "Nunito Sans", "Segoe UI", sans-serif;
    --font-size-caption: 11px;
    --font-size-small: 12px;
    --font-size-meta: 13px;
    --font-size-body: 14px;
    --font-size-body-lg: 15px;
    --font-size-section: 18px;
    --font-size-title: clamp(26px, 2.4vw, 34px);
    --font-size-metric: clamp(24px, 7.2vw, 32px);
    --font-weight-regular: 400;
    --font-weight-medium: 600;
    --font-weight-strong: 700;
    --font-weight-emphasis: 800;
    --line-height-tight: 1.08;
    --line-height-body: 1.45;
    --line-height-relaxed: 1.6;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;
    --border-width: 1px;
    --border-default: var(--border-width) solid var(--color-border);
    --border-subtle: var(--border-width) solid var(--color-border-subtle);
    --shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
    --shadow-soft: 0 2px 10px rgba(16, 24, 40, 0.05);
    --shadow-raised: 0 14px 32px rgba(148, 163, 184, 0.16);
    --shadow-focus: 0 0 0 4px rgba(225, 29, 72, 0.08);
    --touch-target: 44px;
    --motion-fast: 0.16s ease;
    --motion-base: 0.2s ease;

    /* Aliases legados: manter funcionando enquanto a migracao usa os tokens canonicos acima. */
    --bg: var(--color-background);
    --panel: var(--color-surface);
    --sidebar: #0f172a;
    --sidebar-alt: #1e293b;
    --text: var(--color-foreground);
    --muted: var(--color-foreground-muted);
    --border: var(--color-border);
    --accent: var(--color-primary);
    --accent-dark: var(--color-primary-hover);
    --accent-soft: var(--color-primary-soft);
    --green: var(--color-success);
    --green-soft: var(--color-success-soft);
    --yellow: var(--color-warning);
    --yellow-soft: var(--color-warning-soft);
    --red: var(--color-error);
    --red-soft: var(--color-error-soft);
    --gray: #475569;
    --gray-soft: var(--color-surface-subtle);
}

* {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    background:
        radial-gradient(circle at 100% -20%, var(--color-background-accent) 0, transparent 38%),
        var(--color-background);
    color: var(--color-foreground);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
.button-link,
.topbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #fff;
    padding: 10px var(--space-4);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-strong);
    cursor: pointer;
    transition: background var(--motion-base), transform 0.18s ease, box-shadow 0.18s ease, border-color var(--motion-fast), opacity var(--motion-fast);
    box-shadow: var(--shadow-soft);
    min-height: var(--touch-target);
}

button:hover,
.button-link:hover,
.topbar-action:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(149, 25, 37, 0.22);
}

button:disabled,
button[disabled],
.button-link[aria-disabled="true"],
.topbar-action[aria-disabled="true"],
button[data-busy="1"],
.button-link[data-busy="1"],
.topbar-action[data-busy="1"],
.is-loading {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

button:disabled:hover,
button[disabled]:hover,
button[data-busy="1"]:hover,
.button-link[aria-disabled="true"]:hover,
.button-link[data-busy="1"]:hover,
.topbar-action[aria-disabled="true"]:hover,
.topbar-action[data-busy="1"]:hover {
    background: var(--color-primary);
    transform: none;
    box-shadow: none;
}

button:focus-visible,
.button-link:focus-visible,
.topbar-action:focus-visible,
.nav a:focus-visible,
.nav-group-toggle:focus-visible,
.actions a:focus-visible,
.link-danger:focus-visible,
.quick-filter:focus-visible,
.status-filter:focus-visible,
.training-tab-link:focus-visible,
.training-root-tab:focus-visible,
.modal-close-btn:focus-visible,
.base-marker-button:focus-visible,
.base-marker-trigger:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary-hover);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(225, 29, 72, 0.14);
}

.button-link.secondary {
    background: var(--color-secondary);
    color: var(--color-foreground);
    box-shadow: none;
    border: var(--border-default);
}

.button-link.secondary:hover {
    background: var(--color-secondary-hover);
    box-shadow: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
    align-items: start;
    background:
        radial-gradient(circle at 100% -20%, var(--color-background-accent) 0, transparent 38%),
        var(--color-background);
}

.sidebar {
    background: var(--sidebar);
    color: #d6deeb;
    padding: var(--space-5) var(--space-4);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    position: sticky;
    top: 0;
    overflow: hidden;
    touch-action: pan-y;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.sidebar-top {
    padding: var(--space-1) var(--space-2) var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wrap {
    display: grid;
    gap: 6px;
}

.brand-logo,
.login-brand {
    font-size: 34px;
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.brand-logo {
    font-size: 28px;
}

.brand-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.brand-image-sidebar {
    width: 170px;
    filter: brightness(0) invert(1);
}

.brand-image-login {
    width: 240px;
    margin: 0 auto 8px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
}

.avatar-expiry {
    --avatar-expiry-color: #cbd5e1;
    box-shadow: 0 0 0 2px var(--avatar-expiry-color);
}

.avatar-expiry--neutral {
    --avatar-expiry-color: #cbd5e1;
}

.avatar-expiry--safe {
    --avatar-expiry-color: #16a34a;
}

.avatar-expiry--warning-90 {
    --avatar-expiry-color: #facc15;
}

.avatar-expiry--warning-60 {
    --avatar-expiry-color: #f97316;
}

.avatar-expiry--warning-30,
.avatar-expiry--warning-15 {
    --avatar-expiry-color: #dc2626;
}

.avatar-expiry--expired {
    --avatar-expiry-color: #991b1b;
}

.avatar-expiry-pulse {
    animation: avatar-expiry-pulse 1.6s ease-in-out infinite;
}

@keyframes avatar-expiry-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 2px var(--avatar-expiry-color),
            0 0 0 0 rgba(220, 38, 38, 0.38);
    }
    50% {
        box-shadow:
            0 0 0 2px var(--avatar-expiry-color),
            0 0 0 6px rgba(220, 38, 38, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .avatar-expiry-pulse {
        animation: none;
    }
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 13px;
}

.avatar-xs {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.avatar-report {
    width: 88px;
    height: 88px;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.brand-primary {
    color: #ffffff;
}

.login-brand .brand-primary {
    color: var(--sidebar);
}

.brand-accent {
    color: var(--accent);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.66);
    font-size: var(--font-size-small);
    line-height: var(--line-height-body);
}

.nav {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-5) 0;
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.nav-section-label {
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 12px 4px;
}

.nav a {
    display: flex;
    align-items: center;
    color: #d6deeb;
    padding: 10px var(--space-3);
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    font-size: var(--font-size-meta);
    font-weight: var(--font-weight-medium);
    line-height: 1.35;
    min-height: var(--touch-target);
    word-break: break-word;
}

.nav a:hover,
.nav a.active {
    background: var(--sidebar-alt);
    color: #ffffff;
    border-left-color: var(--color-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav a.active,
.nav a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.22), rgba(30, 41, 59, 0.72));
    border-left-color: var(--color-primary);
}

.nav-group {
    display: grid;
    gap: var(--space-1);
}

.nav-group-toggle {
    width: 100%;
    color: #cbd5e1;
    padding: 11px var(--space-4);
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    font-size: var(--font-size-meta);
    font-weight: var(--font-weight-strong);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: var(--touch-target);
    box-shadow: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-align: left;
    line-height: 1.25;
    word-break: break-word;
}

.nav-group-toggle:hover,
.nav-group-toggle.active {
    background: rgba(30, 41, 59, 0.52);
    color: #ffffff;
    border-left-color: var(--color-primary);
}

.nav-group-toggle:hover {
    transform: none;
    box-shadow: none;
}

.nav-group.open .nav-group-toggle {
    background: rgba(30, 41, 59, 0.36);
    color: #ffffff;
}

.nav-group.open .nav-group-toggle.active {
    background: rgba(225, 29, 72, 0.14);
}

.nav-group-caret {
    font-size: 12px;
    opacity: 0.78;
    transition: transform 0.2s ease;
}

.nav-group.open .nav-group-caret {
    transform: rotate(180deg);
}

.nav-group-links {
    display: none;
    padding-left: var(--space-2);
    padding-right: 2px;
    border-left: 1px dashed rgba(148, 163, 184, 0.28);
    margin-left: var(--space-4);
    gap: var(--space-1);
    min-width: 0;
}

.nav-group.open .nav-group-links {
    display: grid;
}

.nav-group-links a {
    font-size: var(--font-size-meta);
    padding: 10px var(--space-3);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sidebar-footer {
    margin-top: 0;
    padding: 16px 10px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 4px;
    min-width: 0;
}

.session-caption,
.session-role {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.session-user {
    color: #ffffff;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.logout-link {
    margin-top: 10px;
    color: #cbd5e1;
    font-weight: 600;
}

.sidebar-footer form {
    margin: 0;
}

.logout-button {
    width: 100%;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    color: #cbd5e1;
    border: 0;
    box-shadow: none;
    justify-content: flex-start;
    font-size: 14px;
    font-weight: 600;
}

.logout-button:hover {
    background: transparent;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.main-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: transparent;
}

.topbar {
    min-height: 76px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-default);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.topbar-title {
    font-size: 19px;
    font-weight: var(--font-weight-emphasis);
    color: var(--color-foreground);
    line-height: 1.15;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.topbar-context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    flex-wrap: wrap;
    min-width: 0;
}

.route-context-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px var(--space-3);
    border-radius: var(--radius-pill);
    border: var(--border-default);
    background: var(--color-surface);
    color: var(--color-foreground-muted);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-strong);
    white-space: nowrap;
}

.audit-filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.audit-log-panel {
    display: grid;
    gap: 18px;
}

.audit-log-list {
    display: grid;
    gap: 16px;
}

.audit-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}

.audit-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.audit-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.audit-subtitle {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.audit-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 14px;
    line-height: 1.5;
}

.audit-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.audit-preview-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    min-width: 0;
}

.audit-preview-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.audit-preview-value {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.audit-details {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.audit-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.audit-details-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.audit-details pre {
    margin: 0;
    padding: 14px;
    border-radius: 16px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.55;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.nav-icon {
    margin-right: 8px;
}

.bases-panel {
    overflow: hidden;
}

.bases-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.status-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-filter {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 600;
    min-height: var(--touch-target);
}

.status-filter.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.bases-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.bases-map-wrap {
    position: relative;
    min-height: 620px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background:
        radial-gradient(circle at 14% 12%, rgba(147, 197, 253, 0.24), transparent 44%),
        radial-gradient(circle at 88% 82%, rgba(148, 163, 184, 0.2), transparent 52%),
        linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
}

.bases-map {
    min-height: 620px;
    width: 100%;
    position: relative;
    z-index: 0;
}

.bases-map-error {
    display: grid;
    place-items: center;
    padding: 24px;
}

.bases-map-fallback {
    display: grid;
    gap: 6px;
    max-width: 420px;
    text-align: center;
}

.bases-alternative-panel {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
}

.bases-alternative-head,
.bases-alternative-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bases-alternative-head h2,
.bases-alternative-card h3 {
    margin: 0;
    color: var(--color-foreground);
    line-height: 1.2;
}

.bases-alternative-head h2 {
    font-size: var(--font-size-section);
}

.bases-alternative-card h3 {
    font-size: var(--font-size-body-lg);
}

.bases-alternative-card p {
    margin: 4px 0 0;
    color: var(--color-foreground-muted);
    font-size: var(--font-size-small);
}

.bases-alternative-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bases-alternative-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.bases-alternative-pilots {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
    color: var(--color-foreground);
    font-size: var(--font-size-small);
}

.bases-alternative-pilots span {
    color: var(--color-foreground-muted);
}

.base-marker-wrapper {
    background: transparent;
    border: 0;
}

.base-marker-card {
    width: 248px;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.base-marker-card-peek {
    width: 184px;
    padding: 11px 12px;
    border-radius: 999px;
    display: grid;
    gap: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.base-marker-card--zoomout {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.base-marker-card-peek.compact {
    width: 156px;
    padding: 9px 10px;
}

.base-marker-card-peek strong,
.base-marker-card-peek span {
    color: inherit;
}

.base-marker-peek-top,
.base-marker-peek-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.base-marker-peek-top {
    font-size: 11px;
    font-weight: 700;
    min-width: 0;
}

.base-marker-peek-top strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.base-marker-peek-avatars {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    min-height: 28px;
    max-height: 30px;
    overflow: hidden;
}

.base-marker-peek-avatars .avatar {
    border: 2px solid rgba(255, 255, 255, 0.82);
}

.base-marker-card .avatar,
.base-marker-card-peek .avatar {
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    flex: 0 0 auto;
    overflow: hidden;
}

.base-marker-card .avatar span,
.base-marker-card-peek .avatar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.base-marker-peek-footer {
    font-size: 11px;
    font-weight: 700;
}

.base-marker-peek-link {
    color: #0f172a;
}

.base-marker-avatar-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 800;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.85);
}

.base-marker-card.compact {
    width: 182px;
    padding: 11px 12px;
    border-radius: 16px;
}

.base-marker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    min-width: 0;
}

.base-marker-head strong,
.base-marker-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.base-marker-total {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.base-marker-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.base-marker-avatars {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 38px;
    max-height: 40px;
    overflow: hidden;
}

.base-marker-avatars .avatar {
    flex: 0 0 auto;
}

.base-marker-card .avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.base-marker-badges .status-pill {
    font-size: 11px;
    padding: 4px 8px;
}

.base-marker-card.compact .base-marker-head {
    margin-bottom: 6px;
    gap: 8px;
}

.base-marker-card.compact .base-marker-total {
    margin-bottom: 8px;
    font-size: 13px;
}

.base-marker-card.compact .base-marker-badges {
    gap: 4px;
    margin-bottom: 8px;
}

.base-marker-card.compact .base-marker-avatars {
    gap: 4px;
    min-height: 30px;
    max-height: 32px;
}

.base-marker-empty {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.base-marker-card.compact .base-marker-badges .status-pill {
    font-size: 10px;
    padding: 3px 6px;
}

.base-marker-button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(219, 234, 254, 0.82));
    color: #0f172a;
    font-weight: 700;
    backdrop-filter: blur(10px) saturate(160%);
}

.base-marker-button:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(191, 219, 254, 0.9));
}

.bases-sidebar {
    position: absolute;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(360px, calc(100% - 36px));
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72));
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(203, 213, 225, 0.72);
    backdrop-filter: blur(14px) saturate(145%);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    z-index: 500;
}

.bases-sidebar.open {
    transform: translateX(0);
}

.bases-sidebar-header,
.bases-sidebar-actions {
    padding: 18px 18px 0;
}

.bases-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bases-sidebar-list {
    padding: 18px;
    overflow: auto;
    display: grid;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    touch-action: pan-y;
}

.sidebar-close-btn,
.modal-close-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--text);
    font-weight: 600;
}

.pilot-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.pilot-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pilot-card-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.pilot-card-identity > div:last-child {
    min-width: 0;
}

.pilot-card-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pilot-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pilot-card-actions .button-link {
    flex: 1 1 150px;
    justify-content: center;
}

.modal-shell {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-shell.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(640px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
    padding: 22px;
}

.filters-toggle-row {
    display: none;
    margin-bottom: 12px;
}

.filters-panel {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-bottom 0.25s ease;
    visibility: visible;
}

.filters-panel.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-history-card {
    width: min(760px, calc(100% - 32px));
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.history-timeline {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.history-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 14px;
}

.history-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #1d4ed8;
    margin-top: 8px;
}

.history-body {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.tripulante-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tripulante-photo-field {
    display: grid;
    gap: 14px;
}

.tripulante-photo-preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--gray-soft);
}

.tripulante-photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8 0%, #c4262e 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    flex: 0 0 auto;
}

.tripulante-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tripulante-photo-meta {
    display: grid;
    gap: 6px;
}

.tripulante-photo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.report-tripulante-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.report-tripulante-meta {
    display: grid;
    gap: 6px;
}

.report-tripulante-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.report-tripulante-subtitle {
    color: var(--muted);
    font-size: 14px;
}

.history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.history-text,
.history-note {
    color: var(--muted);
    font-size: 14px;
}

.history-note {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.status-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.status-orange {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fdba74;
}

.status-critical {
    background: #7f1d1d;
    color: #fee2e2;
    border-color: #b91c1c;
}

.status-dark {
    background: #e2e8f0;
    color: #334155;
}

.status-pill-pulse {
    animation: status-pill-pulse 1.6s ease-in-out infinite;
}

@keyframes status-pill-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.28);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-pill-pulse {
        animation: none;
    }

    .skeleton::after {
        animation: none;
    }
}

.pagination-bar {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-meta {
    color: var(--muted);
    font-size: 14px;
}

.pagination-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-subtitle,
.page-subtitle,
.text-muted {
    color: var(--muted);
}

.topbar-subtitle {
    font-size: var(--font-size-meta);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.content {
    width: 100%;
    max-width: 1680px;
    padding: var(--space-6);
    padding-bottom: var(--space-8);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: var(--border-subtle);
    min-width: 0;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    flex-wrap: wrap;
    min-width: min(360px, 100%);
    margin-left: auto;
}

.page-header-actions > *,
.page-header > .button-link,
.page-header > button {
    flex: 0 0 auto;
}

.page-header-actions .button-link:not(.secondary),
.page-header-actions button:not(.secondary),
.page-header > .button-link:not(.secondary),
.page-header > button:not(.secondary) {
    order: -1;
}

.page-header h1 {
    margin: 0 0 var(--space-1);
    font-size: var(--font-size-title);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-subtitle {
    margin: 0;
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-body);
    color: var(--color-foreground-muted);
}

.panel,
.form-grid,
.login-card,
.summary-card,
.card {
    background: var(--color-surface);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.panel {
    padding: var(--space-5);
    position: relative;
    overflow: visible;
}

.quick-filters {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.quick-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border: var(--border-width) solid var(--color-error-border);
    font-size: var(--font-size-meta);
    font-weight: var(--font-weight-strong);
    min-height: var(--touch-target);
}

.quick-filter.active,
.quick-filter:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.operation-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.operation-card {
    border: var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    background: var(--color-surface);
}

.operation-card-soft {
    background: var(--color-surface-muted);
}

.operation-title,
.section-title {
    font-size: var(--font-size-section);
    font-weight: var(--font-weight-emphasis);
    margin-bottom: var(--space-2);
}

.operation-text {
    color: var(--color-foreground-muted);
    font-size: var(--font-size-body);
    margin-bottom: var(--space-4);
}

.operation-meta {
    display: grid;
    gap: var(--space-2);
    color: var(--color-foreground-muted);
    font-size: var(--font-size-body);
}

.dashboard-calendar-panel {
    overflow: hidden;
}

.dashboard-calendar-header {
    align-items: flex-start;
}

.dashboard-calendar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-calendar-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(196, 38, 46, 0.14);
    background: linear-gradient(135deg, rgba(196, 38, 46, 0.08), rgba(15, 23, 42, 0.02));
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 18px;
}

.dashboard-calendar-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(196, 38, 46, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-calendar-weekdays,
.dashboard-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dashboard-calendar-weekdays {
    padding: 16px 16px 0;
}

.dashboard-calendar-weekdays div {
    padding: 0 10px 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-calendar-grid {
    padding: 0 16px 16px;
    gap: 10px;
}

.dashboard-calendar-day {
    min-height: 92px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    background: rgba(255, 255, 255, 0.84);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    cursor: pointer;
}

.dashboard-calendar-day:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 38, 46, 0.25);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.dashboard-calendar-day.is-muted {
    background: rgba(248, 250, 252, 0.72);
    opacity: 0.72;
}

.dashboard-calendar-day.is-today {
    border-color: rgba(196, 38, 46, 0.34);
    box-shadow: 0 0 0 1px rgba(196, 38, 46, 0.12);
}

.dashboard-calendar-day.has-due {
    background:
        radial-gradient(circle at top right, rgba(196, 38, 46, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.96);
}

.dashboard-calendar-day.is-selected {
    border-color: rgba(196, 38, 46, 0.4);
    box-shadow: 0 18px 40px rgba(196, 38, 46, 0.12);
    background:
        radial-gradient(circle at top right, rgba(196, 38, 46, 0.16), transparent 42%),
        #fff;
}

.dashboard-calendar-day-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    position: relative;
}

.dashboard-calendar-day-number.pulse {
    background: rgba(196, 38, 46, 0.14);
    color: var(--accent);
    box-shadow: 0 0 0 0 rgba(196, 38, 46, 0.36);
    animation: dashboardPulse 1.8s ease-in-out infinite;
}

.dashboard-calendar-day-counter {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    justify-self: end;
}

.dashboard-calendar-day-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-calendar-day-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 10px;
}

.dashboard-calendar-day-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-calendar-detail-list {
    display: grid;
    gap: 10px;
}

.dashboard-calendar-detail-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
}

.dashboard-calendar-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-calendar-event-main {
    display: grid;
    gap: 2px;
    color: inherit;
    text-decoration: none;
}

.dashboard-calendar-event-main strong {
    font-size: 14px;
    line-height: 1.3;
}

.dashboard-calendar-event-main span,
.dashboard-calendar-event-main small {
    color: var(--muted);
    line-height: 1.35;
}

.dashboard-calendar-event-pilot {
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    border: 1px solid rgba(196, 38, 46, 0.14);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-calendar-aside {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-calendar-divider {
    height: 1px;
    background: rgba(203, 213, 225, 0.72);
    margin: 4px 0;
}

.dashboard-calendar-upcoming {
    display: grid;
    gap: 10px;
}

.dashboard-calendar-upcoming-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-calendar-upcoming-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 38, 46, 0.22);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-calendar-upcoming-card strong {
    font-size: 15px;
}

.dashboard-calendar-upcoming-card span,
.dashboard-calendar-upcoming-card small {
    color: var(--muted);
}

@keyframes dashboardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 38, 46, 0.36);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(196, 38, 46, 0);
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 38, 46, 0);
        transform: scale(1);
    }
}

.email-preview-panel {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.email-block {
    display: grid;
    gap: 10px;
}

.email-block-title {
    font-weight: 800;
    font-size: 16px;
}

.compact-table thead th,
.compact-table tbody td {
    padding: 10px 12px;
}

.empty-state-inline {
    color: var(--muted);
    font-size: 14px;
}

.email-raw pre {
    margin: 0;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 14px;
    overflow: auto;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    align-items: end;
}

.filters-wide {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.filters label,
.filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--color-foreground-muted);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-strong);
    line-height: 1.25;
}

.filters label > span,
.filter-field > span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

input,
select,
textarea {
    width: 100%;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 10px var(--space-3);
    background: var(--color-surface);
    color: var(--color-foreground);
    font: inherit;
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background-color var(--motion-fast), color var(--motion-fast), opacity var(--motion-fast);
    min-height: var(--touch-target);
    scroll-margin-top: 84px;
    scroll-margin-bottom: 140px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(189, 31, 45, 0.18);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

input:disabled,
select:disabled,
textarea:disabled,
input[aria-disabled="true"],
select[aria-disabled="true"],
textarea[aria-disabled="true"] {
    cursor: not-allowed;
    background: var(--color-disabled-surface);
    color: var(--color-disabled);
    border-color: var(--color-border);
    opacity: 1;
}

input:read-only,
textarea:read-only,
select[aria-readonly="true"],
input[aria-readonly="true"],
textarea[aria-readonly="true"],
.readonly-field {
    background: var(--color-readonly-surface);
    border-color: var(--color-border);
    color: var(--color-foreground-muted);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th,
table thead th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    background: var(--color-surface-muted);
    color: var(--color-foreground-muted);
    font-size: var(--font-size-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: var(--border-subtle);
    font-weight: var(--font-weight-emphasis);
}

.data-table tbody td,
table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: var(--border-subtle);
    vertical-align: top;
    font-size: var(--font-size-body);
}

.data-table tbody tr:hover,
table tbody tr:hover {
    background: var(--color-surface-muted);
}

.primary-cell {
    font-weight: var(--font-weight-strong);
    color: var(--color-foreground);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.base-marker-head strong,
.dashboard-calendar-event-main strong,
.dashboard-calendar-event-main span,
.dashboard-calendar-event-main small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.secondary-cell {
    margin-top: 2px;
    font-size: var(--font-size-small);
    color: var(--color-foreground-muted);
}

.date-strong {
    font-weight: 700;
}

.actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
}

.actions a {
    display: inline-flex;
    align-items: center;
    color: var(--color-foreground);
    font-weight: var(--font-weight-strong);
    font-size: var(--font-size-meta);
    min-height: var(--touch-target);
    padding: 2px 0;
}

.actions a:hover {
    color: var(--color-primary);
}

.actions form {
    margin: 0;
}

.link-danger {
    padding: 0;
    background: transparent;
    color: var(--color-error);
    border: 0;
    border-radius: 0;
    font: inherit;
    font-weight: var(--font-weight-medium);
    min-height: var(--touch-target);
}

.link-danger:hover {
    background: transparent;
    color: var(--color-error-strong);
}

.empty {
    text-align: center;
    color: var(--color-foreground-muted);
    padding: var(--space-4);
    border: var(--border-width) dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    padding: var(--space-6);
}

.form-section {
    grid-column: 1 / -1;
    display: grid;
    gap: var(--space-3);
    border: var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
}

.form-section-title {
    margin: 0;
    font-size: var(--font-size-body-lg);
    font-weight: var(--font-weight-emphasis);
    color: var(--color-foreground);
}

.form-section-subtitle {
    margin: 0;
    color: var(--color-foreground-muted);
    font-size: var(--font-size-meta);
    line-height: var(--line-height-body);
}

.form-grid label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.field-help {
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
    font-weight: 400;
}

.single-column {
    grid-template-columns: 1fr;
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.state-note {
    border: 1px solid #dbe3f0;
    border-radius: var(--radius-md);
    background: #f8fbff;
    padding: 12px 14px;
    color: #475467;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.permissions-group-card {
    display: grid;
    gap: 10px;
}

.permissions-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.permissions-group-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #475467;
    background: #eef2f7;
    border: 1px solid #dbe3f0;
}

.usuarios-form {
    align-items: start;
}

.report-only {
    display: none;
}

.report-print-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dbe2ea;
    font-size: 11px;
    color: #64748b;
    text-align: right;
}

.checkbox-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    align-self: stretch;
    grid-column: 1 / -1;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.flags-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 16px;
    display: grid;
    gap: 14px;
}

.flags-section-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.flags-section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.flags-grid .checkbox-field {
    grid-column: auto;
    padding: 12px 14px;
    min-height: 74px;
}

.checkbox-label-group {
    display: grid;
    gap: 4px;
}

.checkbox-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.checkbox-description {
    font-size: 11px;
    line-height: 1.35;
    color: var(--muted);
    font-weight: 400;
    max-width: 420px;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 0 0 auto;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 27px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(21px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 3px solid rgba(196, 38, 46, 0.2);
    outline-offset: 2px;
}

.toggle-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    font-weight: var(--font-weight-strong);
    font-size: var(--font-size-small);
    border: 1px solid transparent;
}

.status-red {
    background: var(--color-error-soft);
    color: var(--color-error-strong);
    border-color: var(--color-error-border);
}

.status-yellow {
    background: var(--color-warning-soft);
    color: var(--color-warning-strong);
    border-color: var(--color-warning-border);
}

.status-green {
    background: var(--color-success-soft);
    color: var(--color-success-strong);
    border-color: var(--color-success-border);
}

.status-gray {
    background: var(--color-surface-subtle);
    color: var(--gray);
    border-color: var(--color-border);
}

.card {
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.report-header-card {
    display: grid;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.report-page,
.report-sheet {
    display: grid;
    gap: var(--space-5);
}

.report-print-header {
    display: grid;
    gap: var(--space-3);
    background: var(--color-surface);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
}

.report-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.report-logo {
    width: 220px;
    height: auto;
    flex: 0 0 auto;
}

.report-brand-meta {
    flex: 1;
    text-align: right;
}

.report-doc-title {
    font-size: 24px;
    font-weight: var(--font-weight-emphasis);
}

.report-doc-subtitle {
    color: var(--color-foreground-muted);
    font-size: var(--font-size-body);
    margin-top: var(--space-1);
}

.report-issued-at {
    color: var(--color-foreground-muted);
    font-size: var(--font-size-meta);
    border-top: var(--border-default);
    padding-top: var(--space-3);
}

.report-info-block,
.report-table-block {
    background: var(--color-surface);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
}

.report-block-title {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-emphasis);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-foreground);
    margin-bottom: var(--space-3);
}

.report-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.report-info-item,
.report-summary-card {
    display: grid;
    gap: 6px;
}

.report-info-item {
    padding: var(--space-4);
    border: var(--border-default);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
}

.report-info-item-wide {
    grid-column: span 2;
}

.report-info-grid strong,
.report-summary-card strong {
    color: var(--color-foreground-muted);
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-info-item span {
    font-size: var(--font-size-section);
    font-weight: var(--font-weight-strong);
    color: var(--color-foreground);
}

.report-action-slot {
    margin-top: 6px;
}

.report-action-slot button {
    font-size: var(--font-size-body);
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.report-summary-card {
    background: var(--color-surface);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.report-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--accent);
}

.report-summary-card span {
    font-size: 30px;
    font-weight: 800;
    padding-left: 4px;
}

.report-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}


.report-table-kv tbody td:first-child {
    color: #475569;
    font-weight: 700;
    width: 42%;
}

.report-table-kv tbody td:last-child {
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.card-grid div,
.summary-card {
    display: grid;
    gap: 6px;
}

.card-grid strong,
.summary-card strong {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.summary-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.summary-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(16, 24, 40, 0.05), rgba(189, 31, 45, 0.35));
    opacity: 0.6;
}

.summary-card span {
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.summary-link-card {
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.summary-link-card:hover {
    transform: translateY(-2px);
    border-color: #f8b4bc;
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.08);
}

.compact-summary-grid {
    margin-top: 8px;
    margin-bottom: 20px;
}

.compact-summary-grid .summary-card {
    box-shadow: none;
    border-width: 1px;
}

.consolidated-summary-grid {
    margin-top: 8px;
    margin-bottom: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.consolidated-brand-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(189, 31, 45, 0.24);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: linear-gradient(120deg, rgba(15, 26, 47, 0.98) 0%, rgba(20, 34, 60, 0.96) 70%);
    color: #eef2ff;
}

.consolidated-brand-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.consolidated-brand-logo {
    width: 152px;
    max-width: 34vw;
    height: auto;
    filter: brightness(0) invert(1);
    flex: 0 0 auto;
}

.consolidated-brand-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(203, 213, 225, 0.95);
}

.consolidated-brand-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2px;
}

.consolidated-brand-subtitle {
    font-size: 13px;
    color: rgba(203, 213, 225, 0.88);
    margin-top: 2px;
}

.consolidated-brand-meta {
    text-align: right;
    padding-left: 14px;
    border-left: 1px solid rgba(226, 232, 240, 0.24);
    flex: 0 0 auto;
}

.consolidated-brand-meta-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.86);
}

.consolidated-brand-meta-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 4px;
}

.competencia-history {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.competencia-history-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.competencia-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competencia-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    min-height: var(--touch-target);
}

.competencia-chip:hover {
    border-color: #f8b4bc;
    background: #fff6f7;
    color: #9a1f2d;
}

.competencia-chip.active {
    background: #9a1f2d;
    border-color: #9a1f2d;
    color: #fff;
}

.report-shell-header {
    align-items: flex-start;
}

.report-shell {
    display: grid;
    gap: 14px;
}

.report-state-panel {
    min-height: 160px;
    align-content: center;
}

.report-export-actions {
    align-items: center;
}

.report-context-strip,
.report-evidence-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
}

.report-context-intro {
    display: grid;
    gap: 3px;
}

.report-context-intro strong,
.report-evidence-panel h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.report-context-intro span,
.report-evidence-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.report-context-items,
.report-evidence-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.report-context-item,
.report-evidence-item {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.report-context-item span,
.report-evidence-item span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.report-context-item strong,
.report-evidence-item strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.report-evidence-item:hover {
    border-color: #f8b4bc;
    background: #fff6f7;
    text-decoration: none;
}

.quick-actions-card {
    align-content: start;
    gap: 10px;
    min-height: 0;
}

.quick-actions-card span {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}

.quick-actions-links {
    display: grid;
    gap: 8px;
}

.quick-actions-links a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

.quick-actions-links a:hover {
    color: #9a1f2d;
}

.consolidated-table .consolidated-group-row td {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.consolidated-table .consolidated-group-row td::before {
    content: none;
}

.consolidated-table-wrap {
    display: block;
}

.consolidated-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.consolidated-group-header strong {
    font-size: 15px;
    color: var(--text);
}

.consolidated-group-header span,
.consolidated-group-meta {
    color: var(--muted);
    font-size: 13px;
}

.consolidated-row-critical {
    background: linear-gradient(90deg, rgba(254, 242, 242, 0.65) 0%, rgba(255, 255, 255, 0) 68%);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-panel {
    display: grid;
    gap: 16px;
}

.dashboard-alerts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.alert-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.alert-card strong {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.alert-card span {
    font-size: 30px;
    font-weight: 800;
}

.alert-card a {
    font-size: 13px;
    font-weight: 700;
}

.alert-link-text {
    font-size: 13px;
    font-weight: 700;
}

.alert-red {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.alert-yellow {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
}

.alert-soft {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.dashboard-status-list {
    display: grid;
    gap: 12px;
}

.dashboard-status-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-status-list a:hover {
    border-color: #fecdd3;
    transform: translateY(-1px);
}

.dashboard-status-list span {
    color: var(--muted);
    font-weight: 600;
}

.dashboard-status-list strong {
    font-size: 22px;
}

.dashboard-subheader {
    margin-bottom: 14px;
}

.flash {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border: var(--border-default);
    font-weight: var(--font-weight-strong);
    background: var(--color-info-soft);
    color: var(--color-foreground);
    box-shadow: var(--shadow-soft);
}

.flash.error {
    background: var(--color-error-soft);
    color: var(--color-error-strong);
    border-color: var(--color-error-border);
}

.flash.success {
    background: var(--color-success-soft);
    color: var(--color-success-strong);
    border-color: var(--color-success-border);
}

.flash.warning,
.flash.loading {
    background: var(--color-warning-soft);
    color: var(--color-warning-strong);
    border-color: var(--color-warning-border);
}

.flash.info {
    background: var(--color-info-soft);
    color: #1e40af;
    border-color: var(--color-info-border);
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--color-disabled-surface);
    border-radius: var(--radius-sm);
    min-height: 14px;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}

.login-body {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(120, 119, 198, 0.14), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.12), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(29, 78, 216, 0.16), transparent 30%),
        linear-gradient(180deg, #050a14 0%, #091120 42%, #0c1527 100%);
    color: #f8fafc;
    padding:
        max(16px, env(safe-area-inset-top))
        16px
        max(16px, env(safe-area-inset-bottom))
        16px;
}

.login-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(130deg, rgba(3, 8, 20, 0.14) 0%, transparent 38%),
        linear-gradient(0deg, rgba(3, 8, 20, 0.4) 0%, rgba(3, 8, 20, 0.08) 46%, transparent 72%);
    pointer-events: none;
}

.login-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-orb,
.login-grid-glow {
    position: absolute;
    display: block;
}

.login-orb {
    border-radius: 999px;
    filter: blur(38px);
    opacity: 0.58;
    animation: loginOrbFloat 16s ease-in-out infinite;
}

.login-orb-one {
    width: 380px;
    height: 380px;
    top: -8%;
    left: -3%;
    background: radial-gradient(circle, rgba(231, 70, 92, 0.34) 0%, rgba(231, 70, 92, 0.08) 48%, transparent 72%);
}

.login-orb-two {
    width: 460px;
    height: 460px;
    right: -5%;
    bottom: -14%;
    background: radial-gradient(circle, rgba(77, 127, 255, 0.3) 0%, rgba(77, 127, 255, 0.08) 50%, transparent 72%);
    animation-duration: 20s;
    animation-delay: -6s;
}

.login-grid-glow {
    inset: 10%;
    border-radius: 40px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 76%);
    opacity: 0.42;
    animation: loginGridShift 30s linear infinite;
}

.login-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-visual {
    position: relative;
    min-height: 290px;
    border-radius: 28px;
    overflow: hidden;
    background-color: #091120;
    background-image: var(--login-hero-image);
    background-size: cover;
    background-position: center 58%;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.36);
    animation: loginVisualEnter 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 97, 110, 0.22), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(243, 183, 77, 0.18), transparent 22%),
        linear-gradient(180deg, rgba(5, 10, 20, 0.06) 0%, rgba(5, 10, 20, 0.28) 46%, rgba(5, 10, 20, 0.82) 100%);
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(120deg, rgba(4, 9, 18, 0.82) 0%, rgba(4, 9, 18, 0.38) 30%, rgba(4, 9, 18, 0.08) 58%),
        linear-gradient(0deg, rgba(4, 9, 18, 0.56) 0%, transparent 38%);
}

.login-visual-photo-wrap {
    position: absolute;
    inset: 0;
}

.login-visual-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    transform: scale(1.02);
}

.login-visual-content {
    position: relative;
    z-index: 2;
    min-height: 290px;
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
}

.login-visual-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-image-login-visual {
    width: 150px;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.login-visual-badge,
.login-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 17, 32, 0.46);
    backdrop-filter: blur(18px) saturate(140%);
    color: rgba(241, 245, 249, 0.92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-visual-copy h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(28px, 6vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.login-visual-copy p {
    margin: 10px 0 0;
    max-width: 48ch;
    color: rgba(226, 232, 240, 0.84);
    font-size: 14px;
    line-height: 1.6;
}

.login-visual-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.login-metric-card {
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(9, 18, 35, 0.5) 0%, rgba(9, 18, 35, 0.72) 100%);
    backdrop-filter: blur(20px) saturate(145%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-metric-card:last-child {
    grid-column: 1 / -1;
}

.login-metric-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(191, 219, 254, 0.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-metric-card strong {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #f8fafc;
}

.login-panel {
    position: relative;
    z-index: 3;
    margin: -38px 10px 0;
    padding: 24px 18px 20px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(9, 18, 35, 0.9) 0%, rgba(7, 13, 26, 0.94) 100%);
    backdrop-filter: blur(28px) saturate(155%);
    box-shadow:
        0 24px 80px rgba(2, 6, 23, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: loginCardEnter 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 27px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 26%, transparent 60%);
    pointer-events: none;
}

.login-panel::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 72px;
    background: radial-gradient(circle at center, rgba(241, 167, 92, 0.18), transparent 70%);
    pointer-events: none;
    filter: blur(18px);
}

.login-panel-header,
.login-form,
.login-support-note,
.login-feedback {
    position: relative;
    z-index: 1;
}

.login-panel-header {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.login-panel-header h2 {
    margin: 0;
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: #f8fafc;
}

.login-panel-header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 14px;
    line-height: 1.6;
}

.login-chip {
    background: rgba(148, 163, 184, 0.12);
    color: rgba(241, 245, 249, 0.94);
}

.login-feedback {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.login-feedback .flash {
    margin: 0;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(12, 23, 42, 0.62);
    color: #e2e8f0;
    box-shadow: none;
}

.login-feedback .flash.error {
    background: rgba(127, 29, 29, 0.34);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.26);
}

.login-feedback .flash.success {
    background: rgba(6, 95, 70, 0.34);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.28);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: rgba(226, 232, 240, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-field-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.login-inline-note {
    color: rgba(148, 163, 184, 0.9);
    font-size: 12px;
    line-height: 1.4;
}

.login-input-shell {
    display: flex;
    align-items: center;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(14, 23, 39, 0.72) 0%, rgba(10, 17, 30, 0.88) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.login-input-shell:hover {
    border-color: rgba(241, 167, 92, 0.32);
}

.login-input-shell:focus-within {
    border-color: rgba(244, 181, 106, 0.72);
    box-shadow:
        0 0 0 4px rgba(244, 181, 106, 0.12),
        0 20px 35px rgba(3, 7, 18, 0.24);
    transform: translateY(-1px);
}

.login-input-shell input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border: 0;
    background: transparent;
    padding: 16px 18px;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: none;
}

.login-input-shell input::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

.login-panel input:hover,
.login-panel input:focus {
    transform: none;
    box-shadow: none;
}

.login-panel input:focus-visible {
    outline: 2px solid rgba(244, 181, 106, 0.82);
    outline-offset: 2px;
}

.login-input-shell-password input {
    padding-right: 8px;
}

.login-password-toggle {
    padding: 0 16px 0 10px;
    min-height: 42px;
    background: transparent;
    color: rgba(226, 232, 240, 0.78);
    border: 0;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.login-password-toggle:hover {
    background: transparent;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.login-password-toggle:focus-visible {
    outline: 2px solid rgba(244, 181, 106, 0.36);
    outline-offset: 2px;
}

.login-form-meta {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.login-remember-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.45;
}

.login-remember-checkbox {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    flex: 0 0 auto;
    accent-color: #f4b56a;
}

.login-form-trust {
    padding: 11px 13px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(203, 213, 225, 0.82);
    font-size: 12px;
    line-height: 1.5;
}

.login-submit {
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #243770 0%, #ba2d4a 48%, #ec9f58 100%);
    color: #fff8f1;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 18px 38px rgba(186, 45, 74, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.login-submit:hover {
    background: linear-gradient(135deg, #2c438b 0%, #c93352 48%, #f3ad66 100%);
    transform: translateY(-1px);
    box-shadow:
        0 24px 42px rgba(186, 45, 74, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-submit:hover::before {
    transform: translateX(120%);
}

.login-support-note {
    margin-top: 16px;
    color: rgba(148, 163, 184, 0.92);
    font-size: 13px;
    line-height: 1.6;
}

.login-fade {
    opacity: 0;
    animation: loginFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.login-delay-1 {
    animation-delay: 0.14s;
}

.login-delay-2 {
    animation-delay: 0.24s;
}

.login-delay-3 {
    animation-delay: 0.34s;
}

.login-delay-4 {
    animation-delay: 0.46s;
}

.login-delay-5 {
    animation-delay: 0.56s;
}

@keyframes loginCardEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginVisualEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginOrbFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(16px, -18px, 0) scale(1.06);
    }
}

@keyframes loginGridShift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(34px, 24px, 0);
    }
}

@media (min-width: 680px) {
    .login-body {
        padding:
            max(20px, env(safe-area-inset-top))
            20px
            max(20px, env(safe-area-inset-bottom))
            20px;
    }

    .login-shell {
        max-width: 760px;
    }

    .login-visual {
        min-height: 360px;
        border-radius: 32px;
        background-position: center 54%;
    }

    .login-visual-content {
        min-height: 360px;
        padding: 24px 24px 24px;
    }

    .login-visual-copy h1 {
        max-width: 14ch;
    }

    .login-visual-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-metric-card:last-child {
        grid-column: auto;
    }

    .login-panel {
        width: min(560px, calc(100% - 40px));
        margin: -52px auto 0;
        padding: 28px 24px 22px;
    }

    .login-panel-header p {
        max-width: 52ch;
    }

    .login-form-meta {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .login-form-trust {
        text-align: right;
        background: transparent;
        border: 0;
        padding: 0;
    }
}

@media (min-width: 960px) {
    .login-body {
        display: grid;
        align-items: center;
        padding:
            max(24px, env(safe-area-inset-top))
            24px
            max(24px, env(safe-area-inset-bottom))
            24px;
    }

    .login-shell {
        max-width: 1180px;
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
        gap: 22px;
        align-items: stretch;
    }

    .login-visual {
        min-height: min(760px, calc(100vh - 48px));
        border-radius: 36px;
        background-position: center center;
    }

    .login-visual-photo {
        object-position: center center;
    }

    .login-visual-content {
        min-height: min(760px, calc(100vh - 48px));
        padding: 32px 30px 30px;
        justify-content: space-between;
    }

    .login-visual-copy {
        margin-top: auto;
    }

    .brand-image-login-visual {
        width: 168px;
    }

    .login-panel {
        width: auto;
        margin: 0;
        min-height: min(760px, calc(100vh - 48px));
        padding: 34px 30px 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 36px;
    }

    .login-panel::before {
        border-radius: 35px;
    }

    .login-panel-header h2 {
        max-width: 10ch;
    }
}

@media (min-width: 1280px) {
    .login-body {
        padding:
            max(28px, env(safe-area-inset-top))
            32px
            max(28px, env(safe-area-inset-bottom))
            32px;
    }

    .login-visual-content {
        padding: 36px;
    }

    .login-panel {
        padding: 36px 32px 30px;
    }

    .login-visual-copy p {
        max-width: 42ch;
    }
}

@media (max-width: 420px) {
    .login-visual-content {
        padding: 18px 16px 20px;
    }

    .login-panel {
        margin-left: 0;
        margin-right: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-panel-header h2 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-visual,
    .login-panel,
    .login-fade,
    .login-orb,
    .login-grid-glow {
        animation: none !important;
    }

    .login-input-shell,
    .login-submit,
    .login-password-toggle {
        transition: none;
    }

    .login-submit::before {
        display: none;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    .sidebar,
    .topbar,
    .page-header,
    .page-header button,
    .page-header .button-link,
    .logout-link {
        display: none !important;
    }

    .app-shell,
    .main-column {
        display: block;
    }

    .content {
        padding: 0;
        background: #fff;
    }

    .panel,
    .summary-card,
    .card,
    .report-print-header,
    .report-info-block,
    .report-table-block,
    .report-summary-card {
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .report-page,
    .report-sheet {
        gap: 10px;
    }

    .report-print-header {
        padding-top: 0;
        border-bottom: 1px solid #cbd5e1;
    }

    .report-brand-row {
        align-items: flex-start;
    }

    .report-logo {
        width: 180px;
    }

    .report-brand-meta {
        text-align: right;
    }

    .report-doc-title {
        font-size: 18px;
    }

    .report-doc-subtitle,
    .report-issued-at {
        font-size: 11px;
        color: #475569;
    }

    .report-info-grid,
    .report-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px 16px;
    }

    .report-info-item {
        padding: 8px 10px;
        border: 1px solid #cbd5e1;
        background: transparent;
    }

    .report-info-item-wide {
        grid-column: span 2;
    }

    .report-info-item span {
        font-size: 12px;
        font-weight: 700;
    }

    .report-summary-card {
        padding: 8px 10px 8px 14px;
        border: 1px solid #dbe2ea;
    }

    .report-summary-card::before {
        width: 3px;
    }

    .report-summary-card span {
        font-size: 16px;
    }

    .report-section-title {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .report-table {
        table-layout: fixed;
    }

    .report-table .col-equipamento {
        width: 16%;
    }

    .report-table .col-tipo {
        width: 24%;
    }

    .report-table .col-realizacao {
        width: 14%;
    }

    .report-table .col-vencimento {
        width: 14%;
    }

    .report-table .col-status {
        width: 12%;
    }

    .report-table .col-observacao {
        width: 20%;
    }

    .report-table th,
    .report-table td {
        padding: 8px 7px;
        font-size: 10px;
        line-height: 1.35;
        color: #0f172a;
        border-color: #dbe2ea;
        background: transparent !important;
    }

    .report-table thead th {
        font-size: 9px;
        color: #334155;
        border-top: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
    }

    .report-table tbody tr:hover {
        background: transparent;
    }

    .report-table tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .status-pill {
        padding: 2px 5px;
        font-size: 9px;
        border-width: 1px;
        white-space: nowrap;
        border-radius: 999px;
    }

    .table-wrap {
        overflow: visible;
    }

    .print-hide {
        display: none !important;
    }

    .report-only {
        display: block !important;
    }

    .report-print-footer {
        position: fixed;
        bottom: 8mm;
        left: 12mm;
        right: 12mm;
        text-align: right;
    }

    .report-print-footer::after {
        content: " · Página " counter(page);
    }
}

@media (max-width: 1180px) {
    .filters,
    .filters-wide,
    .card-grid,
    .report-summary-grid,
    .summary-grid,
    .dashboard-alerts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-info-grid,
    .dashboard-grid,
    .form-grid,
    .operation-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar-layout {
        grid-template-columns: 1fr;
    }

    .flags-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-calendar-shell {
        overflow-x: auto;
    }

    .dashboard-calendar-weekdays,
    .dashboard-calendar-grid {
        min-width: 680px;
    }

    .dashboard-calendar-day {
        min-height: 78px;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    }

    .content {
        padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
    }

    .panel,
    .card {
        padding: 12px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .dashboard-calendar-meta {
        width: 100%;
    }

    .dashboard-calendar-chip {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-calendar-weekdays,
    .dashboard-calendar-grid {
        min-width: 620px;
    }

    .dashboard-calendar-day {
        min-height: 72px;
        padding: 8px;
    }

    .dashboard-calendar-day-label {
        font-size: 11px;
    }

    .dashboard-calendar-aside {
        padding: 16px;
    }

    .dashboard-calendar-upcoming-card {
        padding: 12px;
    }

    .pagination-bar {
        gap: 10px;
    }

    .pagination-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pagination-actions .button-link {
        width: 100%;
    }

    .report-brand-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .report-brand-meta {
        width: 100%;
        text-align: left;
    }

    .filters,
    .filters-wide,
    .card-grid,
    .report-summary-grid,
    .dashboard-alerts {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-card {
        min-height: 112px;
        align-content: start;
    }

    .quick-filter,
    .status-filter,
    .competencia-chip {
        min-height: 40px;
    }
}

@media (max-width: 420px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ... styles for mobile sidebar and overlay ... */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 40;
    opacity: 0;
    transition: opacity var(--motion-base);
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-open .main-column {
    pointer-events: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    color: var(--color-foreground);
    padding: var(--space-2);
    margin-right: var(--space-1);
    border-radius: var(--radius-sm);
    border: var(--border-default);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.mobile-menu-btn:hover {
    background: var(--color-surface-subtle);
    transform: none;
    box-shadow: none;
}

.topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: var(--space-3);
}

.topbar-left > div {
    min-width: 0;
    flex: 1 1 auto;
}

@media (max-width: 900px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        width: min(90vw, 360px);
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        overflow: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: calc(var(--space-4) + env(safe-area-inset-top)) var(--space-4) var(--space-3);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.4);
    }

    .topbar {
        padding: calc(var(--space-3) + env(safe-area-inset-top)) var(--space-4) var(--space-3);
        height: auto;
        gap: var(--space-3);
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: var(--space-3);
    }

    .page-header-actions {
        justify-content: stretch;
        min-width: 0;
        margin-left: 0;
    }

    .topbar-left {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        width: 100%;
        min-width: 0;
    }

    .topbar-context {
        width: 100%;
        justify-content: space-between;
    }

    .sidebar-top {
        padding: 6px 8px 12px;
    }

    .nav {
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
        padding: 12px 0 18px;
        gap: 2px;
        align-content: start;
        grid-auto-rows: max-content;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .nav a,
    .nav-group-toggle {
        font-size: 14px;
        min-height: 46px;
        padding: 12px 12px;
        border-radius: 12px;
    }

    .nav-group-links {
        margin-left: 8px;
        padding-left: 8px;
        padding-right: 4px;
    }

    .nav-group-links a {
        padding: 11px 12px;
    }

    .sidebar-footer {
        margin-top: 0;
        padding: 14px 10px calc(8px + env(safe-area-inset-bottom));
        background: var(--sidebar);
        position: static;
        flex-shrink: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 2;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .mobile-menu-btn {
        display: flex;
        min-height: var(--touch-target);
        min-width: var(--touch-target);
        margin-right: 4px;
    }

    .topbar-title {
        font-size: 17px;
        line-height: 1.25;
    }

    .topbar-subtitle {
        display: none;
    }

    .topbar-action {
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .topbar-context .topbar-action {
        width: auto;
        flex: 1 1 180px;
    }

    .content {
        padding: var(--space-4) var(--space-4) calc(96px + env(safe-area-inset-bottom));
    }

    .content,
    .panel,
    .card,
    .summary-card,
    .page-header,
    .page-header-actions,
    .filters-panel,
    .report-info-item,
    .report-summary-card {
        min-width: 0;
    }

    .page-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .page-header h1 {
        font-size: clamp(24px, 7vw, 30px);
    }

    .panel,
    .card {
        padding: 14px;
        border-radius: 14px;
    }

    .summary-card {
        padding: 14px;
    }

    .summary-card span {
        font-size: clamp(24px, 7.2vw, 32px);
    }

    .operation-title,
    .section-title {
        font-size: 17px;
    }

    .operation-text {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .quick-actions-links a {
        width: 100%;
        font-size: 16px;
        line-height: 1.3;
    }

    .consolidated-brand-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .consolidated-brand-left {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .consolidated-brand-logo {
        width: 140px;
        max-width: 100%;
    }

    .consolidated-brand-meta {
        text-align: left;
        border-left: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.24);
        width: 100%;
        padding-left: 0;
        padding-top: 10px;
    }

    .page-header-actions,
    .page-header > .button-link,
    .page-header > button {
        width: 100%;
    }

    .page-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-header-actions > * {
        width: 100%;
        justify-content: center;
    }

    .quick-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 2px 2px 6px;
        scrollbar-width: thin;
    }

    .quick-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .bases-panel {
        overflow: visible;
    }

    .bases-map-wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .bases-map {
        min-height: clamp(300px, 46vh, 420px);
        border-radius: 22px;
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background:
            radial-gradient(circle at 14% 12%, rgba(147, 197, 253, 0.24), transparent 44%),
            radial-gradient(circle at 88% 82%, rgba(148, 163, 184, 0.2), transparent 52%),
            linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
    }

    .bases-alternative-head,
    .bases-alternative-card-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bases-alternative-list {
        grid-template-columns: 1fr;
    }

    .bases-alternative-card .button-link {
        width: 100%;
    }

    .status-filter-group {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .competencia-history-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .competencia-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .status-filter {
        flex: 0 0 auto;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .bases-toolbar-meta {
        width: 100%;
        justify-content: space-between;
    }

    .base-marker-card {
        width: 182px;
        padding: 11px 12px;
        border-radius: 16px;
    }

    .base-marker-card-peek {
        width: 156px;
        padding: 9px 10px;
    }

    .base-marker-head {
        margin-bottom: 6px;
    }

    .base-marker-total {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .base-marker-badges {
        gap: 4px;
        margin-bottom: 8px;
    }

    .base-marker-badges .status-pill {
        font-size: 10px;
        padding: 3px 6px;
    }

    .base-marker-button {
        padding: 9px 10px;
        font-size: 12px;
    }

    .bases-sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        max-height: none;
        min-height: 0;
        margin-top: 0;
        border-radius: 20px;
        transform: none;
        transition: none;
        display: none;
        z-index: auto;
    }

    .bases-sidebar[aria-hidden="false"],
    .bases-sidebar.open {
        display: flex;
    }

    .bases-sidebar-header,
    .bases-sidebar-actions,
    .bases-sidebar-list {
        padding-left: 14px;
        padding-right: 14px;
    }

    .bases-sidebar-list {
        max-height: min(52dvh, 420px);
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .pilot-card {
        padding: 12px;
    }

    .pilot-card-top {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .pilot-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pilot-card-actions .button-link {
        width: 100%;
    }

    .modal-card,
    .modal-history-card {
        width: min(100%, calc(100% - 16px));
        max-height: calc(100dvh - 16px);
        padding: 16px;
        border-radius: 18px;
        scrollbar-gutter: stable;
    }

    .modal-header {
        align-items: flex-start;
    }

    .form-grid {
        padding: 18px 0 0;
    }

    .usuarios-form {
        gap: 14px;
        padding: 14px 0 92px;
    }

    .usuarios-form label {
        gap: 6px;
    }

    .usuarios-form .form-section {
        gap: 10px;
        padding: 12px;
    }

    .usuarios-form .permissions-group-card {
        gap: 8px;
    }

    .usuarios-form .permissions-group-count {
        font-size: 10px;
    }

    .usuarios-form .checkbox-field {
        padding: 12px 14px;
    }

    .usuarios-form .checkbox-description {
        font-size: 12px;
        line-height: 1.45;
    }

    .usuarios-form .form-actions {
        position: sticky;
        bottom: calc(8px + env(safe-area-inset-bottom));
        z-index: 6;
        margin-top: 6px;
        padding: 10px;
        border: 1px solid #dbe3f0;
        border-radius: 14px;
        background: rgba(248, 251, 255, 0.96);
        backdrop-filter: blur(4px);
    }

    .usuarios-form .form-actions > * {
        min-height: 44px;
    }

    .flags-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .checkbox-field .toggle-switch {
        width: 100%;
        justify-content: space-between;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    .form-actions > * {
        width: 100%;
        text-align: center;
        min-height: var(--touch-target);
    }

    .form-grid > .form-actions.full-width {
        position: sticky;
        bottom: calc(8px + env(safe-area-inset-bottom));
        z-index: 5;
        padding: 10px;
        border: 1px solid #dbe3f0;
        border-radius: 14px;
        background: rgba(248, 251, 255, 0.96);
        backdrop-filter: blur(4px);
    }

    .filters-toggle-row {
        display: flex;
    }

    .filters-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .filters-panel {
        max-height: 2200px;
        opacity: 1;
        margin-bottom: 14px;
        overflow: hidden;
    }

    .filters-panel.collapsed {
        max-height: 0;
    }

    .filters {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .filters-wide {
        grid-template-columns: 1fr;
    }

    .filters button,
    .filters .button-link,
    .filters input,
    .filters select {
        width: 100%;
    }

    .audit-filters-grid,
    .audit-preview-grid,
    .audit-details-grid {
        grid-template-columns: 1fr;
    }

    .audit-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .data-table th,
    .data-table td,
    table th,
    table td {
        white-space: normal;
        padding: 10px 12px;
    }

    .data-table:not(.responsive-cards),
    table:not(.responsive-cards) {
        min-width: 560px;
    }

    .report-page .report-info-item span {
        font-size: 16px;
        line-height: 1.35;
    }

    .report-page .report-summary-card span {
        font-size: clamp(24px, 7.5vw, 30px);
    }

    .report-table-kv {
        min-width: 0 !important;
        border-collapse: separate;
    }

    .report-table-kv tbody {
        display: grid;
        gap: 10px;
        padding: 2px;
    }

    .report-table-kv tbody tr {
        display: grid;
        gap: 6px;
        padding: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #fff;
    }

    .report-table-kv tbody td {
        display: block;
        padding: 0 !important;
        border: 0 !important;
        white-space: normal;
        word-break: break-word;
    }

    .report-table-kv tbody td:first-child {
        width: auto;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .report-table-kv tbody td:last-child {
        font-size: 14px;
        font-weight: 700;
    }

    .data-table.responsive-cards,
    .data-table.responsive-cards tbody,
    .data-table.responsive-cards tr,
    .data-table.responsive-cards td {
        display: block;
        width: 100%;
    }

    .data-table.responsive-cards {
        min-width: 0;
    }

    .data-table.responsive-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .data-table.responsive-cards tbody {
        display: grid;
        gap: 12px;
    }

    .data-table.responsive-cards tbody tr {
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-soft);
        padding: 12px;
        min-width: 0;
    }

    .data-table.responsive-cards tbody td {
        border: 0;
        padding: 0;
        margin-top: 10px;
        min-width: 0;
    }

    .data-table.responsive-cards tbody td:first-child {
        margin-top: 0;
    }

    .data-table.responsive-cards tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .data-table.responsive-cards tbody td.actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
        border-top: 1px dashed #e2e8f0;
        padding-top: 10px;
    }

    .data-table.responsive-cards tbody td.actions::before {
        width: 100%;
    }

    .data-table.responsive-cards tbody td.actions form {
        display: block;
        width: 100%;
    }

    .actions,
    .actions * {
        white-space: normal;
    }

    .actions {
        gap: 8px;
    }

    .actions a,
    .actions button {
        font-size: 14px;
        min-height: var(--touch-target);
        border: 1px solid #d9e1ee;
        border-radius: 12px;
        padding: 8px 10px;
        background: #fff;
        justify-content: flex-start;
        width: 100%;
    }

    .actions .link-danger {
        border-color: #fecaca;
        background: #fff5f5;
    }

    .actions a:active,
    .actions button:active {
        transform: scale(0.99);
    }

    .tripulante-inline {
        align-items: flex-start;
    }

    .tripulante-photo-preview-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tripulante-photo-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tripulante-photo-actions input,
    .tripulante-photo-actions button {
        width: 100%;
    }

}

.monitor-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monitor-summary-card {
    min-height: 96px;
}

.monitor-summary-card span {
    font-size: 18px;
    line-height: 1.2;
}

.monitor-section {
    display: grid;
    gap: 14px;
}

.monitor-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.monitor-progress-wrap {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    padding: 12px;
}

.monitor-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.monitor-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.monitor-progress-fill {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.monitor-progress-fill.status-green {
    background: #16a34a;
}

.monitor-progress-fill.status-yellow {
    background: #f59e0b;
}

.monitor-progress-fill.status-red {
    background: #dc2626;
}

.monitor-progress-fill.status-gray {
    background: #6b7280;
}

.monitor-progress-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.monitor-alerts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.monitor-alert-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.monitor-alert-card--critical {
    border-color: #fca5a5;
    background: #fef2f2;
}

.monitor-alert-card--warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.monitor-alert-title {
    font-weight: 800;
    color: var(--text);
}

.monitor-alert-message {
    color: var(--text);
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.monitor-alert-source {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.monitor-block-gap {
    margin-bottom: 12px;
}

@media (max-width: 1200px) {
    .monitor-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .sidebar {
        width: min(94vw, 360px);
    }

    .monitor-summary-grid,
    .monitor-alerts-grid {
        grid-template-columns: 1fr;
    }

    .monitor-section-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.tripulante-file-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.inline-replace-form {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 1080px) {
    .tripulante-file-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tripulante-file-meta {
        grid-template-columns: 1fr;
    }
}

.monitor-workbench {
    display: grid;
    gap: 18px;
}

.monitor-stage {
    display: grid;
    gap: 16px;
}

.monitor-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 20px 22px;
    color: #eef4ff;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 32%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.18), transparent 28%),
        linear-gradient(140deg, #09111f 0%, #14253b 50%, #132940 100%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.monitor-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
    margin-bottom: 8px;
}

.monitor-hero h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.monitor-hero-subtitle {
    margin: 10px 0 0;
    max-width: 760px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.monitor-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.monitor-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.monitor-hero-actions .button-link {
    box-shadow: none;
}

.monitor-hero-actions .button-link.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
}

.monitor-hero-actions .button-link.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.monitor-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 16px;
}

.monitor-hero-main,
.monitor-side-block {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(9, 17, 31, 0.28);
    border-radius: 22px;
    padding: 16px;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.monitor-hero-side {
    display: grid;
    gap: 12px;
}

.monitor-status-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.monitor-meta-chip,
.monitor-soft-counter {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(241, 245, 249, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 12px;
    font-weight: 700;
}

.monitor-soft-counter {
    color: var(--muted);
    background: var(--gray-soft);
    border-color: var(--border);
}

.monitor-headline-card {
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.monitor-headline-card--critical {
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.42), rgba(69, 10, 10, 0.26));
}

.monitor-headline-card--calm {
    background: linear-gradient(180deg, rgba(22, 78, 99, 0.3), rgba(8, 47, 73, 0.18));
}

.monitor-headline-label {
    color: rgba(226, 232, 240, 0.72);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.monitor-headline-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    color: #f8fafc;
    margin-bottom: 8px;
}

.monitor-headline-message {
    color: rgba(226, 232, 240, 0.86);
    font-size: 14px;
    line-height: 1.55;
}

.monitor-hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.monitor-mini-metric {
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
    min-width: 0;
}

.monitor-mini-metric span {
    display: block;
    color: rgba(226, 232, 240, 0.72);
    font-size: 12px;
    margin-bottom: 8px;
}

.monitor-mini-metric strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.monitor-side-title {
    color: rgba(226, 232, 240, 0.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.monitor-side-meta {
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.monitor-side-meta + .monitor-side-meta {
    margin-top: 4px;
}

.monitor-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.monitor-action-form,
.monitor-action-form button {
    width: 100%;
}

.monitor-primary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.monitor-panel-card {
    border-radius: 24px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%);
    padding: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 14px;
    min-width: 0;
}

.monitor-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.monitor-panel-head .page-subtitle {
    margin: 4px 0 0;
}

.monitor-resource-list,
.monitor-focus-list,
.monitor-alert-stack {
    display: grid;
    gap: 10px;
}

.monitor-resource-item {
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5edf6;
    padding: 12px;
}

.monitor-resource-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.monitor-resource-meta,
.monitor-service-meta,
.monitor-focus-message,
.monitor-alert-line-message {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.monitor-meter {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 8px;
}

.monitor-meter-fill {
    height: 100%;
    border-radius: inherit;
}

.monitor-meter-fill.status-green {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.monitor-meter-fill.status-yellow {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.monitor-meter-fill.status-red {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.monitor-meter-fill.status-gray {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.monitor-service-group {
    display: grid;
    gap: 8px;
}

.monitor-service-group + .monitor-service-group {
    padding-top: 4px;
    border-top: 1px dashed var(--border);
}

.monitor-service-group-title,
.monitor-detail-section-title {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.monitor-service-row,
.monitor-focus-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid #e5edf6;
    background: #fff;
    padding: 12px;
}

.monitor-service-name,
.monitor-focus-title,
.monitor-alert-line-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.monitor-focus-copy {
    min-width: 0;
}

.monitor-alert-line {
    border-radius: 18px;
    padding: 13px;
    border: 1px solid var(--border);
    background: #fff;
    display: grid;
    gap: 5px;
}

.monitor-alert-line--critical {
    background: linear-gradient(180deg, #fff1f2 0%, #fff7f7 100%);
    border-color: #fecdd3;
}

.monitor-alert-line--warning {
    background: linear-gradient(180deg, #fffbeb 0%, #fffef7 100%);
    border-color: #fde68a;
}

.monitor-alert-line-source {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.monitor-drilldowns {
    display: grid;
    gap: 12px;
}

.monitor-detail {
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.monitor-detail summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.monitor-detail summary::-webkit-details-marker {
    display: none;
}

.monitor-detail summary strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 4px;
}

.monitor-detail summary span {
    color: var(--muted);
    font-size: 12px;
}

.monitor-detail[open] summary {
    border-bottom: 1px solid var(--border);
}

.monitor-detail-body {
    padding: 16px 18px 18px;
    display: grid;
    gap: 16px;
}

.monitor-detail-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monitor-progress-wrap--detail {
    margin-bottom: 0;
}

.monitor-detail-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1400px) {
    .monitor-primary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .monitor-hero-grid {
        grid-template-columns: 1fr;
    }

    .monitor-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .monitor-detail-columns,
    .monitor-detail-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .monitor-hero {
        padding: 16px;
        border-radius: 22px;
    }

    .monitor-hero-head {
        flex-direction: column;
    }

    .monitor-hero-actions,
    .monitor-quick-actions,
    .monitor-primary-grid {
        grid-template-columns: 1fr;
    }

    .monitor-hero-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .monitor-hero-metrics {
        grid-template-columns: 1fr;
    }

    .monitor-status-row {
        flex-direction: column;
        align-items: stretch;
    }

    .monitor-panel-head,
    .monitor-service-row,
    .monitor-focus-item,
    .monitor-detail summary {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 900px) {
    .report-shell-header,
    .report-export-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .report-export-actions > *,
    .report-shell-header .button-link,
    .report-shell-header button {
        width: 100%;
        justify-content: center;
    }

    .report-context-items,
    .report-evidence-list {
        grid-template-columns: 1fr;
    }
}

@media print {
    .report-context-strip {
        padding: 8px 10px;
        border: 1px solid #cbd5e1;
        background: #fff;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .report-context-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .report-context-item {
        padding: 6px 8px;
        border-color: #dbe2ea;
    }

    .report-context-item span {
        font-size: 8px;
    }

    .report-context-item strong {
        font-size: 10px;
    }
}

/* Sidebar SSR v2: aligns authenticated server-rendered pages with the new 3-state shell. */
:root {
    --size-sidebar-width: 300px;
    --size-sidebar-compact-width: 220px;
    --size-sidebar-iconic-width: 88px;
    --size-sidebar-mobile-width: min(92vw, 380px);
    --size-topbar-min-height: 76px;
    --size-touch-target: var(--touch-target);
    --space-stack-xs: 6px;
    --space-stack-sm: 10px;
    --space-stack-md: 14px;
    --space-panel-gap: 20px;
    --space-section-gap: 18px;
    --space-layout-content-fluid: clamp(18px, 3vw, 36px);
    --space-layout-content-mobile: 16px;
    --space-layout-content-narrow: 12px;
    --space-layout-content-end: calc(80px + env(safe-area-inset-bottom));
    --space-navigation-gap: 6px;
    --space-navigation-item-block: 11px;
    --space-navigation-item-inline: 13px;
    --space-navigation-toggle-block: 12px;
    --space-navigation-toggle-inline: 13px;
    --radius-control: 14px;
    --radius-surface: 18px;
    --layer-overlay: 40;
    --layer-modal: 50;
    --layer-dropdown: 70;
    --layer-sticky: 20;
    --color-inverse-surface: #08111f;
    --color-inverse-surface-raised: #0b1424;
    --color-inverse-surface-hover: rgba(30, 41, 59, 0.74);
    --color-inverse-surface-active: rgba(30, 41, 59, 0.84);
    --color-inverse-surface-accent: linear-gradient(90deg, rgba(225, 29, 72, 0.24), rgba(30, 41, 59, 0.78));
    --color-inverse-border: rgba(148, 163, 184, 0.22);
    --color-inverse-border-soft: rgba(148, 163, 184, 0.14);
    --color-inverse-border-strong: rgba(148, 163, 184, 0.32);
    --color-inverse-text: #cbd5e1;
    --color-inverse-text-muted: rgba(203, 213, 225, 0.68);
    --color-inverse-text-strong: #ffffff;
    --color-navigation-active-surface: linear-gradient(90deg, rgba(225, 29, 72, 0.24), rgba(30, 41, 59, 0.78));
    --color-layout-backdrop: rgba(2, 6, 23, 0.58);
    --shadow-navigation-panel: 0 24px 60px rgba(2, 6, 23, 0.38);
    --transition-state: background var(--motion-base), border-color var(--motion-base), color var(--motion-base), box-shadow var(--motion-base), transform var(--motion-base);
    --font-ui-caption: var(--font-size-small);
    --font-ui-body: var(--font-size-body);
    --font-ui-title: 18px;
}

.app-shell.ui-app-frame {
    --sidebar-current-width: var(--size-sidebar-width);
    grid-template-columns: var(--sidebar-current-width) minmax(0, 1fr);
    min-width: 0;
    transition: grid-template-columns var(--motion-base);
}

.app-shell[data-sidebar-state="compact"] {
    --sidebar-current-width: var(--size-sidebar-compact-width);
}

.app-shell[data-sidebar-state="iconic"] {
    --sidebar-current-width: var(--size-sidebar-iconic-width);
}

.sidebar.ui-inverse-surface {
    width: var(--sidebar-current-width);
    padding: var(--space-panel-gap) var(--space-section-gap);
    background:
        radial-gradient(circle at 24% 0, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, var(--color-inverse-surface-raised), var(--color-inverse-surface));
    border-right: 1px solid var(--color-inverse-border);
    color: var(--color-inverse-text);
    transition: width var(--motion-base), padding var(--motion-base), transform var(--motion-base), box-shadow var(--motion-base);
}

.sidebar-top {
    position: relative;
    padding: var(--space-stack-xs) var(--space-stack-sm) var(--space-section-gap);
    border-bottom: 1px solid var(--color-inverse-border);
}

.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--size-touch-target);
    min-width: var(--size-touch-target);
    min-height: var(--size-touch-target);
    margin-left: auto;
    margin-bottom: var(--space-stack-sm);
    border: 1px solid var(--color-inverse-border);
    border-radius: var(--radius-control);
    background: var(--color-inverse-surface-active);
    color: var(--color-inverse-text);
    box-shadow: none;
}

.brand-wrap.ui-stack-xs {
    gap: var(--space-stack-xs);
}

.sidebar-state-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: var(--space-stack-md);
    padding: 4px;
    border: 1px solid var(--color-inverse-border-soft);
    border-radius: var(--radius-control);
    background: rgba(15, 23, 42, 0.28);
}

.sidebar-state-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-control) - 2px);
    background: transparent;
    color: var(--color-inverse-text-muted);
    font-size: var(--font-ui-caption);
    font-weight: var(--font-weight-strong);
    box-shadow: none;
    transition: var(--transition-state);
}

.sidebar-state-button:hover,
.sidebar-state-button[aria-pressed="true"] {
    background: var(--color-inverse-surface-hover);
    color: var(--color-inverse-text-strong);
    border-color: var(--color-inverse-border);
    transform: none;
    box-shadow: none;
}

.sidebar-state-glyph,
.nav-icon,
.session-avatar,
.profile-action-icon,
.logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-inverse-text-strong);
    line-height: 1;
}

.sidebar-state-glyph {
    width: 18px;
    height: 18px;
    background: rgba(148, 163, 184, 0.16);
    font-size: 10px;
}

.nav.ui-navigation-list {
    gap: var(--space-navigation-gap);
    padding: var(--space-panel-gap) 0;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.nav-primary {
    display: grid;
    gap: var(--space-navigation-gap);
    margin-bottom: var(--space-stack-md);
    padding-bottom: var(--space-stack-md);
    border-bottom: 1px solid var(--color-inverse-border-soft);
}

.nav a,
.nav-group-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-stack-sm);
    min-width: 0;
    min-height: var(--size-touch-target);
    border-left: 4px solid transparent;
    border-radius: var(--radius-control);
    color: var(--color-inverse-text);
    padding: var(--space-navigation-item-block) var(--space-navigation-item-inline);
    isolation: isolate;
    transition: var(--transition-state);
}

.nav-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-inverse-border-soft);
    background: rgba(148, 163, 184, 0.12);
    font-size: 0;
    font-weight: var(--font-weight-emphasis);
    letter-spacing: -0.02em;
    overflow: hidden;
}

.nav-link-label,
.nav-group-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-label {
    flex: 1 1 auto;
    text-align: left;
}

.nav-active-indicator {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 50%;
    width: 4px;
    height: 56%;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--color-primary), #fb7185);
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.48);
    opacity: 0;
    transform: translateY(-50%) scaleY(0.72);
    transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.nav a:hover,
.nav a.active,
.nav-group-toggle:hover,
.nav-group-toggle.active {
    background: var(--color-inverse-surface-hover);
    color: var(--color-inverse-text-strong);
    box-shadow: inset 0 0 0 1px var(--color-inverse-border-soft);
}

.nav a.active,
.nav a[aria-current="page"] {
    background: var(--color-navigation-active-surface);
    border-left-color: var(--color-primary);
    color: var(--color-inverse-text-strong);
    font-weight: var(--font-weight-strong);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 30px rgba(2, 6, 23, 0.2);
}

.nav a.active .nav-active-indicator,
.nav a[aria-current="page"] .nav-active-indicator,
.nav-group[data-nav-active-child="true"] > .nav-group-toggle .nav-active-indicator {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.nav-group {
    position: relative;
    display: grid;
    gap: var(--space-navigation-gap);
}

.nav-group-caret {
    margin-left: auto;
    opacity: 0.82;
}

.nav-group.open .nav-group-toggle {
    background: var(--color-inverse-surface-active);
    color: var(--color-inverse-text-strong);
}

.nav-group.open .nav-group-toggle.active,
.nav-group[data-nav-active-child="true"] > .nav-group-toggle {
    background: var(--color-inverse-surface-accent);
    border-left-color: var(--color-primary);
    color: var(--color-inverse-text-strong);
}

.nav-group-links {
    border-left-color: var(--color-inverse-border-strong);
    gap: var(--space-navigation-gap);
}

.nav-group-links a.active,
.nav-group-links a[aria-current="page"] {
    background:
        linear-gradient(90deg, rgba(225, 29, 72, 0.24), rgba(30, 41, 59, 0.78));
}

.sidebar-footer.ui-stack-xs {
    display: grid;
    gap: var(--space-stack-sm);
    padding: var(--space-section-gap) var(--space-stack-sm) var(--space-stack-sm);
    border-top: 1px solid var(--color-inverse-border);
}

.session-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-stack-sm);
    min-width: 0;
    padding: var(--space-stack-sm);
    border: 1px solid var(--color-inverse-border-soft);
    border-radius: var(--radius-control);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.32)),
        rgba(15, 23, 42, 0.3);
    overflow: hidden;
    isolation: isolate;
}

.session-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), #fb7185);
    opacity: 0.92;
}

.session-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.42), rgba(79, 70, 229, 0.46));
    font-weight: var(--font-weight-strong);
    letter-spacing: 0.02em;
}

.session-copy,
.profile-action-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.session-user,
.profile-action-value {
    color: var(--color-inverse-text-strong);
    font-weight: var(--font-weight-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-role,
.session-caption,
.profile-action-label {
    color: var(--color-inverse-text-muted);
    font-size: var(--font-ui-caption);
}

.session-presence {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-inverse-text-muted);
    font-size: 11px;
}

.session-presence-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.session-actions {
    display: grid;
    gap: var(--space-stack-xs);
}

.session-profile-summary,
.logout-button {
    display: flex;
    align-items: center;
    gap: var(--space-stack-sm);
    width: 100%;
    min-width: 0;
    padding: 9px var(--space-stack-sm);
    border: 1px solid var(--color-inverse-border-soft);
    border-radius: var(--radius-control);
    background: rgba(15, 23, 42, 0.18);
    color: var(--color-inverse-text);
    box-shadow: none;
}

.profile-action-icon,
.logout-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--color-inverse-border-soft);
    font-size: 10px;
    font-weight: var(--font-weight-emphasis);
}

.logout-button {
    margin-top: 0;
    justify-content: flex-start;
    font-size: var(--font-ui-body);
    font-weight: var(--font-weight-strong);
}

.logout-button:hover,
.session-profile-summary:hover {
    background: var(--color-inverse-surface-hover);
    color: var(--color-inverse-text-strong);
    transform: none;
}

.app-shell[data-sidebar-state="compact"] .brand-subtitle,
.app-shell[data-sidebar-state="iconic"] .brand-subtitle {
    display: none;
}

.app-shell[data-sidebar-state="compact"] .brand-image-sidebar {
    width: 132px;
}

.app-shell[data-sidebar-state="compact"] .session-caption,
.app-shell[data-sidebar-state="compact"] .session-presence-label,
.app-shell[data-sidebar-state="compact"] .profile-action-label {
    display: none;
}

.app-shell[data-sidebar-state="iconic"] .sidebar.ui-inverse-surface {
    padding-inline: var(--space-stack-md);
}

.app-shell[data-sidebar-state="iconic"] .sidebar-top {
    padding-inline: 0;
}

.app-shell[data-sidebar-state="iconic"] .brand-wrap.ui-stack-xs {
    align-items: center;
}

.app-shell[data-sidebar-state="iconic"] .brand-image-sidebar {
    width: 52px;
    max-width: 100%;
    object-fit: contain;
}

.app-shell[data-sidebar-state="iconic"] .sidebar-state-controls {
    grid-template-columns: minmax(0, 1fr);
}

.app-shell[data-sidebar-state="iconic"] .sidebar-state-label,
.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link .nav-link-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle .nav-group-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle .nav-group-caret,
.app-shell[data-sidebar-state="iconic"] .session-copy,
.app-shell[data-sidebar-state="iconic"] .session-presence,
.app-shell[data-sidebar-state="iconic"] .session-profile-summary,
.app-shell[data-sidebar-state="iconic"] .logout-label {
    display: none;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary,
.app-shell[data-sidebar-state="iconic"] .sidebar-footer.ui-stack-xs,
.app-shell[data-sidebar-state="iconic"] .session-actions {
    justify-items: center;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle,
.app-shell[data-sidebar-state="iconic"] .logout-button {
    justify-content: center;
    width: var(--size-touch-target);
    padding-inline: 0;
}

.app-shell[data-sidebar-state="iconic"] .session-card {
    justify-content: center;
    padding: var(--space-stack-xs);
}

.app-shell[data-sidebar-state="iconic"] .session-avatar {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links,
.app-shell[data-sidebar-state="iconic"] .nav-group-links {
    position: fixed;
    left: var(--nav-flyout-left, calc(var(--sidebar-current-width) + var(--space-stack-sm)));
    top: var(--nav-flyout-top, var(--space-panel-gap));
    z-index: var(--layer-dropdown);
    width: var(--nav-flyout-width, 280px);
    min-width: min(240px, calc(100vw - (2 * var(--space-panel-gap))));
    max-width: min(320px, calc(100vw - (2 * var(--space-panel-gap))));
    max-height: var(--nav-flyout-max-height, min(70vh, 520px));
    overflow-y: auto;
    padding: var(--space-stack-sm);
    border: 1px solid var(--color-inverse-border);
    border-radius: var(--radius-surface);
    background: var(--color-inverse-surface);
    box-shadow: var(--shadow-navigation-panel);
    scrollbar-gutter: stable;
}

.app-shell[data-sidebar-state="compact"] .nav-group.flyout-open .nav-group-links,
.app-shell[data-sidebar-state="iconic"] .nav-group.flyout-open .nav-group-links {
    display: grid;
}

.app-shell[data-sidebar-state="iconic"] .nav-group-links .nav-link-label {
    display: inline;
}

@media (min-width: 1280px) and (max-width: 1360px) {
    .app-shell.ui-app-frame {
        --sidebar-current-width: 280px;
    }

    .app-shell[data-sidebar-state="compact"] {
        --sidebar-current-width: 216px;
    }

    .app-shell[data-sidebar-state="iconic"] {
        --sidebar-current-width: 88px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .app-shell.ui-app-frame {
        --sidebar-current-width: var(--size-sidebar-compact-width);
    }

    .app-shell[data-sidebar-state="expanded"] {
        --sidebar-current-width: 260px;
    }

    .app-shell[data-sidebar-state="iconic"] {
        --sidebar-current-width: var(--size-sidebar-iconic-width);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .app-shell.ui-app-frame,
    .app-shell[data-sidebar-state="expanded"],
    .app-shell[data-sidebar-state="compact"],
    .app-shell[data-sidebar-state="iconic"] {
        grid-template-columns: var(--sidebar-current-width) minmax(0, 1fr);
        --sidebar-current-width: var(--size-sidebar-iconic-width);
    }

    .sidebar.ui-inverse-surface,
    .app-shell[data-sidebar-state] .sidebar.ui-inverse-surface {
        position: sticky;
        top: 0;
        z-index: auto;
        width: var(--size-sidebar-iconic-width);
        height: 100vh;
        height: 100dvh;
        transform: none;
        padding-inline: var(--space-stack-md);
        box-shadow: none;
    }

    .sidebar-overlay {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
    }

    .app-shell[data-sidebar-state] .brand-wrap.ui-stack-xs,
    .app-shell[data-sidebar-state] .nav-primary,
    .app-shell[data-sidebar-state] .sidebar-footer.ui-stack-xs,
    .app-shell[data-sidebar-state] .session-actions {
        justify-items: center;
    }

    .app-shell[data-sidebar-state] .brand-image-sidebar {
        width: 52px;
        max-width: 100%;
        object-fit: contain;
    }

    .app-shell[data-sidebar-state] .brand-subtitle,
    .app-shell[data-sidebar-state] .sidebar-state-label,
    .app-shell[data-sidebar-state] .nav-primary > .nav-link .nav-link-label,
    .app-shell[data-sidebar-state] .nav-group-toggle .nav-group-label,
    .app-shell[data-sidebar-state] .nav-group-toggle .nav-group-caret,
    .app-shell[data-sidebar-state] .session-copy,
    .app-shell[data-sidebar-state] .session-presence,
    .app-shell[data-sidebar-state] .session-profile-summary,
    .app-shell[data-sidebar-state] .logout-label {
        display: none;
    }

    .app-shell[data-sidebar-state] .nav-primary > .nav-link,
    .app-shell[data-sidebar-state] .nav-group-toggle,
    .app-shell[data-sidebar-state] .logout-button {
        justify-content: center;
        width: var(--size-touch-target);
        min-height: var(--size-touch-target);
        padding-inline: 0;
    }

    .app-shell[data-sidebar-state] .session-card {
        justify-content: center;
        padding: var(--space-stack-xs);
    }
}

@media (max-width: 767px) {
    .app-shell.ui-app-frame {
        grid-template-columns: minmax(0, 1fr);
        --sidebar-current-width: var(--size-sidebar-width);
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar.ui-inverse-surface,
    .app-shell[data-sidebar-state] .sidebar.ui-inverse-surface {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: var(--layer-modal);
        width: var(--size-sidebar-mobile-width);
        height: 100dvh;
        max-height: 100dvh;
        padding: calc(var(--space-section-gap) + env(safe-area-inset-top)) var(--space-section-gap) var(--space-stack-md);
        transform: translateX(-100%);
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .app-shell[data-sidebar-state] .brand-subtitle {
        display: block;
    }

    .app-shell[data-sidebar-state] .brand-image-sidebar {
        width: 170px;
    }

    .app-shell[data-sidebar-state] .sidebar-state-controls {
        display: none;
    }

    .app-shell[data-sidebar-state] .nav-link-label,
    .app-shell[data-sidebar-state] .nav-group-label,
    .app-shell[data-sidebar-state] .nav-group-caret,
    .app-shell[data-sidebar-state] .logout-label,
    .app-shell[data-sidebar-state] .session-copy {
        display: inline;
    }

    .app-shell[data-sidebar-state] .session-card,
    .app-shell[data-sidebar-state] .nav-primary > .nav-link,
    .app-shell[data-sidebar-state] .nav-group-toggle,
    .app-shell[data-sidebar-state] .logout-button {
        width: 100%;
        justify-content: flex-start;
        padding-inline: var(--space-navigation-item-inline);
    }

    .app-shell[data-sidebar-state] .nav-group-links {
        position: static;
        min-width: 0;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding-left: var(--space-stack-sm);
        padding-right: 2px;
        border: none;
        border-left: 1px dashed var(--color-inverse-border-strong);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .sidebar.ui-inverse-surface.open {
        transform: translateX(0);
        box-shadow: var(--shadow-navigation-panel);
    }

    .sidebar-close-btn,
    .mobile-menu-btn {
        display: inline-flex;
    }

    .topbar.ui-sticky-surface {
        align-items: flex-start;
        padding: calc(var(--space-stack-md) + env(safe-area-inset-top)) var(--space-layout-content-mobile) var(--space-stack-md);
    }

    .content.ui-content-region {
        padding: var(--space-layout-content-mobile);
        padding-bottom: var(--space-layout-content-end);
    }
}

@media (max-width: 640px) {
    .topbar.ui-sticky-surface,
    .content.ui-content-region {
        padding-inline: var(--space-layout-content-narrow);
    }
}

/* SSR sidebar parity: keeps compat pages aligned with the SPA shell without changing routes. */
:root {
    --size-sidebar-width: 288px;
    --size-sidebar-compact-width: 104px;
    --size-sidebar-iconic-width: 72px;
    --size-sidebar-mobile-width: min(92vw, 360px);
    --space-navigation-gap: 5px;
    --space-navigation-item-block: 7px;
    --space-navigation-item-inline: 10px;
    --sidebar-nav-radius: 12px;
    --sidebar-nav-text: rgba(203, 213, 225, 0.82);
    --sidebar-nav-muted: rgba(148, 163, 184, 0.72);
    --sidebar-nav-strong: rgba(248, 250, 252, 0.96);
    --sidebar-nav-hover: rgba(148, 163, 184, 0.08);
    --sidebar-nav-active: linear-gradient(90deg, rgba(225, 29, 72, 0.14), rgba(15, 23, 42, 0.36));
    --sidebar-nav-focus: rgba(244, 181, 106, 0.48);
    --sidebar-nav-hairline: rgba(148, 163, 184, 0.1);
}

.sidebar.ui-inverse-surface {
    --sidebar-expanded-inline-padding: 18px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    position: sticky;
    top: 0;
    width: var(--sidebar-current-width);
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 18px var(--sidebar-expanded-inline-padding) 12px;
    background:
        radial-gradient(circle at 34% -8%, rgba(59, 130, 246, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(11, 20, 36, 0.98), rgba(7, 15, 27, 0.99));
    border-right: 1px solid var(--color-inverse-border);
    box-shadow: none;
    overflow: hidden;
    touch-action: pan-y;
}

.sidebar-top {
    position: relative;
    padding: 0 2px 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.brand-wrap.ui-stack-xs {
    gap: 4px;
}

.brand-image-sidebar {
    width: 128px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.96;
}

.brand-subtitle {
    max-width: 178px;
    color: rgba(203, 213, 225, 0.56);
    font-size: 12px;
    line-height: 1.32;
}

.sidebar-state-controls {
    display: none !important;
}

.sidebar-mode-toggle {
    position: absolute;
    top: 0;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.58);
    color: rgba(248, 250, 252, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 6px 16px rgba(2, 6, 23, 0.12);
    transition: var(--transition-state);
}

.sidebar-mode-toggle::before,
.sidebar-mode-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    display: block;
    pointer-events: none;
}

.sidebar-mode-toggle::before {
    left: 50%;
    width: 8px;
    height: 8px;
    border-color: currentColor;
    border-style: solid;
    border-width: 0 0 2px 2px;
    transform: translate(-30%, -50%) rotate(45deg);
}

.sidebar-mode-toggle::after {
    left: 9px;
    width: 2px;
    height: 15px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.62;
    transform: translateY(-50%);
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"]::before {
    transform: translate(-70%, -50%) rotate(-135deg);
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"]::after {
    right: 9px;
    left: auto;
}

.sidebar-mode-toggle:hover,
.sidebar-mode-toggle:focus-visible {
    border-color: var(--color-inverse-border-strong);
    background: rgba(148, 163, 184, 0.1);
    color: var(--color-inverse-text-strong);
}

.sidebar-mode-toggle:focus-visible,
.nav a:focus-visible,
.nav-group-toggle:focus-visible,
.logout-button:focus-visible {
    outline: 2px solid var(--sidebar-nav-focus);
    outline-offset: 2px;
}

.sidebar-mode-toggle-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    color: currentColor;
    opacity: 0;
    pointer-events: none;
    stroke: currentColor;
    transition: transform var(--motion-fast);
}

.sidebar-mode-toggle-icon * {
    vector-effect: non-scaling-stroke;
}

.sidebar-mode-icon-collapse,
.sidebar-mode-icon-expand {
    opacity: 1;
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity var(--motion-fast), visibility var(--motion-fast);
    visibility: visible;
}

.sidebar-mode-icon-expand {
    opacity: 0;
    visibility: hidden;
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"] .sidebar-mode-icon-collapse {
    opacity: 0;
    visibility: hidden;
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"] .sidebar-mode-icon-expand {
    opacity: 1;
    visibility: visible;
}

.nav.ui-navigation-list {
    gap: var(--space-navigation-gap);
    padding: 13px 2px 12px 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

.nav.ui-navigation-list::-webkit-scrollbar,
.nav-group-links::-webkit-scrollbar {
    width: 6px;
}

.nav.ui-navigation-list::-webkit-scrollbar-track,
.nav-group-links::-webkit-scrollbar-track {
    background: transparent;
}

.nav.ui-navigation-list::-webkit-scrollbar-thumb,
.nav-group-links::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

.nav-primary {
    display: grid;
    gap: var(--space-navigation-gap);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sidebar-nav-hairline);
}

.nav a,
.nav-group-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    padding: var(--space-navigation-item-block) var(--space-navigation-item-inline);
    border-left: 3px solid transparent;
    border-radius: var(--sidebar-nav-radius);
    color: var(--sidebar-nav-text);
    box-shadow: none;
    isolation: isolate;
    line-height: 1.25;
    transition: var(--transition-state);
    -webkit-tap-highlight-color: transparent;
}

.nav-primary > .nav-link {
    min-height: 46px;
    padding-inline: 11px;
    background: rgba(148, 163, 184, 0.045);
    box-shadow: inset 0 0 0 1px var(--sidebar-nav-hairline);
    font-size: 14px;
}

.nav-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.055);
    color: currentColor;
    box-shadow: none;
    font-size: 0;
    font-weight: var(--font-weight-strong);
    letter-spacing: -0.04em;
    line-height: 1;
    opacity: 0.86;
    overflow: hidden;
}

svg.nav-icon {
    display: block;
}

span.nav-icon::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 1.6px solid currentColor;
    border-radius: 3px;
    opacity: 0.72;
}

.nav-link-label,
.nav-group-label {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-active-indicator {
    width: 3px;
    height: 52%;
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.22);
}

.nav a:hover,
.nav a.active {
    background: var(--sidebar-nav-hover);
    color: var(--sidebar-nav-strong);
    box-shadow: inset 0 0 0 1px var(--sidebar-nav-hairline);
}

.nav a.active,
.nav a[aria-current="page"] {
    background: var(--sidebar-nav-active);
    border-left-color: var(--color-primary);
    color: var(--sidebar-nav-strong);
    font-weight: var(--font-weight-strong);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 5px 12px rgba(2, 6, 23, 0.1);
}

.nav-group {
    position: relative;
    display: block;
}

.nav-group + .nav-group {
    margin-top: 2px;
}

.nav-group-toggle {
    min-height: 36px;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sidebar-nav-muted);
    font-size: 11px;
    font-weight: var(--font-weight-strong);
    letter-spacing: 0.075em;
    text-align: left;
    text-transform: uppercase;
}

.nav-group-toggle .nav-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 0;
    opacity: 0.72;
}

.nav-group-toggle .nav-active-indicator {
    display: none;
}

.nav-group-caret {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.7;
}

.nav-group-toggle:hover,
.nav-group-toggle.active,
.nav-group.open .nav-group-toggle,
.nav-group.open .nav-group-toggle.active,
.nav-group[data-nav-active-child="true"] > .nav-group-toggle {
    background: transparent;
    border-left-color: transparent;
    color: var(--sidebar-nav-strong);
    box-shadow: none;
}

.nav a.active .nav-active-indicator,
.nav a[aria-current="page"] .nav-active-indicator,
.nav-group[data-nav-active-child="true"] > .nav-group-toggle .nav-active-indicator {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.nav-group-links {
    gap: 1px;
    margin: 0 0 7px;
    padding-left: 0;
    padding-right: 0;
    border-left-color: transparent;
}

.nav-group-links a {
    min-height: 38px;
    padding-block: 6px;
    font-size: 12.75px;
}

.nav-group-links a.active,
.nav-group-links a[aria-current="page"] {
    background: var(--sidebar-nav-active);
}

.sidebar-footer.ui-stack-xs {
    display: grid;
    gap: 6px;
    padding: 8px 2px 0;
    border-top-color: var(--color-inverse-border);
}

.session-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 5px 8px;
    border: 1px solid var(--color-inverse-border-soft);
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.045);
    overflow: hidden;
    isolation: isolate;
}

.session-card::before {
    width: 2px;
    opacity: 0.58;
}

.session-avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.38), rgba(79, 70, 229, 0.4));
    font-size: 12px;
    font-weight: var(--font-weight-strong);
}

.session-copy,
.profile-action-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.session-caption,
.session-role {
    color: var(--color-inverse-text-muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-caption,
.session-presence,
.session-profile-summary {
    display: none;
}

.session-user {
    color: var(--color-inverse-text-strong);
    font-size: 13px;
    font-weight: var(--font-weight-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-actions {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.logout-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--color-inverse-text);
    font-size: 12.75px;
    font-weight: var(--font-weight-strong);
    transition: var(--transition-state);
}

.logout-button:hover {
    background: var(--color-inverse-surface-hover);
    color: var(--color-inverse-text-strong);
}

.logout-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.app-shell[data-sidebar-state="compact"] .sidebar.ui-inverse-surface,
.app-shell[data-sidebar-state="iconic"] .sidebar.ui-inverse-surface {
    overflow: hidden;
}

.app-shell[data-sidebar-state="compact"] .nav.ui-navigation-list,
.app-shell[data-sidebar-state="iconic"] .nav.ui-navigation-list {
    overflow-x: hidden;
    overflow-y: auto;
}

.app-shell[data-sidebar-state="compact"] .sidebar.ui-inverse-surface {
    --sidebar-expanded-inline-padding: 14px;
    padding-inline: 14px;
}

.app-shell[data-sidebar-state="compact"] .brand-image-sidebar {
    width: 48px;
}

.app-shell[data-sidebar-state="compact"] .sidebar-top,
.app-shell[data-sidebar-state="iconic"] .sidebar-top {
    padding-inline: 0;
    text-align: center;
}

.app-shell[data-sidebar-state="compact"] .sidebar-mode-toggle,
.app-shell[data-sidebar-state="iconic"] .sidebar-mode-toggle {
    position: static;
    justify-self: center;
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    margin-top: 7px;
}

.app-shell[data-sidebar-state="compact"] .brand-wrap.ui-stack-xs,
.app-shell[data-sidebar-state="compact"] .nav-primary,
.app-shell[data-sidebar-state="compact"] .sidebar-footer.ui-stack-xs,
.app-shell[data-sidebar-state="compact"] .session-actions,
.app-shell[data-sidebar-state="iconic"] .brand-wrap.ui-stack-xs,
.app-shell[data-sidebar-state="iconic"] .nav-primary,
.app-shell[data-sidebar-state="iconic"] .sidebar-footer.ui-stack-xs,
.app-shell[data-sidebar-state="iconic"] .session-actions {
    justify-items: center;
}

.app-shell[data-sidebar-state="compact"] .brand-subtitle,
.app-shell[data-sidebar-state="iconic"] .brand-subtitle,
.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link .nav-link-label,
.app-shell[data-sidebar-state="compact"] .nav-group-toggle .nav-group-label,
.app-shell[data-sidebar-state="compact"] .nav-group-toggle .nav-group-caret,
.app-shell[data-sidebar-state="compact"] .session-copy,
.app-shell[data-sidebar-state="compact"] .logout-label,
.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link .nav-link-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle .nav-group-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle .nav-group-caret,
.app-shell[data-sidebar-state="iconic"] .session-copy,
.app-shell[data-sidebar-state="iconic"] .logout-label {
    display: none;
}

.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="compact"] .nav-group-toggle,
.app-shell[data-sidebar-state="compact"] .logout-button {
    justify-content: center;
    width: 46px;
    min-height: 44px;
    padding-inline: 0;
}

.app-shell[data-sidebar-state="iconic"] .sidebar.ui-inverse-surface {
    --sidebar-expanded-inline-padding: 10px;
    padding-inline: 10px;
}

.app-shell[data-sidebar-state="iconic"] .brand-image-sidebar {
    width: 36px;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle,
.app-shell[data-sidebar-state="iconic"] .logout-button {
    justify-content: center;
    width: 38px;
    min-height: 38px;
    padding-inline: 0;
    border-left-color: transparent;
    border-radius: 11px;
}

.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link.active,
.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link[aria-current="page"],
.app-shell[data-sidebar-state="compact"] .nav-group[data-nav-active-child="true"] > .nav-group-toggle,
.app-shell[data-sidebar-state="compact"] .nav-group.flyout-open > .nav-group-toggle,
.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link.active,
.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link[aria-current="page"],
.app-shell[data-sidebar-state="iconic"] .nav-group[data-nav-active-child="true"] > .nav-group-toggle,
.app-shell[data-sidebar-state="iconic"] .nav-group.flyout-open > .nav-group-toggle {
    border-left-color: var(--color-primary);
    background: var(--sidebar-nav-active);
    color: var(--sidebar-nav-strong);
}

.app-shell[data-sidebar-state="compact"] .session-card {
    justify-content: center;
    width: 46px;
    padding: 6px;
}

.app-shell[data-sidebar-state="iconic"] .session-card {
    justify-content: center;
    width: 38px;
    min-height: 38px;
    padding: 4px;
    border-color: transparent;
    background: transparent;
}

.app-shell[data-sidebar-state="compact"] .session-avatar,
.app-shell[data-sidebar-state="iconic"] .session-avatar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links,
.app-shell[data-sidebar-state="iconic"] .nav-group-links {
    position: fixed;
    left: var(--nav-flyout-left, calc(var(--sidebar-current-width) + var(--space-stack-sm)));
    top: var(--nav-flyout-top, var(--space-panel-gap));
    z-index: var(--layer-dropdown);
    width: var(--nav-flyout-width, 286px);
    min-width: min(240px, calc(100vw - (2 * var(--space-panel-gap))));
    max-width: min(320px, calc(100vw - (2 * var(--space-panel-gap))));
    max-height: var(--nav-flyout-max-height, min(70vh, 520px));
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--color-inverse-border);
    border-radius: var(--radius-surface);
    background:
        radial-gradient(circle at 0 0, rgba(225, 29, 72, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(11, 20, 36, 0.98), rgba(7, 15, 27, 0.99));
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.3);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

.app-shell[data-sidebar-state="compact"] .nav-group.flyout-open .nav-group-links,
.app-shell[data-sidebar-state="iconic"] .nav-group.flyout-open .nav-group-links {
    display: grid;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links .nav-link-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-links .nav-link-label {
    display: inline;
}

@media (prefers-reduced-motion: reduce) {
    .app-shell.ui-app-frame,
    .sidebar.ui-inverse-surface,
    .sidebar-overlay,
    .nav-active-indicator,
    .sidebar-mode-toggle,
    .sidebar-mode-toggle-icon {
        transition: none;
    }
}

@media (min-width: 1280px) and (max-width: 1360px) {
    .app-shell.ui-app-frame {
        --sidebar-current-width: 280px;
    }

    .app-shell[data-sidebar-state="compact"] {
        --sidebar-current-width: var(--size-sidebar-compact-width);
    }

    .app-shell[data-sidebar-state="iconic"] {
        --sidebar-current-width: var(--size-sidebar-iconic-width);
    }

    .sidebar.ui-inverse-surface {
        padding-inline: 12px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .app-shell.ui-app-frame {
        --sidebar-current-width: var(--size-sidebar-compact-width);
    }

    .app-shell[data-sidebar-state="expanded"] {
        --sidebar-current-width: 260px;
    }

    .app-shell[data-sidebar-state="iconic"] {
        --sidebar-current-width: var(--size-sidebar-iconic-width);
    }

    .content.ui-content-region {
        padding-inline: var(--space-section-gap);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .app-shell.ui-app-frame,
    .app-shell[data-sidebar-state="expanded"],
    .app-shell[data-sidebar-state="compact"],
    .app-shell[data-sidebar-state="iconic"] {
        --sidebar-current-width: var(--size-sidebar-iconic-width);
    }

    .sidebar.ui-inverse-surface,
    .app-shell[data-sidebar-state] .sidebar.ui-inverse-surface {
        position: sticky;
        top: 0;
        z-index: auto;
        width: var(--size-sidebar-iconic-width);
        height: 100vh;
        height: 100dvh;
        padding-inline: 12px;
        transform: none;
        box-shadow: none;
    }

    .app-shell[data-sidebar-state] .brand-image-sidebar {
        width: 36px;
    }

    .app-shell[data-sidebar-state] .brand-subtitle,
    .app-shell[data-sidebar-state] .nav-primary > .nav-link .nav-link-label,
    .app-shell[data-sidebar-state] .nav-group-toggle .nav-group-label,
    .app-shell[data-sidebar-state] .nav-group-toggle .nav-group-caret,
    .app-shell[data-sidebar-state] .session-copy,
    .app-shell[data-sidebar-state] .logout-label {
        display: none;
    }

    .app-shell[data-sidebar-state] .nav-primary > .nav-link,
    .app-shell[data-sidebar-state] .nav-group-toggle,
    .app-shell[data-sidebar-state] .logout-button {
        justify-content: center;
        width: 44px;
        min-height: 44px;
        padding-inline: 0;
    }
}

@media (max-width: 767px) {
    body.sidebar-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.sidebar-open .main-column {
        pointer-events: none;
    }

    .app-shell.ui-app-frame {
        grid-template-columns: minmax(0, 1fr);
        --sidebar-current-width: var(--size-sidebar-width);
    }

    .sidebar.ui-inverse-surface,
    .app-shell[data-sidebar-state] .sidebar.ui-inverse-surface {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: var(--layer-modal);
        width: var(--size-sidebar-mobile-width);
        height: 100dvh;
        max-height: 100dvh;
        padding: calc(16px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
        transform: translateX(-100%);
        overflow: hidden;
        overscroll-behavior: contain;
        box-shadow: none;
    }

    .app-shell[data-sidebar-state] .nav.ui-navigation-list {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .app-shell[data-sidebar-state] .brand-subtitle {
        display: block;
    }

    .app-shell[data-sidebar-state] .brand-image-sidebar {
        width: 136px;
    }

    .app-shell[data-sidebar-state] .sidebar-mode-toggle {
        display: none;
    }

    .app-shell[data-sidebar-state] .nav-link-label,
    .app-shell[data-sidebar-state] .nav-group-label,
    .app-shell[data-sidebar-state] .nav-group-caret,
    .app-shell[data-sidebar-state] .logout-label {
        display: inline;
    }

    .app-shell[data-sidebar-state] .session-copy {
        display: grid;
    }

    .app-shell[data-sidebar-state] .session-card,
    .app-shell[data-sidebar-state] .nav-primary > .nav-link,
    .app-shell[data-sidebar-state] .nav-group-toggle,
    .app-shell[data-sidebar-state] .logout-button {
        width: 100%;
        justify-content: flex-start;
        padding-inline: var(--space-navigation-item-inline);
    }

    .app-shell[data-sidebar-state] .nav-group-links {
        position: static;
        min-width: 0;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding-left: var(--space-stack-sm);
        padding-right: 2px;
        border: none;
        border-left: 1px dashed var(--color-inverse-border-strong);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* Frontend shared/ui foundation. */
/* Shared UI foundation: semantic tokens layered over the legacy/backend base. */
:root {
  --color-text: var(--color-foreground);
  --color-text-muted: var(--color-foreground-muted);
  --color-text-subtle: var(--color-foreground-subtle);
  --color-layout-surface-translucent: rgba(255, 255, 255, 0.9);
  --color-layout-backdrop: rgba(15, 23, 42, 0.6);
  --color-inverse-surface: var(--sidebar);
  --color-inverse-surface-hover: var(--sidebar-alt);
  --color-inverse-surface-active: rgba(30, 41, 59, 0.36);
  --color-inverse-surface-accent: rgba(225, 29, 72, 0.14);
  --color-inverse-text: #d6deeb;
  --color-inverse-text-strong: #ffffff;
  --color-inverse-text-muted: rgba(255, 255, 255, 0.66);
  --color-inverse-text-subtle: rgba(255, 255, 255, 0.48);
  --color-inverse-border: rgba(255, 255, 255, 0.08);
  --color-inverse-border-soft: rgba(255, 255, 255, 0.04);
  --color-inverse-border-strong: rgba(148, 163, 184, 0.28);
  --color-navigation-active-surface: linear-gradient(90deg, rgba(225, 29, 72, 0.22), rgba(30, 41, 59, 0.72));
  --color-danger: var(--color-error);
  --color-danger-strong: var(--color-error-strong);
  --color-danger-soft: var(--color-error-soft);
  --color-danger-border: var(--color-error-border);

  --color-state-default-surface: var(--color-surface);
  --color-state-hover-surface: var(--color-surface-subtle);
  --color-state-focus-ring: rgba(225, 29, 72, 0.14);
  --color-state-disabled-text: var(--color-disabled);
  --color-state-disabled-surface: var(--color-disabled-surface);
  --color-state-error-surface: var(--color-error-soft);
  --color-state-error-text: var(--color-error-strong);
  --color-state-error-border: var(--color-error-border);
  --color-state-success-surface: var(--color-success-soft);
  --color-state-success-text: var(--color-success-strong);
  --color-state-success-border: var(--color-success-border);
  --color-state-warning-surface: var(--color-warning-soft);
  --color-state-warning-text: var(--color-warning-strong);
  --color-state-warning-border: var(--color-warning-border);
  --color-state-info-surface: var(--color-info-soft);
  --color-state-info-text: #1e40af;
  --color-state-info-border: var(--color-info-border);

  --font-ui-title: var(--font-size-section);
  --font-ui-body: var(--font-size-body);
  --font-ui-meta: var(--font-size-meta);
  --font-ui-caption: var(--font-size-caption);
  --letter-spacing-ui-label: 0.04em;

  --space-stack-xs: var(--space-1);
  --space-stack-sm: var(--space-2);
  --space-stack-md: var(--space-3);
  --space-stack-lg: var(--space-4);
  --space-section-gap: var(--space-4);
  --space-panel-gap: var(--space-5);
  --space-layout-content: var(--space-6);
  --space-layout-content-fluid: clamp(var(--space-4), 1.6vw, var(--space-6));
  --space-layout-content-end: var(--space-8);
  --space-layout-content-mobile: var(--space-4);
  --space-layout-content-narrow: var(--space-3);
  --space-navigation-gap: var(--space-1);
  --space-navigation-item-block: 8px;
  --space-navigation-item-inline: var(--space-3);
  --space-navigation-toggle-block: 8px;
  --space-navigation-toggle-inline: var(--space-3);

  --radius-control: var(--radius-sm);
  --radius-surface: var(--radius-lg);
  --radius-overlay: var(--radius-xl);

  --shadow-surface: var(--shadow);
  --shadow-interactive: var(--shadow-soft);
  --shadow-overlay: 0 24px 60px rgba(15, 23, 42, 0.16);
  --shadow-navigation-panel: 4px 0 24px rgba(15, 23, 42, 0.4);

  --size-sidebar-width: 288px;
  --size-sidebar-compact-width: 104px;
  --size-sidebar-iconic-width: 72px;
  --size-sidebar-mobile-width: min(92vw, 360px);
  --size-content-wide: 1680px;
  --size-topbar-min-height: 76px;
  --size-action-min-height: 32px;
  --size-touch-target: 44px;
  --size-table-scroll-min: 960px;
  --size-table-scroll-dense-min: 1180px;
  --size-table-card-label: minmax(104px, 34%);
  --space-table-card-gap: var(--space-stack-sm);
  --size-form-field-min: 220px;
  --size-form-field-compact-min: 180px;
  --size-form-upload-min: 240px;
  --size-form-long-field-min-height: 112px;
  --space-form-field-gap: var(--space-stack-md);
  --space-form-section-gap: var(--space-panel-gap);
  --size-filter-field-min: 180px;
  --size-filter-primary-min: 220px;
  --size-filter-drawer-max-height: min(68dvh, 560px);
  --space-filter-gap: var(--space-stack-md);
  --size-card-grid-min: 240px;
  --size-card-grid-compact-min: 180px;
  --size-card-grid-wide-min: 280px;
  --size-card-min-height: 96px;
  --size-card-compact-min-height: 78px;
  --space-card-grid-gap: var(--space-section-gap);
  --space-card-inner-gap: var(--space-stack-sm);
  --size-overlay-modal-max: min(720px, calc(100vw - (2 * var(--space-layout-content-mobile))));
  --size-overlay-modal-wide-max: min(960px, calc(100vw - (2 * var(--space-layout-content-mobile))));
  --size-overlay-drawer-width: min(92vw, 420px);
  --size-overlay-side-panel-width: min(94vw, 520px);
  --size-overlay-max-height: min(88dvh, 760px);
  --space-overlay-gutter: clamp(var(--space-stack-sm), 2vw, var(--space-panel-gap));
  --space-overlay-panel-padding: var(--space-panel-gap);
  --space-overlay-actions-gap: var(--space-stack-sm);
  --size-master-detail-master-min: 280px;
  --size-master-detail-master-max: 420px;
  --size-master-detail-detail-min: 320px;
  --size-master-detail-detail-max: 720px;
  --space-master-detail-gap: var(--space-panel-gap);
  --size-state-panel-min-height: 132px;
  --size-state-compact-min-height: 64px;
  --size-state-content-max: 720px;
  --space-state-gap: var(--space-stack-sm);
  --space-state-padding: var(--space-panel-gap);
  --space-state-actions-gap: var(--space-stack-sm);
  --space-alert-gap: var(--space-stack-xs);
  --space-alert-padding-block: var(--space-stack-md);
  --space-alert-padding-inline: var(--space-stack-lg);

  --layer-base: 0;
  --layer-raised: 1;
  --layer-dropdown: 10;
  --layer-sticky: 20;
  --layer-overlay: 40;
  --layer-modal: 50;
  --layer-toast: 60;

  --state-disabled-opacity: 0.62;
  --transition-state: background var(--motion-base), border-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast);
}

/* Shared UI baseline: composable primitives, not product components. */
.ui-stack {
  display: grid;
  gap: var(--space-stack-md);
}

.ui-stack-xs {
  gap: var(--space-stack-xs);
}

.ui-stack-sm {
  gap: var(--space-stack-sm);
}

.ui-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-stack-sm);
}

.ui-panel-offset {
  margin-top: var(--space-stack-lg);
}

.ui-panel-offset-sm {
  margin-top: var(--space-stack-md);
}

.ui-block-end-sm {
  margin-bottom: var(--space-stack-md);
}

.ui-heading-reset {
  margin: 0;
}

.ui-subtitle-compact {
  margin-top: var(--space-stack-xs);
}

.ui-surface {
  background: var(--color-state-default-surface);
  border: var(--border-default);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-surface);
}

.ui-feedback {
  border: var(--border-default);
  border-radius: var(--radius-control);
  padding: var(--space-stack-md) var(--space-stack-lg);
  color: var(--color-state-info-text);
  background: var(--color-state-info-surface);
  border-color: var(--color-state-info-border);
  transition: var(--transition-state);
}

.ui-feedback[data-kind="error"] {
  color: var(--color-state-error-text);
  background: var(--color-state-error-surface);
  border-color: var(--color-state-error-border);
}

.ui-feedback[data-kind="success"] {
  color: var(--color-state-success-text);
  background: var(--color-state-success-surface);
  border-color: var(--color-state-success-border);
}

.ui-feedback[data-kind="warning"] {
  color: var(--color-state-warning-text);
  background: var(--color-state-warning-surface);
  border-color: var(--color-state-warning-border);
}

.ui-alert {
  display: grid;
  gap: var(--space-alert-gap);
  min-width: 0;
  max-width: 100%;
  padding: var(--space-alert-padding-block) var(--space-alert-padding-inline);
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  overflow-wrap: anywhere;
}

.ui-alert[data-kind="loading"],
.ui-alert[data-kind="info"] {
  color: var(--color-state-info-text);
  background: var(--color-state-info-surface);
  border-color: var(--color-state-info-border);
}

.ui-alert[data-kind="error"] {
  color: var(--color-state-error-text);
  background: var(--color-state-error-surface);
  border-color: var(--color-state-error-border);
}

.ui-alert[data-kind="warning"],
.ui-alert[data-kind="no-permission"] {
  color: var(--color-state-warning-text);
  background: var(--color-state-warning-surface);
  border-color: var(--color-state-warning-border);
}

.ui-alert[data-kind="success"] {
  color: var(--color-state-success-text);
  background: var(--color-state-success-surface);
  border-color: var(--color-state-success-border);
}

.ui-state {
  display: grid;
  gap: var(--space-state-gap);
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: var(--size-state-panel-min-height);
  padding: var(--space-state-padding);
  border: var(--border-subtle);
  border-radius: var(--radius-surface);
  background: var(--color-state-hover-surface);
  color: var(--color-text-muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.ui-state[data-state="loading"],
.ui-state[data-state="info"] {
  color: var(--color-state-info-text);
  background: var(--color-state-info-surface);
  border-color: var(--color-state-info-border);
}

.ui-state[data-state="error"] {
  color: var(--color-state-error-text);
  background: var(--color-state-error-surface);
  border-color: var(--color-state-error-border);
}

.ui-state[data-state="no-permission"],
.ui-state[data-state="warning"] {
  color: var(--color-state-warning-text);
  background: var(--color-state-warning-surface);
  border-color: var(--color-state-warning-border);
}

.ui-state[data-state="empty"],
.ui-state[data-state="no-results"] {
  color: var(--color-text-muted);
  background: var(--color-state-hover-surface);
}

.ui-state[data-density="compact"],
.ui-state-inline {
  min-height: var(--size-state-compact-min-height);
  padding: var(--space-stack-md);
}

.ui-state > :where(strong, p, span),
.ui-state-copy {
  max-width: var(--size-state-content-max);
  margin: 0;
}

.ui-state > strong,
.ui-state-title {
  color: var(--color-text);
  font-weight: var(--font-weight-strong);
}

.ui-state-detail {
  color: inherit;
  font-size: var(--font-ui-body);
  line-height: 1.45;
}

.ui-state-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-state-actions-gap);
  min-width: 0;
}

.ui-state-actions > :where(a, button, .button-link) {
  min-height: var(--size-action-min-height);
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 3px var(--space-stack-sm);
  border: var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-state-hover-surface);
  font-size: var(--font-ui-caption);
  font-weight: var(--font-weight-strong);
  letter-spacing: var(--letter-spacing-ui-label);
  text-transform: uppercase;
}

.ui-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-card-grid-min)), 1fr));
  gap: var(--space-card-grid-gap);
  align-items: stretch;
  min-width: 0;
}

.ui-card-grid[data-density="compact"],
.ui-card-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-card-grid-compact-min)), 1fr));
  gap: var(--space-stack-sm);
}

.ui-card-grid[data-density="wide"],
.ui-card-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-card-grid-wide-min)), 1fr));
}

.ui-card-grid[data-equal-height="true"] > *,
.ui-card-equal-height > * {
  height: 100%;
}

.ui-card {
  display: grid;
  gap: var(--space-card-inner-gap);
  align-content: start;
  min-width: 0;
  min-height: var(--size-card-min-height);
}

.ui-card-compact {
  min-height: var(--size-card-compact-min-height);
  gap: var(--space-stack-xs);
}

.ui-card-inset {
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-state-hover-surface);
  box-shadow: none;
}

.ui-card :where(h2, h3, strong, span, p, small),
.ui-card-inset :where(h2, h3, strong, span, p, small) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ui-card-metric {
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.ui-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-stack-sm);
  min-width: 0;
}

.ui-master-detail {
  display: grid;
  grid-template-columns:
    minmax(var(--size-master-detail-master-min), min(36%, var(--size-master-detail-master-max)))
    minmax(var(--size-master-detail-detail-min), 1fr);
  gap: var(--space-master-detail-gap);
  align-items: start;
  min-width: 0;
}

.ui-master-pane,
.ui-detail-pane {
  min-width: 0;
}

.ui-master-pane {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ui-detail-pane {
  scroll-margin-top: calc(var(--size-topbar-min-height) + var(--space-section-gap));
}

.ui-detail-pane[data-detail-sticky="true"] {
  position: sticky;
  top: calc(var(--size-topbar-min-height) + var(--space-section-gap));
  max-height: calc(100dvh - var(--size-topbar-min-height) - (2 * var(--space-section-gap)));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ui-detail-back {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: var(--size-touch-target);
}

.ui-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-stack-sm);
  min-width: 0;
}

.ui-detail-actions > :where(a, button, .button-link) {
  min-height: var(--size-action-min-height);
}

body.ui-overlay-open,
body.ui-scroll-locked {
  overflow: hidden;
}

.ui-overlay-root {
  position: fixed;
  inset: 0;
  z-index: var(--layer-modal);
  display: grid;
  place-items: center;
  min-width: 0;
  padding: var(--space-overlay-gutter);
  overflow: hidden;
}

.ui-overlay-root[hidden],
.ui-overlay-root[data-overlay-state="closed"] {
  display: none;
}

.ui-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--layer-overlay);
  background: var(--color-layout-backdrop);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ui-overlay-panel,
.ui-modal,
.ui-drawer,
.ui-side-panel {
  position: relative;
  z-index: var(--layer-modal);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, var(--size-overlay-modal-max));
  max-height: var(--size-overlay-max-height);
  min-width: 0;
  overflow: hidden;
  border: var(--border-default);
  border-radius: var(--radius-overlay);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-overlay);
}

.ui-modal[data-size="wide"] {
  width: min(100%, var(--size-overlay-modal-wide-max));
}

.ui-drawer,
.ui-side-panel {
  align-self: stretch;
  justify-self: end;
  width: var(--size-overlay-drawer-width);
  max-height: 100dvh;
  height: 100dvh;
  border-radius: var(--radius-overlay) 0 0 var(--radius-overlay);
}

.ui-side-panel {
  width: var(--size-overlay-side-panel-width);
}

.ui-overlay-root[data-placement="left"] :where(.ui-drawer, .ui-side-panel) {
  justify-self: start;
  border-radius: 0 var(--radius-overlay) var(--radius-overlay) 0;
}

.ui-overlay-header,
.ui-overlay-body,
.ui-overlay-actions {
  min-width: 0;
  padding: var(--space-overlay-panel-padding);
}

.ui-overlay-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-stack-md);
  align-items: start;
  border-bottom: var(--border-subtle);
}

.ui-overlay-header :where(h1, h2, h3, p) {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ui-overlay-body {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ui-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-overlay-actions-gap);
  border-top: var(--border-subtle);
  background: var(--color-layout-surface-translucent);
}

.ui-overlay-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--size-touch-target);
  min-height: var(--size-touch-target);
}

.ui-app-frame {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: start;
  min-width: 0;
}

.ui-inverse-surface {
  background: var(--color-inverse-surface);
  color: var(--color-inverse-text);
}

.ui-sticky-surface {
  background: var(--color-layout-surface-translucent);
  border-bottom: var(--border-default);
  z-index: var(--layer-sticky);
  min-width: 0;
}

.ui-content-region {
  width: 100%;
  max-width: var(--size-content-wide);
  padding: var(--space-layout-content);
  padding-bottom: var(--space-layout-content-end);
  min-width: 0;
}

.ui-navigation-list {
  display: grid;
  gap: var(--space-navigation-gap);
}

.ui-page-shell {
  display: grid;
  gap: var(--space-panel-gap);
  min-width: 0;
}

.ui-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-stack-lg);
  margin-bottom: 0;
  padding: var(--space-panel-gap);
  align-items: flex-start;
  min-width: 0;
}

.ui-page-header > * {
  min-width: 0;
}

.ui-page-header :where(.page-header-actions) {
  min-width: 0;
  align-self: start;
}

.ui-table-wrap {
  border: var(--border-subtle);
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.ui-table-scroll-controlled {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.ui-table-scroll-controlled :where(.data-table:not(.responsive-cards)) {
  min-width: var(--size-table-scroll-min);
}

.ui-table-scroll-controlled[data-density="dense"] :where(.data-table:not(.responsive-cards)),
.ui-table-scroll-controlled :where(.data-table[data-responsive-density="dense"]) {
  min-width: var(--size-table-scroll-dense-min);
}

.ui-table-density-comfortable :where(th, td) {
  padding: var(--space-stack-md) var(--space-stack-lg);
  line-height: 1.45;
}

.ui-table-density-compact :where(th, td) {
  padding: var(--space-stack-sm) var(--space-stack-md);
  line-height: 1.35;
}

.ui-table-cell-primary {
  color: var(--color-text);
  font-weight: var(--font-weight-strong);
}

.ui-table-cell-secondary {
  color: var(--color-text);
}

.ui-table-cell-muted {
  color: var(--color-text-muted);
  font-size: var(--font-ui-caption);
}

.ui-table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-stack-sm);
}

.ui-table-actions :where(a, button) {
  min-height: var(--size-action-min-height);
}

.ui-table-state {
  padding: var(--space-panel-gap);
  color: var(--color-text-muted);
  text-align: center;
}

.ui-table-row-detail {
  color: var(--color-text-muted);
  font-size: var(--font-ui-caption);
  line-height: 1.45;
}

.ui-table-expand-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--size-touch-target);
  min-height: var(--size-touch-target);
}

.ui-form-toolbar {
  min-width: 0;
  gap: var(--space-stack-sm);
  padding: var(--space-stack-md);
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-state-hover-surface);
}

.ui-form-section {
  display: grid;
  gap: var(--space-form-field-gap);
  min-width: 0;
}

.ui-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-form-field-min)), 1fr));
  gap: var(--space-form-field-gap);
  min-width: 0;
}

.ui-form-grid[data-density="compact"],
.ui-form-density-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-form-field-compact-min)), 1fr));
  gap: var(--space-stack-sm);
}

.ui-form-grid > :where(.full-width, .ui-form-field-long, [data-field-width="full"]) {
  grid-column: 1 / -1;
}

.ui-form-grid :where(label, .ui-form-field) {
  min-width: 0;
}

.ui-form-grid :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ui-form-grid :where(textarea),
.ui-form-field-long :where(textarea) {
  min-height: var(--size-form-long-field-min-height);
  resize: vertical;
}

.ui-form-grid :where([aria-invalid="true"]) {
  border-color: var(--color-state-error-border);
  box-shadow: 0 0 0 2px var(--color-state-focus-ring);
}

.ui-form-upload-grid {
  display: grid;
  grid-template-columns: minmax(var(--size-form-field-min), 0.85fr) minmax(var(--size-form-field-min), 0.85fr) minmax(var(--size-form-upload-min), 1.2fr) auto;
  gap: var(--space-form-field-gap);
  align-items: end;
  min-width: 0;
}

.ui-form-upload-grid[data-upload-layout="single"] {
  grid-template-columns: minmax(var(--size-form-upload-min), 1fr) auto;
}

.ui-form-upload-grid :where(label, .ui-form-upload-field) {
  min-width: 0;
}

.ui-form-upload-grid :where(input[type="file"]),
.ui-form-upload-field :where(input[type="file"]) {
  min-height: var(--size-touch-target);
  padding: var(--space-stack-sm);
}

.ui-form-upload-state {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 5px var(--space-stack-sm);
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-state-hover-surface);
  color: var(--color-text-muted);
  font-size: var(--font-ui-caption);
  line-height: 1.35;
}

.ui-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-stack-sm);
  min-width: 0;
}

.ui-form-actions :where(a, button, .button-link) {
  min-height: var(--size-action-min-height);
}

.ui-form-sticky-actions {
  border-top: var(--border-subtle);
  padding-top: var(--space-stack-md);
}

.ui-filter-bar {
  display: grid;
  gap: var(--space-stack-sm);
  min-width: 0;
}

.ui-filter-row {
  display: grid;
  grid-template-columns: minmax(var(--size-filter-primary-min), 1.3fr) repeat(auto-fit, minmax(var(--size-filter-field-min), 0.85fr)) auto;
  gap: var(--space-filter-gap);
  align-items: end;
  min-width: 0;
}

.ui-filter-row > :where(label, input, select, .ui-form-field) {
  min-width: 0;
}

.ui-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-stack-sm);
  min-width: 0;
}

.ui-filter-actions :where(a, button, .button-link) {
  min-height: var(--size-action-min-height);
}

.ui-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-stack-xs);
  min-width: 0;
}

.ui-filter-chip {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ui-filter-panel {
  margin-top: var(--space-stack-sm);
  padding-top: var(--space-stack-sm);
  border-top: var(--border-subtle);
}

.ui-filter-panel[hidden],
.ui-filter-panel.collapsed {
  display: none;
}

.ui-filter-advanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-filter-field-min)), 1fr));
  gap: var(--space-filter-gap);
  min-width: 0;
}

.ui-filter-drawer {
  max-height: none;
}

.ui-field-help {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--font-ui-caption);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ui-field-help:empty {
  min-height: 18px;
}

.ui-field-help[data-kind="error"] {
  color: var(--color-state-error-text);
}

.ui-field-help[data-kind="success"] {
  color: var(--color-state-success-text);
}

.ui-field-help[data-kind="warning"] {
  color: var(--color-state-warning-text);
}

@media (max-width: 900px) {
  .ui-page-header {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-layout-content-mobile);
  }

  .ui-master-detail {
    grid-template-columns: 1fr;
  }

  .ui-master-detail[data-master-detail-state="master"] > .ui-detail-pane {
    display: none;
  }

  .ui-master-detail[data-master-detail-state="detail"] > .ui-master-pane {
    display: none;
  }

  .ui-detail-pane[data-detail-sticky="true"] {
    position: static;
    max-height: none;
  }

  .ui-detail-back {
    display: inline-flex;
    margin-bottom: var(--space-stack-sm);
  }

  .ui-card-grid,
  .ui-card-grid[data-density="compact"],
  .ui-card-grid-compact,
  .ui-card-grid[data-density="wide"],
  .ui-card-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-card-grid-compact-min)), 1fr));
    gap: var(--space-stack-sm);
  }

  .ui-card {
    min-height: var(--size-card-compact-min-height);
  }

  .ui-state {
    min-height: var(--size-state-compact-min-height);
    padding: var(--space-layout-content-mobile);
  }

  .ui-alert {
    padding-inline: var(--space-layout-content-mobile);
  }

  .ui-table-wrap {
    overflow: visible;
  }

  .ui-form-upload-grid {
    grid-template-columns: 1fr;
  }

  .ui-form-upload-grid > :where(button, .button-link),
  .ui-form-upload-grid :where(input[type="file"]) {
    width: 100%;
  }

  .ui-form-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: var(--layer-sticky);
    margin-inline: calc(-1 * var(--space-layout-content-mobile));
    padding: var(--space-stack-sm) var(--space-layout-content-mobile) calc(var(--space-stack-sm) + env(safe-area-inset-bottom));
    background: var(--color-layout-surface-translucent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
  }

  .ui-filter-row,
  .ui-filter-advanced {
    grid-template-columns: 1fr;
  }

  .ui-filter-actions {
    justify-content: stretch;
  }

  .ui-filter-actions > :where(a, button, .button-link) {
    flex: 1 1 180px;
    justify-content: center;
  }

  .ui-filter-panel.ui-filter-drawer:not([hidden]):not(.collapsed) {
    max-height: var(--size-filter-drawer-max-height);
    overflow: auto;
    overscroll-behavior: contain;
    padding: var(--space-stack-md);
    border: var(--border-subtle);
    border-radius: var(--radius-surface);
    background: var(--color-state-default-surface);
    box-shadow: var(--shadow-interactive);
    -webkit-overflow-scrolling: touch;
  }

  .ui-overlay-root {
    place-items: end stretch;
    padding: var(--space-layout-content-mobile);
    padding-top: calc(var(--space-layout-content-mobile) + env(safe-area-inset-top));
    padding-bottom: calc(var(--space-layout-content-mobile) + env(safe-area-inset-bottom));
  }

  .ui-modal,
  .ui-modal[data-size="wide"],
  .ui-overlay-panel {
    width: 100%;
    max-height: calc(100dvh - (2 * var(--space-layout-content-mobile)));
    border-radius: var(--radius-surface) var(--radius-surface) 0 0;
  }

  .ui-drawer,
  .ui-side-panel {
    width: min(100vw, var(--size-overlay-side-panel-width));
    max-height: 100dvh;
    height: 100dvh;
    border-radius: var(--radius-surface) 0 0 var(--radius-surface);
  }

  .ui-overlay-actions {
    position: sticky;
    bottom: 0;
    z-index: var(--layer-sticky);
    padding-bottom: calc(var(--space-stack-md) + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .ui-form-grid,
  .ui-form-grid[data-density="compact"],
  .ui-form-density-compact {
    grid-template-columns: 1fr;
  }

  .ui-form-actions > :where(a, button, .button-link) {
    width: 100%;
    justify-content: center;
  }

  .ui-filter-actions > :where(a, button, .button-link),
  .ui-filter-row > :where(button, .button-link) {
    width: 100%;
  }

  .ui-filter-summary {
    align-items: stretch;
  }

  .ui-filter-chip {
    width: 100%;
  }

  .ui-card-grid,
  .ui-card-grid[data-density="compact"],
  .ui-card-grid-compact,
  .ui-card-grid[data-density="wide"],
  .ui-card-grid-wide {
    grid-template-columns: 1fr;
  }

  .ui-card-actions {
    justify-content: stretch;
  }

  .ui-card-actions > :where(a, button, .button-link) {
    width: 100%;
    justify-content: center;
  }

  .ui-state-actions {
    width: 100%;
    justify-content: stretch;
  }

  .ui-state-actions > :where(a, button, .button-link) {
    width: 100%;
    justify-content: center;
  }

  .ui-detail-actions {
    justify-content: stretch;
  }

  .ui-detail-actions > :where(a, button, .button-link) {
    width: 100%;
    justify-content: center;
  }

  .ui-overlay-root {
    padding: 0;
  }

  .ui-modal,
  .ui-modal[data-size="wide"],
  .ui-overlay-panel,
  .ui-drawer,
  .ui-side-panel {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .ui-overlay-header,
  .ui-overlay-body,
  .ui-overlay-actions {
    padding-inline: var(--space-layout-content-narrow);
  }

  .ui-overlay-actions > :where(a, button, .button-link) {
    width: 100%;
    justify-content: center;
  }
}

/* Frontend desacoplado: pequenos ajustes e compatibilidades. */
﻿#app {
  min-height: 100vh;
}

.financeiro-settings-page {
  gap: var(--space-4);
}

.financeiro-mobile-section-tabs {
  display: none;
}

.financeiro-mobile-disclosure > summary {
  display: none;
}

.financeiro-mobile-disclosure > .financeiro-mobile-disclosure-body {
  display: contents;
}

.financeiro-settings-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-left: 4px solid #4f7fcc;
}

.financeiro-settings-notice strong {
  color: var(--text-default);
  white-space: nowrap;
}

.financeiro-settings-notice span {
  color: var(--text-muted);
}

.financeiro-settings-section-head,
.financeiro-settings-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.financeiro-settings-section-head h2,
.financeiro-settings-form-head h3,
.financeiro-settings-card h2,
.financeiro-settings-card h3 {
  margin: 0;
}

.financeiro-settings-section-head p,
.financeiro-settings-form-head p,
.financeiro-settings-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.financeiro-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: var(--space-4);
  align-items: start;
}

.financeiro-settings-side {
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
  border-radius: 8px;
  padding: var(--space-4);
  background: color-mix(in srgb, #f8fafc 88%, #fff);
}

.financeiro-settings-form {
  margin: 0;
}

.financeiro-settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.financeiro-settings-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.financeiro-settings-form-grid input,
.financeiro-settings-form-grid select,
.financeiro-settings-form-grid textarea {
  width: 100%;
  min-width: 0;
}

.financeiro-settings-form-grid .financeiro-settings-wide {
  grid-column: 1 / -1;
}

.financeiro-settings-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.financeiro-settings-card {
  display: grid;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--border-color) 78%, #fff);
  border-radius: 8px;
  padding: var(--space-4);
  background: #fff;
}

.financeiro-product-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--finance-alert-border, var(--border-color)) 45%, #fff);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--finance-alert-bg, #fff);
}

.financeiro-product-alert::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--finance-alert-mark-bg, #2563eb);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.financeiro-product-alert strong {
  color: var(--text-default);
  font-weight: 900;
}

.financeiro-product-alert span {
  color: var(--text-muted);
}

.financeiro-product-alert-warning {
  --finance-alert-bg: #fff7d6;
  --finance-alert-border: #f2c94c;
  --finance-alert-mark-bg: #f59e0b;
}

.financeiro-product-alert-info {
  --finance-alert-bg: #eef6ff;
  --finance-alert-border: #60a5fa;
  --finance-alert-mark-bg: #2563eb;
}

.financeiro-overview-grid {
  display: grid;
  gap: var(--space-4);
}

.financeiro-overview-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.financeiro-overview-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.financeiro-overview-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-height: 244px;
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
  border-radius: 8px;
  padding: 28px 20px 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.financeiro-overview-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--motion-base),
    border-color var(--motion-base),
    box-shadow var(--motion-base);
}

.financeiro-overview-card-link:hover,
.financeiro-overview-card-link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--finance-card-icon-color, #2563eb) 34%, #fff);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  outline: none;
}

.financeiro-overview-card-link.is-active {
  border-color: color-mix(in srgb, var(--finance-card-icon-color, #2563eb) 44%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--finance-card-icon-color, #2563eb) 14%, transparent);
}

.financeiro-bonus-selection-state {
  border-style: dashed;
  background: color-mix(in srgb, #f8fafc 88%, #fff);
}

.financeiro-overview-card h2 {
  max-width: 26ch;
  margin: 2px 0 0;
  color: var(--text-default);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.18;
}

.financeiro-overview-card p {
  max-width: 30ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.financeiro-overview-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--finance-card-icon-bg, #eef2ff);
  color: var(--finance-card-icon-color, #4f46e5);
}

.financeiro-overview-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.financeiro-overview-pill {
  align-self: end;
  justify-self: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--finance-card-icon-color, #2563eb) 12%, #fff);
  color: var(--finance-card-icon-color, #2563eb);
  font-size: 0.78rem;
  font-weight: 900;
}

.financeiro-overview-card-purple {
  --finance-card-icon-bg: #f1e8ff;
  --finance-card-icon-color: #7c3aed;
}

.financeiro-overview-card-green {
  --finance-card-icon-bg: #e9f9ef;
  --finance-card-icon-color: #16a34a;
}

.financeiro-overview-card-blue {
  --finance-card-icon-bg: #eaf4ff;
  --finance-card-icon-color: #0b74d1;
}

.financeiro-overview-card-orange {
  --finance-card-icon-bg: #fff1df;
  --finance-card-icon-color: #ea580c;
}

.financeiro-missoes-page {
  gap: var(--space-4);
}

.financeiro-missoes-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-left: 4px solid #4f7fcc;
}

.financeiro-missoes-notice strong {
  color: var(--text-default);
  white-space: nowrap;
}

.financeiro-missoes-notice span {
  color: var(--text-muted);
}

.financeiro-missoes-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.financeiro-missoes-summary-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 112px;
  border: 1px solid color-mix(in srgb, var(--border-color) 82%, #fff);
  border-radius: 8px;
  padding: var(--space-4);
  background: #fff;
  overflow: hidden;
}

.financeiro-missoes-summary-card::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, #4f7fcc 12%, #fff);
  border: 1px solid color-mix(in srgb, #4f7fcc 26%, #fff);
}

.financeiro-missoes-summary-card[data-tone="positive"]::after {
  background: color-mix(in srgb, #16a34a 12%, #fff);
  border-color: color-mix(in srgb, #16a34a 28%, #fff);
}

.financeiro-missoes-summary-card[data-tone="danger"]::after {
  background: color-mix(in srgb, #dc2626 10%, #fff);
  border-color: color-mix(in srgb, #dc2626 26%, #fff);
}

.financeiro-missoes-summary-card[data-tone="warning"]::after {
  background: color-mix(in srgb, #d97706 12%, #fff);
  border-color: color-mix(in srgb, #d97706 28%, #fff);
}

.financeiro-missoes-summary-card span {
  max-width: calc(100% - 44px);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.financeiro-missoes-summary-card strong {
  color: var(--text-default);
  font-size: 1.75rem;
  line-height: 1;
}

.financeiro-missoes-summary-card small {
  color: var(--text-muted);
  font-weight: 700;
}

.financeiro-missoes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.financeiro-missoes-section-head,
.financeiro-missoes-form-head,
.financeiro-missoes-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.financeiro-missoes-section-head h2,
.financeiro-missoes-form-head h2,
.financeiro-missoes-detail-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.financeiro-missoes-section-head p,
.financeiro-missoes-form-head p,
.financeiro-missoes-detail-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.financeiro-missoes-side {
  position: static;
}

.financeiro-missoes-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.financeiro-missoes-detail-grid div,
.financeiro-missoes-participants,
.financeiro-missoes-coming-soon {
  border: 1px solid color-mix(in srgb, var(--border-color) 72%, #fff);
  border-radius: var(--radius-md);
  padding: 10px;
  background: color-mix(in srgb, #f8fafc 86%, #fff);
}

.financeiro-missoes-detail-grid dt {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.financeiro-missoes-detail-grid dd {
  margin: 0;
  font-weight: 700;
  color: var(--text-default);
}

.financeiro-missoes-participants ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.financeiro-missoes-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.financeiro-missoes-form-grid label {
  display: grid;
  gap: 6px;
  align-content: start;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.financeiro-missoes-form-grid input,
.financeiro-missoes-form-grid select,
.financeiro-missoes-form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--border-color) 88%, #94a3b8);
  border-radius: 8px;
  background: #fff;
  color: var(--text-default);
  font: inherit;
  line-height: 1.35;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.financeiro-missoes-form-grid input,
.financeiro-missoes-form-grid select {
  height: 44px;
  padding: 0 12px;
}

.financeiro-missoes-form-grid textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.financeiro-missoes-form-grid input:focus,
.financeiro-missoes-form-grid select:focus,
.financeiro-missoes-form-grid textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.financeiro-missoes-form-grid input.is-invalid,
.financeiro-missoes-form-grid select.is-invalid {
  border-color: var(--color-danger, #b42318);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-danger, #b42318) 18%, transparent);
}

.financeiro-missoes-field-help {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.financeiro-missoes-field-help[data-finance-category-feedback]:not(:empty) {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-weight: 700;
}

.financeiro-missoes-options-feedback {
  display: grid;
  gap: 8px;
}

.financeiro-missoes-form-grid .financeiro-missoes-wide {
  grid-column: 1 / -1;
}

.financeiro-missoes-check {
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: start;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--border-color) 88%, #94a3b8);
  border-radius: 8px;
  background: #fff;
}

.financeiro-missoes-check input {
  width: auto;
}

.financeiro-missoes-coming-soon {
  display: grid;
  gap: 4px;
  border-style: dashed;
  background: #fffdf2;
}

.financeiro-missoes-coming-soon span {
  color: var(--text-muted);
}

.financeiro-missoes-recalc-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-md);
  padding: 14px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.96));
}

.financeiro-missoes-recalc-card strong {
  display: block;
  color: var(--text-default);
  font-size: 1rem;
}

.financeiro-missoes-recalc-card span,
.financeiro-missoes-recalc-card small {
  color: var(--text-muted);
  line-height: 1.45;
}

.financeiro-missoes-recalc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.financeiro-missoes-recalc-actions > :where(button, .button-link) {
  flex: 1 1 180px;
  justify-content: center;
}

@media (max-width: 1180px) {
  .financeiro-overview-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-missoes-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-missoes-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-side {
    position: static;
  }

  .financeiro-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .financeiro-settings-page[data-finance-page="fechamento-parametros"] {
    gap: 12px;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-overview-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-overview-card {
    min-height: 0;
    padding: 14px;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-overview-card p {
    display: none;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-mobile-section-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
    border-radius: 8px;
    background: #fff;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-mobile-section-tabs button {
    min-height: 44px;
    border: 1px solid color-mix(in srgb, var(--border-color) 82%, #fff);
    border-radius: 8px;
    background: color-mix(in srgb, #f8fafc 88%, #fff);
    color: var(--text-default);
    font-weight: 800;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-mobile-section-tabs button[aria-selected="true"] {
    background: color-mix(in srgb, var(--color-primary) 12%, #fff);
    border-color: color-mix(in srgb, var(--color-primary) 42%, #fff);
    color: var(--color-primary);
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"][data-mobile-active-section="monthly-closing"]
    [data-finance-section]:not([data-finance-section="monthly-closing"]),
  .financeiro-settings-page[data-finance-page="fechamento-parametros"][data-mobile-active-section="parameters"]
    [data-finance-section]:not([data-finance-section="parameters"]),
  .financeiro-settings-page[data-finance-page="fechamento-parametros"][data-mobile-active-section="holidays"]
    [data-finance-section]:not([data-finance-section="holidays"]) {
    display: none;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-settings-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-settings-layout {
    gap: 12px;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] [data-finance-period-actions] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] [data-finance-period-actions] > :where(button, .button-link) {
    width: 100%;
    justify-content: center;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] [data-finance-period-snapshot],
  .financeiro-settings-page[data-finance-page="fechamento-parametros"] [data-finance-period-audit],
  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-heavy-section-disclosure[open] .financeiro-heavy-section-disclosure-body {
    max-height: 300px;
    overflow: auto;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .ui-table-wrap {
    max-height: 340px;
    overflow: auto;
  }
}

@media (max-width: 720px) {
  .financeiro-missoes-page,
  .financeiro-settings-page {
    gap: 10px;
  }

  .financeiro-missoes-page .page-header.ui-page-header,
  .financeiro-settings-page .page-header.ui-page-header {
    padding: 16px;
    gap: 10px;
  }

  .financeiro-missoes-notice,
  .financeiro-settings-notice,
  .financeiro-missoes-section-head,
  .financeiro-missoes-form-head,
  .financeiro-missoes-detail-head,
  .financeiro-settings-section-head,
  .financeiro-settings-form-head {
    flex-direction: column;
  }

  .financeiro-missoes-form-grid,
  .financeiro-missoes-detail-grid,
  .financeiro-missoes-summary-grid,
  .financeiro-settings-form-grid,
  .financeiro-settings-card-grid,
  .financeiro-overview-grid-two,
  .financeiro-overview-grid-four {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-summary-grid,
  .financeiro-settings-card-grid,
  .financeiro-overview-grid {
    gap: 8px;
  }

  .financeiro-missoes-summary-card,
  .financeiro-settings-card,
  .financeiro-overview-card {
    min-height: 0;
    padding: 12px;
  }

  .financeiro-overview-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .financeiro-overview-card h2,
  .financeiro-overview-card p {
    max-width: none;
  }

  .financeiro-overview-icon {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
  }

  .financeiro-overview-icon svg {
    width: 30px;
    height: 30px;
  }

  .financeiro-overview-pill {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .financeiro-missoes-summary-card {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    align-items: center;
  }

  .financeiro-missoes-summary-card::after {
    position: static;
    grid-row: 1 / span 3;
    grid-column: 2;
    width: 24px;
    height: 24px;
  }

  .financeiro-missoes-summary-card span {
    max-width: none;
    font-size: 0.78rem;
  }

  .financeiro-missoes-summary-card strong {
    font-size: 1.35rem;
  }

  .financeiro-missoes-notice,
  .financeiro-settings-notice,
  .financeiro-product-alert {
    padding: 12px;
    gap: 6px;
  }

  .financeiro-missoes-notice strong,
  .financeiro-settings-notice strong,
  .financeiro-product-alert strong {
    white-space: normal;
  }

  .financeiro-mobile-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
    border-radius: 8px;
    background: color-mix(in srgb, #f8fafc 90%, #fff);
    color: var(--text-default);
    cursor: pointer;
    font-weight: 800;
  }

  .financeiro-mobile-disclosure > summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
  }

  .financeiro-mobile-disclosure[open] > summary::after {
    content: "-";
  }

  .financeiro-mobile-disclosure:not([open]) > .financeiro-mobile-disclosure-body {
    display: none;
  }

  .financeiro-mobile-disclosure[open] > .financeiro-mobile-disclosure-body {
    display: block;
    margin-top: 10px;
  }

  .financeiro-missoes-filter-disclosure .financeiro-missoes-section-head {
    display: none;
  }

  .financeiro-missoes-layout,
  .financeiro-settings-layout {
    gap: 10px;
  }

  .financeiro-missoes-side,
  .financeiro-settings-side {
    display: grid;
    gap: 10px;
  }

  .financeiro-mobile-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
    border-radius: 8px;
    background: #fff;
  }

  .financeiro-mobile-section-tabs button {
    min-height: 44px;
    border: 1px solid color-mix(in srgb, var(--border-color) 82%, #fff);
    border-radius: 8px;
    background: color-mix(in srgb, #f8fafc 88%, #fff);
    color: var(--text-default);
    font-weight: 800;
  }

  .financeiro-mobile-section-tabs button[aria-selected="true"] {
    background: color-mix(in srgb, var(--color-primary) 12%, #fff);
    border-color: color-mix(in srgb, var(--color-primary) 42%, #fff);
    color: var(--color-primary);
  }

  .financeiro-settings-page[data-finance-page="bonificacoes"][data-mobile-active-section="hourly"]
    [data-finance-bonus-section]:not([data-finance-bonus-section="hourly"]),
  .financeiro-settings-page[data-finance-page="bonificacoes"][data-mobile-active-section="productivity"]
    [data-finance-bonus-section]:not([data-finance-bonus-section="productivity"]) {
    display: none;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"][data-mobile-active-section="monthly-closing"]
    [data-finance-section]:not([data-finance-section="monthly-closing"]),
  .financeiro-settings-page[data-finance-page="fechamento-parametros"][data-mobile-active-section="parameters"]
    [data-finance-section]:not([data-finance-section="parameters"]),
  .financeiro-settings-page[data-finance-page="fechamento-parametros"][data-mobile-active-section="holidays"]
    [data-finance-section]:not([data-finance-section="holidays"]) {
    display: none;
  }

  .financeiro-memory-list,
  [data-finance-period-snapshot],
  [data-finance-period-audit] {
    max-height: 360px;
    overflow: auto;
  }
}

/* G02: shell layout adopts shared/ui foundation without redesigning product pages. */
.app-shell.ui-app-frame {
  --sidebar-current-width: var(--size-sidebar-width);
  display: grid;
  grid-template-columns: var(--sidebar-current-width) minmax(0, 1fr);
  background:
    radial-gradient(circle at 100% -20%, var(--color-background-accent) 0, transparent 38%),
    var(--color-background);
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  align-items: start;
  transition: grid-template-columns var(--motion-base);
}

.app-shell[data-sidebar-state="compact"] {
  --sidebar-current-width: var(--size-sidebar-compact-width);
}

.app-shell[data-sidebar-state="iconic"] {
  --sidebar-current-width: var(--size-sidebar-iconic-width);
}

.sidebar.ui-inverse-surface {
  --sidebar-expanded-inline-padding: 18px;
  --sidebar-nav-radius: 12px;
  --sidebar-nav-text: rgba(203, 213, 225, 0.82);
  --sidebar-nav-muted: rgba(148, 163, 184, 0.72);
  --sidebar-nav-strong: rgba(248, 250, 252, 0.96);
  --sidebar-nav-hover: rgba(148, 163, 184, 0.08);
  --sidebar-nav-active: linear-gradient(90deg, rgba(225, 29, 72, 0.14), rgba(15, 23, 42, 0.36));
  --sidebar-nav-focus: rgba(244, 181, 106, 0.48);
  --sidebar-nav-hairline: rgba(148, 163, 184, 0.1);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: var(--sidebar-current-width);
  height: 100vh;
  min-height: 100vh;
  min-height: 100dvh;
  position: sticky;
  top: 0;
  padding: 18px var(--sidebar-expanded-inline-padding) 12px;
  background:
    radial-gradient(circle at 34% -8%, rgba(59, 130, 246, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(11, 20, 36, 0.98), rgba(7, 15, 27, 0.99));
  border-right: 1px solid var(--color-inverse-border);
  box-shadow: none;
  overflow: hidden;
  touch-action: pan-y;
}

.sidebar-top {
  position: relative;
  padding: 0 2px 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--size-touch-target);
  min-width: var(--size-touch-target);
  min-height: var(--size-touch-target);
  margin-left: auto;
  margin-bottom: var(--space-stack-sm);
  border: 1px solid var(--color-inverse-border);
  border-radius: var(--radius-control);
  background: var(--color-inverse-surface-active);
  color: var(--color-inverse-text);
  box-shadow: none;
}

.brand-wrap.ui-stack-xs {
  gap: 4px;
}

.brand-image-sidebar {
  width: 128px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.96;
}

.brand-subtitle {
  color: rgba(203, 213, 225, 0.56);
  max-width: 178px;
  font-size: 12px;
  line-height: 1.32;
  opacity: 1;
}

.sidebar-state-controls {
  display: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: var(--space-stack-md);
  padding: 4px;
  border: 1px solid var(--color-inverse-border-soft);
  border-radius: var(--radius-control);
  background: rgba(15, 23, 42, 0.28);
}

.sidebar-state-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-control) - 2px);
  background: transparent;
  color: var(--color-inverse-text-muted);
  font-size: var(--font-ui-caption);
  font-weight: var(--font-weight-strong);
  box-shadow: none;
  transition: var(--transition-state);
}

.sidebar-state-button:hover,
.sidebar-state-button[aria-pressed="true"] {
  background: var(--color-inverse-surface-hover);
  color: var(--color-inverse-text-strong);
  border-color: var(--color-inverse-border);
  transform: none;
  box-shadow: none;
}

.sidebar-state-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  font-size: 10px;
  line-height: 1;
}

.sidebar-mode-toggle {
  position: absolute;
  top: 0;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
  color: rgba(248, 250, 252, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 6px 16px rgba(2, 6, 23, 0.12);
  transition: var(--transition-state);
}

.sidebar-mode-toggle::before,
.sidebar-mode-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  pointer-events: none;
}

.sidebar-mode-toggle::before {
  left: 50%;
  width: 8px;
  height: 8px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0 0 2px 2px;
  transform: translate(-30%, -50%) rotate(45deg);
}

.sidebar-mode-toggle::after {
  left: 9px;
  width: 2px;
  height: 15px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.62;
  transform: translateY(-50%);
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"]::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"]::after {
  right: 9px;
  left: auto;
}

.sidebar-mode-toggle:hover,
.sidebar-mode-toggle:focus-visible {
  border-color: var(--color-inverse-border-strong);
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-inverse-text-strong);
}

.sidebar-mode-toggle:focus-visible {
  outline: 2px solid var(--sidebar-nav-focus);
  outline-offset: 2px;
}

.sidebar-mode-toggle-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: currentColor;
  opacity: 0;
  pointer-events: none;
  stroke: currentColor;
  transition: transform var(--motion-fast);
}

.sidebar-mode-toggle-icon * {
  vector-effect: non-scaling-stroke;
}

.sidebar-mode-icon-collapse,
.sidebar-mode-icon-expand {
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity var(--motion-fast), visibility var(--motion-fast);
  visibility: visible;
}

.sidebar-mode-icon-expand {
  opacity: 0;
  visibility: hidden;
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"] .sidebar-mode-icon-collapse {
  opacity: 0;
  visibility: hidden;
}

.sidebar-mode-toggle[data-sidebar-mode-state="iconic"] .sidebar-mode-icon-expand {
  opacity: 1;
  visibility: visible;
}

.nav.ui-navigation-list {
  padding: 11px 0 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  -webkit-overflow-scrolling: touch;
}

.sidebar:hover .nav.ui-navigation-list,
.nav.ui-navigation-list:focus-within {
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.nav.ui-navigation-list::-webkit-scrollbar,
.nav-group-links::-webkit-scrollbar {
  width: 6px;
}

.nav.ui-navigation-list::-webkit-scrollbar-track,
.nav-group-links::-webkit-scrollbar-track {
  background: transparent;
}

.nav.ui-navigation-list::-webkit-scrollbar-thumb,
.nav-group-links::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.sidebar:hover .nav.ui-navigation-list::-webkit-scrollbar-thumb,
.nav.ui-navigation-list:focus-within::-webkit-scrollbar-thumb,
.nav-group-links:hover::-webkit-scrollbar-thumb,
.nav-group-links:focus-within::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  background-clip: padding-box;
}

.nav.ui-navigation-list::-webkit-scrollbar-thumb:hover,
.nav-group-links::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.3);
  background-clip: padding-box;
}

.nav-primary {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  min-width: 0;
  border-left: 3px solid transparent;
  border-radius: var(--sidebar-nav-radius);
  color: var(--sidebar-nav-text);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  padding: 7px 10px;
  isolation: isolate;
  line-height: 1.25;
  transition: var(--transition-state);
  -webkit-tap-highlight-color: transparent;
}

.nav-primary > .nav-link {
  font-size: 14px;
  min-height: 46px;
  padding-inline: 11px;
  background: rgba(148, 163, 184, 0.045);
  box-shadow: inset 0 0 0 1px var(--sidebar-nav-hairline);
}

.nav-link-label,
.nav-group-label {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link-label {
  overflow-wrap: normal;
}

.nav-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  box-shadow: none;
  font-size: 0;
  line-height: 1;
  opacity: 0.86;
  overflow: hidden;
}

svg.nav-icon {
  display: block;
}

span.nav-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
  opacity: 0.72;
}

.nav-active-indicator {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 50%;
  width: 3px;
  height: 52%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--color-primary), #fb7185);
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.22);
  opacity: 0;
  transform: translateY(-50%) scaleY(0.72);
  transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.nav a:hover,
.nav a.active {
  background: var(--sidebar-nav-hover);
  color: var(--sidebar-nav-strong);
  box-shadow: inset 0 0 0 1px var(--sidebar-nav-hairline);
}

.nav a.active,
.nav a[aria-current="page"] {
  background: var(--sidebar-nav-active);
  border-left-color: var(--color-primary);
  color: var(--sidebar-nav-strong);
  font-weight: var(--font-weight-strong);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 5px 12px rgba(2, 6, 23, 0.1);
}

.nav a:focus-visible,
.nav-group-toggle:focus-visible,
.logout-button:focus-visible {
  outline: 2px solid var(--sidebar-nav-focus);
  outline-offset: 2px;
}

.nav a.active .nav-active-indicator,
.nav a[aria-current="page"] .nav-active-indicator,
.nav-group[data-nav-active-child="true"] > .nav-group-toggle .nav-active-indicator {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.nav a.active .nav-icon,
.nav a[aria-current="page"] .nav-icon,
.nav-group[data-nav-active-child="true"] > .nav-group-toggle .nav-icon {
  opacity: 1;
}

.nav-group {
  position: relative;
}

.nav-group-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  border-left: 3px solid transparent;
  border-radius: 10px;
  color: var(--sidebar-nav-muted);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  padding: 6px 10px;
  background: transparent;
  font-size: 11px;
  font-weight: var(--font-weight-strong);
  isolation: isolate;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  transition: var(--transition-state);
  -webkit-tap-highlight-color: transparent;
}

.nav-group + .nav-group {
  margin-top: 2px;
}

.nav-group-toggle .nav-icon {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
  opacity: 0.62;
}

.nav-group-toggle .nav-active-indicator {
  display: none;
}

.nav-group-label {
  flex: 1 1 auto;
  text-align: left;
}

.nav-group-caret {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
}

.nav-group-toggle:hover,
.nav-group-toggle.active {
  background: transparent;
  color: var(--sidebar-nav-strong);
}

.nav-group.open .nav-group-toggle {
  background: transparent;
  color: var(--sidebar-nav-muted);
}

.nav-group.open .nav-group-toggle.active,
.nav-group[data-nav-active-child="true"] > .nav-group-toggle {
  background: transparent;
  border-left-color: transparent;
  color: var(--sidebar-nav-strong);
}

.nav-group[data-nav-active-child="true"] > .nav-group-toggle {
  box-shadow: none;
}

.nav-group-links {
  border-left-color: transparent;
  gap: 1px;
  margin: 0 0 7px;
  padding-left: 0;
  padding-right: 0;
}

.nav-group-links a {
  min-height: 38px;
  padding-block: 6px;
  font-size: 12.75px;
}

.nav-group-links a.active,
.nav-group-links a[aria-current="page"] {
  background: var(--sidebar-nav-active);
}

.sidebar-footer.ui-stack-xs {
  display: grid;
  gap: 6px;
  padding: 8px 2px 0;
  border-top-color: var(--color-inverse-border);
}

.session-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 5px 8px;
  border: 1px solid var(--color-inverse-border-soft);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.045);
  overflow: hidden;
  isolation: isolate;
}

.session-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), #fb7185);
  opacity: 0.58;
}

.session-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.38), rgba(79, 70, 229, 0.4));
  color: var(--color-inverse-text-strong);
  font-size: 12px;
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.02em;
}

.session-copy {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.session-presence {
  display: none;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 3px 7px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  font-size: 10px;
  font-weight: var(--font-weight-strong);
  line-height: 1;
}

.session-presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.72);
}

.session-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.session-profile-summary {
  display: none;
  align-items: center;
  gap: var(--space-stack-sm);
  min-width: 0;
  min-height: 40px;
  padding: 8px var(--space-stack-md);
  border: 1px solid var(--color-inverse-border-soft);
  border-radius: var(--radius-control);
  background: rgba(15, 23, 42, 0.18);
  color: var(--color-inverse-text);
}

.profile-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-inverse-text-strong);
}

.profile-action-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-action-label {
  color: var(--color-inverse-text-muted);
  font-size: var(--font-ui-caption);
}

.profile-action-value {
  overflow: hidden;
  color: var(--color-inverse-text-strong);
  font-size: var(--font-ui-caption);
  font-weight: var(--font-weight-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-caption,
.session-role {
  color: var(--color-inverse-text-muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-caption {
  display: none;
}

.session-user {
  color: var(--color-inverse-text-strong);
  font-size: 13px;
  font-weight: var(--font-weight-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-link,
.logout-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--color-inverse-text);
  font-size: 12.75px;
  font-weight: var(--font-weight-strong);
  transition: var(--transition-state);
  -webkit-tap-highlight-color: transparent;
}

.logout-button:hover {
  background: var(--color-inverse-surface-hover);
  color: var(--color-inverse-text-strong);
}

.logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell[data-sidebar-state="compact"] .sidebar.ui-inverse-surface,
.app-shell[data-sidebar-state="iconic"] .sidebar.ui-inverse-surface {
  overflow: hidden;
}

.app-shell[data-sidebar-state="compact"] .nav.ui-navigation-list,
.app-shell[data-sidebar-state="iconic"] .nav.ui-navigation-list {
  overflow-x: hidden;
  overflow-y: auto;
}

.app-shell[data-sidebar-state="compact"] .brand-subtitle,
.app-shell[data-sidebar-state="iconic"] .brand-subtitle {
  display: none;
}

.app-shell[data-sidebar-state="compact"] .brand-image-sidebar {
  width: 48px;
  max-width: 100%;
  object-fit: contain;
}

.app-shell[data-sidebar-state="compact"] .sidebar.ui-inverse-surface {
  --sidebar-expanded-inline-padding: 14px;
  padding-inline: 14px;
}

.app-shell[data-sidebar-state="compact"] .sidebar-top {
  padding-inline: 0;
  text-align: center;
}

.app-shell[data-sidebar-state="compact"] .sidebar-mode-toggle,
.app-shell[data-sidebar-state="iconic"] .sidebar-mode-toggle {
  position: static;
  justify-self: center;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  margin-top: 7px;
}

.app-shell[data-sidebar-state="compact"] .brand-wrap.ui-stack-xs,
.app-shell[data-sidebar-state="compact"] .nav-primary,
.app-shell[data-sidebar-state="compact"] .sidebar-footer.ui-stack-xs,
.app-shell[data-sidebar-state="compact"] .session-actions {
  justify-items: center;
}

.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="compact"] .nav-group-toggle,
.app-shell[data-sidebar-state="compact"] .logout-button {
  justify-content: center;
  width: 46px;
  min-height: 44px;
  padding-inline: 0;
}

.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="compact"] .nav-group-toggle {
  border-left-color: transparent;
}

.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link .nav-link-label,
.app-shell[data-sidebar-state="compact"] .nav-group-toggle .nav-group-label,
.app-shell[data-sidebar-state="compact"] .nav-group-toggle .nav-group-caret,
.app-shell[data-sidebar-state="compact"] .session-copy,
.app-shell[data-sidebar-state="compact"] .session-presence,
.app-shell[data-sidebar-state="compact"] .session-profile-summary,
.app-shell[data-sidebar-state="compact"] .session-presence-label,
.app-shell[data-sidebar-state="compact"] .profile-action-label,
.app-shell[data-sidebar-state="compact"] .logout-label {
  display: none;
}

.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link.active,
.app-shell[data-sidebar-state="compact"] .nav-primary > .nav-link[aria-current="page"],
.app-shell[data-sidebar-state="compact"] .nav-group[data-nav-active-child="true"] > .nav-group-toggle,
.app-shell[data-sidebar-state="compact"] .nav-group.flyout-open > .nav-group-toggle {
  border-left-color: var(--color-primary);
  background: var(--sidebar-nav-active);
  color: var(--sidebar-nav-strong);
}

.app-shell[data-sidebar-state="compact"] .nav-group-toggle .nav-icon {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
  opacity: 0.86;
}

.app-shell[data-sidebar-state="compact"] .nav-active-indicator {
  left: -4px;
  height: 58%;
}

.app-shell[data-sidebar-state="compact"] .nav-group[data-nav-active-child="true"] > .nav-group-toggle .nav-active-indicator,
.app-shell[data-sidebar-state="compact"] .nav-group.flyout-open > .nav-group-toggle .nav-active-indicator {
  display: block;
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.app-shell[data-sidebar-state="compact"] .sidebar-footer.ui-stack-xs {
  align-items: center;
  padding-inline: 0;
}

.app-shell[data-sidebar-state="compact"] .session-card {
  justify-content: center;
  width: 46px;
  padding: 6px;
}

.app-shell[data-sidebar-state="compact"] .session-avatar {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}

.app-shell[data-sidebar-state="iconic"] .sidebar.ui-inverse-surface {
  --sidebar-expanded-inline-padding: 10px;
  padding-inline: 10px;
}

.app-shell[data-sidebar-state="iconic"] .sidebar-top {
  padding-inline: 0;
  padding-bottom: 12px;
}

.app-shell[data-sidebar-state="iconic"] .brand-wrap.ui-stack-xs {
  align-items: center;
}

.app-shell[data-sidebar-state="iconic"] .brand-image-sidebar {
  width: 36px;
  max-width: 100%;
  object-fit: contain;
}

.app-shell[data-sidebar-state="iconic"] .sidebar-state-controls {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell[data-sidebar-state="iconic"] .sidebar-state-label,
.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link .nav-link-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle .nav-group-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle .nav-group-caret,
.app-shell[data-sidebar-state="iconic"] .session-copy,
.app-shell[data-sidebar-state="iconic"] .session-presence,
.app-shell[data-sidebar-state="iconic"] .session-profile-summary,
.app-shell[data-sidebar-state="iconic"] .logout-label {
  display: none;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary {
  justify-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle,
.app-shell[data-sidebar-state="iconic"] .logout-button {
  justify-content: center;
  padding-inline: 0;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle {
  border-left-color: transparent;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle {
  width: 38px;
  min-height: 38px;
  border-radius: 11px;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link .nav-icon,
.app-shell[data-sidebar-state="iconic"] .nav-group-toggle .nav-icon,
.app-shell[data-sidebar-state="iconic"] .logout-icon {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
}

.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link.active,
.app-shell[data-sidebar-state="iconic"] .nav-primary > .nav-link[aria-current="page"],
.app-shell[data-sidebar-state="iconic"] .nav-group[data-nav-active-child="true"] > .nav-group-toggle,
.app-shell[data-sidebar-state="iconic"] .nav-group.flyout-open > .nav-group-toggle {
  border-left-color: var(--color-primary);
  background: var(--sidebar-nav-active);
  color: var(--sidebar-nav-strong);
}

.app-shell[data-sidebar-state="iconic"] .nav-active-indicator {
  left: -5px;
  height: 56%;
}

.app-shell[data-sidebar-state="iconic"] .nav-group[data-nav-active-child="true"] > .nav-group-toggle .nav-active-indicator,
.app-shell[data-sidebar-state="iconic"] .nav-group.flyout-open > .nav-group-toggle .nav-active-indicator {
  display: block;
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.app-shell[data-sidebar-state="iconic"] .sidebar-footer.ui-stack-xs {
  align-items: center;
  padding-inline: 0;
}

.app-shell[data-sidebar-state="iconic"] .session-actions {
  justify-items: center;
}

.app-shell[data-sidebar-state="iconic"] .session-card {
  justify-content: center;
  width: 38px;
  min-height: 38px;
  padding: 4px;
  border-color: transparent;
  background: transparent;
}

.app-shell[data-sidebar-state="iconic"] .session-card::before {
  display: none;
}

.app-shell[data-sidebar-state="iconic"] .session-avatar {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.app-shell[data-sidebar-state="iconic"] .logout-button {
  width: 38px;
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  border-radius: 11px;
}

.sidebar-rail-tooltip {
  position: fixed;
  z-index: var(--layer-toast);
  max-width: min(220px, calc(100vw - 24px));
  padding: 6px 9px;
  border: 1px solid var(--color-inverse-border-soft);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(14, 23, 39, 0.98), rgba(8, 15, 27, 0.98));
  color: var(--color-inverse-text-strong);
  font-size: 12px;
  font-weight: var(--font-weight-strong);
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.sidebar-rail-tooltip[data-state="open"] {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-rail-tooltip[hidden] {
  display: none;
}

.nav-flyout-title {
  display: none;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links,
.app-shell[data-sidebar-state="iconic"] .nav-group-links {
  position: fixed;
  left: var(--nav-flyout-left, calc(var(--sidebar-current-width) + var(--space-stack-sm)));
  top: var(--nav-flyout-top, var(--space-panel-gap));
  z-index: var(--layer-dropdown);
  width: var(--nav-flyout-width, 286px);
  min-width: min(240px, calc(100vw - (2 * var(--space-panel-gap))));
  max-width: min(320px, calc(100vw - (2 * var(--space-panel-gap))));
  max-height: var(--nav-flyout-max-height, min(70vh, 520px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--color-inverse-border);
  border-radius: var(--radius-surface);
  background:
    radial-gradient(circle at 0 0, rgba(225, 29, 72, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(11, 20, 36, 0.98), rgba(7, 15, 27, 0.99));
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.3);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-shell[data-sidebar-state="compact"] .nav-group.flyout-open .nav-group-links,
.app-shell[data-sidebar-state="iconic"] .nav-group.flyout-open .nav-group-links {
  display: grid;
}

.app-shell[data-sidebar-state="iconic"] .nav-group-links .nav-link-label {
  display: inline;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links .nav-flyout-title,
.app-shell[data-sidebar-state="iconic"] .nav-group-links .nav-flyout-title {
  display: block;
  margin-bottom: 6px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--color-inverse-border-soft);
  color: var(--color-inverse-text-strong);
  font-size: 11px;
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links .nav-link,
.app-shell[data-sidebar-state="iconic"] .nav-group-links .nav-link {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border-left-color: transparent;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links .nav-link-label,
.app-shell[data-sidebar-state="iconic"] .nav-group-links .nav-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-sidebar-state="compact"] .nav-group-links .nav-link-label {
  display: inline;
}

.app-shell[data-sidebar-state="iconic"] .nav-group-links .nav-active-indicator {
  left: 0;
}

@media (min-width: 1280px) and (max-width: 1360px) {
  .app-shell.ui-app-frame {
    --sidebar-current-width: 280px;
  }

  .app-shell[data-sidebar-state="compact"] {
    --sidebar-current-width: var(--size-sidebar-compact-width);
  }

  .app-shell[data-sidebar-state="iconic"] {
    --sidebar-current-width: var(--size-sidebar-iconic-width);
  }

  .sidebar.ui-inverse-surface {
    padding-inline: 12px;
  }

  .app-shell[data-sidebar-state="compact"] .brand-image-sidebar {
    width: 48px;
  }

  .content.ui-content-region {
    padding-inline: var(--space-section-gap);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .app-shell.ui-app-frame {
    --sidebar-current-width: var(--size-sidebar-compact-width);
  }

  .app-shell[data-sidebar-state="expanded"] {
    --sidebar-current-width: 260px;
  }

  .app-shell[data-sidebar-state="iconic"] {
    --sidebar-current-width: var(--size-sidebar-iconic-width);
  }

  .content.ui-content-region {
    padding-inline: var(--space-section-gap);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .app-shell.ui-app-frame,
  .app-shell[data-sidebar-state="expanded"],
  .app-shell[data-sidebar-state="compact"],
  .app-shell[data-sidebar-state="iconic"] {
    --sidebar-current-width: var(--size-sidebar-iconic-width);
  }

  .sidebar.ui-inverse-surface {
    padding-inline: 12px;
  }

  .app-shell[data-sidebar-state] .brand-wrap.ui-stack-xs,
  .app-shell[data-sidebar-state] .nav-primary,
  .app-shell[data-sidebar-state] .sidebar-footer.ui-stack-xs,
  .app-shell[data-sidebar-state] .session-actions {
    justify-items: center;
  }

  .app-shell[data-sidebar-state] .brand-image-sidebar {
    width: 36px;
    max-width: 100%;
    object-fit: contain;
  }

  .app-shell[data-sidebar-state] .brand-subtitle,
  .app-shell[data-sidebar-state] .sidebar-state-label,
  .app-shell[data-sidebar-state] .nav-primary > .nav-link .nav-link-label,
  .app-shell[data-sidebar-state] .nav-group-toggle .nav-group-label,
  .app-shell[data-sidebar-state] .nav-group-toggle .nav-group-caret,
  .app-shell[data-sidebar-state] .session-copy,
  .app-shell[data-sidebar-state] .session-presence,
  .app-shell[data-sidebar-state] .session-profile-summary,
  .app-shell[data-sidebar-state] .logout-label {
    display: none;
  }

  .app-shell[data-sidebar-state] .nav-primary > .nav-link,
  .app-shell[data-sidebar-state] .nav-group-toggle,
  .app-shell[data-sidebar-state] .logout-button {
    justify-content: center;
    width: var(--size-touch-target);
    min-height: var(--size-touch-target);
    padding-inline: 0;
  }

  .app-shell[data-sidebar-state] .session-card {
    justify-content: center;
    padding: 6px;
  }
}

.main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background: transparent;
}

.topbar.ui-sticky-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: var(--size-topbar-min-height);
  padding: var(--space-section-gap) var(--space-layout-content-fluid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--layer-sticky);
  min-width: 0;
}

.topbar-left {
  min-width: 0;
}

.topbar-left > div {
  min-width: 0;
}

.topbar-title {
  font-size: var(--font-ui-title);
}

.topbar-context.ui-cluster {
  justify-content: flex-end;
  gap: var(--space-stack-md);
  min-width: 0;
}

.route-context-chip {
  background: var(--color-state-default-surface);
  color: var(--color-text-muted);
  font-size: var(--font-ui-caption);
}

.content.ui-content-region {
  width: min(100%, var(--size-content-wide));
  max-width: var(--size-content-wide);
  margin-inline: auto;
  padding-inline: var(--space-layout-content-fluid);
  min-width: 0;
}

.content.ui-content-region :where(a, button, .button-link) {
  max-width: 100%;
  min-width: 0;
}

.content.ui-content-region :where(a:not(.button-link)) {
  overflow-wrap: anywhere;
}

.priority-page-surface.ui-page-shell,
.training-reports-page-shell.ui-page-shell,
.dashboard-page-shell.ui-page-shell,
.tripulantes-page-shell.ui-page-shell,
.tripulante-detail-page-shell.ui-page-shell,
.training-record-detail-page-shell.ui-page-shell {
  min-width: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-layout-backdrop);
  z-index: var(--layer-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-base);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* 34.2.8: overlay policy bridges shell drawer and inline filter drawers to shared/ui primitives. */
.sidebar-overlay.ui-overlay-backdrop {
  z-index: var(--layer-overlay);
}

.sidebar[data-overlay-panel] {
  min-width: 0;
}

.filters-panel.ui-filter-panel.ui-filter-drawer.ui-overlay-inline-drawer,
.filters-main-grid.ui-filter-panel.ui-filter-drawer.ui-overlay-inline-drawer {
  min-width: 0;
  scrollbar-gutter: stable;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: var(--size-touch-target);
  min-height: var(--size-touch-target);
  border: var(--border-default);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-foreground);
  box-shadow: none;
  transition: var(--transition-state);
}

@media (prefers-reduced-motion: reduce) {
  .app-shell.ui-app-frame,
  .sidebar.ui-inverse-surface,
  .sidebar-overlay,
  .nav-active-indicator,
  .sidebar-mode-toggle,
  .sidebar-mode-toggle-icon,
  .sidebar-state-button {
    transition: none;
  }
}

@media (max-width: 1024px) {
  body.sidebar-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.sidebar-open .main-column {
    pointer-events: none;
  }

  .app-shell.ui-app-frame {
    grid-template-columns: minmax(0, 1fr);
    --sidebar-current-width: var(--size-sidebar-width);
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar.ui-inverse-surface {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--layer-modal);
    width: min(82vw, 320px);
    max-width: 320px;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
    transform: translate3d(-100%, 0, 0);
    transition: transform var(--motion-base), box-shadow var(--motion-base);
    overscroll-behavior: contain;
    border-right-color: var(--color-inverse-border);
    box-shadow: none;
    will-change: transform;
  }

  .app-shell[data-sidebar-state] .sidebar.ui-inverse-surface {
    width: min(82vw, 320px);
    max-width: 320px;
    overflow: hidden;
  }

  .app-shell[data-sidebar-state] .nav.ui-navigation-list {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .app-shell[data-sidebar-viewport="drawer"] .sidebar.ui-inverse-surface[aria-hidden="true"]:not(.open) {
    display: none;
  }

  .app-shell[data-sidebar-viewport="drawer"] .sidebar.ui-inverse-surface.open {
    display: grid;
  }

  body.sidebar-open .app-shell[data-sidebar-viewport="drawer"] .sidebar.ui-inverse-surface.open,
  .app-shell[data-sidebar-viewport="drawer"] .sidebar.ui-inverse-surface.open {
    left: 0;
    right: auto;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .app-shell[data-sidebar-state] .brand-subtitle {
    display: block;
  }

  .app-shell[data-sidebar-state] .brand-image-sidebar {
    width: 136px;
  }

  .app-shell[data-sidebar-state] .sidebar-state-controls {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell[data-sidebar-state] .sidebar-mode-toggle {
    display: none;
  }

  .app-shell[data-sidebar-state] .sidebar-state-label,
  .app-shell[data-sidebar-state] .nav-link-label,
  .app-shell[data-sidebar-state] .nav-group-label,
  .app-shell[data-sidebar-state] .nav-group-caret,
  .app-shell[data-sidebar-state] .logout-label {
    display: inline;
  }

  .app-shell[data-sidebar-state] .session-copy {
    display: grid;
  }

  .app-shell[data-sidebar-state] .session-card {
    justify-content: flex-start;
    padding: var(--space-stack-sm);
  }

  .app-shell[data-sidebar-state] .session-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .app-shell[data-sidebar-state] .session-caption,
  .app-shell[data-sidebar-state] .session-presence-label,
  .app-shell[data-sidebar-state] .profile-action-label {
    display: none;
  }

  .app-shell[data-sidebar-state] .session-presence {
    display: none;
  }

  .app-shell[data-sidebar-state] .session-profile-summary {
    display: none;
  }

  .app-shell[data-sidebar-state] .session-actions {
    justify-items: stretch;
  }

  .app-shell[data-sidebar-state] .nav-primary {
    justify-items: stretch;
  }

  .app-shell[data-sidebar-state] .nav-primary > .nav-link,
  .app-shell[data-sidebar-state] .nav-group-toggle,
  .app-shell[data-sidebar-state] .logout-button {
    width: 100%;
    justify-content: flex-start;
    padding-inline: var(--space-navigation-item-inline);
  }

  .app-shell[data-sidebar-state] .nav-group-toggle {
    min-height: 38px;
  }

  .app-shell[data-sidebar-state] .nav-primary > .nav-link,
  .app-shell[data-sidebar-state] .nav-group-toggle {
    border-left-color: transparent;
  }

  .app-shell[data-sidebar-state] .nav-primary > .nav-link.active,
  .app-shell[data-sidebar-state] .nav-primary > .nav-link[aria-current="page"],
  .app-shell[data-sidebar-state] .nav-group[data-nav-active-child="true"] > .nav-group-toggle {
    border-left-color: var(--color-primary);
  }

  .app-shell[data-sidebar-state] .nav-group-links {
    position: static;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding-left: 10px;
    padding-right: 2px;
    border: none;
    border-left: 1px dashed var(--color-inverse-border-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-shell[data-sidebar-state] .nav-group-links .nav-flyout-title {
    display: none;
  }

  .app-shell[data-sidebar-state] .sidebar-footer.ui-stack-xs {
    align-items: stretch;
  }

  .sidebar.ui-inverse-surface.open {
    transform: translate3d(0, 0, 0);
    box-shadow: var(--shadow-navigation-panel);
  }

  .sidebar-close-btn {
    display: inline-flex;
  }

  .sidebar-footer.ui-stack-xs {
    padding-bottom: calc(var(--space-stack-sm) + env(safe-area-inset-bottom));
  }

  .mobile-menu-btn {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .topbar.ui-sticky-surface {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-stack-sm);
    width: 100%;
  }

  .topbar-context.ui-cluster {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-context .topbar-action {
    flex: 1 1 220px;
    justify-content: center;
    text-align: center;
  }

  .page-header.ui-page-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-header.ui-page-header .page-header-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .topbar.ui-sticky-surface {
    padding: calc(var(--space-stack-md) + env(safe-area-inset-top)) var(--space-layout-content-mobile) var(--space-stack-md);
    gap: var(--space-stack-md);
  }

  .content.ui-content-region {
    padding: var(--space-layout-content-mobile);
    padding-bottom: var(--space-layout-content-end);
  }
}

@media (max-width: 640px) {
  .topbar.ui-sticky-surface,
  .content.ui-content-region {
    padding-inline: var(--space-layout-content-narrow);
  }

  .route-context-chip,
  .topbar-context .topbar-action {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

.login-body {
  display: block;
}

.login-shell-spa {
  width: min(100%, 560px);
  margin: 0 auto;
  position: relative;
  z-index: var(--layer-raised);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}

.login-shell-spa .login-visual {
  position: relative;
  min-height: clamp(196px, 31dvh, 238px);
  border-radius: 24px;
  overflow: hidden;
  background-color: #091120;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.36);
  animation: loginVisualEnter 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-shell-spa .login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 97, 110, 0.22), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(243, 183, 77, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.06) 0%, rgba(5, 10, 20, 0.28) 46%, rgba(5, 10, 20, 0.82) 100%);
}

.login-shell-spa .login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(4, 9, 18, 0.82) 0%, rgba(4, 9, 18, 0.38) 30%, rgba(4, 9, 18, 0.08) 58%),
    linear-gradient(0deg, rgba(4, 9, 18, 0.56) 0%, transparent 38%);
}

.login-shell-spa .login-visual-photo-wrap {
  position: absolute;
  inset: 0;
}

.login-shell-spa .login-visual-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 56%;
  transform: scale(1.02);
}

.login-shell-spa .login-visual-content {
  position: relative;
  z-index: var(--layer-overlay);
  min-height: clamp(196px, 31dvh, 238px);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.login-shell-spa .login-visual-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.login-shell-spa .brand-image-login-visual {
  width: 124px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.login-shell-spa .login-visual-badge,
.login-shell-spa .login-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 17, 32, 0.46);
  backdrop-filter: blur(18px) saturate(140%);
  color: rgba(241, 245, 249, 0.92);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-shell-spa .login-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-shell-spa .login-visual-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(22px, 8vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #f8fafc;
}

.login-shell-spa .login-visual-copy p {
  display: none;
  margin: 10px 0 0;
  max-width: 48ch;
  color: rgba(226, 232, 240, 0.84);
  font-size: 14px;
  line-height: 1.6;
}

.login-shell-spa .login-visual-metrics {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-shell-spa .login-metric-card {
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 18, 35, 0.5) 0%, rgba(9, 18, 35, 0.72) 100%);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-shell-spa .login-metric-card:last-child {
  grid-column: 1 / -1;
}

.login-shell-spa .login-metric-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(191, 219, 254, 0.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-shell-spa .login-metric-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #f8fafc;
}

.login-shell-spa .login-panel {
  position: relative;
  z-index: var(--layer-modal);
  margin: -20px 0 0;
  padding: 20px 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 18, 35, 0.9) 0%, rgba(7, 13, 26, 0.94) 100%);
  backdrop-filter: blur(28px) saturate(155%);
  box-shadow:
    0 24px 80px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: loginCardEnter 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-shell-spa .login-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 26%, transparent 60%);
  pointer-events: none;
}

.login-shell-spa .login-panel::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 48px;
  background: radial-gradient(circle at center, rgba(241, 167, 92, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(18px);
}

.login-shell-spa .login-panel-header,
.login-shell-spa .login-form,
.login-shell-spa .login-support-note,
.login-shell-spa .login-feedback {
  position: relative;
  z-index: 1;
}

.login-shell-spa .login-panel-header {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.login-shell-spa .login-panel-header h2 {
  margin: 0;
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #f8fafc;
}

.login-shell-spa .login-panel-header p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.login-shell-spa .login-chip {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(241, 245, 249, 0.94);
}

.login-shell-spa .login-feedback {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.login-shell-spa .login-feedback:empty {
  display: none;
}

.login-shell-spa .login-feedback .flash {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(12, 23, 42, 0.62);
  color: #e2e8f0;
  box-shadow: none;
}

.login-shell-spa .login-feedback .flash.error {
  background: rgba(127, 29, 29, 0.34);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.26);
}

.login-shell-spa .login-feedback .flash.success {
  background: rgba(6, 95, 70, 0.34);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.28);
}

.login-shell-spa .login-form {
  display: grid;
  gap: 14px;
}

.login-shell-spa .login-field {
  display: grid;
  gap: 8px;
}

.login-shell-spa .login-field label {
  color: rgba(226, 232, 240, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-shell-spa .login-field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.login-shell-spa .login-inline-note {
  color: rgba(148, 163, 184, 0.9);
  font-size: 11px;
  line-height: 1.4;
}

.login-shell-spa .login-input-shell {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(14, 23, 39, 0.72) 0%, rgba(10, 17, 30, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.login-shell-spa .login-input-shell:hover {
  border-color: rgba(241, 167, 92, 0.32);
}

.login-shell-spa .login-input-shell:focus-within {
  border-color: rgba(244, 181, 106, 0.72);
  box-shadow:
    0 0 0 4px rgba(244, 181, 106, 0.12),
    0 20px 35px rgba(3, 7, 18, 0.24);
  transform: translateY(-1px);
}

.login-shell-spa .login-input-shell input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.login-shell-spa .login-input-shell input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.login-shell-spa .login-form input:hover,
.login-shell-spa .login-form input:focus {
  transform: none;
  box-shadow: none;
}

.login-shell-spa .login-form input:focus-visible {
  outline: none;
}

.login-shell-spa .login-input-shell-password input {
  padding-right: 8px;
}

.login-shell-spa .login-password-toggle {
  padding: 0 16px 0 10px;
  min-height: 42px;
  background: transparent;
  color: rgba(226, 232, 240, 0.78);
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.login-shell-spa .login-password-toggle:hover {
  background: transparent;
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

.login-shell-spa .login-password-toggle:focus-visible {
  outline: 2px solid rgba(244, 181, 106, 0.36);
  outline-offset: 2px;
}

.login-shell-spa .login-form-meta {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.login-shell-spa .login-remember-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.45;
}

.login-shell-spa .login-remember-checkbox {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #f4b56a;
}

.login-shell-spa .login-form-trust {
  display: none;
}

.login-shell-spa .login-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, #171d3f 0%, #21274f 34%, #8f2337 70%, #bc2035 100%);
  color: #fff7f8;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(188, 32, 53, 0.26),
    0 10px 28px rgba(33, 39, 79, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-shell-spa .login-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 38%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.login-shell-spa .login-submit:hover {
  background:
    linear-gradient(135deg, #202859 0%, #283063 34%, #a4283e 70%, #d92d46 100%);
  transform: translateY(-1px);
  box-shadow:
    0 24px 44px rgba(188, 32, 53, 0.32),
    0 14px 30px rgba(33, 39, 79, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-shell-spa .login-submit:hover::before {
  transform: translateX(120%);
}

.login-shell-spa .login-submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(188, 32, 53, 0.18),
    0 0 0 9px rgba(33, 39, 79, 0.18),
    0 22px 40px rgba(188, 32, 53, 0.28);
}

.login-shell-spa .login-submit:active {
  transform: translateY(0);
  background:
    linear-gradient(135deg, #161c3d 0%, #1d244a 34%, #8a2235 70%, #b11d31 100%);
  box-shadow:
    0 14px 28px rgba(188, 32, 53, 0.24),
    0 8px 18px rgba(33, 39, 79, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-shell-spa .login-submit:disabled {
  cursor: wait;
  opacity: 0.82;
  box-shadow:
    0 12px 24px rgba(33, 39, 79, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-shell-spa .login-support-note {
  margin-top: 12px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 480px) {
  .login-shell-spa {
    width: min(100%, 620px);
    gap: 16px;
  }

  .login-shell-spa .login-visual {
    min-height: clamp(216px, 33dvh, 276px);
  }

  .login-shell-spa .login-visual-content {
    min-height: clamp(216px, 33dvh, 276px);
    padding: 18px 18px 20px;
  }

  .login-shell-spa .login-panel {
    padding: 22px 18px 20px;
  }
}

@media (min-width: 680px) {
  .login-shell-spa {
    max-width: 760px;
    gap: 18px;
  }

  .login-shell-spa .login-visual {
    min-height: clamp(292px, 38dvh, 360px);
    border-radius: 32px;
  }

  .login-shell-spa .login-visual-content {
    min-height: clamp(292px, 38dvh, 360px);
    padding: 24px 24px 24px;
  }

  .login-shell-spa .login-visual-copy h1 {
    max-width: 13ch;
  }

  .login-shell-spa .login-visual-copy p {
    display: block;
  }

  .login-shell-spa .login-visual-metrics {
    display: none;
  }

  .login-shell-spa .login-panel {
    width: min(560px, calc(100% - 28px));
    margin: -38px auto 0;
    padding: 28px 24px 22px;
  }

  .login-shell-spa .login-panel-header p {
    max-width: 46ch;
  }
}

@media (min-width: 760px) {
  .login-shell-spa .login-form-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .login-shell-spa .login-form-trust {
    display: block;
    text-align: right;
    background: transparent;
    border: 0;
    padding: 0;
  }
}

@media (min-width: 820px) and (min-height: 760px) {
  .login-shell-spa {
    max-width: 860px;
  }

  .login-shell-spa .login-visual {
    min-height: clamp(320px, 40dvh, 388px);
  }

  .login-shell-spa .login-visual-content {
    min-height: clamp(320px, 40dvh, 388px);
    padding: 26px 26px 24px;
  }

  .login-shell-spa .login-visual-copy h1 {
    max-width: 14ch;
  }

  .login-shell-spa .login-visual-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-shell-spa .login-metric-card:last-child {
    grid-column: auto;
  }

  .login-shell-spa .login-panel {
    width: min(600px, calc(100% - 40px));
    margin-top: -46px;
  }
}

@media (min-width: 1040px) and (min-height: 720px) {
  .login-body {
    display: grid;
    align-items: center;
  }

  .login-shell-spa {
    width: min(1180px, 100%);
    max-width: 1180px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
    gap: 22px;
    align-items: stretch;
  }

  .login-shell-spa .login-visual {
    min-height: min(760px, calc(100dvh - 48px));
    border-radius: 36px;
  }

  .login-shell-spa .login-visual-photo {
    object-position: center center;
  }

  .login-shell-spa .login-visual-content {
    min-height: min(760px, calc(100dvh - 48px));
    padding: 32px 30px 30px;
    justify-content: space-between;
  }

  .login-shell-spa .login-visual-copy {
    margin-top: auto;
  }

  .login-shell-spa .brand-image-login-visual {
    width: 168px;
  }

  .login-shell-spa .login-visual-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-shell-spa .login-metric-card:last-child {
    grid-column: auto;
  }

  .login-shell-spa .login-panel {
    width: auto;
    margin: 0;
    min-height: min(760px, calc(100dvh - 48px));
    padding: 34px 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 36px;
  }

  .login-shell-spa .login-panel::before {
    border-radius: 35px;
  }

  .login-shell-spa .login-panel-header h2 {
    max-width: 10ch;
  }

  .login-shell-spa .login-panel-header p {
    max-width: 42ch;
  }
}

@media (min-width: 1040px) and (min-height: 720px) and (max-height: 820px) {
  .login-shell-spa {
    gap: 18px;
  }

  .login-shell-spa .login-visual,
  .login-shell-spa .login-visual-content,
  .login-shell-spa .login-panel {
    min-height: min(660px, calc(100dvh - 32px));
  }

  .login-shell-spa .login-visual-content {
    padding: 26px 24px 24px;
  }

  .login-shell-spa .login-panel {
    padding: 28px 24px 22px;
  }

  .login-shell-spa .login-visual-copy p {
    max-width: 34ch;
    font-size: 13px;
  }
}

@media (min-width: 1280px) {
  .login-shell-spa .login-visual-content {
    padding: 36px;
  }

  .login-shell-spa .login-panel {
    padding: 36px 32px 30px;
  }

  .login-shell-spa .login-visual-copy p {
    max-width: 42ch;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .login-body {
    display: block;
    padding:
      max(10px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom))
      10px;
  }

  .login-shell-spa {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
    gap: 12px;
    align-items: stretch;
  }

  .login-shell-spa .login-visual {
    min-height: calc(100dvh - 20px);
  }

  .login-shell-spa .login-visual-content {
    min-height: calc(100dvh - 20px);
    padding: 14px;
    gap: 8px;
  }

  .login-shell-spa .brand-image-login-visual {
    width: 112px;
  }

  .login-shell-spa .login-visual-badge,
  .login-shell-spa .login-chip {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .login-shell-spa .login-eyebrow {
    margin-bottom: 2px;
  }

  .login-shell-spa .login-visual-copy h1 {
    max-width: 14ch;
    font-size: clamp(20px, 3.4vw, 26px);
  }

  .login-shell-spa .login-visual-copy p,
  .login-shell-spa .login-visual-metrics,
  .login-shell-spa .login-form-trust,
  .login-shell-spa .login-support-note {
    display: none;
  }

  .login-shell-spa .login-panel {
    width: auto;
    margin: 0;
    padding: 18px 16px 16px;
    overflow: auto;
  }

  .login-shell-spa .login-panel-header {
    gap: 6px;
    margin-bottom: 10px;
  }

  .login-shell-spa .login-panel-header h2 {
    font-size: clamp(24px, 4vw, 30px);
  }

  .login-shell-spa .login-panel-header p {
    font-size: 12px;
  }

  .login-shell-spa .login-form {
    gap: 12px;
  }

  .login-shell-spa .login-input-shell,
  .login-shell-spa .login-input-shell input,
  .login-shell-spa .login-submit {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .login-body {
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      max(12px, env(safe-area-inset-bottom))
      12px;
  }

  .login-background .login-grid-glow {
    display: none;
  }

  .login-background .login-orb-one {
    width: 260px;
    height: 260px;
    top: -10%;
    left: -18%;
  }

  .login-background .login-orb-two {
    width: 300px;
    height: 300px;
    right: -20%;
    bottom: -18%;
  }

  .login-shell-spa {
    gap: 12px;
  }

  .login-shell-spa .login-visual-content {
    padding: 14px 14px 16px;
  }

  .login-shell-spa .login-panel {
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .login-shell-spa .login-panel-header h2 {
    font-size: 26px;
  }

  .login-shell-spa .login-field-heading {
    display: grid;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .login-shell-spa .brand-image-login-visual {
    width: 112px;
  }

  .login-shell-spa .login-visual-badge,
  .login-shell-spa .login-chip {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .login-shell-spa .login-panel-header p,
  .login-shell-spa .login-support-note {
    font-size: 11px;
  }

  .login-shell-spa .login-remember-field {
    font-size: 13px;
  }
}

.login-form-panel {
  margin-top: 18px;
}

.frontend-legacy-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.frontend-hidden {
  display: none !important;
}

.compact-page-header {
  margin-bottom: 12px;
}

.training-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.training-tab-link {
  display: grid;
  gap: 4px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: var(--border-default);
  background: var(--color-surface);
  color: var(--color-foreground);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.training-tab-link:hover {
  transform: translateY(-1px);
}

.training-tab-link.active {
  border-color: var(--color-primary-soft);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface));
  box-shadow: var(--shadow-raised);
}

.training-tab-eyebrow {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-foreground-muted);
}

.training-hero-panel {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95)),
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.24), transparent 42%);
  color: #f8fafc;
  box-shadow: var(--shadow-raised);
}

.training-hero-copy {
  display: grid;
  gap: 8px;
}

.training-hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.training-hero-copy p {
  margin: 0;
  max-width: 880px;
  color: rgba(248, 250, 252, 0.8);
}

.training-hero-kicker {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.68);
}

.training-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.training-hero-metric {
  display: grid;
  gap: 6px;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.training-hero-metric strong {
  font-size: 24px;
  line-height: 1;
}

.training-hero-label,
.training-hero-caption {
  font-size: var(--font-size-small);
  color: rgba(248, 250, 252, 0.72);
}

.training-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.training-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: var(--border-default);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-strong);
}

.training-field-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 18px;
}

.training-field-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  border: var(--border-default);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
}

.training-field-token strong {
  color: var(--color-foreground);
  font-size: var(--font-size-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-stage-panel {
  display: grid;
  gap: 18px;
}

.training-section-head {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.training-section-step {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.training-section-copy {
  display: grid;
  gap: 4px;
}

.training-section-copy h2,
.training-card-head h3,
.training-pane-head h3,
.training-detail-head h3 {
  margin: 0;
  font-size: var(--font-size-section);
  line-height: 1.1;
}

.training-section-copy p,
.training-card-head p,
.training-pane-head p {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-meta);
  line-height: var(--line-height-body);
}

.training-stage-grid,
.training-master-layout,
.training-program-workbench,
.training-toolbar-panel {
  display: grid;
  gap: var(--space-5);
}

.training-stage-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.training-stage-main,
.training-stage-side,
.training-master-editor,
.training-master-register,
.training-workbench-pane {
  display: grid;
  gap: var(--space-4);
}

.training-selection-form {
  align-items: end;
}

.training-selection-hint {
  margin-top: -4px;
}

.training-snapshot-card,
.training-editor-card,
.training-data-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
}

.training-snapshot-title {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-foreground-muted);
}

.training-snapshot-grid {
  display: grid;
  gap: var(--space-3);
}

.training-snapshot-item {
  display: grid;
  gap: 3px;
}

.training-snapshot-item span {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-foreground-muted);
}

.training-snapshot-item strong {
  font-size: var(--font-size-body);
  color: var(--color-foreground);
}

.training-toolbar-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: end;
}

.training-toolbar-note {
  display: grid;
  gap: 4px;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
  border: var(--border-default);
}

.training-toolbar-note strong {
  font-size: var(--font-size-body);
}

.training-toolbar-note span {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
}

.training-card-head,
.training-pane-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
}

.training-pane-counter,
.training-mono-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  border: var(--border-default);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-emphasis);
  color: var(--color-foreground);
}

.training-inline-value {
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-strong);
}

.training-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: var(--space-1) 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.training-chip--general {
  background: var(--color-info-soft);
  color: var(--color-info);
}

.training-chip--specific {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.training-chip--special {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.training-chip--flight {
  background: #f3e8ff;
  color: #7e22ce;
}

.training-chip--other,
.training-chip--warning {
  background: var(--color-surface-subtle);
  color: var(--gray);
}

.training-chip--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.training-root-model-badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  font-weight: var(--font-weight-medium);
  color: #ffffff;
}

.training-root-model-badge--general {
  background: #1565c0;
}

.training-root-model-badge--specific {
  background: #2e7d32;
}

.training-root-model-badge--special {
  background: #e65100;
}

.training-root-model-badge--flight {
  background: #7b1fa2;
}

.training-root-model-badge--other {
  background: #616161;
}

.badge-modelo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
}

.badge-modelo--general,
.training-root-model-badge--general {
  background: #1565c0;
  color: #fff;
}

.badge-modelo--specific,
.training-root-model-badge--specific {
  background: #2e7d32;
  color: #fff;
}

.badge-modelo--special,
.training-root-model-badge--special {
  background: #e65100;
  color: #fff;
}

.badge-modelo--flight,
.training-root-model-badge--flight {
  background: #6a1b9a;
  color: #fff;
}

.badge-modelo--other,
.training-root-model-badge--other {
  background: #546e7a;
  color: #fff;
}

.training-root-filter-panel,
.training-root-panel {
  display: grid;
  gap: 18px;
}

.training-root-filter-panel {
  margin-bottom: 18px;
}

.training-root-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.training-root-filter-field {
  display: grid;
  gap: 8px;
}

.training-root-filter-field select {
  width: 100%;
}

.training-root-filter-field span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.training-root-filter-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.training-root-filter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.training-root-filter-badge.is-active {
  background: rgba(229, 57, 53, 0.12);
  color: #b71c1c;
}

.training-root-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.training-root-summary-card {
  display: grid;
  gap: 6px;
}

.training-root-summary-card small {
  color: var(--muted);
  font-size: 12px;
}

.training-root-summary-card.is-highlighted {
  border-color: rgba(229, 57, 53, 0.18);
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.08);
}

.training-root-tab-shell {
  display: grid;
  gap: 18px;
}

.training-root-tab-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  scrollbar-width: thin;
}

.training-root-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 14px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.training-root-tab:hover {
  color: var(--text);
}

.training-root-tab.is-active {
  color: #e53935;
  border-bottom-color: #e53935;
}

.training-root-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.training-root-tab-content {
  display: none;
  gap: 18px;
}

.training-root-tab-content.is-active {
  display: grid;
}

.training-root-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.training-root-section-head h2 {
  margin: 0;
}

.training-root-type-toggle {
  justify-content: center;
}

.form-collapsible.training-root-type-form-shell {
  display: grid;
}

.training-root-form-grid {
  margin: 0;
}

.training-root-inline-hint {
  margin: 0;
}

.type-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.type-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.type-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.type-card.is-filtered,
.type-card.is-editing {
  border-color: rgba(229, 57, 53, 0.28);
  box-shadow: 0 10px 28px rgba(229, 57, 53, 0.08);
}

.type-card-header h3 {
  margin: 0;
  color: #1a1a2e;
  font-size: 18px;
  line-height: 1.2;
}

.type-card-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.type-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-root-metric-badge,
.training-root-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.training-root-metric-badge {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.training-root-status-badge.is-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.training-root-status-badge.is-inactive {
  background: #fce4ec;
  color: #c62828;
}

.type-card-meta {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.type-card-description {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.type-card-description.is-muted {
  color: #94a3b8;
}

.type-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.training-root-empty-state,
.training-root-empty-block {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  color: #64748b;
  text-align: center;
}

.training-root-empty-block {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.8);
}

.training-root-empty-icon {
  font-size: 28px;
  line-height: 1;
}

.training-root-empty-state p,
.training-root-empty-block p {
  margin: 0;
}

.training-root-table-wrap {
  margin-top: 2px;
}

.training-root-group-row td {
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

.training-master-layout {
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
  align-items: start;
}

.training-master-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.training-program-batch-form,
.training-segment-card-grid {
  display: grid;
  gap: 12px;
}

.training-program-workbench {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.training-workbench-pane {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.training-selector-group {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.training-selector-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.training-selector-feedback {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  font-size: 0.92rem;
}

.training-selector-feedback[data-kind="info"] {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(219, 234, 254, 0.72);
  color: #1d4ed8;
}

.training-selector-feedback[data-kind="success"] {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(209, 250, 229, 0.72);
  color: #047857;
}

.training-selector-feedback[data-kind="error"] {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 226, 226, 0.76);
  color: #b91c1c;
}

.training-selector-group + .training-selector-group {
  margin-top: 14px;
}

.training-selector-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(248, 250, 252, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.training-selector-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.training-selector-list {
  display: grid;
}

.training-catalog-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  transition: background 0.18s ease;
}

.training-catalog-row:first-child {
  border-top: 0;
}

.training-catalog-row.is-selected {
  background: rgba(225, 29, 72, 0.06);
}

.training-catalog-copy {
  display: grid;
  gap: 5px;
}

.training-segment-name {
  font-weight: 800;
  color: var(--text);
}

.training-catalog-meta,
.training-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.training-catalog-hours {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.training-selected-empty,
.training-inline-empty {
  border: 1px dashed rgba(148, 163, 184, 0.58);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.training-selected-empty {
  padding: 18px;
  color: var(--muted);
}

.training-selected-stack {
  display: grid;
  gap: 14px;
}

.training-detail-card {
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.training-detail-kicker {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.training-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.training-segment-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-inline-alert {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(254, 243, 199, 0.74);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.training-submit-bar {
  margin-top: 4px;
}

.training-hours-reference .summary-grid {
  margin-bottom: 0;
}

.training-hours-note {
  margin-top: 10px;
}

@media (max-width: 1200px) {
  .training-hero-metrics,
  .training-workspace-tabs,
  .training-stage-grid,
  .training-master-layout,
  .training-program-workbench,
  .training-toolbar-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .training-hero-panel,
  .training-workbench-pane,
  .training-editor-card,
  .training-data-card,
  .training-snapshot-card {
    padding: 16px;
  }

  .training-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-segment-card-grid {
    grid-template-columns: 1fr;
  }

  .type-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .training-root-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .training-root-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .training-root-filter-clear,
  .training-root-type-toggle {
    width: 100%;
    justify-content: center;
  }

  .training-root-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-root-tab {
    padding: 12px 14px;
    font-size: 13px;
  }

  .training-root-tab-count {
    min-width: 24px;
    min-height: 22px;
    font-size: 11px;
  }

  .type-card-grid {
    grid-template-columns: 1fr;
  }

  .training-root-form-grid {
    grid-template-columns: 1fr;
  }

  .type-card-actions {
    justify-content: stretch;
  }

  .type-card-actions > * {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .training-hero-metrics,
  .training-workspace-tabs {
    grid-template-columns: 1fr;
  }

  .training-catalog-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .training-catalog-hours {
    grid-column: 2;
  }

  .training-selector-actions {
    justify-content: stretch;
  }

  .training-selector-actions > * {
    flex: 1 1 220px;
  }

  .training-section-head,
  .training-card-head,
  .training-pane-head,
  .training-selector-group-head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Operational surface phase 1: dense tables, responsive cards and filters. */
.operational-toolbar,
.filters-bar {
  display: grid;
  gap: var(--space-stack-sm);
  margin-bottom: var(--space-section-gap);
}

.filters-bar-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(160px, 0.8fr)) auto auto;
  gap: var(--space-stack-md);
  align-items: end;
}

.filters-bar-actions {
  display: flex;
  gap: var(--space-stack-sm);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.filters-state {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  min-height: 30px;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
}

.filters-state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-foreground);
  font-weight: var(--font-weight-medium);
}

.filters-bar.ui-filter-bar {
  min-width: 0;
}

.filters-bar-main.ui-filter-row,
.filters-main-grid.ui-filter-row {
  display: grid;
  gap: var(--space-filter-gap);
  align-items: end;
  min-width: 0;
}

.filters-bar-actions.ui-filter-actions,
.filter-actions.ui-filter-actions {
  min-width: 0;
}

.filters-panel.ui-filter-panel {
  margin-top: var(--space-stack-sm);
}

.filters-panel.ui-filter-panel.collapsed,
.filters-panel.ui-filter-panel[hidden] {
  display: none;
}

.filters-panel .filters {
  margin-bottom: 0;
}

/* 34.2.7: card/grid responsive policy bridges shared/ui primitives to real surfaces. */
.summary-grid.ui-card-grid,
.compact-summary-grid.ui-card-grid,
.dashboard-stat-grid.ui-card-grid,
.dashboard-status-grid.ui-card-grid,
.dashboard-base-grid.ui-card-grid,
.type-card-grid.ui-card-grid,
.training-program-operational-summary.ui-card-grid,
.report-context-items.ui-card-grid,
.report-evidence-list.ui-card-grid {
  display: grid;
  gap: var(--space-card-grid-gap);
  align-items: stretch;
  min-width: 0;
}

.summary-grid.ui-card-grid,
.compact-summary-grid.ui-card-grid,
.report-context-items.ui-card-grid,
.report-evidence-list.ui-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--size-card-grid-compact-min)), 1fr));
}

.summary-card.ui-surface,
.type-card.ui-surface,
.dashboard-kpi-card.ui-surface,
.dashboard-status-item.ui-card,
.dashboard-base-card.summary-card,
.dashboard-agenda-item.ui-surface,
.dashboard-calendar-detail-card.ui-surface,
.report-context-item.ui-surface,
.report-evidence-item.ui-surface,
.training-program-summary-card.ui-surface {
  min-width: 0;
  height: 100%;
  overflow-wrap: anywhere;
}

.ui-card .summary-card,
.ui-card .ui-card,
.summary-card .summary-card,
.dashboard-base-card .summary-card {
  box-shadow: none;
  border-radius: var(--radius-control);
}

.ui-card-metric,
.summary-card > span,
.summary-card > strong,
.dashboard-kpi-card > strong,
.dashboard-kpi-value,
.dashboard-base-card-value,
.dashboard-status-value,
.report-context-item strong,
.training-program-summary-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ui-card-actions,
.type-card-actions.ui-card-actions {
  min-width: 0;
}

.table-wrap:not(.ui-table-wrap) {
  border-radius: var(--radius-sm);
}

.data-table {
  max-width: 100%;
  table-layout: auto;
}

.data-table[data-responsive-density="compact"] tbody td,
.data-table[data-responsive-density="compact"] thead th {
  padding: var(--space-stack-sm) var(--space-stack-md);
}

.data-table[data-responsive-density="comfortable"] tbody td,
.data-table[data-responsive-density="comfortable"] thead th {
  padding: var(--space-stack-md) var(--space-stack-lg);
  line-height: 1.45;
}

.data-table :where([data-responsive-priority="actions"], .actions) {
  white-space: nowrap;
}

.data-table :where([data-responsive-priority="detail"], [data-table-detail]) {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
  line-height: 1.45;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: var(--space-stack-sm) var(--space-stack-md);
  background: var(--color-surface-muted);
  white-space: nowrap;
}

.data-table tbody td {
  padding: var(--space-stack-sm) var(--space-stack-md);
  line-height: 1.35;
}

.data-table tbody tr {
  transition: background-color var(--motion-fast);
}

.data-table tbody tr[data-responsive-row="record"]:focus-within {
  background: var(--color-surface-muted);
  outline: 2px solid rgba(189, 31, 45, 0.16);
  outline-offset: -2px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .actions {
  justify-content: flex-start;
  gap: var(--space-stack-sm);
}

.data-table .actions a,
.data-table .actions button {
  min-height: var(--size-action-min-height);
}

.operational-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: var(--space-5);
}

.operational-empty strong {
  color: var(--color-foreground);
}

.operational-empty span {
  max-width: 680px;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
}

.operational-empty[data-empty-type="no-results"] {
  border-style: solid;
}

/* 34.2.11: responsive state policy bridges legacy empty/flash aliases to shared primitives. */
.empty.ui-state,
.operational-empty.ui-state,
.report-state-panel .ui-state,
.route-state.ui-state {
  max-width: 100%;
}

.operational-empty.ui-state {
  border-style: dashed;
}

.operational-empty.ui-state[data-state="no-results"],
.operational-empty.ui-state[data-empty-type="no-results"] {
  border-style: solid;
}

.route-state.ui-state {
  margin: 0;
}

.flash.ui-alert {
  margin: 0;
}

.dashboard-widget-feedback.ui-alert,
.state-note.ui-alert,
.state-note.ui-feedback {
  max-width: 100%;
}

@media (max-width: 640px) {
  .empty.ui-state,
  .operational-empty.ui-state,
  .report-state-panel .ui-state {
    justify-items: stretch;
    text-align: left;
  }
}

.flash.warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: rgba(245, 158, 11, 0.32);
}

.flash.info,
.flash.loading {
  background: var(--color-info-soft);
  color: var(--color-foreground);
  border-color: rgba(59, 130, 246, 0.25);
}

/* G03: priority dashboard/tripulantes surface adopts shared/ui without functional drift. */
.priority-page-surface:not(.ui-page-shell) {
  gap: var(--space-panel-gap);
}

.dashboard-page-shell > .priority-page-header:not(.ui-page-header),
.tripulantes-page-shell > .priority-page-header:not(.ui-page-header) {
  margin-bottom: 0;
  padding: var(--space-panel-gap);
  align-items: flex-start;
}

.dashboard-page-shell > .state-note.ui-feedback {
  margin: 0;
  color: var(--color-state-info-text);
}

.dashboard-page-shell .dashboard-priority-grid,
.dashboard-page-shell .dashboard-secondary-grid {
  gap: var(--space-section-gap);
  margin-bottom: 0;
}

.dashboard-page-shell .dashboard-panel.ui-surface,
.dashboard-page-shell .dashboard-calendar-panel.ui-surface,
.tripulantes-page-shell .tripulantes-list-panel.ui-surface {
  padding: var(--space-panel-gap);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-surface);
}

.dashboard-page-shell .dashboard-widget-head.ui-cluster {
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-stack-md);
}

.dashboard-page-shell .dashboard-widget-empty {
  gap: var(--space-stack-xs);
}

.dashboard-page-shell .dashboard-compact-agenda.ui-stack-sm {
  margin-bottom: var(--space-section-gap);
}

.dashboard-page-shell .dashboard-agenda-item.ui-surface,
.dashboard-page-shell .dashboard-calendar-detail-card.ui-surface {
  border-radius: var(--radius-control);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-interactive);
  transition: var(--transition-state);
}

.dashboard-page-shell .dashboard-agenda-item.ui-surface:hover,
.dashboard-page-shell .dashboard-agenda-item.ui-surface:focus-visible {
  background: var(--color-state-hover-surface);
  border-color: var(--color-state-info-border);
}

.dashboard-page-shell .summary-link-card.ui-surface {
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
}

.tripulantes-page-shell .pagination-bar.ui-cluster {
  justify-content: space-between;
  gap: var(--space-stack-md);
  margin-top: var(--space-section-gap);
}

@media (max-width: 900px) {
  .dashboard-page-shell > .priority-page-header:not(.ui-page-header),
  .tripulantes-page-shell > .priority-page-header:not(.ui-page-header),
  .dashboard-page-shell .dashboard-panel.ui-surface,
  .dashboard-page-shell .dashboard-calendar-panel.ui-surface,
  .tripulantes-page-shell .tripulantes-list-panel.ui-surface {
    padding: var(--space-layout-content-mobile);
  }

  .tripulantes-page-shell .pagination-bar.ui-cluster {
    align-items: stretch;
  }
}

/* G04: training/reports priority surface adopts shared/ui without route or loader drift. */
.training-reports-page-shell:not(.ui-page-shell) {
  gap: var(--space-panel-gap);
}

.training-reports-page-shell > .priority-page-header:not(.ui-page-header) {
  margin-bottom: 0;
  padding: var(--space-panel-gap);
  align-items: flex-start;
}

.training-reports-page-shell .training-program-panel.ui-surface,
.training-reports-page-shell .training-root-filter-panel.ui-surface,
.training-reports-page-shell .training-root-panel.ui-surface,
.training-reports-page-shell .training-report-panel.ui-surface {
  padding: var(--space-panel-gap);
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-surface);
}

.training-reports-page-shell .training-workbench-pane.ui-surface {
  border: var(--border-subtle);
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-interactive);
}

.training-reports-page-shell .summary-card.ui-surface,
.training-reports-page-shell .type-card.ui-surface,
.training-reports-page-shell .report-context-item.ui-surface,
.training-reports-page-shell .report-evidence-item.ui-surface {
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-interactive);
}

.training-reports-page-shell .type-card.ui-surface:hover,
.training-reports-page-shell .report-evidence-item.ui-surface:hover,
.training-reports-page-shell .report-evidence-item.ui-surface:focus-visible {
  background: var(--color-state-hover-surface);
  border-color: var(--color-state-info-border);
}

.training-reports-page-shell .report-context-strip.ui-surface,
.training-reports-page-shell .report-evidence-panel.ui-surface,
.training-reports-page-shell .competencia-history.ui-surface {
  padding: var(--space-section-gap);
  border-radius: var(--radius-surface);
  background: var(--color-state-hover-surface);
  box-shadow: none;
}

.training-reports-page-shell .state-note.ui-feedback {
  margin: 0;
  color: var(--color-state-info-text);
}

.training-reports-page-shell .training-program-operational-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0;
}

.training-reports-page-shell .training-program-summary-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 12px 14px 12px 16px;
  overflow: hidden;
}

.training-reports-page-shell .training-program-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--color-state-info-border);
}

.training-reports-page-shell .training-program-summary-card strong,
.training-reports-page-shell .training-program-group-head span,
.training-reports-page-shell .training-evidence-chip {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.training-reports-page-shell .training-program-summary-card span {
  color: var(--color-foreground);
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-strong);
  line-height: 1.05;
}

.training-reports-page-shell .training-program-summary-card small {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.25;
}

.training-reports-page-shell .training-program-summary-card--critical::before {
  background: var(--color-error);
}

.training-reports-page-shell .training-program-summary-card--warning::before {
  background: var(--color-warning);
}

.training-reports-page-shell .training-program-summary-card--stable::before {
  background: var(--color-success);
}

.training-reports-page-shell .training-program-summary-card--neutral::before {
  background: var(--color-foreground-subtle);
}

.training-reports-page-shell .status-pill,
.training-reports-page-shell .training-evidence-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  width: fit-content;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: var(--border-subtle);
  line-height: 1.1;
}

.training-reports-page-shell .status-pill.status-red {
  background: var(--color-error-soft);
  color: var(--color-error-strong);
  border-color: var(--color-error-border);
}

.training-reports-page-shell .status-pill.status-yellow {
  background: var(--color-warning-soft);
  color: var(--color-warning-strong);
  border-color: var(--color-warning-border);
}

.training-reports-page-shell .status-pill.status-green {
  background: var(--color-success-soft);
  color: var(--color-success-strong);
  border-color: var(--color-success-border);
}

.training-reports-page-shell .status-pill.status-gray {
  background: var(--color-surface-subtle);
  color: var(--color-foreground-muted);
}

.training-reports-page-shell .training-program-group-row td {
  background: var(--color-surface-muted);
  border-top: var(--border-subtle);
}

.training-reports-page-shell .training-program-group-head {
  display: flex;
  align-items: center;
  gap: var(--space-stack-sm);
  flex-wrap: wrap;
}

.training-reports-page-shell .training-program-group-head span {
  color: var(--color-foreground-muted);
}

.training-reports-page-shell .training-program-group-head strong {
  color: var(--color-foreground);
}

.training-reports-page-shell .training-program-group-head small {
  color: var(--color-foreground-muted);
}

.training-reports-page-shell .training-program-record-row.is-attention {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent 52%);
}

.training-reports-page-shell .training-program-record-row.is-missing-evidence td[data-label="Anexos"] {
  color: var(--color-warning-strong);
}

.training-reports-page-shell .training-evidence-chip {
  margin-bottom: 4px;
}

.training-reports-page-shell .training-evidence-chip--missing {
  background: var(--color-warning-soft);
  color: var(--color-warning-strong);
  border-color: var(--color-warning-border);
}

.training-reports-page-shell .training-evidence-chip--present {
  background: var(--color-success-soft);
  color: var(--color-success-strong);
  border-color: var(--color-success-border);
}

.training-reports-page-shell .training-root-tab-shell {
  gap: var(--space-section-gap);
}

.training-reports-page-shell .training-root-tab-content.is-active {
  gap: var(--space-section-gap);
}

/* Dashboard operational phase: action-first hierarchy without global redesign. */
.dashboard-action-rail {
  display: grid;
  gap: var(--space-2);
  min-width: min(100%, 360px);
  padding: 12px;
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98)),
    var(--color-surface);
}

.dashboard-action-rail-head {
  display: grid;
  gap: 2px;
}

.dashboard-action-caption {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-action-helper {
  color: var(--color-foreground-muted);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-action-clusters {
  display: grid;
  gap: var(--space-2);
}

.dashboard-action-cluster {
  display: grid;
  gap: 6px;
}

.dashboard-action-cluster-label {
  color: var(--color-foreground-muted);
  font-size: 11px;
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-action-list {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.dashboard-action-link.button-link {
  min-height: 32px;
  padding: 0 10px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  font-size: var(--font-size-caption);
}

.dashboard-action-link.button-link:hover,
.dashboard-action-link.button-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(239, 246, 255, 0.92);
}

.dashboard-priority-grid,
.dashboard-secondary-grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.dashboard-priority-grid {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
}

.dashboard-secondary-grid {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.dashboard-mid-surface-grid {
  grid-template-columns: minmax(320px, 0.96fr) minmax(320px, 1.04fr);
  align-items: stretch;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dashboard-widget-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
}

.dashboard-widget-feedback {
  margin-bottom: 0;
}

.dashboard-mid-surface-panel {
  min-width: 0;
}

.dashboard-page-shell .dashboard-mid-surface-panel.ui-surface {
  gap: var(--space-3);
}

.dashboard-mid-surface-head {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.dashboard-mid-surface-loading {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: var(--space-3) var(--space-4);
  border-style: dashed;
  background: rgba(248, 250, 252, 0.86);
  color: var(--color-foreground-muted);
}

.dashboard-widget-empty {
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: left;
}

.dashboard-widget-empty strong {
  color: var(--color-foreground);
}

.dashboard-widget-empty span {
  color: var(--color-foreground-muted);
}

.dashboard-critical-panel .dashboard-subheader {
  margin-bottom: 0;
}

.dashboard-critical-table tbody td.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: clamp(98px, 10vw, 120px);
  min-width: 98px;
  padding-inline: var(--space-stack-xs) var(--space-stack-md);
  text-align: right;
  white-space: nowrap;
}

.dashboard-calendar-panel {
  margin-bottom: var(--space-5);
}

.dashboard-compact-agenda {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dashboard-agenda-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.dashboard-agenda-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
}

.dashboard-agenda-item strong,
.dashboard-agenda-item span,
.dashboard-agenda-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-agenda-item strong {
  color: var(--color-foreground);
  font-size: var(--font-size-body);
}

.dashboard-agenda-item span,
.dashboard-agenda-item small {
  color: var(--color-foreground-muted);
}

.dashboard-base-panel .summary-grid,
.dashboard-secondary-summary {
  margin-bottom: 0;
}

.dashboard-base-panel {
  display: grid;
  gap: var(--space-4);
}

.dashboard-base-panel-head {
  display: grid;
  gap: var(--space-2);
}

.dashboard-base-overview {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-2);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(255, 255, 255, 0.99) 100%),
    var(--color-surface);
}

.dashboard-base-summary {
  display: grid;
  grid-template-columns: minmax(156px, auto) minmax(0, 1fr);
  gap: var(--space-2) var(--space-3);
  align-items: start;
}

.dashboard-base-summary-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dashboard-base-summary-label {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-base-summary strong {
  color: var(--color-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.dashboard-base-summary-context {
  color: var(--color-foreground-subtle);
  font-size: var(--font-size-caption);
  line-height: 1.3;
}

.dashboard-base-summary-text {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.4;
  max-width: 52ch;
}

.dashboard-secondary-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.dashboard-secondary-summary .summary-card {
  min-height: 0;
  padding: 0;
  box-shadow: none;
}

.dashboard-secondary-summary .summary-card span {
  font-size: inherit;
}

@media (max-width: 900px) {
  .dashboard-action-list {
    width: 100%;
  }

  .dashboard-action-list .button-link {
    flex: 1 1 180px;
    justify-content: center;
  }

  .dashboard-priority-grid,
  .dashboard-secondary-grid,
  .dashboard-agenda-list {
    grid-template-columns: 1fr;
  }

  .dashboard-priority-grid {
    margin-bottom: var(--space-4);
  }

  .dashboard-calendar-panel {
    margin-bottom: var(--space-4);
  }

  .dashboard-secondary-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-bar-main {
    grid-template-columns: 1fr;
  }

  .filters-bar-actions {
    justify-content: stretch;
  }

  .filters-bar-actions > *,
  .filters-bar-main > button,
  .filters-bar-main > .button-link {
    width: 100%;
    justify-content: center;
  }

  .filters-state {
    align-items: stretch;
  }

  .filters-state-chip {
    width: 100%;
  }

  .data-table.responsive-cards tbody {
    gap: 10px;
  }

  .data-table.responsive-cards {
    width: 100%;
    min-width: 0;
  }

  .data-table.responsive-cards tbody tr[data-responsive-row="record"] {
    display: grid;
    align-items: stretch;
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 10px;
  }

  .data-table.responsive-cards tbody tr[data-responsive-row="group"] {
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-muted);
    border: var(--border-subtle);
    box-shadow: none;
  }

  .data-table.responsive-cards tbody tr[data-responsive-row="empty"] {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .data-table.responsive-cards tbody td {
    display: grid;
    grid-template-columns: var(--size-table-card-label);
    gap: var(--space-table-card-gap);
    align-items: start;
    margin-top: 8px;
  }

  .data-table.responsive-cards tbody tr[data-responsive-row="record"] > td:first-child {
    margin-top: 0;
  }

  .data-table.responsive-cards tbody td::before {
    margin: 0;
    line-height: 1.3;
  }

  .data-table.responsive-cards tbody td[colspan],
  .data-table.responsive-cards tbody tr[data-responsive-row="group"] td,
  .data-table.responsive-cards tbody tr[data-responsive-row="empty"] td {
    display: block;
  }

  .data-table.responsive-cards tbody td[colspan]::before,
  .data-table.responsive-cards tbody tr[data-responsive-row="group"] td::before,
  .data-table.responsive-cards tbody tr[data-responsive-row="empty"] td::before {
    content: none;
  }

  .data-table.responsive-cards tbody td[data-label-missing="true"]::before {
    content: "Campo";
  }

  .data-table.responsive-cards tbody td[data-responsive-priority="primary"] {
    order: 0;
    color: var(--color-foreground);
    font-weight: var(--font-weight-emphasis);
  }

  .data-table.responsive-cards tbody td[data-responsive-priority="secondary"] {
    order: 5;
  }

  .data-table.responsive-cards tbody td[data-responsive-priority="tertiary"] {
    order: 10;
    color: var(--color-foreground-muted);
    font-size: var(--font-size-small);
  }

  .data-table.responsive-cards tbody td[data-responsive-priority="detail"],
  .data-table.responsive-cards tbody td[data-table-detail] {
    order: 20;
    display: block;
  }

  .data-table.responsive-cards tbody td.actions {
    grid-template-columns: 1fr;
  }

  .data-table.responsive-cards tbody td[data-responsive-priority="actions"],
  .data-table.responsive-cards tbody td.actions {
    order: 30;
    padding-top: 10px;
    border-top: var(--border-subtle);
    white-space: normal;
  }

  .data-table.responsive-cards tbody td.actions > :where(a, button, .button-link),
  .data-table.responsive-cards tbody td.actions .ui-table-actions > :where(a, button, .button-link) {
    width: 100%;
    justify-content: center;
  }

  .dashboard-critical-table.data-table.responsive-cards tbody td.actions {
    grid-template-columns: minmax(84px, 30%) minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    margin-top: 6px;
  }

  .dashboard-critical-table.data-table.responsive-cards tbody td[data-responsive-priority="actions"],
  .dashboard-critical-table.data-table.responsive-cards tbody td.actions {
    padding-top: 4px;
    border-top: 0;
  }

  .dashboard-critical-table.data-table.responsive-cards tbody td.actions::before {
    color: var(--color-foreground-muted);
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-medium);
  }

  .dashboard-critical-table.data-table.responsive-cards tbody td.actions > :where(a, button, .button-link),
  .dashboard-critical-table.data-table.responsive-cards tbody td.actions .ui-table-actions > :where(a, button, .button-link) {
    width: fit-content;
    min-width: 0;
    justify-content: flex-start;
  }

  .dashboard-critical-table.data-table.responsive-cards .dashboard-row-action {
    min-height: 22px;
    padding: 1px 5px;
  }

  .data-table.responsive-cards tbody tr[data-responsive-row="empty"] .ui-table-state,
  .data-table.responsive-cards tbody tr[data-responsive-row="group"] .ui-table-state {
    padding: var(--space-panel-gap);
  }

  .data-table.responsive-cards .ui-table-state[data-empty-type="loading"],
  .data-table.responsive-cards .ui-table-state[data-empty-type="error"],
  .data-table.responsive-cards .ui-table-state[data-empty-type="no-results"] {
    display: grid;
    gap: var(--space-stack-sm);
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .data-table.responsive-cards tbody td:not(.actions) {
    grid-template-columns: 1fr;
    gap: var(--space-stack-xs);
  }

  .data-table.responsive-cards tbody td::before {
    font-size: var(--font-size-caption);
  }

  .dashboard-critical-table.data-table.responsive-cards tbody td.actions {
    grid-template-columns: 1fr;
    gap: var(--space-stack-xs);
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .dashboard-secondary-summary {
    grid-template-columns: 1fr;
  }
}

/* Dashboard redesign: isolated executive-operational surface, without shell/sidebar drift. */
.dashboard-page-shell {
  --dashboard-critical: var(--color-error);
  --dashboard-critical-strong: var(--color-error-strong);
  --dashboard-critical-soft: var(--color-error-soft);
  --dashboard-warning: var(--color-warning);
  --dashboard-warning-strong: var(--color-warning-strong);
  --dashboard-warning-soft: var(--color-warning-soft);
  --dashboard-stable: var(--color-success);
  --dashboard-stable-strong: var(--color-success-strong);
  --dashboard-stable-soft: var(--color-success-soft);
  --dashboard-info: var(--color-info);
  gap: var(--space-5);
}

.dashboard-top-cluster {
  display: grid;
  gap: var(--space-3);
}

.dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: var(--space-3);
  align-items: start;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%),
    var(--color-surface);
}

.dashboard-header-main {
  display: grid;
  gap: 6px;
  max-width: 54rem;
  min-width: 0;
}

.dashboard-header-kicker {
  color: var(--color-foreground-muted);
  font-size: 11px;
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-top-cluster > .priority-page-header h1 {
  margin: 0;
  color: var(--color-foreground);
  font-size: clamp(28px, 3.1vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.dashboard-header-actions {
  min-width: 0;
  margin-left: 0;
  justify-content: stretch;
  align-self: start;
}

.dashboard-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.3;
}

.dashboard-header-meta span {
  min-width: 0;
}

.dashboard-weather-rail {
  min-width: min(100%, 360px);
}

.dashboard-weather-base {
  color: var(--color-foreground);
  font-size: 1rem;
  line-height: 1.25;
}

.dashboard-weather-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-weather-label {
  color: var(--color-foreground-muted);
  font-size: 11px;
  font-weight: var(--font-weight-emphasis);
  text-transform: uppercase;
}

.dashboard-weather-summary strong {
  color: var(--color-foreground);
  font-size: 1rem;
  line-height: 1.25;
}

.dashboard-weather-summary small {
  color: var(--color-foreground-muted);
  font-size: 11px;
  line-height: 1.3;
}

.dashboard-system-status-list {
  align-items: center;
}

.dashboard-system-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(248, 250, 252, 0.92);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  line-height: 1;
}

.dashboard-system-badge--available {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(240, 253, 244, 0.9);
  color: var(--dashboard-stable-strong);
}

.dashboard-system-badge--stale,
.dashboard-system-badge--loading {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.92);
  color: var(--dashboard-warning-strong);
}

.dashboard-system-badge--unavailable,
.dashboard-system-badge--error {
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(248, 250, 252, 0.94);
  color: var(--color-foreground-muted);
}

.dashboard-page-shell .page-subtitle {
  max-width: 60ch;
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-meta);
  line-height: 1.42;
}

.dashboard-priority-strip.ui-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: none;
}

.dashboard-priority-copy {
  display: grid;
  gap: 2px;
  max-width: 64ch;
  min-width: 0;
}

.dashboard-priority-caption {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-priority-text {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.4;
}

.dashboard-priority-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.dashboard-priority-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px 0 6px;
  border: var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-foreground-muted);
  font-size: 11px;
  font-weight: var(--font-weight-emphasis);
  white-space: nowrap;
}

.dashboard-priority-step strong {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.18);
  color: var(--color-foreground);
  font-size: 10px;
}

.dashboard-priority-step--critical {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(254, 242, 242, 0.92);
  color: var(--dashboard-critical-strong);
}

.dashboard-priority-step--critical strong {
  background: rgba(239, 68, 68, 0.14);
  color: var(--dashboard-critical-strong);
}

.dashboard-priority-step--warning {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(255, 251, 235, 0.96);
  color: var(--dashboard-warning-strong);
}

.dashboard-priority-step--warning strong {
  background: rgba(245, 158, 11, 0.16);
  color: var(--dashboard-warning-strong);
}

.dashboard-priority-step--stable {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(240, 253, 244, 0.98);
  color: var(--dashboard-stable-strong);
}

.dashboard-priority-step--stable strong {
  background: rgba(34, 197, 94, 0.16);
  color: var(--dashboard-stable-strong);
}

.dashboard-entry-context.ui-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: 12px;
  border-color: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.9)),
    var(--color-surface);
  box-shadow: none;
}

.dashboard-entry-context-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-entry-context-caption {
  color: var(--color-foreground-muted);
  font-size: 11px;
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-entry-context-text {
  margin: 0;
  color: var(--color-foreground);
  font-size: var(--font-size-caption);
  line-height: 1.35;
}

.dashboard-entry-context-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.dashboard-entry-context-chip {
  display: grid;
  gap: 0;
  min-width: 98px;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.95);
  color: inherit;
  text-decoration: none;
}

.dashboard-entry-context-chip-label {
  color: var(--color-foreground-muted);
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-entry-context-chip strong {
  color: var(--color-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  line-height: 1;
}

.dashboard-entry-context-chip-hint {
  color: var(--color-foreground-muted);
  font-size: 10px;
  text-transform: lowercase;
}

.dashboard-entry-context-chip--critical {
  border-color: rgba(239, 68, 68, 0.25);
}

.dashboard-entry-context-chip--critical strong {
  color: var(--dashboard-critical-strong);
}

.dashboard-entry-context-chip--warning {
  border-color: rgba(245, 158, 11, 0.28);
}

.dashboard-entry-context-chip--warning strong {
  color: var(--dashboard-warning-strong);
}

.dashboard-entry-context-chip--stable {
  border-color: rgba(34, 197, 94, 0.28);
}

.dashboard-entry-context-chip--stable strong {
  color: var(--dashboard-stable-strong);
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.dashboard-stat-grid > .dashboard-kpi-card {
  grid-column: span 4;
}

.dashboard-kpi-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 170px;
  align-content: start;
  gap: var(--space-2);
  padding: 12px;
  overflow: hidden;
  border-radius: var(--radius-surface);
  color: inherit;
  text-decoration: none;
  transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
  box-shadow: var(--shadow-soft);
}

.dashboard-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--dashboard-info);
}

.dashboard-kpi-card[href]:hover,
.dashboard-kpi-card[href]:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.dashboard-kpi-head,
.dashboard-kpi-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-kpi-eyebrow,
.dashboard-kpi-window,
.dashboard-kpi-action {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0;
}

.dashboard-kpi-eyebrow {
  gap: 6px;
  color: var(--color-foreground);
  text-transform: uppercase;
}

.dashboard-kpi-window {
  min-height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.15);
  color: var(--color-foreground-muted);
  font-size: 10px;
}

.dashboard-kpi-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-kpi-value {
  color: var(--color-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(32px, 3vw, 38px);
  font-weight: var(--font-weight-emphasis);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-kpi-meta {
  display: grid;
  gap: 2px;
}

.dashboard-kpi-share {
  color: var(--color-foreground-muted);
  font-size: 11px;
  line-height: 1.3;
}

.dashboard-kpi-state {
  color: var(--color-foreground-muted);
  font-size: 10px;
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-kpi-state.is-active {
  color: var(--dashboard-critical-strong);
}

.dashboard-kpi-state.is-clear {
  color: var(--color-foreground-muted);
}

.dashboard-kpi-action {
  justify-content: flex-start;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--color-foreground-muted);
  font-size: 11px;
  text-transform: none;
}

.dashboard-kpi-sparkline {
  display: inline-flex;
  width: 100%;
  max-width: 134px;
  height: 48px;
  color: currentColor;
}

.dashboard-kpi-sparkline svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.dashboard-kpi-sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.dashboard-kpi-card--critical .dashboard-kpi-sparkline {
  color: var(--dashboard-critical);
}

.dashboard-kpi-card--warning .dashboard-kpi-sparkline {
  color: var(--dashboard-warning);
}

.dashboard-kpi-card--stable .dashboard-kpi-sparkline {
  color: var(--dashboard-stable);
}

.dashboard-kpi-card--neutral .dashboard-kpi-sparkline {
  color: var(--color-info);
}

.dashboard-kpi-card--critical {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.92) 0%, rgba(255, 255, 255, 0.98) 74%);
}

.dashboard-kpi-card--critical::before,
.dashboard-kpi-card--critical .dashboard-kpi-dot {
  background: var(--dashboard-critical);
}

.dashboard-kpi-card--critical .dashboard-kpi-window {
  background: rgba(239, 68, 68, 0.14);
  color: var(--dashboard-critical-strong);
}

.dashboard-kpi-card--critical .dashboard-kpi-action,
.dashboard-kpi-card--critical .dashboard-kpi-value {
  color: var(--dashboard-critical-strong);
}

.dashboard-kpi-card--warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.98) 74%);
}

.dashboard-kpi-card--warning::before,
.dashboard-kpi-card--warning .dashboard-kpi-dot {
  background: var(--dashboard-warning);
}

.dashboard-kpi-card--warning .dashboard-kpi-window {
  background: rgba(245, 158, 11, 0.16);
  color: var(--dashboard-warning-strong);
}

.dashboard-kpi-card--warning .dashboard-kpi-action,
.dashboard-kpi-card--warning .dashboard-kpi-value {
  color: var(--dashboard-warning-strong);
}

.dashboard-kpi-card--stable {
  border-color: rgba(34, 197, 94, 0.2);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96) 0%, rgba(255, 255, 255, 0.98) 74%);
}

.dashboard-kpi-card--stable::before,
.dashboard-kpi-card--stable .dashboard-kpi-dot {
  background: var(--dashboard-stable);
}

.dashboard-kpi-card--stable .dashboard-kpi-window {
  background: rgba(34, 197, 94, 0.16);
  color: var(--dashboard-stable-strong);
}

.dashboard-kpi-card--stable .dashboard-kpi-action,
.dashboard-kpi-card--stable .dashboard-kpi-value {
  color: var(--dashboard-stable-strong);
}

.dashboard-kpi-card--loading {
  color: var(--color-foreground-muted);
}

.dashboard-critical-panel.ui-surface,
.dashboard-status-panel.ui-surface,
.dashboard-base-panel.ui-surface,
.dashboard-agenda-panel.ui-surface,
.dashboard-calendar-panel.ui-surface {
  border-color: rgba(15, 23, 42, 0.08);
}

.dashboard-critical-panel.ui-surface {
  display: grid;
  gap: var(--space-3);
  border-color: rgba(220, 38, 38, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 242, 242, 0.62) 100%),
    var(--color-surface);
}

.dashboard-critical-panel .dashboard-subheader,
.dashboard-calendar-panel .dashboard-subheader {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-critical-header-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-critical-header-copy h2 {
  margin: 0;
}

.dashboard-critical-header-copy .page-subtitle {
  max-width: 74ch;
}

.dashboard-critical-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(254, 242, 242, 0.72) 100%);
}

.dashboard-critical-toolbar-main {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.dashboard-critical-volume {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.dashboard-toolbar-label {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-critical-volume-value {
  color: var(--dashboard-critical-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: var(--font-weight-emphasis);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 0.95;
}

.dashboard-critical-volume-support {
  color: var(--color-foreground);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-strong);
}

.dashboard-critical-toolbar-note {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.4;
  max-width: 64ch;
}

.dashboard-critical-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, max-content));
  gap: var(--space-2);
  justify-content: end;
  align-content: start;
}

.dashboard-critical-filter {
  display: inline-grid;
  grid-template-columns: auto max-content;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-strong);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--motion-fast),
    background-color var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.dashboard-critical-filter span {
  color: inherit;
  font-size: var(--font-size-caption);
}

.dashboard-critical-filter strong {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--font-size-meta);
  font-variant-numeric: tabular-nums;
}

.dashboard-critical-filter--critical {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 226, 226, 0.62);
  color: var(--dashboard-critical-strong);
}

.dashboard-critical-filter--warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(254, 243, 199, 0.54);
  color: #92400e;
}

.dashboard-critical-filter--stable {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(220, 252, 231, 0.62);
  color: #166534;
}

.dashboard-critical-filters a {
  text-decoration: none;
}

.dashboard-critical-filters a:hover,
.dashboard-critical-filters a:focus-visible {
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--dashboard-info);
  background: rgba(219, 234, 254, 0.34);
}

.dashboard-critical-filters a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.dashboard-critical-table-head {
  display: grid;
  gap: 3px;
}

.dashboard-critical-table-kicker {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-critical-table-caption {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.4;
}

.dashboard-critical-table-wrap.ui-table-wrap {
  border-radius: var(--radius-sm);
  border-color: rgba(220, 38, 38, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-critical-table thead th {
  background: rgba(248, 250, 252, 0.96);
  color: var(--color-foreground-subtle);
  font-size: var(--font-size-caption);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-critical-table thead th:last-child {
  width: clamp(108px, 10vw, 130px);
  min-width: 102px;
  text-align: right;
}

.dashboard-critical-table tbody tr {
  border-left: 2px solid transparent;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast);
}

.dashboard-critical-table tbody tr:hover {
  border-left-color: rgba(220, 38, 38, 0.22);
  background: rgba(248, 250, 252, 0.9);
}

.dashboard-critical-row.status-red {
  background: rgba(254, 242, 242, 0.36);
}

.dashboard-critical-row.status-red:hover {
  background: rgba(254, 226, 226, 0.48);
}

.dashboard-critical-table .primary-cell {
  color: var(--color-foreground);
  font-weight: var(--font-weight-strong);
}

.dashboard-critical-table .date-strong {
  color: var(--dashboard-critical-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--font-size-meta);
}

.dashboard-critical-table tbody td[data-label="Status"] {
  white-space: nowrap;
}

.dashboard-critical-table tbody td.actions {
  text-align: right;
}

.dashboard-critical-table .dashboard-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--motion-fast),
    background-color var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.dashboard-critical-row.status-red .dashboard-row-action {
  color: var(--dashboard-critical-strong);
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(254, 226, 226, 0.36);
  font-weight: var(--font-weight-strong);
}

.dashboard-critical-table .dashboard-row-action:hover {
  color: var(--dashboard-info);
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(219, 234, 254, 0.58);
}

.dashboard-critical-table .dashboard-row-action:focus-visible {
  outline: none;
  color: var(--dashboard-info);
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.dashboard-critical-table .dashboard-row-action[aria-disabled="true"],
.dashboard-critical-table .dashboard-row-action.is-disabled {
  color: var(--color-foreground-muted);
  border-color: transparent;
  background: transparent;
  pointer-events: none;
  opacity: 0.72;
}

.dashboard-status-panel,
.dashboard-base-panel {
  align-content: start;
}

.dashboard-status-panel {
  display: grid;
  gap: var(--space-4);
}

.dashboard-status-panel-head {
  display: grid;
  gap: var(--space-2);
}

.dashboard-status-overview {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  min-width: 0;
  align-content: start;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%),
    var(--color-surface);
}

.dashboard-status-summary {
  display: grid;
  grid-template-columns: minmax(156px, auto) minmax(0, 1fr);
  grid-template-areas: "copy text";
  gap: var(--space-2) var(--space-4);
  align-items: end;
  min-width: 0;
}

.dashboard-status-summary-copy {
  grid-area: copy;
  display: grid;
  gap: 2px;
  min-width: 0;
  align-content: start;
}

.dashboard-status-summary-label {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-status-summary strong {
  color: var(--color-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(26px, 2.2vw, 30px);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dashboard-status-summary-text {
  grid-area: text;
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.4;
  max-width: 56ch;
  min-width: 0;
  align-self: end;
}

.dashboard-status-distribution {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.dashboard-status-segment {
  display: block;
  height: 100%;
  flex: 0 0 auto;
  background: var(--dashboard-info);
}

.dashboard-status-segment--critical {
  background: var(--dashboard-critical);
}

.dashboard-status-segment--warning {
  background: var(--dashboard-warning);
}

.dashboard-status-segment--stable {
  background: var(--dashboard-stable);
}

.dashboard-status-segment--neutral {
  background: var(--color-foreground-subtle);
}

.dashboard-status-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.dashboard-status-grid {
  margin-bottom: 0;
}

.dashboard-status-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  align-items: start;
  min-width: 0;
  min-height: 102px;
  padding: 11px 13px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--motion-fast),
    transform var(--motion-fast),
    background var(--motion-fast);
}

.dashboard-status-item:hover,
.dashboard-status-item:focus-visible {
  border-color: rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.dashboard-status-item-head {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) max-content;
  grid-template-areas: "label metric";
  column-gap: var(--space-2);
  row-gap: 4px;
  align-items: start;
  min-width: 0;
}

.dashboard-status-label-row {
  grid-area: label;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  padding-top: 1px;
}

.dashboard-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--dashboard-info);
  flex: 0 0 auto;
}

.dashboard-status-label {
  color: var(--color-foreground);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-strong);
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-wrap: pretty;
  white-space: nowrap;
}

.dashboard-status-metric {
  grid-area: metric;
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: max-content;
}

.dashboard-status-value {
  min-width: max-content;
  color: var(--color-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(24px, 2vw, 28px);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-emphasis);
  line-height: 0.98;
  letter-spacing: 0;
  align-self: start;
  text-align: right;
  overflow-wrap: normal;
  white-space: nowrap;
}

.dashboard-status-share,
.dashboard-status-state {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.dashboard-status-share {
  font-weight: var(--font-weight-strong);
  text-align: right;
  white-space: normal;
}

.dashboard-status-state {
  align-self: end;
  justify-self: end;
  color: var(--color-foreground-subtle);
  font-weight: var(--font-weight-medium);
  text-align: right;
}

.dashboard-status-item--critical .dashboard-status-dot {
  background: var(--dashboard-critical);
}

.dashboard-status-item--warning .dashboard-status-dot {
  background: var(--dashboard-warning);
}

.dashboard-status-item--stable .dashboard-status-dot {
  background: var(--dashboard-stable);
}

.dashboard-status-item--neutral .dashboard-status-dot {
  background: var(--color-foreground-subtle);
}

.dashboard-base-grid.dashboard-secondary-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.dashboard-base-card.summary-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
  align-content: start;
  min-width: 0;
  min-height: 86px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-color: rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.8) 100%);
  box-shadow: none;
}

.dashboard-base-card.summary-card::after {
  inset: 0 auto 0 0;
  width: 2px;
  height: auto;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.42), rgba(16, 185, 129, 0.3));
  opacity: 0.82;
}

.dashboard-base-card-head {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-base-card.summary-card .dashboard-base-card-label {
  color: var(--color-foreground);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-strong);
  letter-spacing: 0;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: none;
}

.dashboard-base-card.summary-card span {
  font-size: inherit;
}

.dashboard-base-card:hover,
.dashboard-base-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.dashboard-base-card.summary-link-card:hover {
  box-shadow: none;
}

.dashboard-base-card.summary-card .dashboard-base-card-support,
.dashboard-base-card.summary-card .dashboard-base-card-action {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-base-card-value {
  color: var(--color-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-emphasis);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-base-card.summary-card .dashboard-base-card-action-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed rgba(148, 163, 184, 0.34);
}

.dashboard-base-card.summary-card .dashboard-base-card-action {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  align-self: end;
  color: var(--color-foreground-subtle);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  transition: color var(--motion-fast);
}

.dashboard-base-card:hover .dashboard-base-card-action,
.dashboard-base-card:focus-visible .dashboard-base-card-action {
  color: var(--dashboard-info);
}

.dashboard-calendar-panel {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.dashboard-calendar-header {
  align-items: start;
  gap: var(--space-2) var(--space-3);
}

.dashboard-calendar-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-calendar-kicker {
  color: var(--color-foreground-subtle);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-emphasis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-calendar-head-copy h2 {
  margin: 0;
}

.dashboard-calendar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-1);
}

.dashboard-calendar-chip {
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(248, 250, 252, 0.92);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  letter-spacing: 0;
  line-height: 1.2;
}

.dashboard-calendar-support-note {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.35;
}

.dashboard-calendar-layout {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 292px);
  gap: var(--space-3);
}

.dashboard-calendar-shell {
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.84) 100%);
  box-shadow: none;
}

.dashboard-calendar-weekdays {
  padding: var(--space-2) var(--space-2) 0;
}

.dashboard-calendar-weekdays div {
  padding: 0 var(--space-1) var(--space-1);
  color: var(--color-foreground-subtle);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-calendar-grid {
  gap: 6px;
  padding: 0 var(--space-2) var(--space-2);
}

.dashboard-calendar-day {
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 66px;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transition:
    border-color var(--motion-fast),
    background-color var(--motion-fast);
}

.dashboard-calendar-day:hover,
.dashboard-calendar-day:focus-visible {
  transform: none;
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(239, 246, 255, 0.56);
}

.dashboard-calendar-day.is-muted {
  opacity: 0.62;
}

.dashboard-calendar-day.has-due {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 242, 242, 0.6) 100%);
}

.dashboard-calendar-day.is-selected {
  border-color: rgba(220, 38, 38, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 226, 226, 0.62) 100%);
}

.dashboard-calendar-day.is-today .dashboard-calendar-day-number {
  border: 1px solid rgba(37, 99, 235, 0.34);
  background: rgba(219, 234, 254, 0.62);
}

.dashboard-calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--color-surface-subtle);
  color: var(--color-foreground);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-strong);
}

.dashboard-calendar-day-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--dashboard-critical);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-weight-strong);
  line-height: 1;
}

.dashboard-calendar-day-label {
  min-height: 14px;
  color: var(--color-foreground-subtle);
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-calendar-day-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 6px;
}

.dashboard-calendar-day-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-foreground-subtle);
}

.dashboard-calendar-day-dot.status-red {
  background: var(--dashboard-critical);
}

.dashboard-calendar-day-dot.status-yellow {
  background: var(--dashboard-warning);
}

.dashboard-calendar-day-dot.status-green {
  background: var(--dashboard-stable);
}

.dashboard-calendar-day-dot.status-gray {
  background: var(--color-foreground-subtle);
}

.dashboard-calendar-aside {
  display: grid;
  gap: var(--space-2);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.82);
}

.dashboard-calendar-detail-head {
  display: grid;
  gap: 3px;
}

.dashboard-calendar-detail-head .page-subtitle {
  margin: 0;
}

.dashboard-calendar-detail-list {
  display: grid;
  gap: var(--space-2);
}

.dashboard-calendar-detail-card {
  border-radius: var(--radius-sm);
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.94);
}

.dashboard-calendar-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.dashboard-calendar-event-pilot {
  color: var(--color-foreground-subtle);
  font-size: var(--font-size-caption);
}

.dashboard-calendar-event-main {
  display: grid;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.dashboard-calendar-event-main strong {
  color: var(--color-foreground);
}

.dashboard-calendar-event-main span,
.dashboard-calendar-event-main small {
  color: var(--color-foreground-muted);
  overflow-wrap: anywhere;
}

.dashboard-agenda-panel {
  display: grid;
  gap: var(--space-4);
}

.dashboard-agenda-panel .dashboard-agenda-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-agenda-panel .dashboard-agenda-item {
  min-height: 124px;
  border-radius: var(--radius-sm);
}

@media (max-width: 1200px) {
  .dashboard-mid-surface-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: var(--space-2);
  }

  .dashboard-page-shell .dashboard-mid-surface-panel.ui-surface {
    padding: var(--space-4);
  }

  .dashboard-mid-surface-head {
    gap: var(--space-1);
  }

  .dashboard-mid-surface-head .page-subtitle {
    font-size: var(--font-size-meta);
    line-height: 1.4;
  }

  .dashboard-status-overview {
    gap: 9px;
    padding: 10px 11px;
  }

  .dashboard-status-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "text";
    gap: 6px;
    align-items: start;
  }

  .dashboard-status-summary strong,
  .dashboard-base-summary strong {
    font-size: 26px;
  }

  .dashboard-status-summary strong {
    font-size: clamp(24px, 2.4vw, 27px);
  }

  .dashboard-status-summary-text {
    line-height: 1.34;
    max-width: none;
  }

  .dashboard-status-distribution {
    height: 8px;
  }

  .dashboard-status-bars {
    grid-template-columns: repeat(2, minmax(168px, 1fr));
    gap: 6px;
  }

  .dashboard-status-item {
    min-height: 86px;
    gap: 5px;
    padding: 9px 10px;
  }

  .dashboard-status-item-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "metric";
    row-gap: 4px;
  }

  .dashboard-status-label-row {
    padding-top: 0;
  }

  .dashboard-status-label {
    font-size: var(--font-size-caption);
    line-height: 1.26;
  }

  .dashboard-status-metric {
    justify-items: start;
  }

  .dashboard-status-value {
    font-size: 22px;
    text-align: left;
  }

  .dashboard-status-share,
  .dashboard-status-state,
  .dashboard-base-card.summary-card .dashboard-base-card-support,
  .dashboard-base-card.summary-card .dashboard-base-card-action {
    line-height: 1.25;
  }

  .dashboard-status-share,
  .dashboard-status-state {
    line-height: 1.18;
    text-align: left;
  }

  .dashboard-status-state {
    justify-self: start;
  }

  .dashboard-base-grid.dashboard-secondary-summary {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dashboard-base-card.summary-card {
    min-height: 78px;
    gap: 3px;
    padding: 9px 10px;
  }

  .dashboard-base-card-value {
    font-size: 23px;
  }

  .dashboard-agenda-panel .dashboard-agenda-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .dashboard-mid-surface-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .dashboard-status-overview,
  .dashboard-base-overview {
    gap: var(--space-2);
    padding: var(--space-2);
  }

  .dashboard-status-overview {
    gap: var(--space-2);
    padding: 10px 11px;
  }

  .dashboard-status-bars,
  .dashboard-base-grid.dashboard-secondary-summary {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: var(--space-2);
  }

  .dashboard-status-bars {
    grid-template-columns: repeat(2, minmax(192px, 1fr));
    gap: 7px;
  }

  .dashboard-status-summary {
    gap: 6px;
  }

  .dashboard-status-summary strong {
    font-size: clamp(24px, 2.8vw, 27px);
  }

  .dashboard-status-item {
    min-height: 86px;
    padding: 9px 10px;
  }

  .dashboard-status-label {
    font-size: var(--font-size-caption);
    line-height: 1.24;
  }

  .dashboard-status-value {
    font-size: 23px;
  }

  .dashboard-status-metric {
    justify-items: start;
  }

  .dashboard-status-value {
    text-align: left;
  }

  .dashboard-base-card-value {
    font-size: 25px;
  }

  .dashboard-status-share,
  .dashboard-status-state {
    line-height: 1.2;
  }

  .dashboard-base-card.summary-card {
    min-height: 86px;
    padding: 11px 12px 10px 14px;
  }
}

@media (max-width: 1024px) {
  .dashboard-status-overview {
    gap: 7px;
    padding: 10px 11px;
  }

  .dashboard-status-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "text";
    gap: 5px;
    align-items: start;
  }

  .dashboard-status-summary-copy {
    gap: 1px;
  }

  .dashboard-status-summary strong {
    font-size: clamp(23px, 3.6vw, 26px);
  }

  .dashboard-status-summary-text {
    max-width: none;
    line-height: 1.4;
  }

  .dashboard-status-distribution {
    height: 8px;
  }

  .dashboard-status-bars {
    grid-template-columns: repeat(2, minmax(184px, 1fr));
    gap: 6px;
  }

  .dashboard-status-item {
    min-height: 84px;
    padding: 9px 10px;
  }

  .dashboard-status-value {
    font-size: 22px;
    text-align: left;
  }

  .dashboard-status-share,
  .dashboard-status-state {
    line-height: 1.16;
    text-align: left;
  }

  .dashboard-status-state {
    justify-self: start;
  }
}

@media (max-width: 1180px) {
  .dashboard-stat-grid > .dashboard-kpi-card {
    grid-column: span 6;
  }

  .dashboard-stat-grid > .dashboard-kpi-card--critical {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    grid-template-columns: 1fr;
  }

  .dashboard-priority-strip.ui-surface {
    grid-template-columns: 1fr;
  }

  .dashboard-priority-steps {
    justify-content: flex-start;
  }

  .dashboard-secondary-grid,
  .dashboard-calendar-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-calendar-header {
    grid-template-columns: 1fr;
  }

  .dashboard-calendar-meta {
    justify-content: flex-start;
  }

  .dashboard-calendar-layout {
    gap: var(--space-2);
  }

  .dashboard-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-action-rail {
    min-width: 0;
    width: 100%;
  }

  .dashboard-action-clusters {
    grid-template-columns: 1fr;
  }

  .dashboard-action-link.button-link {
    flex: 1 1 160px;
    justify-content: center;
  }

  .dashboard-top-cluster > .priority-page-header h1 {
    font-size: 28px;
  }

  .dashboard-entry-context.ui-surface {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-entry-context-list {
    justify-content: flex-start;
  }

  .dashboard-status-summary {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .dashboard-status-overview {
    gap: var(--space-2);
    padding: 10px 11px;
  }

  .dashboard-status-bars {
    grid-template-columns: repeat(2, minmax(178px, 1fr));
    gap: 6px;
  }

  .dashboard-status-item {
    min-height: 86px;
    gap: 4px;
    padding: 9px 10px;
  }

  .dashboard-status-item-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "metric";
    row-gap: 4px;
  }

  .dashboard-status-label-row {
    padding-top: 0;
  }

  .dashboard-status-label {
    font-size: var(--font-size-caption);
    line-height: 1.22;
  }

  .dashboard-status-metric {
    justify-items: start;
  }

  .dashboard-status-value {
    font-size: 22px;
    text-align: left;
  }

  .dashboard-status-share,
  .dashboard-status-state {
    line-height: 1.18;
    text-align: left;
  }

  .dashboard-status-state {
    justify-self: start;
  }

  .dashboard-base-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-base-grid.dashboard-secondary-summary {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .dashboard-base-card.summary-card {
    min-height: 80px;
  }

  .dashboard-base-card-value {
    font-size: 24px;
  }

  .dashboard-stat-grid > .dashboard-kpi-card {
    grid-column: span 12;
  }

  .dashboard-stat-grid,
  .dashboard-agenda-panel .dashboard-agenda-list {
    grid-template-columns: 1fr;
  }

  .dashboard-critical-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-critical-filters {
    justify-content: flex-start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-priority-step {
    white-space: normal;
  }

  .dashboard-action-link.button-link {
    flex: 1 1 100%;
  }

  .dashboard-entry-context-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-entry-context-chip {
    min-width: 0;
  }

  .dashboard-status-bars,
  .dashboard-base-grid.dashboard-secondary-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-status-overview {
    padding: var(--space-2);
  }

  .dashboard-status-summary strong,
  .dashboard-status-value {
    font-size: 24px;
  }

  .dashboard-status-item {
    min-height: 80px;
    padding: 9px 11px;
    gap: 4px;
  }

  .dashboard-status-item-head {
    row-gap: 3px;
  }

  .dashboard-status-label-row {
    gap: 6px;
  }

  .dashboard-status-label {
    line-height: 1.2;
  }

  .dashboard-status-value {
    font-size: 22px;
  }

  .dashboard-status-share,
  .dashboard-status-state {
    line-height: 1.16;
  }

  .dashboard-base-overview {
    padding: var(--space-2);
  }

  .dashboard-base-summary strong,
  .dashboard-base-card-value {
    font-size: 22px;
  }

  .dashboard-base-card.summary-card {
    min-height: 72px;
    padding: 8px 9px;
  }

  .dashboard-kpi-card {
    min-height: 164px;
  }

  .dashboard-kpi-value {
    font-size: 34px;
  }
}

/* 34.2.9: dashboard responsive policy keeps executive priority above the fold across breakpoints. */
.dashboard-responsive-surface[data-dashboard-layout="responsive-operational"] {
  --dashboard-fold-gap: var(--space-3);
  --dashboard-priority-card-min: 180px;
  --dashboard-compact-card-min: 84px;
  --dashboard-calendar-min-width: 560px;
  min-width: 0;
}

.dashboard-fold-priority[data-dashboard-zone="above-fold"] {
  display: grid;
  gap: var(--dashboard-fold-gap);
  min-width: 0;
}

.dashboard-above-fold[data-dashboard-priority="p0"] {
  min-width: 0;
}

.dashboard-kpi-priority-row[data-dashboard-zone="kpi-priority"] {
  min-width: 0;
  align-items: stretch;
}

.dashboard-kpi-priority-row .dashboard-kpi-card[data-dashboard-priority="p0"] {
  min-height: var(--dashboard-priority-card-min);
}

.dashboard-kpi-priority-row .dashboard-kpi-card[data-dashboard-priority="p1"],
.dashboard-kpi-priority-row .dashboard-kpi-card[data-dashboard-priority="p2"] {
  min-height: calc(var(--dashboard-priority-card-min) - 8px);
}

.dashboard-critical-zone[data-dashboard-priority="p0"] {
  scroll-margin-top: calc(var(--size-topbar-min-height) + var(--space-section-gap));
}

.dashboard-critical-zone .dashboard-subheader {
  align-items: start;
  gap: var(--space-stack-md);
}

.dashboard-mid-zone[data-dashboard-priority="p1"],
.dashboard-calendar-zone[data-dashboard-priority="p1"],
.dashboard-agenda-zone[data-dashboard-priority="p2"] {
  min-width: 0;
}

.dashboard-calendar-responsive-layout[data-dashboard-surface="calendar-detail"] {
  display: grid;
  align-items: start;
  min-width: 0;
}

.dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-shell {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-weekdays,
.dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-grid {
  min-width: min(100%, var(--dashboard-calendar-min-width));
}

.dashboard-agenda-responsive-list,
.dashboard-critical-table-wrap[data-dashboard-surface="critical-list"] {
  min-width: 0;
}

@media (max-width: 1180px) {
  .dashboard-kpi-priority-row .dashboard-kpi-card[data-dashboard-priority="p0"] {
    grid-column: span 12;
  }

  .dashboard-kpi-priority-row .dashboard-kpi-card[data-dashboard-priority="p1"],
  .dashboard-kpi-priority-row .dashboard-kpi-card[data-dashboard-priority="p2"] {
    grid-column: span 6;
  }

  .dashboard-critical-table thead th:last-child,
  .dashboard-critical-table tbody td.actions {
    width: 108px;
    min-width: 94px;
  }

  .dashboard-critical-table .dashboard-row-action {
    min-height: 23px;
    padding-inline: 6px;
  }
}

@media (max-width: 900px) {
  .dashboard-responsive-surface[data-dashboard-layout="responsive-operational"] {
    --dashboard-fold-gap: var(--space-2);
    gap: var(--space-4);
  }

  .dashboard-above-fold[data-dashboard-priority="p0"] {
    padding: var(--space-stack-md);
  }

  .dashboard-kpi-priority-row .dashboard-kpi-card[data-dashboard-priority] {
    grid-column: span 12;
    min-height: var(--dashboard-priority-card-min);
  }

  .dashboard-critical-zone[data-dashboard-surface="critical-queue"],
  .dashboard-calendar-zone[data-dashboard-surface="calendar"],
  .dashboard-agenda-zone[data-dashboard-surface="agenda"] {
    gap: var(--space-stack-md);
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-weekdays,
  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-grid {
    min-width: var(--dashboard-calendar-min-width);
  }
}

@media (max-width: 640px) {
  .dashboard-responsive-surface[data-dashboard-layout="responsive-operational"] {
    gap: var(--space-3);
  }

  .dashboard-priority-steps {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-priority-step {
    justify-content: flex-start;
    width: 100%;
  }

  .dashboard-critical-zone .dashboard-subheader {
    grid-template-columns: 1fr;
  }

  .dashboard-critical-zone .dashboard-subheader .button-link,
  .dashboard-critical-filters a {
    width: 100%;
    justify-content: center;
  }

  .dashboard-critical-filters {
    grid-template-columns: 1fr;
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-weekdays,
  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-shell {
    overflow-x: hidden;
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-weekdays {
    padding: var(--space-2) var(--space-2) 0;
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-weekdays div {
    min-width: 0;
    padding: 0 0 var(--space-2);
    text-align: center;
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-grid {
    gap: 4px;
    padding: 0 var(--space-2) var(--space-2);
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-day {
    min-height: 42px;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-control);
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-day-number {
    width: 24px;
    height: 24px;
    font-size: var(--font-size-caption);
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-day-counter {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }

  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-day-label,
  .dashboard-calendar-zone[data-dashboard-surface="calendar"] .dashboard-calendar-day-dots {
    display: none;
  }

  .dashboard-agenda-responsive-list {
    grid-template-columns: 1fr;
  }
}

/* 34.2.10: master-detail policy bridges shared primitives to real paired surfaces. */
.dashboard-calendar-layout.dashboard-calendar-responsive-layout {
  grid-template-columns: 1fr;
}

.dashboard-calendar-master-detail.ui-master-detail {
  grid-template-columns: minmax(0, 1fr) minmax(248px, 288px);
  gap: var(--space-3);
}

.dashboard-calendar-shell.ui-master-pane,
.dashboard-calendar-aside.ui-detail-pane,
.document-master-pane.ui-master-pane,
.document-detail-pane.ui-detail-pane {
  min-width: 0;
}

.dashboard-calendar-aside.ui-detail-pane {
  padding: var(--space-2);
}

.dashboard-calendar-back,
.document-preview-back {
  width: fit-content;
}

.document-master-detail.ui-master-detail {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, var(--size-master-detail-detail-max));
  align-items: start;
}

.document-master-pane .table-wrap {
  margin-top: 0;
}

.document-detail-pane .document-preview-card {
  margin-top: 0;
}

.document-detail-pane .document-preview-actions {
  align-items: center;
}

@media (max-width: 900px) {
  .dashboard-calendar-master-detail.ui-master-detail,
  .document-master-detail.ui-master-detail {
    grid-template-columns: 1fr;
  }

  .dashboard-calendar-back,
  .document-preview-back {
    width: auto;
  }

  .document-detail-pane .document-preview-card {
    grid-template-columns: 1fr;
  }
}

/* Entity detail/form phase: operational grouping without broad redesign. */
.entity-detail-header {
  align-items: flex-start;
  gap: var(--space-4);
}

.entity-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.entity-form-grid {
  gap: var(--space-4);
}

.entity-form-section {
  grid-column: 1 / -1;
  margin: 0;
}

.form-section-header {
  margin-bottom: 12px;
}

.form-section-header h2 {
  margin: 0;
  font-size: 1rem;
}

.form-section-header p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section-feedback {
  min-height: 18px;
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.section-feedback[data-kind="error"] {
  color: var(--color-danger);
}

.section-feedback[data-kind="warning"] {
  color: var(--color-warning-dark, #7c4a00);
}

.form-grid-compact {
  margin: 0;
  gap: 12px;
}

.entity-form-section label {
  min-width: 0;
}

.toggle-switch {
  position: relative;
}

.toggle-switch input[type="checkbox"],
.toggle-switch input[type="radio"] {
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.field-feedback {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-feedback[data-kind="error"] {
  color: var(--color-danger);
}

.field-feedback[data-kind="warning"] {
  color: var(--color-warning-dark, #7c4a00);
}

.field-feedback[data-kind="ready"],
.field-feedback[data-kind="success"] {
  color: var(--color-success);
}

.entity-form-grid input[aria-invalid="true"],
.entity-form-grid select[aria-invalid="true"],
.entity-form-grid textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.12);
}

.entity-sticky-actions {
  align-items: center;
  border-top: var(--border-subtle);
  padding-top: 12px;
}

.entity-document-panel .page-header {
  align-items: flex-start;
}

.document-upload-form {
  align-items: end;
  grid-template-columns: minmax(180px, 0.85fr) minmax(190px, 0.85fr) minmax(240px, 1.2fr) auto;
}

.document-upload-form label {
  margin: 0;
}

.document-upload-input input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tripulante-detail-page-shell .tripulante-document-upload.document-upload-form {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-form-section-gap);
}

.tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-header {
  display: grid;
  gap: var(--space-stack-xs);
}

.tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-header .ui-field-help {
  margin: 0;
}

.tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-meta.ui-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-form-field-gap);
  padding: var(--space-stack-sm);
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-state-default-surface);
}

.tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-intake.ui-form-upload-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-form-field-gap);
  align-items: end;
  padding: var(--space-stack-sm);
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-state-default-surface);
}

.tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-intake > button {
  min-height: var(--size-action-min-height);
  align-self: end;
  white-space: nowrap;
}

.tripulante-detail-page-shell .tripulante-document-upload-state.ui-form-upload-state {
  width: 100%;
}

.upload-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 8px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.upload-state.compact {
  margin-top: 8px;
}

.upload-state[data-kind="ready"] {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-success);
}

.upload-state[data-kind="busy"] {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

.upload-state[data-kind="error"] {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.08);
  color: var(--color-danger);
}

.upload-state[data-kind="success"] {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-success);
}

.upload-state[data-kind="warning"] {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.08);
  color: var(--color-warning-dark, #7c4a00);
}

.avatar[data-photo-state="unavailable"],
.tripulante-photo-preview[data-photo-state="unavailable"] {
  background: linear-gradient(135deg, #6b7280 0%, #991b1b 100%);
}

.document-preview-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.document-preview-frame {
  min-height: 260px;
  overflow: hidden;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
}

.document-preview-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  background: var(--color-surface);
}

.document-preview-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.document-preview-meta h3,
.document-preview-meta p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-preview-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.document-preview-meta p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.document-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-preview-fallback {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--color-text-muted);
}

.document-preview-fallback strong {
  color: var(--color-foreground);
}

.tripulante-photo-field {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
}

.tripulante-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.tripulante-photo-actions input[type="file"] {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* G07: tripulante form/detail adopts shared visual foundation without route or submit drift. */
.tripulante-detail-page-shell:not(.ui-page-shell) {
  gap: var(--space-panel-gap);
}

.tripulante-detail-page-shell > .priority-page-header:not(.ui-page-header) {
  margin-bottom: 0;
  padding: var(--space-panel-gap);
  align-items: flex-start;
}

.tripulante-detail-page-shell .entity-status-row.ui-cluster {
  gap: var(--space-stack-sm);
  margin-top: var(--space-stack-sm);
}

.tripulante-detail-page-shell .tripulante-entity-form.ui-form-grid {
  gap: var(--space-panel-gap);
}

.tripulante-detail-page-shell .entity-form-section.ui-surface,
.tripulante-detail-page-shell .tripulante-document-panel.ui-surface {
  padding: var(--space-panel-gap);
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-surface);
}

.tripulante-detail-page-shell .form-grid-compact.ui-form-grid {
  gap: var(--space-stack-md);
}

.tripulante-detail-page-shell .section-feedback.ui-field-help,
.tripulante-detail-page-shell .field-feedback.ui-field-help,
.tripulante-detail-page-shell .field-help.ui-field-help {
  min-height: 18px;
  margin-top: var(--space-stack-xs);
}

.tripulante-detail-page-shell .tripulante-photo-preview-card.ui-surface,
.tripulante-detail-page-shell .document-preview-card.ui-surface {
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-interactive);
}

.tripulante-detail-page-shell .document-upload-form.ui-form-toolbar {
  margin-bottom: var(--space-section-gap);
}

.tripulante-detail-page-shell .document-preview-actions,
.tripulante-detail-page-shell .tripulante-photo-actions {
  gap: var(--space-stack-sm);
}

.tripulante-detail-page-shell .document-master-detail.ui-master-detail {
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.28fr);
  gap: var(--space-panel-gap);
}

.tripulante-detail-page-shell .document-master-pane .ui-table-wrap {
  margin-top: 0;
  border-radius: var(--radius-surface);
}

.tripulante-detail-page-shell .document-library-table thead th {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tripulante-detail-page-shell .document-library-table tbody td {
  vertical-align: top;
}

.tripulante-detail-page-shell .document-library-name {
  margin: 0;
  color: var(--color-foreground);
  font-size: 1rem;
  font-weight: var(--font-weight-strong);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tripulante-detail-page-shell .document-library-meta {
  margin-top: 4px;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
  line-height: 1.35;
}

.tripulante-detail-page-shell .document-library-availability {
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(100, 116, 139, 0.08);
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}

.tripulante-detail-page-shell .document-library-availability[data-availability="ready"] {
  border-color: rgba(22, 163, 74, 0.32);
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-success);
}

.tripulante-detail-page-shell .document-library-availability[data-availability="unavailable"] {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.08);
  color: var(--color-warning-dark, #7c4a00);
}

.tripulante-detail-page-shell .document-library-note {
  margin-top: 6px;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.45;
}

.tripulante-detail-page-shell .document-library-table td.actions.ui-table-actions {
  width: 126px;
}

.tripulante-detail-page-shell .document-library-select {
  min-width: 102px;
}

.tripulante-detail-page-shell .document-library-select.is-selected,
.tripulante-detail-page-shell .document-library-select[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--color-primary) 45%, #fff);
  background: color-mix(in srgb, var(--color-primary) 12%, #fff);
  color: var(--color-primary);
}

.tripulante-detail-page-shell .document-detail-pane.ui-detail-pane {
  display: grid;
  gap: var(--space-stack-sm);
  align-content: start;
}

.tripulante-detail-page-shell .document-detail-shell.document-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "header header"
    "facts actions"
    "state state"
    "preview preview";
  gap: var(--space-stack-sm);
  margin-top: 0;
  padding: var(--space-panel-gap);
  align-items: start;
}

.tripulante-detail-page-shell .document-detail-header {
  grid-area: header;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tripulante-detail-page-shell .document-detail-header .eyebrow {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tripulante-detail-page-shell .document-detail-header h3 {
  margin: 0;
  color: var(--color-foreground);
  font-size: 1.14rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tripulante-detail-page-shell .document-detail-header p {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
  line-height: 1.45;
}

.tripulante-detail-page-shell .document-detail-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-stack-xs) var(--space-stack-sm);
  margin: 0;
  min-width: 0;
}

.tripulante-detail-page-shell .document-detail-facts > div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
}

.tripulante-detail-page-shell .document-detail-facts > .document-detail-fact-full {
  grid-column: 1 / -1;
}

.tripulante-detail-page-shell .document-detail-facts dt {
  color: var(--color-foreground-muted);
  font-size: var(--font-size-caption);
  line-height: 1.2;
}

.tripulante-detail-page-shell .document-detail-facts dd {
  margin: 0;
  color: var(--color-foreground);
  font-size: var(--font-size-small);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tripulante-detail-page-shell .document-detail-actions.ui-detail-actions {
  grid-area: actions;
  justify-content: flex-end;
  align-self: start;
  margin: 0;
}

.tripulante-detail-page-shell .document-detail-actions > :where(a, button, .button-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-action-min-height);
  padding: 0 12px;
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface-muted);
  color: var(--color-foreground);
  text-decoration: none;
}

.tripulante-detail-page-shell .document-detail-actions > :where(a, button, .button-link):where([aria-disabled="true"], [disabled]) {
  opacity: 0.5;
  pointer-events: none;
}

.tripulante-detail-page-shell .document-detail-actions .link-danger {
  border-color: rgba(185, 28, 28, 0.28);
  background: rgba(185, 28, 28, 0.08);
}

.tripulante-detail-page-shell #tripulanteDocumentPreviewState.ui-form-upload-state {
  grid-area: state;
  width: 100%;
  margin-top: 0;
}

.tripulante-detail-page-shell .document-preview-frame,
.tripulante-detail-page-shell .document-preview-fallback {
  grid-area: preview;
}

.tripulante-detail-page-shell .document-preview-frame[hidden],
.tripulante-detail-page-shell .document-preview-fallback[hidden] {
  display: none;
}

.tripulante-detail-page-shell .document-preview-card[data-preview-state="unavailable"] .document-preview-fallback {
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.08);
}

.tripulante-detail-page-shell .document-preview-empty .document-preview-fallback {
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
}

.tripulante-detail-page-shell .entity-sticky-actions.ui-form-actions {
  gap: var(--space-stack-sm);
  padding-top: var(--space-section-gap);
}

@media (max-width: 900px) {
  .entity-detail-header {
    flex-direction: column;
  }

  .entity-detail-header .page-header-actions,
  .entity-detail-header .page-header-actions .button-link {
    width: 100%;
  }

  .form-grid-compact,
  .document-upload-form,
  .document-preview-card,
  .tripulante-photo-field {
    grid-template-columns: 1fr;
  }

  .document-preview-frame,
  .document-preview-frame iframe {
    min-height: 220px;
    height: 240px;
  }

  .tripulante-photo-actions {
    justify-content: stretch;
  }

  .tripulante-photo-actions > *,
  .document-upload-form > button {
    width: 100%;
    justify-content: center;
  }

  .tripulante-detail-page-shell .document-master-detail.ui-master-detail {
    grid-template-columns: 1fr;
  }

  .tripulante-detail-page-shell .document-detail-shell.document-preview-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "facts"
      "actions"
      "state"
      "preview";
  }

  .tripulante-detail-page-shell .document-detail-facts {
    grid-template-columns: 1fr;
  }

  .tripulante-detail-page-shell .document-library-table td.actions.ui-table-actions {
    width: auto;
  }

  .tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-intake.ui-form-upload-grid {
    grid-template-columns: 1fr;
  }

  .tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-intake > button {
    width: 100%;
    justify-content: center;
  }

  .entity-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: var(--layer-sticky);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
    border: var(--border-subtle);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
  }

  .tripulante-detail-page-shell > .priority-page-header:not(.ui-page-header),
  .tripulante-detail-page-shell .entity-form-section.ui-surface,
  .tripulante-detail-page-shell .tripulante-document-panel.ui-surface {
    padding: var(--space-layout-content-mobile);
  }
}

/* 40: tripulante detail broad visual refinement without functional drift. */
.tripulante-detail-page-shell.ui-page-shell {
  gap: clamp(var(--space-section-gap), 2vw, var(--space-panel-gap));
}

.tripulante-detail-page-shell > .priority-page-header.ui-page-header.ui-surface {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-section-gap), 2.4vw, var(--space-6));
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(225, 29, 72, 0.09), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.tripulante-detail-page-shell > .priority-page-header.ui-page-header.ui-surface::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(148, 163, 184, 0));
  opacity: 0.72;
}

.tripulante-detail-page-shell > .priority-page-header h1 {
  max-width: 780px;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.tripulante-detail-page-shell > .priority-page-header .page-subtitle {
  max-width: 720px;
  color: var(--color-foreground-muted);
}

.tripulante-detail-page-shell > .priority-page-header .page-header-actions,
.tripulante-detail-page-shell > .priority-page-header .entity-status-row {
  position: relative;
  z-index: var(--layer-raised);
}

.tripulante-detail-page-shell .entity-status-row .status-pill {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.tripulante-detail-page-shell .tripulante-entity-form.ui-form-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--space-stack-lg), 1.8vw, var(--space-panel-gap));
}

.tripulante-detail-page-shell .entity-form-section[data-tripulante-section],
.tripulante-detail-page-shell .tripulante-document-panel[data-tripulante-section="documents"] {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.82)),
    var(--color-state-default-surface);
}

.tripulante-detail-page-shell .entity-form-section[data-tripulante-section]::before,
.tripulante-detail-page-shell .tripulante-document-panel[data-tripulante-section="documents"]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(100, 116, 139, 0.24);
}

.tripulante-detail-page-shell .entity-form-section[data-tripulante-section="identity"]::before {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.92), rgba(225, 29, 72, 0.18));
}

.tripulante-detail-page-shell .entity-form-section[data-tripulante-section="operation"]::before {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.72), rgba(37, 99, 235, 0.14));
}

.tripulante-detail-page-shell .entity-form-section[data-tripulante-section="media"]::before {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.7), rgba(14, 165, 233, 0.12));
}

.tripulante-detail-page-shell .tripulante-document-panel[data-tripulante-section="documents"]::before {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.1));
}

.tripulante-detail-page-shell .form-section-header,
.tripulante-detail-page-shell .flags-section-header,
.tripulante-detail-page-shell .entity-document-panel .page-header {
  padding-bottom: var(--space-stack-md);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.tripulante-detail-page-shell .form-section-header h2,
.tripulante-detail-page-shell .flags-section-header h2,
.tripulante-detail-page-shell .entity-document-panel .page-header h2 {
  color: var(--color-foreground);
  font-size: clamp(1.02rem, 1vw, 1.18rem);
  letter-spacing: -0.01em;
}

.tripulante-detail-page-shell .form-grid-compact.ui-form-grid {
  align-items: start;
}

.tripulante-detail-page-shell .form-grid-compact.ui-form-grid > label,
.tripulante-detail-page-shell .ui-form-field-long {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-control);
  padding: var(--space-stack-sm);
  background: rgba(255, 255, 255, 0.62);
}

.tripulante-detail-page-shell .form-grid-compact.ui-form-grid :where(input, select, textarea) {
  background: rgba(255, 255, 255, 0.96);
}

.tripulante-detail-page-shell .flags-grid {
  gap: var(--space-stack-md);
}

.tripulante-detail-page-shell .flags-grid .checkbox-field {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.tripulante-detail-page-shell .tripulante-photo-field {
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.74fr);
  align-items: stretch;
  gap: var(--space-panel-gap);
}

.tripulante-detail-page-shell .tripulante-photo-preview-card.ui-surface {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-stack-lg);
  align-items: center;
  padding: var(--space-stack-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 14% 18%, rgba(225, 29, 72, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.tripulante-detail-page-shell .tripulante-photo-preview {
  display: grid;
  place-items: center;
  width: clamp(88px, 8vw, 112px);
  height: clamp(88px, 8vw, 112px);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: linear-gradient(135deg, #7f1d1d, #e11d48);
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.15);
}

.tripulante-detail-page-shell .tripulante-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tripulante-detail-page-shell .tripulante-photo-meta {
  display: grid;
  gap: var(--space-stack-xs);
  min-width: 0;
}

.tripulante-detail-page-shell .tripulante-photo-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  padding: var(--space-stack-lg);
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: var(--radius-surface);
  background: rgba(248, 250, 252, 0.74);
}

.tripulante-detail-page-shell .tripulante-photo-actions input[type="file"] {
  width: 100%;
  min-height: var(--size-touch-target);
  padding: 10px;
  border: var(--border-subtle);
  border-radius: var(--radius-control);
  background: #fff;
}

.tripulante-detail-page-shell .tripulante-photo-actions .button-link {
  width: 100%;
  justify-content: center;
}

.tripulante-detail-page-shell [data-tripulante-section="media"] .ui-form-field-long {
  margin-top: var(--space-stack-md);
}

.tripulante-detail-page-shell [data-tripulante-section="media"] textarea {
  min-height: 118px;
  resize: vertical;
}

.tripulante-detail-page-shell .tripulante-document-upload.document-upload-form {
  padding: var(--space-stack-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-surface);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.82)),
    var(--color-surface);
}

.tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-meta.ui-form-grid,
.tripulante-detail-page-shell .tripulante-document-upload .tripulante-document-upload-intake.ui-form-upload-grid {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.tripulante-detail-page-shell .document-master-detail.ui-master-detail {
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
  align-items: stretch;
  gap: clamp(var(--space-stack-lg), 2vw, var(--space-panel-gap));
}

.tripulante-detail-page-shell .document-master-pane .ui-table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tripulante-detail-page-shell .document-library-table {
  border-collapse: separate;
  border-spacing: 0 var(--space-stack-sm);
}

.tripulante-detail-page-shell .document-library-table thead th {
  padding: 0 var(--space-stack-sm) var(--space-stack-xs);
  border: 0;
  background: transparent;
}

.tripulante-detail-page-shell .document-library-table tbody tr {
  transition: transform var(--motion-fast), filter var(--motion-fast);
}

.tripulante-detail-page-shell .document-library-table tbody tr:hover {
  transform: translateY(-1px);
}

.tripulante-detail-page-shell .document-library-table tbody td {
  padding: var(--space-stack-md);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.tripulante-detail-page-shell .document-library-table tbody td:first-child {
  border-left: 3px solid transparent;
  border-radius: var(--radius-surface) 0 0 var(--radius-surface);
}

.tripulante-detail-page-shell .document-library-table tbody td:last-child {
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0 var(--radius-surface) var(--radius-surface) 0;
}

.tripulante-detail-page-shell .document-library-row.is-selected td {
  border-color: rgba(225, 29, 72, 0.24);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.84), rgba(255, 255, 255, 0.92));
}

.tripulante-detail-page-shell .document-library-row.is-selected td:first-child {
  border-left-color: var(--color-primary);
}

.tripulante-detail-page-shell .document-library-row[data-file-status="removido"] td {
  background: rgba(248, 250, 252, 0.74);
  color: var(--color-foreground-muted);
}

.tripulante-detail-page-shell .document-library-availability[data-availability="unknown"] {
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(100, 116, 139, 0.08);
  color: var(--color-foreground-muted);
}

.tripulante-detail-page-shell .document-library-availability[data-availability="removed"] {
  border-color: rgba(51, 65, 85, 0.24);
  background: rgba(51, 65, 85, 0.08);
  color: var(--color-foreground-muted);
}

.tripulante-detail-page-shell .document-library-select {
  width: 100%;
  border-color: rgba(148, 163, 184, 0.26);
  background: #fff;
}

.tripulante-detail-page-shell .document-library-select.is-selected,
.tripulante-detail-page-shell .document-library-select[aria-selected="true"] {
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.12);
}

/* 44: tripulante document library card-list calibration for narrow master panes. */
.tripulante-detail-page-shell .document-library-table {
  display: block;
  width: 100%;
}

.tripulante-detail-page-shell .document-library-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tripulante-detail-page-shell .document-library-table tbody {
  display: grid;
  gap: var(--space-stack-sm);
}

.tripulante-detail-page-shell .document-library-table tbody tr.document-library-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "file file"
    "status sent"
    "action action";
  gap: var(--space-stack-xs) var(--space-stack-sm);
  align-items: start;
  padding: var(--space-stack-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 3px solid transparent;
  border-radius: var(--radius-surface);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.tripulante-detail-page-shell .document-library-table tbody tr.document-library-row:hover {
  transform: translateY(-1px);
}

.tripulante-detail-page-shell .document-library-table tbody tr.document-library-row.is-selected {
  border-color: rgba(225, 29, 72, 0.24);
  border-left-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.86), rgba(255, 255, 255, 0.94));
}

.tripulante-detail-page-shell .document-library-row[data-file-status="removido"] {
  background: rgba(248, 250, 252, 0.78);
  color: var(--color-foreground-muted);
}

.tripulante-detail-page-shell .document-library-table tbody tr.document-library-row > td {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tripulante-detail-page-shell .document-library-table tbody tr.document-library-row > td:first-child,
.tripulante-detail-page-shell .document-library-table tbody tr.document-library-row > td:last-child {
  border: 0;
  border-radius: 0;
}

.tripulante-detail-page-shell .document-library-row > td[data-label="Arquivo"] {
  grid-area: file;
}

.tripulante-detail-page-shell .document-library-row > td[data-label="Status"] {
  grid-area: status;
  align-self: center;
}

.tripulante-detail-page-shell .document-library-row > td[data-label="Enviado em"] {
  grid-area: sent;
  align-self: center;
  justify-self: end;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.tripulante-detail-page-shell .document-library-table td.actions.ui-table-actions {
  grid-area: action;
  width: auto;
  min-width: 0;
  justify-self: start;
}

.tripulante-detail-page-shell .document-library-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tripulante-detail-page-shell .document-library-availability {
  max-width: 100%;
  white-space: normal;
}

.tripulante-detail-page-shell .document-library-note {
  display: -webkit-box;
  max-width: 48ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tripulante-detail-page-shell .document-library-select {
  width: auto;
  min-width: 0;
  padding-inline: 12px;
}

.tripulante-detail-page-shell .document-library-select.is-selected {
  box-shadow: none;
}

.tripulante-detail-page-shell .document-library-table .secondary-cell {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--color-foreground-muted);
  font-size: var(--font-size-small);
}

.tripulante-detail-page-shell .document-detail-pane.ui-detail-pane {
  min-width: 0;
}

.tripulante-detail-page-shell .document-detail-shell.document-preview-card {
  min-height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 23, 42, 0.06), transparent 28%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.1);
}

.tripulante-detail-page-shell .document-detail-header {
  padding-bottom: var(--space-stack-sm);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.tripulante-detail-page-shell .document-detail-facts > div {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.86);
}

.tripulante-detail-page-shell .document-detail-actions.ui-detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-stack-xs);
  min-width: 170px;
  padding: var(--space-stack-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-surface);
  background: rgba(248, 250, 252, 0.78);
}

.tripulante-detail-page-shell .document-detail-actions > :where(a, button, .button-link) {
  width: 100%;
  min-height: var(--size-touch-target);
}

.tripulante-detail-page-shell .document-detail-actions > a:not([aria-disabled="true"]) {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
}

.tripulante-detail-page-shell .document-preview-frame {
  min-height: 380px;
  border-color: rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-surface);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9)),
    var(--color-surface-muted);
}

.tripulante-detail-page-shell .document-preview-frame iframe {
  height: 430px;
}

.tripulante-detail-page-shell .document-preview-fallback {
  min-height: 144px;
  align-content: center;
  border-radius: var(--radius-surface);
}

@media (max-width: 1180px) {
  .tripulante-detail-page-shell .document-master-detail.ui-master-detail {
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
  }

  .tripulante-detail-page-shell .document-detail-shell.document-preview-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "facts"
      "actions"
      "state"
      "preview";
  }

  .tripulante-detail-page-shell .document-detail-actions.ui-detail-actions {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 900px) {
  .tripulante-detail-page-shell .tripulante-photo-field,
  .tripulante-detail-page-shell .tripulante-photo-preview-card.ui-surface {
    grid-template-columns: 1fr;
  }

  .tripulante-detail-page-shell .tripulante-photo-preview {
    justify-self: start;
  }

  .tripulante-detail-page-shell .document-master-pane .ui-table-wrap {
    overflow: hidden;
    border: var(--border-subtle);
    background: var(--color-surface);
  }

  .tripulante-detail-page-shell .document-library-table {
    border-spacing: 0;
  }

  .tripulante-detail-page-shell .document-library-table tbody td {
    border-inline: 0;
    border-radius: 0;
  }

  .tripulante-detail-page-shell .document-library-table tbody td:first-child,
  .tripulante-detail-page-shell .document-library-table tbody td:last-child {
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .tripulante-detail-page-shell > .priority-page-header.ui-page-header.ui-surface,
  .tripulante-detail-page-shell .entity-form-section[data-tripulante-section],
  .tripulante-detail-page-shell .tripulante-document-panel[data-tripulante-section="documents"] {
    border-radius: var(--radius-control);
  }

  .tripulante-detail-page-shell .tripulante-document-upload.document-upload-form,
  .tripulante-detail-page-shell .document-detail-shell.document-preview-card,
  .tripulante-detail-page-shell .tripulante-photo-preview-card.ui-surface,
  .tripulante-detail-page-shell .tripulante-photo-actions {
    padding: var(--space-layout-content-mobile);
  }

  .tripulante-detail-page-shell .document-preview-frame,
  .tripulante-detail-page-shell .document-preview-frame iframe {
    min-height: 240px;
    height: 260px;
  }
}

/* G10: training record detail adopts shared visual foundation without route or submit drift. */
.training-record-detail-page-shell:not(.ui-page-shell) {
  gap: var(--space-panel-gap);
}

.training-record-detail-page-shell > .priority-page-header:not(.ui-page-header) {
  margin-bottom: 0;
  padding: var(--space-panel-gap);
  align-items: flex-start;
}

.training-record-detail-page-shell .entity-status-row.ui-cluster {
  gap: var(--space-stack-sm);
  margin-top: var(--space-stack-sm);
}

.training-record-detail-page-shell .training-record-form-panel.ui-surface,
.training-record-detail-page-shell .entity-form-section.ui-surface,
.training-record-detail-page-shell .training-record-attachment-panel.ui-surface {
  padding: var(--space-panel-gap);
  border-radius: var(--radius-surface);
  background: var(--color-state-default-surface);
  box-shadow: var(--shadow-surface);
}

.training-record-detail-page-shell .training-record-form.ui-form-grid {
  gap: var(--space-panel-gap);
}

.training-record-detail-page-shell .form-grid-compact.ui-form-grid {
  gap: var(--space-stack-md);
}

.training-record-detail-page-shell .section-feedback.ui-field-help,
.training-record-detail-page-shell .field-feedback.ui-field-help,
.training-record-detail-page-shell .field-help.ui-field-help {
  min-height: 18px;
  margin-top: var(--space-stack-xs);
}

.training-record-detail-page-shell .document-upload-form.ui-form-toolbar {
  margin-bottom: var(--space-section-gap);
}

.training-record-detail-page-shell .entity-sticky-actions.ui-form-actions {
  gap: var(--space-stack-sm);
  padding-top: var(--space-section-gap);
}

@media (max-width: 900px) {
  .training-record-detail-page-shell > .priority-page-header:not(.ui-page-header),
  .training-record-detail-page-shell .training-record-form-panel.ui-surface,
  .training-record-detail-page-shell .entity-form-section.ui-surface,
  .training-record-detail-page-shell .training-record-attachment-panel.ui-surface {
    padding: var(--space-layout-content-mobile);
  }
}

/* 34.2.1: final structural guards for notebook/tablet shell and local headers. */
@media (max-width: 1180px) {
  .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 35.dashboard: responsive breakpoint calibration for desktop/notebook/tablet layout stability. */
@media (max-width: 1360px) {
  .dashboard-page-shell {
    gap: var(--space-4);
  }

  .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    grid-template-columns: minmax(0, 1fr) minmax(248px, 320px);
    gap: var(--space-2);
  }

  .dashboard-header-main {
    max-width: 48rem;
  }

  .dashboard-priority-strip.ui-surface,
  .dashboard-entry-context.ui-surface {
    gap: var(--space-2);
  }

  .dashboard-stat-grid,
  .dashboard-mid-surface-grid {
    gap: var(--space-2);
  }

  .dashboard-mid-surface-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .dashboard-kpi-card {
    min-height: 158px;
    padding: 10px;
  }

  .dashboard-kpi-value {
    font-size: clamp(30px, 2.6vw, 36px);
  }

  .dashboard-critical-toolbar {
    gap: var(--space-2);
    padding: var(--space-2);
  }

  .dashboard-critical-filters {
    grid-template-columns: repeat(3, minmax(96px, max-content));
  }

  .dashboard-calendar-master-detail.ui-master-detail {
    grid-template-columns: minmax(0, 1fr) minmax(228px, 272px);
    gap: var(--space-2);
  }

  .dashboard-calendar-day {
    min-height: 60px;
    padding: 5px;
  }
}

@media (max-width: 1180px) {
  .dashboard-priority-strip.ui-surface {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-priority-steps {
    justify-content: flex-start;
  }

  .dashboard-entry-context.ui-surface {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-entry-context-list {
    justify-content: flex-start;
  }

  .dashboard-kpi-card {
    min-height: 150px;
  }

  .dashboard-critical-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-critical-filters {
    justify-content: flex-start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .dashboard-page-shell {
    gap: var(--space-3);
  }

  .dashboard-top-cluster {
    gap: var(--space-2);
  }

  .dashboard-kpi-card {
    min-height: 144px;
  }

  .dashboard-kpi-value {
    font-size: clamp(28px, 4.6vw, 34px);
  }

  .dashboard-critical-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-critical-filter--stable {
    grid-column: 1 / -1;
  }

  .dashboard-calendar-layout {
    gap: var(--space-2);
  }

  .dashboard-calendar-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-calendar-master-detail.ui-master-detail {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .dashboard-calendar-aside.ui-detail-pane {
    padding: var(--space-2);
  }
}

/* 35.dashboard-reference: align local dashboard surface to approved visual target without shell drift. */
.dashboard-reference-target {
  gap: var(--space-4);
}

.dashboard-reference-target .dashboard-priority-strip.ui-surface,
.dashboard-reference-target .dashboard-entry-context.ui-surface,
.dashboard-reference-target .dashboard-critical-toolbar,
.dashboard-reference-target .dashboard-critical-table-head,
.dashboard-reference-target .dashboard-agenda-zone,
.dashboard-reference-target .dashboard-status-panel,
.dashboard-reference-target .dashboard-calendar-aside.ui-detail-pane,
.dashboard-reference-target .dashboard-critical-open-inline {
  display: none;
}

.dashboard-reference-target .dashboard-top-cluster {
  gap: var(--space-3);
}

.dashboard-reference-target .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: var(--space-3);
  align-items: start;
  padding: 20px;
}

.dashboard-reference-target .dashboard-header-main h1 {
  font-size: clamp(38px, 3vw, 48px);
  letter-spacing: -0.02em;
}

.dashboard-reference-target .dashboard-header-main .page-subtitle {
  color: var(--text-muted);
}

.dashboard-reference-target .dashboard-action-rail {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 10px;
}

.dashboard-reference-target .dashboard-action-caption {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.dashboard-reference-target .dashboard-action-list {
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  gap: 10px;
}

.dashboard-reference-target .dashboard-action-link.button-link {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  justify-content: center;
}

.dashboard-reference-target .dashboard-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(320px, 1.5fr);
  gap: var(--space-2);
}

.dashboard-reference-target .dashboard-stat-grid > .dashboard-kpi-card,
.dashboard-reference-target .dashboard-stat-grid > .dashboard-kpi-card--critical {
  grid-column: auto;
}

.dashboard-reference-target .dashboard-kpi-card {
  min-height: 206px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  gap: 10px;
  box-shadow: none;
}

.dashboard-reference-target .dashboard-kpi-card::before {
  display: none;
}

.dashboard-reference-target .dashboard-kpi-head {
  justify-content: flex-start;
}

.dashboard-reference-target .dashboard-kpi-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-reference-target .dashboard-kpi-value {
  font-size: clamp(44px, 2.8vw, 58px);
  line-height: 1;
}

.dashboard-reference-target .dashboard-kpi-meta {
  gap: 0;
}

.dashboard-reference-target .dashboard-kpi-share {
  font-size: 0.9rem;
}

.dashboard-reference-target .dashboard-kpi-sparkline {
  display: inline-flex;
  width: 100%;
  max-width: 134px;
  height: 48px;
}

.dashboard-reference-target .dashboard-kpi-sparkline svg {
  width: 100%;
  height: 100%;
}

.dashboard-reference-target .dashboard-kpi-sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.dashboard-reference-target .dashboard-kpi-card--critical .dashboard-kpi-sparkline {
  color: var(--dashboard-critical);
}

.dashboard-reference-target .dashboard-kpi-card--warning .dashboard-kpi-sparkline {
  color: var(--dashboard-warning);
}

.dashboard-reference-target .dashboard-kpi-card--stable .dashboard-kpi-sparkline {
  color: var(--dashboard-stable);
}

.dashboard-reference-target .dashboard-kpi-card--neutral .dashboard-kpi-sparkline {
  color: var(--color-info);
}

.dashboard-reference-target .dashboard-kpi-action {
  margin-top: 2px;
  text-decoration: none;
  border-top: 0;
  padding-top: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-reference-target .dashboard-kpi-card--neutral {
  background: color-mix(in srgb, var(--color-info-soft) 40%, #fff);
}

.dashboard-reference-target .dashboard-kpi-card--neutral::before,
.dashboard-reference-target .dashboard-kpi-card--neutral .dashboard-kpi-dot {
  background: var(--color-info);
}

.dashboard-reference-target .dashboard-monitor-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 16px;
  min-height: 206px;
}

.dashboard-reference-target .dashboard-monitor-head {
  display: grid;
  gap: 4px;
}

.dashboard-reference-target .dashboard-monitor-eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.dashboard-reference-target .dashboard-monitor-total {
  font-size: clamp(48px, 2.8vw, 58px);
  line-height: 1;
}

.dashboard-reference-target .dashboard-monitor-caption {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.dashboard-reference-target .dashboard-monitor-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-state-default-border) 65%, #fff);
}

.dashboard-reference-target .dashboard-monitor-segment {
  min-width: 6px;
}

.dashboard-reference-target .dashboard-monitor-segment--critical {
  background: var(--dashboard-critical);
}

.dashboard-reference-target .dashboard-monitor-segment--warning {
  background: var(--dashboard-warning);
}

.dashboard-reference-target .dashboard-monitor-segment--stable {
  background: var(--dashboard-stable);
}

.dashboard-reference-target .dashboard-monitor-segment--neutral {
  background: var(--color-info);
}

.dashboard-reference-target .dashboard-monitor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.dashboard-reference-target .dashboard-monitor-item {
  display: grid;
  gap: 3px;
  align-content: start;
  min-height: 74px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, #94a3b8 24%, #fff);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.79rem;
  color: var(--text-muted);
  text-decoration: none;
}

.dashboard-reference-target .dashboard-monitor-item-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.dashboard-reference-target .dashboard-monitor-item strong {
  font-size: 1rem;
  line-height: 1.15;
  color: var(--text-default);
}

.dashboard-reference-target .dashboard-monitor-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--dashboard-monitor-tone, currentcolor);
}

.dashboard-reference-target .dashboard-monitor-item--critical {
  --dashboard-monitor-tone: var(--dashboard-critical);
}

.dashboard-reference-target .dashboard-monitor-item--warning {
  --dashboard-monitor-tone: var(--dashboard-warning);
}

.dashboard-reference-target .dashboard-monitor-item--stable {
  --dashboard-monitor-tone: var(--dashboard-stable);
}

.dashboard-reference-target .dashboard-monitor-item--neutral {
  --dashboard-monitor-tone: var(--color-info);
}

.dashboard-reference-target .dashboard-core-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(0, 0.96fr);
  gap: var(--space-3);
  align-items: start;
}

.dashboard-reference-target .dashboard-critical-panel.ui-surface,
.dashboard-reference-target .dashboard-calendar-panel.ui-surface {
  margin: 0;
  padding: 22px;
  border: 1px solid color-mix(in srgb, #94a3b8 30%, #fff);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-reference-target .dashboard-critical-panel.ui-surface {
  background: linear-gradient(180deg, #ffffff 0%, #fff9fa 100%);
}

.dashboard-reference-target .dashboard-critical-header-copy h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(38px, 2.1vw, 44px);
  letter-spacing: -0.02em;
}

.dashboard-reference-target .dashboard-critical-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dashboard-critical) 18%, #fff);
  color: var(--dashboard-critical-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-reference-target .dashboard-critical-table thead th:nth-child(2),
.dashboard-reference-target .dashboard-critical-table tbody td:nth-child(2) {
  display: none;
}

.dashboard-reference-target .dashboard-critical-table-wrap.ui-table-wrap {
  margin-top: 2px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #94a3b8 26%, #fff);
  background: #fff;
}

.dashboard-reference-target .dashboard-critical-open-bottom {
  margin-top: 10px;
  min-height: 38px;
  padding-inline: 14px;
  border: 1px solid color-mix(in srgb, var(--dashboard-critical) 24%, #fff);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dashboard-critical) 8%, #fff);
  justify-self: flex-start;
  color: var(--dashboard-critical-strong);
  font-weight: 700;
  text-decoration: none;
}

.dashboard-reference-target .dashboard-calendar-header {
  padding-bottom: 0;
  margin-bottom: 2px;
}

.dashboard-reference-target .dashboard-calendar-head-copy h2 {
  font-size: clamp(31px, 1.55vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.dashboard-reference-target .dashboard-calendar-support-note {
  display: none;
}

.dashboard-reference-target .dashboard-calendar-panel.ui-surface {
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.dashboard-reference-target .dashboard-calendar-master-detail.ui-master-detail {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-reference-target .dashboard-calendar-shell.ui-master-pane {
  border: 1px solid color-mix(in srgb, #94a3b8 24%, #fff);
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.dashboard-reference-target .dashboard-calendar-weekdays {
  gap: 7px;
  padding: 0 0 8px;
}

.dashboard-reference-target .dashboard-calendar-weekdays div {
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dashboard-reference-target .dashboard-calendar-grid {
  gap: 7px;
  padding: 0;
}

.dashboard-reference-target .dashboard-calendar-day {
  position: relative;
  min-height: 52px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, #94a3b8 26%, #fff);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  justify-content: center;
  align-items: center;
  transition:
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.dashboard-reference-target .dashboard-calendar-day:hover,
.dashboard-reference-target .dashboard-calendar-day:focus-visible {
  border-color: color-mix(in srgb, var(--dashboard-info) 36%, #fff);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.dashboard-reference-target .dashboard-calendar-day.is-muted {
  opacity: 0.56;
}

.dashboard-reference-target .dashboard-calendar-day.has-due {
  border-color: color-mix(in srgb, var(--dashboard-critical) 36%, #fff);
  background: linear-gradient(180deg, #ffffff 0%, #fff5f6 100%);
}

.dashboard-reference-target .dashboard-calendar-day-label,
.dashboard-reference-target .dashboard-calendar-day-dots {
  display: none;
}

.dashboard-reference-target .dashboard-calendar-day-number {
  font-size: 0.88rem;
  font-weight: 700;
  background: color-mix(in srgb, #e2e8f0 58%, #fff);
}

.dashboard-reference-target .dashboard-calendar-day-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.67rem;
  line-height: 1;
  box-shadow: 0 5px 10px rgba(190, 24, 50, 0.22);
}

.dashboard-reference-target .dashboard-calendar-day.is-selected {
  border-color: color-mix(in srgb, var(--dashboard-critical) 56%, #fff);
  background: linear-gradient(180deg, #ffffff 0%, #ffeef0 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dashboard-critical) 22%, #fff);
}

.dashboard-reference-target .dashboard-calendar-day.is-today .dashboard-calendar-day-number {
  color: #0f172a;
  border: 1px solid color-mix(in srgb, var(--dashboard-info) 38%, #fff);
  background: color-mix(in srgb, #dbeafe 76%, #fff);
}

.dashboard-reference-target .dashboard-calendar-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: color-mix(in srgb, var(--text-muted) 88%, #fff);
  font-size: 0.75rem;
}

.dashboard-reference-target .dashboard-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, #94a3b8 18%, #fff);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.dashboard-reference-target .dashboard-calendar-legend-item > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentcolor;
}

.dashboard-reference-target .dashboard-calendar-legend-item--critical {
  color: var(--dashboard-critical-strong);
}

.dashboard-reference-target .dashboard-calendar-legend-item--warning {
  color: var(--dashboard-warning-strong);
}

.dashboard-reference-target .dashboard-calendar-legend-item--stable {
  color: var(--dashboard-stable-strong);
}

.dashboard-reference-target .dashboard-calendar-support-block {
  display: grid;
  gap: 9px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, #94a3b8 24%, #fff);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.dashboard-reference-target .dashboard-calendar-support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-reference-target .dashboard-calendar-support-head h3 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--text-default);
}

.dashboard-reference-target .dashboard-calendar-support-head p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dashboard-reference-target .dashboard-calendar-support-link.button-link {
  min-height: 34px;
  padding-inline: 13px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-reference-target .dashboard-calendar-support-list {
  display: grid;
  gap: 8px;
}

.dashboard-reference-target .dashboard-calendar-support-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "date status"
    "main status";
  align-items: start;
  gap: 6px 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, #94a3b8 24%, #fff);
  border-radius: 12px;
  background: color-mix(in srgb, #ffffff 90%, #f8fafc);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    transform var(--motion-fast);
}

.dashboard-reference-target .dashboard-calendar-support-item:hover,
.dashboard-reference-target .dashboard-calendar-support-item:focus-visible {
  border-color: color-mix(in srgb, var(--dashboard-info) 34%, #fff);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.dashboard-reference-target .dashboard-calendar-support-item.status-red {
  border-color: color-mix(in srgb, var(--dashboard-critical) 36%, #fff);
  background: linear-gradient(180deg, #ffffff 0%, #fff4f4 100%);
}

.dashboard-reference-target .dashboard-calendar-support-item.status-yellow {
  border-color: color-mix(in srgb, var(--dashboard-warning) 34%, #fff);
  background: linear-gradient(180deg, #ffffff 0%, #fff9ed 100%);
}

.dashboard-reference-target .dashboard-calendar-support-item.status-green {
  border-color: color-mix(in srgb, var(--dashboard-stable) 34%, #fff);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf7 100%);
}

.dashboard-reference-target .dashboard-calendar-support-item.status-gray {
  border-color: color-mix(in srgb, #94a3b8 30%, #fff);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-reference-target .dashboard-calendar-support-date {
  grid-area: date;
  justify-self: flex-start;
  min-width: 0;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, #94a3b8 28%, #fff);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text-muted) 88%, #fff);
}

.dashboard-reference-target .dashboard-calendar-support-main {
  grid-area: main;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-reference-target .dashboard-calendar-support-main strong {
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--text-default);
  overflow-wrap: break-word;
}

.dashboard-reference-target .dashboard-calendar-support-main small {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.dashboard-reference-target .dashboard-calendar-support-item .status-pill {
  grid-area: status;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  font-size: 0.69rem;
  padding: 2px 8px;
}

.dashboard-reference-target .dashboard-calendar-support-empty .empty {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, #94a3b8 34%, #fff);
  background: color-mix(in srgb, #f8fafc 84%, #fff);
}

.dashboard-reference-target .dashboard-mid-surface-grid {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-reference-target .dashboard-base-overview {
  gap: 10px;
}

.dashboard-reference-target .dashboard-base-summary {
  display: none;
}

.dashboard-reference-target .dashboard-base-grid.dashboard-secondary-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.dashboard-reference-target .dashboard-base-card.summary-card {
  min-height: 136px;
  padding: 14px;
  border-radius: var(--radius-lg);
  grid-template-rows: auto auto auto auto;
  gap: 6px;
  background: #fff;
  box-shadow: none;
}

.dashboard-reference-target .dashboard-base-card.summary-card::after {
  display: none;
}

.dashboard-reference-target .dashboard-base-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-reference-target .dashboard-base-card.summary-card .dashboard-base-card-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-default);
}

.dashboard-reference-target .dashboard-base-card-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 20%, #fff);
}

.dashboard-reference-target .dashboard-base-card-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-reference-target .dashboard-base-card-icon--sky {
  color: #4f7fcc;
  background: #edf5ff;
}

.dashboard-reference-target .dashboard-base-card-icon--mint {
  color: #4ba572;
  background: #ecfbf3;
}

.dashboard-reference-target .dashboard-base-card-icon--lilac {
  color: #8a68c9;
  background: #f4efff;
}

.dashboard-reference-target .dashboard-base-card-icon--indigo {
  color: #6073c8;
  background: #eff2ff;
}

.dashboard-reference-target .dashboard-base-card-value {
  font-size: clamp(42px, 2.8vw, 54px);
  line-height: 1;
}

.dashboard-reference-target .dashboard-base-card.summary-card .dashboard-base-card-support {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dashboard-reference-target .dashboard-base-card.summary-card .dashboard-base-card-action-row {
  border-top: 0;
  margin-top: auto;
  padding-top: 0;
}

.dashboard-reference-target .dashboard-base-card.summary-card .dashboard-base-card-action {
  font-size: 0.9rem;
  font-weight: 700;
  color: #5a73a8;
}

@media (max-width: 1360px) {
  .dashboard-reference-target .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-reference-target .dashboard-header-actions {
    width: 100%;
  }

  .dashboard-reference-target .dashboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-reference-target .dashboard-monitor-card {
    grid-column: 1 / -1;
  }

  .dashboard-reference-target .dashboard-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-reference-target .dashboard-core-grid {
    grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .dashboard-reference-target .dashboard-core-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-reference-target .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-reference-target .dashboard-monitor-list {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .dashboard-reference-target .dashboard-base-grid.dashboard-secondary-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-reference-target .dashboard-calendar-support-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-reference-target .dashboard-critical-panel.ui-surface,
  .dashboard-reference-target .dashboard-calendar-panel.ui-surface {
    padding: 18px;
  }

  .dashboard-reference-target .dashboard-critical-header-copy h2 {
    font-size: clamp(34px, 5vw, 40px);
  }

  .dashboard-reference-target .dashboard-calendar-head-copy h2 {
    font-size: clamp(28px, 4.6vw, 34px);
  }
}

@media (max-width: 720px) {
  .dashboard-reference-target .dashboard-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-reference-target .dashboard-monitor-list {
    grid-template-columns: 1fr;
  }

  .dashboard-reference-target .dashboard-base-grid.dashboard-secondary-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-reference-target .dashboard-calendar-day {
    min-height: 48px;
  }

  .dashboard-reference-target .dashboard-calendar-support-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "date"
      "main"
      "status";
    row-gap: 6px;
  }

  .dashboard-reference-target .dashboard-calendar-support-date {
    width: fit-content;
  }

  .dashboard-reference-target .dashboard-calendar-support-item .status-pill {
    justify-self: flex-start;
  }
}

/* Dashboard operational header: AISWEB top surface matching the expected control-room design. */
.app-shell:has(.dashboard-operational-page-shell) .content.ui-content-region {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .app-shell:has(.dashboard-operational-tv-shell) {
    grid-template-columns: minmax(0, 1fr);
    background: #07111d;
  }

  .app-shell:has(.dashboard-operational-tv-shell) .sidebar.ui-inverse-surface,
  .app-shell:has(.dashboard-operational-tv-shell) .topbar.ui-sticky-surface {
    display: none;
  }

  .app-shell:has(.dashboard-operational-tv-shell) .main-column {
    min-height: 100vh;
    min-height: 100dvh;
    background: #07111d;
  }

  .app-shell:has(.dashboard-operational-tv-shell) .content.ui-content-region {
    width: 100%;
    max-width: none;
    padding: 0;
  }
}

.dashboard-operational-page-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  gap: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.dashboard-operational-page-shell:fullscreen,
.dashboard-operational-page-shell:-webkit-full-screen {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #07111d;
}

.dashboard-operational-page-shell:fullscreen::backdrop {
  background: #07111d;
}

.dashboard-operational-page-shell.dashboard-page-shell {
  background: #07111d;
}

.dashboard-operational-page-shell .dashboard-top-cluster {
  gap: 20px;
  padding: 16px;
  min-height: auto;
  align-content: start;
  border: 1px solid rgba(82, 109, 138, 0.18);
  border-radius: 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(42, 83, 138, 0.16), transparent 34%),
    #07111d;
  color: #e8eef8;
  box-shadow: inset 0 -1px 0 rgba(113, 142, 174, 0.16);
}

.dashboard-operational-page-shell .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-operational-page-shell .dashboard-header-main {
  gap: 8px;
  max-width: none;
}

.dashboard-operational-page-shell .dashboard-header-main h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: clamp(30px, 2.9vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-header-main .page-subtitle {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(14px, 1.2vw, 18px);
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-top-statusbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  color: rgba(226, 232, 240, 0.86);
}

.dashboard-operational-page-shell .dashboard-header-meta-item,
.dashboard-operational-page-shell .dashboard-header-update,
.dashboard-operational-page-shell .dashboard-fullscreen-button,
.dashboard-operational-page-shell .dashboard-user-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.dashboard-operational-page-shell .dashboard-header-meta-item,
.dashboard-operational-page-shell .dashboard-header-update,
.dashboard-operational-page-shell .dashboard-fullscreen-button {
  padding-right: 16px;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-operational-page-shell .dashboard-header-meta-item > span:last-child,
.dashboard-operational-page-shell .dashboard-fullscreen-button > span:last-child,
.dashboard-operational-page-shell .dashboard-user-summary > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-header-meta-item strong,
.dashboard-operational-page-shell .dashboard-fullscreen-button strong,
.dashboard-operational-page-shell .dashboard-user-summary strong {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.1;
}

.dashboard-operational-page-shell .dashboard-header-meta-item small,
.dashboard-operational-page-shell .dashboard-fullscreen-button small,
.dashboard-operational-page-shell .dashboard-user-summary small {
  color: rgba(203, 213, 225, 0.72);
  font-size: 12px;
  line-height: 1.1;
}

.dashboard-operational-page-shell .dashboard-meta-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: rgba(226, 232, 240, 0.9);
}

.dashboard-operational-page-shell .dashboard-meta-icon svg {
  width: 100%;
  height: 100%;
}

.dashboard-operational-page-shell .dashboard-header-update {
  color: rgba(226, 232, 240, 0.9);
  font-size: 13px;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-fullscreen-button {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.88);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color 160ms ease, opacity 160ms ease;
}

.dashboard-operational-page-shell .dashboard-fullscreen-button:hover,
.dashboard-operational-page-shell .dashboard-fullscreen-button:focus-visible {
  color: #f8fafc;
}

.dashboard-operational-page-shell .dashboard-fullscreen-button:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.58);
  outline-offset: 3px;
}

.dashboard-operational-page-shell .dashboard-fullscreen-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.dashboard-operational-page-shell .dashboard-update-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #56d364;
  box-shadow: 0 0 0 4px rgba(86, 211, 100, 0.08);
}

.dashboard-operational-page-shell .dashboard-system-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid rgba(74, 222, 128, 0.46);
  border-radius: 8px;
  background: rgba(21, 128, 61, 0.08);
  color: #65df7d;
  line-height: 1.15;
}

.dashboard-operational-page-shell .dashboard-system-badge svg {
  width: 26px;
  height: 26px;
}

.dashboard-operational-page-shell .dashboard-system-badge strong {
  font-size: 13px;
}

.dashboard-operational-page-shell .dashboard-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c2d8e, #b83280);
  color: #fff;
  font-weight: 800;
}

.dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 96px;
  padding: 18px 24px;
  border: 1px solid rgba(100, 124, 154, 0.26);
  border-radius: 10px;
  background: rgba(9, 19, 32, 0.92);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.dashboard-operational-page-shell .dashboard-weather-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].is-weather-transitioning .dashboard-weather-item {
  transform: translateY(5px);
  opacity: 0.42;
}

.dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].is-weather-transitioned .dashboard-weather-item {
  animation: dashboardWeatherContentIn 420ms ease both;
}

.dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"][data-weather-status="loading"] .dashboard-weather-icon--weather {
  animation: dashboardWeatherPulse 1.2s ease-in-out infinite;
}

@keyframes dashboardWeatherContentIn {
  from {
    transform: translateY(-5px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dashboardWeatherPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.dashboard-operational-page-shell .dashboard-weather-item--base {
  padding-right: 28px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-operational-page-shell .dashboard-weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.dashboard-operational-page-shell .dashboard-weather-icon svg {
  width: 100%;
  height: 100%;
}

.dashboard-operational-page-shell .dashboard-weather-icon--map {
  color: #5b7cff;
}

.dashboard-operational-page-shell .dashboard-weather-icon--weather {
  color: #f8fafc;
}

.dashboard-operational-page-shell .dashboard-weather-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-weather-label {
  color: rgba(203, 213, 225, 0.66);
  font-size: 14px;
  line-height: 1.1;
}

.dashboard-operational-page-shell .dashboard-weather-copy strong {
  color: #f8fafc;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.15;
}

.dashboard-operational-page-shell .dashboard-weather-copy small {
  color: rgba(203, 213, 225, 0.66);
  font-size: 12px;
}

.dashboard-operational-page-shell [data-dashboard-alert-surface="dashboard-operational-alert-grid"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-operational-page-shell .dashboard-alert-card.ui-surface {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 172px;
  padding: 26px 22px;
  border-radius: 10px;
  background: rgba(14, 20, 32, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.dashboard-operational-page-shell .dashboard-alert-card::before {
  display: none;
}

.dashboard-operational-page-shell .dashboard-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dashboard-operational-page-shell .dashboard-alert-icon svg {
  width: 38px;
  height: 38px;
}

.dashboard-operational-page-shell .dashboard-alert-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-alert-label {
  color: rgba(248, 250, 252, 0.92);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-operational-page-shell .dashboard-alert-card .dashboard-kpi-value {
  font-size: clamp(36px, 3vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-operational-page-shell .dashboard-alert-card .dashboard-kpi-action {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--critical {
  border-color: rgba(248, 64, 87, 0.42);
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--critical .dashboard-alert-icon,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--critical .dashboard-kpi-value,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--critical .dashboard-kpi-action {
  color: #ff445d;
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--warning {
  border-color: rgba(249, 115, 22, 0.58);
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--warning .dashboard-alert-icon,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--warning .dashboard-kpi-value,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--warning .dashboard-kpi-action {
  color: #ff7a18;
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--stable {
  border-color: rgba(250, 204, 21, 0.5);
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--stable .dashboard-alert-icon,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--stable .dashboard-kpi-value,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--stable .dashboard-kpi-action {
  color: #facc15;
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--neutral {
  border-color: rgba(59, 130, 246, 0.5);
}

.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--neutral .dashboard-alert-icon,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--neutral .dashboard-kpi-value,
.dashboard-operational-page-shell .dashboard-alert-card.dashboard-kpi-card--neutral .dashboard-kpi-action {
  color: #5b7cff;
}

.dashboard-operational-page-shell .dashboard-upper-section {
  display: grid;
  gap: 0;
  padding: 0 16px 20px;
  background: #07111d;
  color: #e8eef8;
}

.dashboard-operational-page-shell .dashboard-upper-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 18px;
  align-items: end;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-upper-section-header > div {
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-upper-section-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-operational-page-shell .dashboard-upper-section-header h2 {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-upper-section-header p {
  max-width: 52ch;
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(203, 213, 225, 0.68);
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-upper-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(390px, 1.12fr) minmax(330px, 1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-upper-card.ui-surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(100, 124, 154, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(16, 28, 45, 0.94), rgba(9, 18, 31, 0.96)),
    #09131f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.16);
}

.dashboard-operational-page-shell .dashboard-upper-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-upper-card-header h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-upper-info-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: rgba(203, 213, 225, 0.7);
}

.dashboard-operational-page-shell .dashboard-upper-info-icon svg {
  width: 100%;
  height: 100%;
}

.dashboard-operational-page-shell .dashboard-upper-card-header p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: rgba(203, 213, 225, 0.64);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-upper-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  color: #5b7cff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-upper-card-action svg {
  width: 15px;
  height: 15px;
}

.dashboard-operational-page-shell .dashboard-upper-card-action:hover,
.dashboard-operational-page-shell .dashboard-upper-card-action:focus-visible {
  color: #8da2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-operational-page-shell .dashboard-upper-card-state {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  text-align: center;
}

.dashboard-operational-page-shell .dashboard-upper-card-state strong {
  color: #e8eef8;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-operational-page-shell .dashboard-upper-card-state span {
  color: rgba(203, 213, 225, 0.66);
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-operational-page-shell .dashboard-upper-card-state--error {
  border-color: rgba(248, 64, 87, 0.28);
  background: rgba(88, 28, 40, 0.18);
}

.dashboard-operational-page-shell .dashboard-license-card-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-license-total-inline {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
}

.dashboard-operational-page-shell .dashboard-license-total-inline small {
  color: rgba(203, 213, 225, 0.66);
  font-size: 12px;
  line-height: 1.3;
}

.dashboard-operational-page-shell .dashboard-license-total-inline strong {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 34px;
  line-height: 0.92;
}

.dashboard-operational-page-shell .dashboard-license-donut-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.92fr) minmax(150px, 0.78fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-license-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 999px;
  background: conic-gradient(var(--donut-gradient));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 36px rgba(67, 183, 86, 0.08);
}

.dashboard-operational-page-shell .dashboard-license-donut::before {
  content: "";
  position: absolute;
  inset: 29%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 34%, rgba(31, 47, 73, 0.58), transparent 58%),
    #07111d;
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.14),
    0 0 18px rgba(0, 0, 0, 0.26);
}

.dashboard-operational-page-shell .dashboard-license-donut--empty {
  background: rgba(100, 116, 139, 0.18);
}

.dashboard-operational-page-shell .dashboard-license-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  color: #f8fafc;
}

.dashboard-operational-page-shell .dashboard-license-donut-center strong {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 0.95;
}

.dashboard-operational-page-shell .dashboard-license-donut-center small {
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
}

.dashboard-operational-page-shell .dashboard-license-donut-label {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
}

.dashboard-operational-page-shell .dashboard-license-donut-label--critical {
  top: 12%;
  right: 25%;
}

.dashboard-operational-page-shell .dashboard-license-donut-label--warning {
  top: 28%;
  right: 7%;
}

.dashboard-operational-page-shell .dashboard-license-donut-label--planning {
  right: 10%;
  bottom: 29%;
}

.dashboard-operational-page-shell .dashboard-license-donut-label--normal {
  left: 6%;
  bottom: 26%;
}

.dashboard-operational-page-shell .dashboard-license-legend {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-license-legend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-license-legend-row strong {
  color: #f8fafc;
  font-size: 16px;
  line-height: 1;
}

.dashboard-operational-page-shell .dashboard-license-card-footer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(203, 213, 225, 0.68);
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-operational-page-shell .dashboard-license-footer-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
}

.dashboard-operational-page-shell .dashboard-license-footer-icon svg {
  width: 100%;
  height: 100%;
}

.dashboard-operational-page-shell .dashboard-segmented-status-bar {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
}

.dashboard-operational-page-shell .dashboard-segmented-status-bar--empty {
  background: rgba(100, 116, 139, 0.16);
}

.dashboard-operational-page-shell .dashboard-segmented-status-segment {
  flex: 0 0 var(--segment-width);
  min-width: 2px;
}

.dashboard-operational-page-shell .dashboard-segmented-status-segment--critical,
.dashboard-operational-page-shell .dashboard-license-metric--critical .dashboard-license-metric-label span,
.dashboard-operational-page-shell .dashboard-mini-progress--critical .dashboard-mini-progress-fill {
  background: #ff445d;
}

.dashboard-operational-page-shell .dashboard-segmented-status-segment--warning,
.dashboard-operational-page-shell .dashboard-license-metric--warning .dashboard-license-metric-label span,
.dashboard-operational-page-shell .dashboard-mini-progress--warning .dashboard-mini-progress-fill {
  background: #ff8a1f;
}

.dashboard-operational-page-shell .dashboard-segmented-status-segment--planning,
.dashboard-operational-page-shell .dashboard-license-metric--planning .dashboard-license-metric-label span,
.dashboard-operational-page-shell .dashboard-mini-progress--planning .dashboard-mini-progress-fill {
  background: #facc15;
}

.dashboard-operational-page-shell .dashboard-segmented-status-segment--normal,
.dashboard-operational-page-shell .dashboard-license-metric--normal .dashboard-license-metric-label span,
.dashboard-operational-page-shell .dashboard-mini-progress--normal .dashboard-mini-progress-fill {
  background: #38d8a0;
}

.dashboard-operational-page-shell .dashboard-license-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-license-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(8, 15, 27, 0.5);
}

.dashboard-operational-page-shell .dashboard-license-metric-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-license-metric-label span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.dashboard-operational-page-shell .dashboard-license-metric strong {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
  line-height: 1;
}

.dashboard-operational-page-shell .dashboard-license-metric small {
  color: rgba(203, 213, 225, 0.58);
  font-size: 10px;
  line-height: 1.25;
}

.dashboard-operational-page-shell .dashboard-base-card-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dashboard-operational-page-shell .dashboard-base-map-stage {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: clamp(220px, 28vh, 300px);
  max-height: 100%;
  overflow: hidden;
  contain: layout paint;
  border-radius: 8px;
  isolation: isolate;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #b7dce7;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.dashboard-operational-page-shell .dashboard-base-map.bases-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: 100%;
  border: 0;
  border-radius: inherit;
  background: #b7dce7;
}

.dashboard-operational-page-shell .dashboard-base-map.leaflet-container {
  font-family: inherit;
}

.dashboard-operational-page-shell .dashboard-base-map .leaflet-pane,
.dashboard-operational-page-shell .dashboard-base-map .leaflet-map-pane {
  max-width: 100%;
}

.dashboard-operational-page-shell .dashboard-base-map .leaflet-control-attribution {
  max-width: 70%;
  overflow: hidden;
  border-radius: 6px 0 0;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-base-map .leaflet-control-zoom {
  display: none;
}

.dashboard-operational-page-shell .dashboard-base-map-status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 500;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.dashboard-operational-page-shell .dashboard-base-map-status[data-state="error"] {
  border-color: rgba(239, 35, 60, 0.28);
  background: rgba(255, 241, 242, 0.94);
  color: #be123c;
}

.dashboard-operational-page-shell .dashboard-base-map-status[data-state="stale"] {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(255, 251, 235, 0.94);
  color: #92400e;
}

.dashboard-operational-page-shell .dashboard-base-map-stage .base-marker-wrapper {
  transition: transform 260ms ease, opacity 260ms ease;
}

.dashboard-operational-page-shell .dashboard-base-pin-marker {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 6px;
  width: 72px;
  height: 42px;
  min-width: 0;
  padding: 6px 9px;
  overflow: visible;
  border: 1px solid rgba(37, 99, 235, 0.34);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.94);
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-operational-page-shell .dashboard-base-pin-marker-code,
.dashboard-operational-page-shell .dashboard-base-pin-marker-count {
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.dashboard-operational-page-shell .dashboard-base-pin-marker-code {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-base-pin-marker-count {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dashboard-operational-page-shell .dashboard-base-pin-marker-alert {
  position: absolute;
  top: -6px;
  right: -5px;
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid rgba(248, 250, 252, 0.94);
  border-radius: 999px;
  background: #be123c;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
}

.dashboard-operational-page-shell .dashboard-base-pin-marker--attention {
  border-color: rgba(255, 68, 93, 0.38);
}

.dashboard-operational-page-shell .dashboard-base-pin-marker--attention .dashboard-base-pin-marker-count {
  background: #be123c;
}

.dashboard-operational-page-shell .dashboard-base-pin-marker.dashboard-base-marker-active {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22), 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.dashboard-operational-page-shell .dashboard-base-marker-active {
  animation: dashboardBaseMarkerPulse 1.9s ease-in-out infinite;
  outline: 2px solid rgba(37, 99, 235, 0.38);
  outline-offset: 3px;
  transform: translateY(-2px) scale(1.03);
}

@keyframes dashboardBaseMarkerPulse {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18), 0 0 0 0 rgba(37, 99, 235, 0.28);
  }

  50% {
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.24), 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.dashboard-operational-page-shell .dashboard-base-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex-shrink: 0;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-operational-page-shell .dashboard-base-summary-item {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  grid-template-areas:
    "icon value"
    "icon label";
  column-gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: rgba(203, 213, 225, 0.68);
}

.dashboard-operational-page-shell .dashboard-base-summary-item > span {
  grid-area: icon;
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: rgba(226, 232, 240, 0.9);
}

.dashboard-operational-page-shell .dashboard-base-summary-item svg {
  width: 100%;
  height: 100%;
}

.dashboard-operational-page-shell .dashboard-base-summary-item strong {
  grid-area: value;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1;
}

.dashboard-operational-page-shell .dashboard-base-summary-item small {
  grid-area: label;
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-base-summary-item--critical,
.dashboard-operational-page-shell .dashboard-base-summary-item--critical strong,
.dashboard-operational-page-shell .dashboard-base-summary-item--critical > span {
  color: #ff445d;
}

.dashboard-operational-page-shell .dashboard-category-list,
.dashboard-operational-page-shell .dashboard-qualification-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-category-row,
.dashboard-operational-page-shell .dashboard-qualification-item {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(8, 15, 27, 0.46);
}

.dashboard-operational-page-shell .dashboard-category-row-head,
.dashboard-operational-page-shell .dashboard-qualification-head,
.dashboard-operational-page-shell .dashboard-category-risk,
.dashboard-operational-page-shell .dashboard-qualification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-category-row-head > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-category-row strong,
.dashboard-operational-page-shell .dashboard-qualification-head strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-category-row small,
.dashboard-operational-page-shell .dashboard-qualification-meta small {
  min-width: 0;
  overflow: hidden;
  color: rgba(203, 213, 225, 0.58);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-category-risk {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: rgba(203, 213, 225, 0.66);
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-operational-page-shell .dashboard-category-risk strong,
.dashboard-operational-page-shell .dashboard-qualification-meta strong {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.dashboard-operational-page-shell .dashboard-severity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-severity-badge--critical {
  border-color: rgba(255, 68, 93, 0.32);
  background: rgba(255, 68, 93, 0.1);
  color: #ff6b7d;
}

.dashboard-operational-page-shell .dashboard-severity-badge--warning {
  border-color: rgba(255, 138, 31, 0.34);
  background: rgba(255, 138, 31, 0.1);
  color: #ffac5b;
}

.dashboard-operational-page-shell .dashboard-severity-badge--planning {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.09);
  color: #f8d64b;
}

.dashboard-operational-page-shell .dashboard-severity-badge--normal {
  border-color: rgba(56, 216, 160, 0.3);
  background: rgba(56, 216, 160, 0.08);
  color: #69e4b8;
}

.dashboard-operational-page-shell .dashboard-mini-progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.dashboard-operational-page-shell .dashboard-mini-progress-fill {
  display: block;
  width: var(--progress-value);
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
}

.dashboard-operational-page-shell .dashboard-qualification-meta {
  align-items: baseline;
  color: rgba(203, 213, 225, 0.66);
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-operational-page-shell .dashboard-qualification-action {
  justify-self: start;
  min-height: 34px;
  padding: 8px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.dashboard-operational-page-shell .dashboard-qualification-action:hover,
.dashboard-operational-page-shell .dashboard-qualification-action:focus-visible {
  color: #f8fafc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-operational-page-shell .dashboard-qualification-list {
  gap: 12px;
}

.dashboard-operational-page-shell .dashboard-qualification-item {
  grid-template-columns: 44px minmax(0, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 12px;
}

.dashboard-operational-page-shell .dashboard-qualification-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  color: currentColor;
}

.dashboard-operational-page-shell .dashboard-qualification-icon svg {
  width: 24px;
  height: 24px;
}

.dashboard-operational-page-shell .dashboard-qualification-item--critical {
  color: #ff445d;
}

.dashboard-operational-page-shell .dashboard-qualification-item--warning {
  color: #ff8a1f;
}

.dashboard-operational-page-shell .dashboard-qualification-item--planning {
  color: #facc15;
}

.dashboard-operational-page-shell .dashboard-qualification-item--normal {
  color: #38d8a0;
}

.dashboard-operational-page-shell .dashboard-qualification-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-qualification-main strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-qualification-main small {
  min-width: 0;
  overflow: hidden;
  color: rgba(203, 213, 225, 0.6);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-qualification-risk {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-qualification-risk > strong {
  color: currentColor;
  font-size: 26px;
  line-height: 0.9;
}

.dashboard-operational-page-shell .dashboard-qualification-risk .dashboard-mini-progress {
  width: 76px;
}

.dashboard-operational-page-shell .dashboard-upper-skeleton {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
}

.dashboard-operational-page-shell .dashboard-upper-skeleton-line {
  display: block;
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(226, 232, 240, 0.18), rgba(148, 163, 184, 0.1));
  background-size: 220% 100%;
  animation: dashboardUpperSkeleton 1.4s ease-in-out infinite;
}

.dashboard-operational-page-shell .dashboard-upper-skeleton-line--1 {
  width: 74%;
}

.dashboard-operational-page-shell .dashboard-upper-skeleton-line--2 {
  width: 100%;
}

.dashboard-operational-page-shell .dashboard-upper-skeleton-line--3 {
  width: 88%;
}

.dashboard-operational-page-shell .dashboard-upper-skeleton-line--4 {
  width: 64%;
}

.dashboard-operational-page-shell .dashboard-upper-skeleton-line--5 {
  width: 92%;
}

@keyframes dashboardUpperSkeleton {
  from {
    background-position: 140% 0;
  }

  to {
    background-position: -80% 0;
  }
}

.dashboard-operational-page-shell .dashboard-lower-section {
  display: grid;
  min-width: 0;
  padding: 0 16px 24px;
  background: #07111d;
  color: #e8eef8;
}

.dashboard-operational-page-shell .dashboard-lower-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-lower-card.ui-surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 318px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(100, 124, 154, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(14, 25, 41, 0.94), rgba(8, 17, 29, 0.97)),
    #09131f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 30px rgba(0, 0, 0, 0.14);
}

.dashboard-operational-page-shell .dashboard-lower-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-lower-card-header h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-lower-card-header p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: rgba(203, 213, 225, 0.64);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-lower-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  color: #5b7cff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-lower-card-action svg {
  width: 15px;
  height: 15px;
}

.dashboard-operational-page-shell .dashboard-lower-card-action:hover,
.dashboard-operational-page-shell .dashboard-lower-card-action:focus-visible {
  color: #8da2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-operational-page-shell .dashboard-lower-collection-state {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
}

.dashboard-operational-page-shell .dashboard-lower-collection-state strong {
  color: #e8eef8;
  font-size: 12px;
  line-height: 1.2;
}

.dashboard-operational-page-shell .dashboard-lower-collection-state span {
  overflow-wrap: anywhere;
  color: rgba(203, 213, 225, 0.68);
  font-size: 11px;
  line-height: 1.3;
}

.dashboard-operational-page-shell .dashboard-lower-collection-state--error {
  border-color: rgba(248, 64, 87, 0.28);
  background: rgba(88, 28, 40, 0.18);
}

.dashboard-operational-page-shell .dashboard-base-weather-table {
  display: grid;
  min-width: 0;
  align-content: start;
}

.dashboard-operational-page-shell .dashboard-base-weather-row {
  display: grid;
  grid-template-columns: minmax(116px, 1.22fr) minmax(66px, 0.64fr) minmax(48px, 0.48fr) minmax(56px, 0.52fr) minmax(72px, 0.72fr) minmax(66px, 0.62fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-operational-page-shell .dashboard-base-weather-row--head {
  padding-top: 4px;
  padding-bottom: 10px;
  color: rgba(203, 213, 225, 0.6);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-operational-page-shell .dashboard-base-weather-row:last-child {
  border-bottom: 0;
}

.dashboard-operational-page-shell .dashboard-base-weather-cell {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-base-weather-cell--base {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-operational-page-shell .dashboard-base-weather-cell--base strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-lower-status-dot,
.dashboard-operational-page-shell .dashboard-weather-condition > span {
  display: inline-flex;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #94a3b8;
}

.dashboard-operational-page-shell .dashboard-base-weather-row--normal .dashboard-lower-status-dot,
.dashboard-operational-page-shell .dashboard-weather-condition--normal > span {
  background: #38d86f;
  box-shadow: 0 0 0 3px rgba(56, 216, 111, 0.12);
}

.dashboard-operational-page-shell .dashboard-base-weather-row--attention .dashboard-lower-status-dot,
.dashboard-operational-page-shell .dashboard-weather-condition--attention > span {
  background: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.dashboard-operational-page-shell .dashboard-base-weather-row--critical .dashboard-lower-status-dot,
.dashboard-operational-page-shell .dashboard-weather-condition--critical > span {
  background: #ff445d;
  box-shadow: 0 0 0 3px rgba(255, 68, 93, 0.13);
}

.dashboard-operational-page-shell .dashboard-weather-condition {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-weather-condition--normal {
  color: #78e6a1;
}

.dashboard-operational-page-shell .dashboard-weather-condition--attention {
  color: #f8d64b;
}

.dashboard-operational-page-shell .dashboard-weather-condition--critical {
  color: #ff6b7d;
}

.dashboard-operational-page-shell .dashboard-weather-condition--unknown {
  color: #cbd5e1;
}

.dashboard-operational-page-shell .dashboard-notam-list {
  display: grid;
  align-content: start;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-notam-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(100px, auto);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-operational-page-shell .dashboard-notam-item:last-child {
  border-bottom: 0;
}

.dashboard-operational-page-shell .dashboard-notam-code {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-operational-page-shell .dashboard-notam-code--critical {
  border-color: rgba(255, 68, 93, 0.3);
  background: rgba(255, 68, 93, 0.24);
  color: #ff6b7d;
}

.dashboard-operational-page-shell .dashboard-notam-code--warning {
  border-color: rgba(255, 138, 31, 0.28);
  background: rgba(255, 138, 31, 0.2);
  color: #ffac5b;
}

.dashboard-operational-page-shell .dashboard-notam-code--attention {
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.17);
  color: #f8d64b;
}

.dashboard-operational-page-shell .dashboard-notam-code--info {
  border-color: rgba(91, 124, 255, 0.32);
  background: rgba(91, 124, 255, 0.18);
  color: #88a0ff;
}

.dashboard-operational-page-shell .dashboard-notam-main,
.dashboard-operational-page-shell .dashboard-notam-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-notam-main strong {
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.1;
}

.dashboard-operational-page-shell .dashboard-notam-main small {
  min-width: 0;
  overflow: hidden;
  color: rgba(203, 213, 225, 0.68);
  font-size: 11px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-notam-meta {
  justify-items: end;
  color: rgba(203, 213, 225, 0.7);
  text-align: right;
}

.dashboard-operational-page-shell .dashboard-notam-meta strong {
  color: rgba(248, 250, 252, 0.88);
  font-size: 12px;
  line-height: 1.1;
}

.dashboard-operational-page-shell .dashboard-notam-meta small {
  color: rgba(203, 213, 225, 0.68);
  font-size: 11px;
  line-height: 1.25;
}

.dashboard-operational-page-shell .dashboard-quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.dashboard-operational-page-shell .dashboard-quick-action {
  display: grid;
  place-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 94px;
  padding: 13px 9px;
  border: 1px solid rgba(91, 124, 255, 0.28);
  border-radius: 8px;
  background: rgba(10, 22, 39, 0.58);
  color: #5b7cff;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.dashboard-operational-page-shell .dashboard-quick-action:hover,
.dashboard-operational-page-shell .dashboard-quick-action:focus-visible {
  border-color: rgba(141, 162, 255, 0.52);
  background: rgba(20, 42, 77, 0.62);
  color: #8da2ff;
  transform: translateY(-1px);
}

.dashboard-operational-page-shell .dashboard-quick-action--disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.dashboard-operational-page-shell .dashboard-quick-action--disabled:hover,
.dashboard-operational-page-shell .dashboard-quick-action--disabled:focus-visible {
  border-color: rgba(91, 124, 255, 0.28);
  background: rgba(10, 22, 39, 0.58);
  color: #5b7cff;
  transform: none;
}

.dashboard-operational-page-shell .dashboard-quick-action-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
}

.dashboard-operational-page-shell .dashboard-quick-action-icon svg {
  width: 100%;
  height: 100%;
}

.dashboard-operational-page-shell .dashboard-quick-action > span:last-child {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.dashboard-operational-page-shell .dashboard-operational-ticker {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: #050b14;
  color: #f8fafc;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.24);
}

.dashboard-operational-page-shell .dashboard-operational-ticker-label {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 16px;
  background: #ff445d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-viewport {
  min-width: 0;
  overflow: hidden;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  animation: dashboardOperationalTickerScroll 44s linear infinite;
}

.dashboard-operational-page-shell .dashboard-operational-ticker--empty .dashboard-operational-ticker-track,
.dashboard-operational-page-shell .dashboard-operational-ticker--error .dashboard-operational-ticker-track,
.dashboard-operational-page-shell .dashboard-operational-ticker--loading .dashboard-operational-ticker-track {
  width: 100%;
  animation: none;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 24px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-operational-page-shell .dashboard-operational-ticker--empty .dashboard-operational-ticker-item,
.dashboard-operational-page-shell .dashboard-operational-ticker--error .dashboard-operational-ticker-item,
.dashboard-operational-page-shell .dashboard-operational-ticker--loading .dashboard-operational-ticker-item {
  width: 100%;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-item strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-item--critical strong {
  color: #ff6b7d;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-item--warning strong {
  color: #ffac5b;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-item--attention strong {
  color: #f8d64b;
}

.dashboard-operational-page-shell .dashboard-operational-ticker-item--info strong {
  color: #88a0ff;
}

@keyframes dashboardOperationalTickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 1280px) {
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-cluster,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-cluster {
    gap: 12px;
    padding: 16px 28px 14px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    box-sizing: border-box;
    min-height: 66px;
    padding-block: 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface,
  .dashboard-operational-page-shell:fullscreen [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface {
    box-sizing: border-box;
    min-height: 78px;
    padding-block: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card.ui-surface {
    box-sizing: border-box;
    min-height: 0;
    height: 118px;
    padding: 14px 20px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-icon {
    width: 58px;
    height: 58px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-icon svg,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-icon svg {
    width: 32px;
    height: 32px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-copy,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-copy {
    gap: 5px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card .dashboard-kpi-value,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card .dashboard-kpi-value {
    font-size: 38px;
  }

  .dashboard-operational-page-shell .dashboard-upper-section {
    padding: 0 28px 28px;
  }

  .dashboard-operational-page-shell .dashboard-lower-section {
    padding: 0 28px 28px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card.ui-surface {
    min-height: 338px;
    padding: 14px 16px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card.ui-surface {
    min-height: 268px;
    padding: 14px 16px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action {
    min-height: 76px;
    padding: 10px 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action-icon {
    width: 28px;
    height: 28px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-map-stage,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-map-stage {
    height: 100%;
    min-height: 0;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut {
    width: min(190px, 100%);
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-list,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-list {
    gap: 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-item {
    min-height: 58px;
    padding: 8px 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-icon {
    width: 38px;
    height: 38px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-risk > strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-risk > strong {
    font-size: 23px;
  }
}

@media (min-width: 1680px) {
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card.ui-surface {
    height: 126px;
  }
}

@media (max-width: 1360px) {
  .dashboard-operational-page-shell .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-operational-page-shell .dashboard-top-statusbar {
    justify-content: flex-start;
  }

  .dashboard-operational-page-shell [data-dashboard-alert-surface="dashboard-operational-alert-grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-operational-page-shell .dashboard-upper-section-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .dashboard-operational-page-shell .dashboard-upper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-operational-page-shell .dashboard-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-operational-page-shell .dashboard-upper-card--base-management {
    grid-column: 1 / -1;
  }

  .dashboard-operational-page-shell .dashboard-lower-card--quick-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .dashboard-operational-page-shell .dashboard-top-cluster {
    padding: 12px;
  }

  .dashboard-operational-page-shell .dashboard-top-statusbar,
  .dashboard-operational-page-shell .dashboard-header-meta-item,
  .dashboard-operational-page-shell .dashboard-header-update,
  .dashboard-operational-page-shell .dashboard-fullscreen-button,
  .dashboard-operational-page-shell .dashboard-user-summary {
    width: 100%;
  }

  .dashboard-operational-page-shell .dashboard-header-meta-item,
  .dashboard-operational-page-shell .dashboard-header-update,
  .dashboard-operational-page-shell .dashboard-fullscreen-button {
    padding-right: 0;
    border-right: 0;
  }

  .dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface,
  .dashboard-operational-page-shell [data-dashboard-alert-surface="dashboard-operational-alert-grid"] {
    grid-template-columns: 1fr;
  }

  .dashboard-operational-page-shell .dashboard-weather-item--base {
    padding-right: 0;
    border-right: 0;
  }

  .dashboard-operational-page-shell .dashboard-alert-card.ui-surface {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 136px;
    padding: 18px;
  }

  .dashboard-operational-page-shell .dashboard-alert-icon {
    width: 56px;
    height: 56px;
  }

  .dashboard-operational-page-shell .dashboard-upper-section {
    padding: 0 12px 18px;
  }

  .dashboard-operational-page-shell .dashboard-lower-section {
    padding: 0 12px 18px;
  }

  .dashboard-operational-page-shell .dashboard-upper-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-operational-page-shell .dashboard-lower-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-operational-page-shell .dashboard-upper-card.ui-surface {
    min-height: auto;
    padding: 16px;
  }

  .dashboard-operational-page-shell .dashboard-lower-card.ui-surface {
    min-height: auto;
    padding: 16px;
  }

  .dashboard-operational-page-shell .dashboard-upper-card--licenses {
    grid-column: auto;
  }

  .dashboard-operational-page-shell .dashboard-upper-card--base-management {
    grid-column: auto;
  }

  .dashboard-operational-page-shell .dashboard-lower-card--quick-actions {
    grid-column: auto;
  }

  .dashboard-operational-page-shell .dashboard-license-donut-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-operational-page-shell .dashboard-license-donut {
    width: min(224px, 74vw);
  }

  .dashboard-operational-page-shell .dashboard-base-map-stage {
    min-height: 340px;
  }

  .dashboard-operational-page-shell .dashboard-base-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-operational-page-shell .dashboard-quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-operational-page-shell .dashboard-notam-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .dashboard-operational-page-shell .dashboard-notam-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .dashboard-operational-page-shell .dashboard-license-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-operational-page-shell .dashboard-category-row-head,
  .dashboard-operational-page-shell .dashboard-qualification-head,
  .dashboard-operational-page-shell .dashboard-category-risk,
  .dashboard-operational-page-shell .dashboard-qualification-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-operational-page-shell .dashboard-qualification-action {
    min-height: 40px;
  }

  .dashboard-operational-page-shell .dashboard-qualification-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .dashboard-operational-page-shell .dashboard-qualification-risk {
    grid-column: 2;
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .dashboard-operational-page-shell .dashboard-upper-section-header h2 {
    font-size: 21px;
    line-height: 1.18;
  }

  .dashboard-operational-page-shell .dashboard-upper-section-header,
  .dashboard-operational-page-shell .dashboard-upper-section-header > div,
  .dashboard-operational-page-shell .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell .dashboard-lower-card.ui-surface,
  .dashboard-operational-page-shell .dashboard-base-card-body,
  .dashboard-operational-page-shell .dashboard-base-map-stage,
  .dashboard-operational-page-shell .dashboard-base-weather-table,
  .dashboard-operational-page-shell .dashboard-notam-item,
  .dashboard-operational-page-shell .dashboard-category-row,
  .dashboard-operational-page-shell .dashboard-qualification-item {
    max-width: 100%;
    overflow-x: hidden;
  }

  .dashboard-operational-page-shell .dashboard-category-row-head,
  .dashboard-operational-page-shell .dashboard-qualification-head,
  .dashboard-operational-page-shell .dashboard-qualification-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .dashboard-operational-page-shell .dashboard-license-total {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-operational-page-shell .dashboard-license-total strong {
    grid-row: auto;
  }

  .dashboard-operational-page-shell .dashboard-license-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-operational-page-shell .dashboard-lower-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .dashboard-operational-page-shell .dashboard-base-weather-row--head {
    display: none;
  }

  .dashboard-operational-page-shell .dashboard-base-weather-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px 0;
  }

  .dashboard-operational-page-shell .dashboard-base-weather-cell {
    display: grid;
    gap: 3px;
    font-size: 12px;
    white-space: normal;
  }

  .dashboard-operational-page-shell .dashboard-base-weather-cell::before {
    content: attr(data-label);
    color: rgba(203, 213, 225, 0.56);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
  }

  .dashboard-operational-page-shell .dashboard-base-weather-cell--base {
    grid-column: 1 / -1;
    display: inline-flex;
  }

  .dashboard-operational-page-shell .dashboard-base-weather-cell--base::before {
    display: none;
  }

  .dashboard-operational-page-shell .dashboard-quick-action-grid {
    gap: 10px;
  }

  .dashboard-operational-page-shell .dashboard-quick-action {
    min-height: 86px;
  }

}

@media (min-width: 1024px) {
  .dashboard-operational-page-shell.dashboard-operational-tv-shell,
  .dashboard-operational-page-shell:fullscreen {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 0.78fr) 44px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    align-content: stretch;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-cluster,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-cluster,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-section,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-section,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-grid,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-grid {
    min-height: 0;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-section,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-section {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 12px;
    height: 100%;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    height: 100%;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card--base-management,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card--base-management,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card--quick-actions,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card--quick-actions {
    grid-column: auto;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card.ui-surface {
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  .dashboard-operational-page-shell.dashboard-operational-tv-shell,
  .dashboard-operational-page-shell:fullscreen {
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 0.7fr) 40px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker {
    min-height: 40px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker-label,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker-item strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker-item strong {
    font-size: 11px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker-item {
    font-size: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-cluster,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-cluster {
    gap: 8px;
    padding: 10px 16px 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    grid-template-columns: minmax(250px, 1fr) auto;
    gap: 14px;
    min-height: 48px;
    padding-block: 4px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-main,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-main {
    gap: 4px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-main h1,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-main h1 {
    font-size: clamp(25px, 2.45vw, 34px);
    line-height: 1;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-main .page-subtitle,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-main .page-subtitle {
    font-size: 13px;
    line-height: 1.15;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-statusbar,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-statusbar {
    gap: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-meta-item,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-update,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-fullscreen-button,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-user-summary,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-meta-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-update,
  .dashboard-operational-page-shell:fullscreen .dashboard-fullscreen-button,
  .dashboard-operational-page-shell:fullscreen .dashboard-user-summary {
    gap: 7px;
    min-height: 36px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-meta-item,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-update,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-fullscreen-button,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-meta-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-update,
  .dashboard-operational-page-shell:fullscreen .dashboard-fullscreen-button {
    padding-right: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-meta-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-meta-icon {
    width: 19px;
    height: 19px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-meta-item strong,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-fullscreen-button strong,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-user-summary strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-meta-item strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-fullscreen-button strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-user-summary strong {
    font-size: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-meta-item small,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-fullscreen-button small,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-user-summary small,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-meta-item small,
  .dashboard-operational-page-shell:fullscreen .dashboard-fullscreen-button small,
  .dashboard-operational-page-shell:fullscreen .dashboard-user-summary small {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-system-badge,
  .dashboard-operational-page-shell:fullscreen .dashboard-system-badge {
    gap: 7px;
    min-height: 38px;
    padding: 6px 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-system-badge svg,
  .dashboard-operational-page-shell:fullscreen .dashboard-system-badge svg {
    width: 21px;
    height: 21px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-user-avatar,
  .dashboard-operational-page-shell:fullscreen .dashboard-user-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface,
  .dashboard-operational-page-shell:fullscreen [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface {
    grid-template-columns: minmax(180px, 250px) minmax(210px, 1fr);
    gap: 20px;
    min-height: 56px;
    padding: 9px 16px;
    border-radius: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-icon {
    width: 31px;
    height: 31px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-item {
    gap: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-item--base,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-item--base {
    padding-right: 18px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-copy,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-copy {
    gap: 3px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-label {
    font-size: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-copy strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-copy strong {
    font-size: 16px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-copy small,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-copy small {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell [data-dashboard-alert-surface="dashboard-operational-alert-grid"],
  .dashboard-operational-page-shell:fullscreen [data-dashboard-alert-surface="dashboard-operational-alert-grid"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card.ui-surface {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    height: 76px;
    padding: 9px 12px;
    border-radius: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-icon svg,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-icon svg {
    width: 26px;
    height: 26px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-copy,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-copy {
    gap: 3px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-label {
    font-size: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card .dashboard-kpi-value,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card .dashboard-kpi-value {
    font-size: 27px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card .dashboard-kpi-action,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card .dashboard-kpi-action {
    font-size: 11px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-section,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-section {
    padding: 0 12px 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-grid,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-grid {
    gap: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card.ui-surface {
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card-header,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card-header,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card-header,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card-header {
    gap: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card-header h3,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card-header h3,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card-header h3,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card-header h3 {
    gap: 5px;
    font-size: 14px;
    line-height: 1.12;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-info-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-info-icon {
    width: 14px;
    height: 14px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card-header p,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card-header p,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card-header p,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card-header p {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.2;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card-action,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card-action,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card-action,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card-action {
    min-height: 22px;
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-total-inline,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-total-inline {
    gap: 2px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-total-inline small,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-total-inline small {
    font-size: 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-total-inline strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-total-inline strong {
    font-size: 24px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-card-body,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-card-body {
    gap: 7px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut-layout,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut-layout {
    grid-template-columns: minmax(118px, 0.88fr) minmax(118px, 1fr);
    gap: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut {
    width: min(142px, 100%);
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut::before,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut::before {
    inset: 31%;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut-center strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut-center strong {
    font-size: 25px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut-center small,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut-center small {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut-label {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-legend,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-legend {
    gap: 7px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-legend-row,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-legend-row {
    gap: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-metric-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-metric-label,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-card-footer,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-card-footer {
    font-size: 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-legend-row strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-legend-row strong {
    font-size: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-card-body,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-card-body {
    gap: 7px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-map-stage,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-map-stage {
    min-height: 0;
    height: 100%;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-pin-marker,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-pin-marker {
    width: 62px;
    height: 36px;
    padding: 5px 7px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-pin-marker-code,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-pin-marker-count,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-pin-marker-code,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-pin-marker-count {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-pin-marker-count,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-pin-marker-count {
    min-width: 18px;
    height: 18px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-pin-marker-alert,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-pin-marker-alert {
    min-width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-summary,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-summary {
    gap: 5px;
    padding-top: 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-summary-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-summary-item {
    column-gap: 5px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-summary-item > span,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-summary-item > span {
    width: 17px;
    height: 17px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-summary-item strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-summary-item strong {
    font-size: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-summary-item small,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-summary-item small {
    font-size: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-list,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-list {
    gap: 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-item {
    grid-template-columns: 34px minmax(0, 1fr) minmax(62px, auto);
    gap: 8px;
    min-height: 43px;
    padding: 6px 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-icon {
    width: 32px;
    height: 32px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-icon svg,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-icon svg {
    width: 18px;
    height: 18px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-main,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-main {
    gap: 2px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-main strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-main strong {
    font-size: 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-main small,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-main small,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-meta small,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-meta small {
    font-size: 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-risk,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-risk {
    gap: 3px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-risk > strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-risk > strong {
    font-size: 18px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-severity-badge,
  .dashboard-operational-page-shell:fullscreen .dashboard-severity-badge {
    min-height: 18px;
    padding-inline: 6px;
    font-size: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-mini-progress,
  .dashboard-operational-page-shell:fullscreen .dashboard-mini-progress {
    height: 4px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-risk .dashboard-mini-progress,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-risk .dashboard-mini-progress {
    width: 54px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-weather-row,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-weather-row {
    grid-template-columns: minmax(78px, 1.2fr) minmax(42px, 0.6fr) minmax(36px, 0.46fr) minmax(42px, 0.5fr) minmax(48px, 0.62fr) minmax(42px, 0.52fr);
    gap: 5px;
    padding: 6px 0;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-weather-row--head,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-weather-row--head {
    padding-top: 0;
    padding-bottom: 6px;
    font-size: 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-weather-cell,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-weather-cell {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-weather-cell--base,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-weather-cell--base,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-condition,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-condition {
    gap: 4px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-status-dot,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-condition > span,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-status-dot,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-condition > span {
    width: 7px;
    height: 7px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-item {
    grid-template-columns: 28px minmax(0, 1fr) minmax(76px, auto);
    gap: 8px;
    padding: 6px 0;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-code,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-code {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 13px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-main,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-meta,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-main,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-meta {
    gap: 2px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-main strong,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-meta strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-main strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-meta strong {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-main small,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-meta small,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-main small,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-meta small {
    font-size: 9px;
    line-height: 1.16;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action-grid {
    gap: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action {
    gap: 6px;
    min-height: 52px;
    padding: 8px 5px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action-icon {
    width: 22px;
    height: 22px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action > span:last-child,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action > span:last-child {
    font-size: 9px;
    line-height: 1.12;
  }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .dashboard-operational-page-shell.dashboard-operational-tv-shell,
  .dashboard-operational-page-shell:fullscreen {
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 0.68fr) 36px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker {
    min-height: 36px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker-label,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker-item strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker-item strong {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-operational-ticker-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-operational-ticker-item {
    font-size: 11px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-cluster,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-cluster {
    gap: 6px;
    padding: 7px 10px 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-cluster > .priority-page-header.ui-page-header.ui-surface {
    min-height: 40px;
    padding-block: 2px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-main h1,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-main h1 {
    font-size: clamp(22px, 2.2vw, 29px);
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-main .page-subtitle,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-main .page-subtitle {
    font-size: 11px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-top-statusbar,
  .dashboard-operational-page-shell:fullscreen .dashboard-top-statusbar {
    gap: 7px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-system-badge,
  .dashboard-operational-page-shell:fullscreen .dashboard-system-badge,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-meta-item,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-header-update,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-fullscreen-button,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-user-summary,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-meta-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-header-update,
  .dashboard-operational-page-shell:fullscreen .dashboard-fullscreen-button,
  .dashboard-operational-page-shell:fullscreen .dashboard-user-summary {
    min-height: 32px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-user-avatar,
  .dashboard-operational-page-shell:fullscreen .dashboard-user-avatar {
    width: 32px;
    height: 32px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface,
  .dashboard-operational-page-shell:fullscreen [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface {
    min-height: 48px;
    padding: 7px 12px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-icon {
    width: 27px;
    height: 27px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-copy strong,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-copy strong {
    font-size: 14px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-label,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-weather-copy small,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-weather-copy small {
    font-size: 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card.ui-surface {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    height: 62px;
    padding: 7px 9px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-icon {
    width: 36px;
    height: 36px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-icon svg,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-icon svg {
    width: 21px;
    height: 21px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-label,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-label,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card .dashboard-kpi-action,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card .dashboard-kpi-action {
    font-size: 10px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-alert-card .dashboard-kpi-value,
  .dashboard-operational-page-shell:fullscreen .dashboard-alert-card .dashboard-kpi-value {
    font-size: 22px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-section,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-section,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-section {
    padding: 0 8px 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-grid,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-grid {
    gap: 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-upper-card.ui-surface,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-lower-card.ui-surface,
  .dashboard-operational-page-shell:fullscreen .dashboard-lower-card.ui-surface {
    gap: 6px;
    padding: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut {
    width: min(120px, 100%);
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-donut-layout,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-donut-layout {
    grid-template-columns: minmax(96px, 0.78fr) minmax(104px, 1fr);
    gap: 8px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-license-legend,
  .dashboard-operational-page-shell:fullscreen .dashboard-license-legend {
    gap: 5px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-map-stage,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-map-stage {
    min-height: 0;
    height: 100%;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-list,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-list {
    gap: 4px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-item {
    min-height: 37px;
    padding: 5px 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-qualification-icon,
  .dashboard-operational-page-shell:fullscreen .dashboard-qualification-icon {
    width: 28px;
    height: 28px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-base-weather-row,
  .dashboard-operational-page-shell:fullscreen .dashboard-base-weather-row,
  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-notam-item,
  .dashboard-operational-page-shell:fullscreen .dashboard-notam-item {
    padding-block: 4px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action-grid,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action-grid {
    gap: 6px;
  }

  .dashboard-operational-page-shell.dashboard-operational-tv-shell .dashboard-quick-action,
  .dashboard-operational-page-shell:fullscreen .dashboard-quick-action {
    min-height: 44px;
    padding: 6px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].ui-surface,
  .dashboard-operational-page-shell .dashboard-weather-item,
  .dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"].is-weather-transitioned .dashboard-weather-item,
  .dashboard-operational-page-shell [data-dashboard-weather-surface="dashboard-operational-weather-strip"][data-weather-status="loading"] .dashboard-weather-icon--weather,
  .dashboard-operational-page-shell .dashboard-upper-skeleton-line,
  .dashboard-operational-page-shell .dashboard-base-marker-active,
  .dashboard-operational-page-shell .dashboard-base-map-stage .base-marker-wrapper,
  .dashboard-operational-page-shell .dashboard-quick-action,
  .dashboard-operational-page-shell .dashboard-operational-ticker-track {
    animation: none;
    transition: none;
  }
}

/* Financeiro Missoes: canonical workstation form and master-detail rules. */
.financeiro-missoes-page .financeiro-missoes-form {
  display: grid;
  gap: 16px;
}

.financeiro-missoes-page .financeiro-missoes-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.financeiro-missoes-page .financeiro-missoes-form-section {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.72);
}

.financeiro-missoes-page .financeiro-missoes-form-section > legend {
  padding: 0 6px;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
}

.financeiro-missoes-page .financeiro-missoes-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}

.financeiro-missoes-page .financeiro-missoes-section-grid > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 650;
}

.financeiro-missoes-page .financeiro-missoes-form :is(input:not([type="checkbox"]), select, textarea) {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #0f172a !important;
  font: inherit !important;
  box-shadow: none !important;
}

.financeiro-missoes-page .financeiro-missoes-form :is(input:not([type="checkbox"]), select) {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  line-height: 42px !important;
}

.financeiro-missoes-page .financeiro-missoes-form textarea {
  min-height: 92px !important;
  padding: 10px 12px !important;
  line-height: 1.45 !important;
  resize: vertical;
}

.financeiro-missoes-page .financeiro-missoes-form :is(input:not([type="checkbox"]), select, textarea):focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

.financeiro-missoes-page .financeiro-missoes-form .financeiro-missoes-field-help {
  max-width: 100%;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.32;
}

.financeiro-missoes-page .financeiro-missoes-form .financeiro-missoes-field-badge {
  align-self: flex-start;
  width: fit-content;
  margin-top: 2px;
  border-color: rgba(217, 119, 6, 0.24);
  background: #fffbeb;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 800;
}

.financeiro-missoes-page .financeiro-missoes-form .financeiro-missoes-field-help[data-finance-category-feedback]:not(:empty) {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 800;
}

.financeiro-missoes-page .financeiro-missoes-form .financeiro-missoes-check {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  align-self: end;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #fff;
}

.financeiro-missoes-page .financeiro-missoes-form .financeiro-missoes-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.financeiro-missoes-page .financeiro-missoes-form .form-actions.ui-form-actions {
  padding-top: 2px;
}

.financeiro-missoes-page .financeiro-missoes-coming-soon {
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.06);
}

.financeiro-missoes-page .financeiro-missoes-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.financeiro-missoes-page .financeiro-missoes-recalc-actions > :where(button, .button-link) {
  min-width: 0;
  flex: 1 1 150px;
}

.financeiro-missoes-page .financeiro-missoes-preflight-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.75);
}

.financeiro-missoes-page .financeiro-missoes-preflight-list strong {
  color: #991b1b;
}

.financeiro-missoes-page .financeiro-missoes-preflight-list ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  color: #7f1d1d;
  font-size: 0.82rem;
}

.financeiro-missoes-page .data-table.responsive-cards tbody td.actions {
  white-space: normal;
}

.financeiro-missoes-page .data-table.responsive-cards tbody td.actions .ui-table-actions,
.financeiro-missoes-page .data-table.responsive-cards tbody td.actions {
  gap: 6px;
}

.financeiro-missoes-page .data-table.responsive-cards tbody td.actions :where(a, button, .button-link) {
  line-height: 1.3;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-gate-section {
  gap: 10px;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-gate-card {
  min-height: 0;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-gate-card h4 {
  margin: 0;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-preflight-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-heavy-section-disclosure {
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, #fff);
  border-radius: 8px;
  background: color-mix(in srgb, #f8fafc 90%, #fff);
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-heavy-section-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--text-default);
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-heavy-section-disclosure > summary::after {
  content: "+";
  color: var(--text-muted);
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-heavy-section-disclosure[open] > summary::after {
  content: "-";
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-heavy-section-disclosure-body {
  padding: 0 12px 12px;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-parameters-disclosure {
  margin-top: 12px;
  border: 1px dashed color-mix(in srgb, var(--warning-color, #d97706) 45%, var(--border-color));
  border-radius: 10px;
  background: color-mix(in srgb, #fff7ed 62%, #fff);
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-parameters-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 12px;
  cursor: pointer;
  font-weight: 800;
  color: color-mix(in srgb, var(--text-default) 82%, #92400e);
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-parameters-disclosure > summary::after {
  content: "+";
  color: #92400e;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-parameters-disclosure[open] > summary::after {
  content: "-";
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-parameters-disclosure .ui-field-help,
.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-parameters-disclosure table {
  margin: 0 12px 12px;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-parameter-row {
  background: color-mix(in srgb, #fff7ed 55%, #fff);
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-badges .status-pill {
  font-size: 0.68rem;
}

.financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-legacy-edit-button {
  border-style: dashed;
}

@media (max-width: 720px) {
  .financeiro-missoes-page .financeiro-missoes-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-page .financeiro-missoes-form-section {
    padding: 12px;
  }

  .financeiro-missoes-page .table-wrap.ui-table-wrap {
    overflow-x: hidden;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .table-wrap.ui-table-wrap {
    overflow-x: hidden;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] [data-finance-period-actions] {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-gate-section .financeiro-settings-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-heavy-section-disclosure-body {
    padding: 0 10px 10px;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-overview-grid-four {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-overview-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    overflow: visible;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-overview-card h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .financeiro-settings-page[data-finance-page="fechamento-parametros"] .financeiro-overview-pill {
    white-space: nowrap;
  }

  .financeiro-missoes-page .financeiro-missoes-recalc-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Financeiro Missoes: full-width operational flow below the list. */
.financeiro-missoes-page .financeiro-missoes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.financeiro-missoes-page .financeiro-missoes-list-panel,
.financeiro-missoes-page .financeiro-missoes-side {
  min-width: 0;
}

.financeiro-missoes-page .financeiro-missoes-side {
  position: static;
  display: grid;
  gap: 16px;
  width: 100%;
  scroll-margin-top: 16px;
}

.financeiro-missoes-page .financeiro-missoes-side-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(560px, 1.14fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-detail,
.financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-side-empty {
  grid-column: 1;
}

.financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-form {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-recalc-card {
  grid-column: 1;
}

.financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-options-feedback {
  grid-column: 1 / -1;
}

.financeiro-missoes-page .financeiro-missoes-operational-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.financeiro-missoes-page .financeiro-missoes-operational-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.financeiro-missoes-page .financeiro-missoes-operational-header span:first-child {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.financeiro-missoes-page .financeiro-missoes-operational-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.2;
}

.financeiro-missoes-page .financeiro-missoes-operational-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.financeiro-missoes-page .financeiro-missoes-side-empty .ui-state,
.financeiro-missoes-page .financeiro-missoes-detail-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
  padding: 14px;
}

.financeiro-missoes-page .financeiro-missoes-detail-card {
  display: grid;
  gap: 12px;
}

.financeiro-missoes-page .financeiro-missoes-danger-zone {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(185, 28, 28, 0.18);
}

.financeiro-missoes-page .financeiro-missoes-danger-zone .link-danger {
  justify-self: start;
  border-color: rgba(185, 28, 28, 0.28);
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

.financeiro-missoes-page .financeiro-missoes-danger-zone small {
  color: var(--text-muted);
}

.financeiro-missoes-page .financeiro-missoes-workflow-state {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(79, 127, 204, 0.22);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.62);
  padding: 10px 12px;
}

.financeiro-missoes-page .financeiro-missoes-workflow-state > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.financeiro-missoes-page .financeiro-missoes-workflow-state strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.financeiro-missoes-page .financeiro-missoes-workflow-state span:not(.status-pill) {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.4;
}

.financeiro-missoes-page .financeiro-missoes-draft-alert {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.72);
}

.financeiro-missoes-page .financeiro-missoes-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.financeiro-missoes-page .financeiro-missoes-detail-grid div,
.financeiro-missoes-page .financeiro-missoes-participants {
  border-radius: 8px;
  padding: 9px 10px;
}

.financeiro-missoes-page .financeiro-missoes-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.financeiro-missoes-page .financeiro-missoes-summary-card {
  min-height: 96px;
  padding: 14px;
}

.financeiro-missoes-page .filters-bar-main.ui-filter-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.8fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    minmax(220px, 1.35fr)
    minmax(92px, auto)
    minmax(92px, auto);
  gap: 10px;
  align-items: end;
}

.financeiro-missoes-page .filters-bar-main.ui-filter-row > :where(input, select, button, .button-link) {
  min-width: 0;
  width: 100%;
}

.financeiro-missoes-page .filters-state.ui-filter-summary[data-filter-state="empty"] {
  color: #64748b;
  font-size: 0.82rem;
}

.financeiro-missoes-page .table-wrap.ui-table-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

.financeiro-missoes-page .financeiro-missoes-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.financeiro-missoes-page .financeiro-missoes-table th:nth-child(1) {
  width: 22%;
}

.financeiro-missoes-page .financeiro-missoes-table th:nth-child(2) {
  width: 20%;
}

.financeiro-missoes-page .financeiro-missoes-table th:nth-child(3) {
  width: 22%;
}

.financeiro-missoes-page .financeiro-missoes-table th:nth-child(4) {
  width: 14%;
}

.financeiro-missoes-page .financeiro-missoes-table th:nth-child(5) {
  width: 13%;
}

.financeiro-missoes-page .financeiro-missoes-table th:nth-child(6) {
  width: 9%;
}

.financeiro-missoes-page .financeiro-missoes-table th,
.financeiro-missoes-page .financeiro-missoes-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.financeiro-missoes-page .financeiro-missoes-table td.actions {
  white-space: normal;
}

.financeiro-missoes-page .financeiro-missoes-table .ui-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.financeiro-missoes-page .financeiro-missoes-table .ui-table-actions :where(a, button, .button-link) {
  min-width: 0;
  line-height: 1.25;
}

.financeiro-missoes-page .financeiro-missoes-empty-state.ui-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 32px 24px;
  border: 1px dashed rgba(79, 127, 204, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  text-align: center;
}

.financeiro-missoes-page .financeiro-missoes-empty-state .ui-state-title {
  color: #0f172a;
  font-size: 1.05rem;
}

.financeiro-missoes-page .financeiro-missoes-empty-state .ui-state-detail {
  max-width: 520px;
  color: #64748b;
  line-height: 1.45;
}

.financeiro-missoes-page .financeiro-missoes-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.financeiro-missoes-page .financeiro-missoes-form-section {
  border-radius: 8px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.financeiro-missoes-page .financeiro-missoes-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 12px;
}

.financeiro-missoes-page .financeiro-missoes-form-section[data-section="additional"] .financeiro-missoes-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.financeiro-missoes-page .financeiro-missoes-form-section .financeiro-missoes-wide {
  grid-column: 1 / -1;
}

.financeiro-missoes-page .financeiro-missoes-form-head h2 {
  font-size: 1.05rem;
}

.financeiro-missoes-page .financeiro-missoes-form .financeiro-missoes-field-help {
  max-width: 64ch;
}

.financeiro-missoes-page .financeiro-missoes-form-actions.ui-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.financeiro-missoes-page .financeiro-missoes-form-actions.ui-form-actions > :where(button, .button-link) {
  justify-content: center;
}

.financeiro-missoes-page .financeiro-missoes-preview-card {
  gap: 12px;
  border-radius: 8px;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.5fr) minmax(170px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-left: 4px solid #2563eb;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-head {
  align-items: center;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-head > div {
  gap: 2px;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-head strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-head span:not(.status-pill) {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.3;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-body {
  gap: 8px;
  min-width: 0;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-body p {
  font-size: 0.86rem;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-summary {
  grid-template-columns: repeat(3, minmax(118px, 1fr));
}

.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-summary div,
.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-block,
.financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-note {
  padding: 8px;
}

.financeiro-missoes-page .financeiro-missoes-preview-strip > small {
  justify-self: end;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: right;
}

.financeiro-missoes-page .financeiro-missoes-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.financeiro-missoes-page .financeiro-missoes-preview-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.financeiro-missoes-page .financeiro-missoes-preview-body {
  display: grid;
  gap: 10px;
}

.financeiro-missoes-page .financeiro-missoes-preview-body p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.financeiro-missoes-page .financeiro-missoes-preview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.financeiro-missoes-page .financeiro-missoes-preview-summary div,
.financeiro-missoes-page .financeiro-missoes-preview-block,
.financeiro-missoes-page .financeiro-missoes-preview-note {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.financeiro-missoes-page .financeiro-missoes-preview-block[data-tone="danger"] {
  border-color: rgba(220, 38, 38, 0.26);
  background: rgba(254, 242, 242, 0.8);
}

.financeiro-missoes-page .financeiro-missoes-preview-summary span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.financeiro-missoes-page .financeiro-missoes-preview-summary strong,
.financeiro-missoes-page .financeiro-missoes-preview-block strong {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.9rem;
}

.financeiro-missoes-page .financeiro-missoes-preview-list,
.financeiro-missoes-page .financeiro-missoes-preview-notes {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.35;
}

.financeiro-missoes-page .financeiro-missoes-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.financeiro-missoes-page .financeiro-missoes-preview-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.financeiro-missoes-page .financeiro-missoes-preview-metrics span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.financeiro-missoes-page .financeiro-missoes-preview-metrics strong {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.95rem;
}

.financeiro-missoes-page .financeiro-missoes-recalc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.financeiro-missoes-page .financeiro-missoes-recalc-actions > :where(button, .button-link) {
  min-width: 0;
  justify-content: center;
}

.financeiro-jornada-page {
  gap: clamp(16px, 1.8vw, 24px);
  color: #0f172a;
}

.financeiro-jornada-page .jornada-hero,
.financeiro-jornada-page .jornada-context,
.financeiro-jornada-page .jornada-grid-panel,
.financeiro-jornada-page .jornada-insight-panel,
.financeiro-jornada-page .jornada-flow,
.financeiro-jornada-page .jornada-filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.financeiro-jornada-page .jornada-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  padding: clamp(22px, 2.6vw, 34px);
}

.financeiro-jornada-page .jornada-hero h1,
.financeiro-jornada-page .jornada-section-head h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: 0;
}

.financeiro-jornada-page .jornada-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  font-weight: 900;
}

.financeiro-jornada-page .jornada-hero p,
.financeiro-jornada-page .jornada-section-head p,
.financeiro-jornada-page .jornada-flow-step p,
.financeiro-jornada-page .jornada-source-note span,
.financeiro-jornada-page .jornada-contract-note span,
.financeiro-jornada-page .jornada-locked-note span {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.financeiro-jornada-page .jornada-hero-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.financeiro-jornada-page .jornada-source-note {
  display: grid;
  align-items: flex-start;
  gap: 4px;
  max-width: 640px;
  padding: 10px 12px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 12px;
  background: #f0f9ff;
}

.financeiro-jornada-page .jornada-source-note strong {
  color: #075985;
  white-space: nowrap;
}

.financeiro-jornada-page .jornada-hero-actions,
.financeiro-jornada-page .jornada-filter-actions,
.financeiro-jornada-page .jornada-grid-actions,
.financeiro-jornada-page .jornada-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.financeiro-jornada-page .jornada-hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
  justify-self: end;
  width: min(100%, 760px);
  min-width: 0;
}

.financeiro-jornada-page .jornada-row-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.financeiro-jornada-page .jornada-hero-actions > :where(button, .button-link),
.financeiro-jornada-page .jornada-filter-actions > :where(button, .button-link),
.financeiro-jornada-page .jornada-grid-actions > :where(button, .button-link),
.financeiro-jornada-page .jornada-row-actions > :where(button, .button-link) {
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}

.financeiro-jornada-page .jornada-hero-actions > :where(button, .button-link) {
  width: 100%;
  min-height: 44px;
  white-space: normal;
  line-height: 1.2;
}

.financeiro-jornada-page .jornada-filter-panel {
  display: grid;
  grid-template-columns: minmax(210px, 1.05fr) minmax(210px, 1fr) minmax(260px, 1.2fr) auto;
  gap: 16px;
  align-items: end;
  padding: clamp(18px, 2vw, 26px);
}

.financeiro-jornada-page .jornada-filter-panel label,
.financeiro-jornada-page .jornada-report-form label,
.financeiro-jornada-page .jornada-edit-row label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.financeiro-jornada-page .jornada-filter-panel label > span,
.financeiro-jornada-page .jornada-report-form label > span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.financeiro-jornada-page .jornada-filter-panel input,
.financeiro-jornada-page .jornada-filter-panel select,
.financeiro-jornada-page .jornada-report-form input,
.financeiro-jornada-page .jornada-report-form select,
.financeiro-jornada-page .jornada-edit-row input,
.financeiro-jornada-page .jornada-edit-row select {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
}

.financeiro-jornada-page .jornada-filter-panel input,
.financeiro-jornada-page .jornada-filter-panel select,
.financeiro-jornada-page .jornada-report-form input,
.financeiro-jornada-page .jornada-report-form select {
  min-height: 48px;
  padding-inline: 14px;
}

.financeiro-jornada-page .jornada-context,
.financeiro-jornada-page .jornada-grid-panel,
.financeiro-jornada-page .jornada-insight-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px);
}

.financeiro-jornada-page .jornada-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.financeiro-jornada-page .jornada-section-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.financeiro-jornada-page .jornada-report-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.4fr) minmax(190px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
}

.financeiro-jornada-page .jornada-general-hours-form {
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 0.9fr) auto;
}

.financeiro-jornada-page .jornada-report-form > button {
  min-height: 48px;
  white-space: nowrap;
}

.financeiro-jornada-page .jornada-report-note {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.financeiro-jornada-page .jornada-context-grid,
.financeiro-jornada-page .jornada-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.financeiro-jornada-page .jornada-context-card,
.financeiro-jornada-page .jornada-mini-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.financeiro-jornada-page .jornada-context-card span:not(.jornada-icon-bubble),
.financeiro-jornada-page .jornada-mini-card span,
.financeiro-jornada-page .jornada-indicator-card span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.financeiro-jornada-page .jornada-context-card strong,
.financeiro-jornada-page .jornada-mini-card strong,
.financeiro-jornada-page .jornada-mini-card b {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.2;
}

.financeiro-jornada-page .jornada-context-card small {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
}

.financeiro-jornada-page .jornada-icon-bubble,
.financeiro-jornada-page .jornada-flow-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #2563eb;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.financeiro-jornada-page [data-tone="success"] .jornada-icon-bubble,
.financeiro-jornada-page .jornada-indicator-card[data-tone="success"] .jornada-icon-bubble {
  background: #e9fbf2;
  color: #059669;
}

.financeiro-jornada-page [data-tone="money"] .jornada-icon-bubble,
.financeiro-jornada-page .jornada-indicator-card[data-tone="money"] .jornada-icon-bubble {
  background: #fff0f5;
  color: #e11d48;
}

.financeiro-jornada-page [data-tone="warning"] .jornada-icon-bubble,
.financeiro-jornada-page .jornada-indicator-card[data-tone="warning"] .jornada-icon-bubble {
  background: #fff7ed;
  color: #d97706;
}

.financeiro-jornada-page [data-tone="danger"] .jornada-icon-bubble,
.financeiro-jornada-page .jornada-indicator-card[data-tone="danger"] .jornada-icon-bubble {
  background: #fff1f2;
  color: #dc2626;
}

.financeiro-jornada-page [data-tone="purple"] .jornada-icon-bubble,
.financeiro-jornada-page .jornada-indicator-card[data-tone="purple"] .jornada-icon-bubble {
  background: #f3e8ff;
  color: #7c3aed;
}

.financeiro-jornada-page [data-tone="cyan"] .jornada-icon-bubble,
.financeiro-jornada-page .jornada-indicator-card[data-tone="cyan"] .jornada-icon-bubble {
  background: #ecfeff;
  color: #0891b2;
}

.financeiro-jornada-page .jornada-indicators {
  display: grid;
  grid-template-columns: repeat(8, minmax(132px, 1fr));
  gap: 14px;
}

.financeiro-jornada-page .jornada-indicator-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 14px;
}

.financeiro-jornada-page .jornada-indicator-card::after {
  content: "";
  position: absolute;
  inset: auto 10px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #60a5fa;
}

.financeiro-jornada-page .jornada-indicator-card[data-tone="money"]::after {
  background: #e11d48;
}

.financeiro-jornada-page .jornada-indicator-card[data-tone="warning"]::after {
  background: #f59e0b;
}

.financeiro-jornada-page .jornada-indicator-card[data-tone="danger"]::after {
  background: #f43f5e;
}

.financeiro-jornada-page .jornada-indicator-card[data-tone="purple"]::after {
  background: #8b5cf6;
}

.financeiro-jornada-page .jornada-indicator-card[data-tone="success"]::after {
  background: #10b981;
}

.financeiro-jornada-page .jornada-indicator-card[data-tone="cyan"]::after {
  background: #14b8a6;
}

.financeiro-jornada-page .jornada-indicator-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.financeiro-jornada-page .jornada-indicator-card strong {
  color: #0f172a;
  font-size: 1.24rem;
  line-height: 1.05;
  font-weight: 900;
}

.financeiro-jornada-page .jornada-indicator-card small {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
}

.financeiro-jornada-page .jornada-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
}

.financeiro-jornada-page .jornada-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.financeiro-jornada-page .jornada-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  width: 18px;
  border-top: 2px dashed rgba(148, 163, 184, 0.55);
}

.financeiro-jornada-page .jornada-flow-step strong {
  color: #0f172a;
}

.financeiro-jornada-page .jornada-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.financeiro-jornada-page .jornada-table-wrap:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.26);
  outline-offset: 3px;
}

.financeiro-jornada-page .jornada-table-scroll-hint {
  display: none;
  margin: -4px 0 2px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.financeiro-jornada-page .jornada-table {
  min-width: 1840px;
  border-collapse: separate;
  border-spacing: 0;
}

.financeiro-jornada-page .jornada-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.financeiro-jornada-page .jornada-table :where(th, td) {
  padding: 12px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td {
  white-space: nowrap;
}

.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td:nth-child(4),
.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td:nth-child(5),
.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td:nth-child(6),
.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td:nth-child(7),
.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td:nth-child(9),
.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td:nth-child(11),
.financeiro-jornada-page .jornada-table tbody tr:not(.jornada-edit-row) > td:nth-child(20) {
  min-width: 220px;
}

.financeiro-jornada-page .jornada-table td.actions {
  min-width: 360px;
}

.financeiro-jornada-page .jornada-table tbody tr:hover {
  background: #fff8fb;
}

.financeiro-jornada-page .jornada-pernoite-cell {
  min-width: 150px;
}

.financeiro-jornada-page .jornada-pernoite-cell strong,
.financeiro-jornada-page .jornada-pernoite-cell small {
  display: block;
}

.financeiro-jornada-page .jornada-pernoite-cell small {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.25;
}

.financeiro-jornada-page .jornada-edit-row {
  background: #fff6fa;
}

.financeiro-jornada-page .jornada-edit-row.is-invalid {
  box-shadow: inset 3px 0 0 #dc2626;
}

.financeiro-jornada-page .jornada-edit-row input,
.financeiro-jornada-page .jornada-edit-row select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.financeiro-jornada-page .jornada-edit-row td {
  min-width: 96px;
}

.financeiro-jornada-page .jornada-edit-row td:nth-child(3),
.financeiro-jornada-page .jornada-edit-row td:nth-child(4),
.financeiro-jornada-page .jornada-edit-row td:nth-child(5),
.financeiro-jornada-page .jornada-edit-row td:nth-child(6),
.financeiro-jornada-page .jornada-edit-row td:nth-child(7),
.financeiro-jornada-page .jornada-edit-row td:nth-child(8),
.financeiro-jornada-page .jornada-edit-row td:nth-child(19) {
  min-width: 190px;
}

.financeiro-jornada-page .jornada-edit-row td:nth-child(4),
.financeiro-jornada-page .jornada-edit-row td:nth-child(5),
.financeiro-jornada-page .jornada-edit-row td:nth-child(6),
.financeiro-jornada-page .jornada-edit-row td:nth-child(7) {
  min-width: 220px;
}

.financeiro-jornada-page .jornada-inline-fields {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.7fr);
  gap: 8px;
  align-items: center;
}

.financeiro-jornada-page .jornada-preview-line {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.financeiro-jornada-page .jornada-preview-line small,
.financeiro-jornada-page .jornada-row-feedback,
.financeiro-jornada-page .jornada-feedback {
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.financeiro-jornada-page .jornada-row-feedback {
  margin-top: 8px;
  color: #b91c1c;
  font-weight: 800;
}

.financeiro-jornada-page .jornada-contract-note,
.financeiro-jornada-page .jornada-locked-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
  background: #fffbeb;
}

.financeiro-jornada-page .jornada-contract-note strong,
.financeiro-jornada-page .jornada-locked-note strong {
  color: #92400e;
  white-space: nowrap;
}

.financeiro-jornada-page .jornada-mini-card {
  grid-template-columns: minmax(0, 1fr);
}

.financeiro-jornada-page .status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

@media (max-width: 1500px) {
  .financeiro-jornada-page .jornada-indicators {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .financeiro-jornada-page .jornada-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-jornada-page .jornada-hero-actions {
    justify-self: stretch;
  }
}

@media (max-width: 1180px) {
  .financeiro-jornada-page .jornada-hero,
  .financeiro-jornada-page .jornada-filter-panel,
  .financeiro-jornada-page .jornada-report-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-jornada-page .jornada-hero-actions,
  .financeiro-jornada-page .jornada-filter-actions,
  .financeiro-jornada-page .jornada-grid-actions {
    justify-content: flex-start;
  }

  .financeiro-jornada-page .jornada-context-grid,
  .financeiro-jornada-page .jornada-mini-grid,
  .financeiro-jornada-page .jornada-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-jornada-page .jornada-flow-step::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .financeiro-jornada-page .jornada-indicators,
  .financeiro-jornada-page .jornada-context-grid,
  .financeiro-jornada-page .jornada-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-jornada-page .jornada-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-jornada-page .jornada-section-head {
    display: grid;
  }

  .financeiro-jornada-page .jornada-hero-actions > :where(button, .button-link),
  .financeiro-jornada-page .jornada-filter-actions > :where(button, .button-link),
  .financeiro-jornada-page .jornada-grid-actions > :where(button, .button-link) {
    flex: 1 1 180px;
  }
}

@media (max-width: 520px) {
  .financeiro-jornada-page .jornada-hero,
  .financeiro-jornada-page .jornada-context,
  .financeiro-jornada-page .jornada-grid-panel,
  .financeiro-jornada-page .jornada-insight-panel,
  .financeiro-jornada-page .jornada-flow,
  .financeiro-jornada-page .jornada-filter-panel {
    border-radius: 12px;
    padding: 14px;
  }

  .financeiro-jornada-page .jornada-indicators,
  .financeiro-jornada-page .jornada-context-grid,
  .financeiro-jornada-page .jornada-mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-jornada-page .jornada-hero-actions,
  .financeiro-jornada-page .jornada-filter-actions,
  .financeiro-jornada-page .jornada-grid-actions,
  .financeiro-jornada-page .jornada-report-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-jornada-page .jornada-source-note {
    display: grid;
  }

  .financeiro-jornada-page .jornada-hero-actions > :where(button, .button-link),
  .financeiro-jornada-page .jornada-filter-actions > :where(button, .button-link),
  .financeiro-jornada-page .jornada-grid-actions > :where(button, .button-link),
  .financeiro-jornada-page .jornada-report-form > button {
    width: 100%;
  }

  .financeiro-jornada-page .jornada-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-jornada-page .jornada-hero-actions > :where(button, .button-link) {
    min-height: 44px;
    white-space: normal;
    line-height: 1.2;
  }

  .financeiro-jornada-page .jornada-hero-actions > #jornadaExportPdf {
    grid-column: 1 / -1;
  }

  .financeiro-jornada-page .jornada-table-scroll-hint {
    display: block;
  }
}

@media (max-width: 380px) {
  .financeiro-jornada-page .jornada-hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1500px) {
  .financeiro-missoes-page .financeiro-missoes-side-shell {
    grid-template-columns: minmax(360px, 0.82fr) minmax(680px, 1.18fr);
  }
}

@media (max-width: 1400px) {
  .financeiro-missoes-page .financeiro-missoes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .financeiro-missoes-page .financeiro-missoes-side {
    position: static;
  }
}

@media (max-width: 1280px) {
  .financeiro-missoes-page .financeiro-missoes-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  }

  .financeiro-missoes-page .filters-bar-main.ui-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .financeiro-missoes-page .financeiro-missoes-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-page .financeiro-missoes-side {
    position: static;
  }

  .financeiro-missoes-page .financeiro-missoes-side-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-detail,
  .financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-side-empty,
  .financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-form,
  .financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-recalc-card,
  .financeiro-missoes-page .financeiro-missoes-side-shell > .financeiro-missoes-options-feedback {
    grid-column: 1;
    grid-row: auto;
  }

  .financeiro-missoes-page .financeiro-missoes-preview-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-page .financeiro-missoes-preview-strip > small {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .financeiro-missoes-page .financeiro-missoes-layout {
    display: flex;
    flex-direction: column;
  }

  .financeiro-missoes-page .filters-bar-main.ui-filter-row,
  .financeiro-missoes-page .financeiro-missoes-form-actions.ui-form-actions,
  .financeiro-missoes-page .financeiro-missoes-preview-summary,
  .financeiro-missoes-page .financeiro-missoes-preview-strip .financeiro-missoes-preview-summary,
  .financeiro-missoes-page .financeiro-missoes-preview-metrics,
  .financeiro-missoes-page .financeiro-missoes-recalc-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-page .financeiro-missoes-operational-header,
  .financeiro-missoes-page .financeiro-missoes-workflow-state,
  .financeiro-missoes-page .financeiro-missoes-preview-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .financeiro-missoes-page .financeiro-missoes-empty-state.ui-state {
    min-height: 220px;
    padding: 24px 16px;
  }
}
