@import "./ef-ai-standard.css";
@import "./ef-input-standard.css";
@import "./ef-shell-standard.css";

@font-face {
    font-family: "Archivo";
    src: url("./fonts/Archivo-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./fonts/Inter-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("./fonts/JetBrainsMono-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}

:root {
    --ef-brand: #e30613;
    --ef-brand-hover: #bd0010;
    --ef-brand-text: #bd0010;
    --ef-brand-soft: #fff0f1;
    --ef-canvas: #f5f7f9;
    --ef-surface: #ffffff;
    --ef-surface-raised: #ffffff;
    --ef-surface-subtle: #f7f8fa;
    --ef-surface-strong: #eef1f4;
    --ef-text: #15202a;
    --ef-text-secondary: #4c5c6b;
    --ef-text-muted: #5f6f7c;
    --ef-border: #dce2e7;
    --ef-border-strong: #bdc8d1;
    --ef-sidebar: #10151b;
    --ef-sidebar-raised: #1b2a35;
    --ef-sidebar-text: #eef3f6;
    --ef-sidebar-muted: #a8b5bf;
    --ef-success: #147a3f;
    --ef-success-soft: #e8f7ed;
    --ef-warning: #9a5a00;
    --ef-warning-soft: #fff4df;
    --ef-danger: #b4232d;
    --ef-danger-soft: #fdecee;
    --ef-info: #1f5f9c;
    --ef-info-soft: #eaf3fc;
    --ef-focus: #1667b1;
    --ef-shadow-xs: 0 1px 2px rgba(13, 26, 36, 0.05);
    --ef-shadow-sm: 0 8px 24px rgba(13, 26, 36, 0.07);
    --ef-shadow-lg: 0 28px 70px rgba(5, 15, 22, 0.2);
    --ef-space-xs: 4px;
    --ef-space-sm: 8px;
    --ef-space-md: 16px;
    --ef-space-lg: 24px;
    --ef-space-xl: 32px;
    --ef-space-2xl: 48px;
    --ef-radius-input: 9px;
    --ef-radius-button: 10px;
    --ef-radius-card: 12px;
    --ef-radius-modal: 16px;
    --ef-radius-sm: 8px;
    --ef-radius: var(--ef-radius-card);
    --ef-radius-lg: var(--ef-radius-modal);
    --ef-sidebar-width: 264px;
    --ef-topbar-height: 72px;
    --ef-content-max: 1600px;
    --ef-font-heading: "Archivo", "Arial Narrow", Arial, sans-serif;
    --ef-font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ef-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ef-font-mono: "JetBrains Mono", Consolas, monospace;
    --ef-type-display-size: 48px;
    --ef-type-display-line: 1.08;
    --ef-type-display-weight: 760;
    --ef-type-h1-size: 28px;
    --ef-type-h1-line: 1.15;
    --ef-type-h1-weight: 760;
    --ef-type-h2-size: 24px;
    --ef-type-h2-line: 1.25;
    --ef-type-h2-weight: 720;
    --ef-type-h3-size: 18px;
    --ef-type-h3-line: 1.35;
    --ef-type-h3-weight: 680;
    --ef-type-body-size: 16px;
    --ef-type-body-line: 1.55;
    --ef-type-body-weight: 400;
    --ef-type-body-small-size: 14px;
    --ef-type-body-small-line: 1.5;
    --ef-type-body-small-weight: 400;
    --ef-type-label-size: 14px;
    --ef-type-label-line: 1.35;
    --ef-type-label-weight: 650;
    --ef-type-caption-size: 12px;
    --ef-type-caption-line: 1.45;
    --ef-type-caption-weight: 500;
    --ef-type-mono-size: 13px;
    --ef-type-mono-line: 1.45;
    --ef-type-mono-weight: 550;
    color-scheme: light;
}

html[data-ef-theme="dark"] {
    --ef-canvas: #0c141b;
    --ef-surface: #121d26;
    --ef-surface-raised: #17242e;
    --ef-surface-subtle: #18242d;
    --ef-surface-strong: #23323d;
    --ef-text: #f0f4f7;
    --ef-text-secondary: #c2ccd4;
    --ef-text-muted: #9ba9b5;
    --ef-border: #2a3944;
    --ef-border-strong: #455662;
    --ef-brand-soft: #32151a;
    --ef-brand-text: #ff8991;
    --ef-success: #6fd99b;
    --ef-success-soft: #173426;
    --ef-warning: #ffc361;
    --ef-warning-soft: #382a16;
    --ef-danger: #ff8991;
    --ef-danger-soft: #3a1b20;
    --ef-info: #89c4fb;
    --ef-info-soft: #162c40;
    --ef-focus: #8bc9ff;
    --ef-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
    --ef-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.2);
    --ef-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body.ef-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--ef-canvas);
    color: var(--ef-text);
    font-family: var(--ef-font-body);
    font-size: var(--ef-type-body-size);
    font-weight: var(--ef-type-body-weight);
    line-height: var(--ef-type-body-line);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.ef-body button,
.ef-body input,
.ef-body select,
.ef-body textarea {
    font: inherit;
}

.ef-body button,
.ef-body select,
.ef-body summary {
    cursor: pointer;
}

.ef-body a {
    color: inherit;
}

.ef-body img,
.ef-body svg {
    display: block;
    max-width: 100%;
}

.ef-body [hidden] {
    display: none !important;
}

.ef-offline-banner {
    position: fixed;
    z-index: 240;
    top: var(--ef-space-sm);
    left: 50%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: var(--ef-space-sm);
    padding: var(--ef-space-sm) var(--ef-space-md);
    border: 1px solid color-mix(in srgb, var(--ef-warning) 36%, var(--ef-border));
    border-radius: var(--ef-radius-button);
    background: var(--ef-warning-soft);
    color: var(--ef-warning);
    box-shadow: var(--ef-shadow-sm);
    font-size: var(--ef-type-body-small-size);
    font-weight: 650;
    transform: translateX(-50%);
}

.ef-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.ef-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ef-skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 11px 16px;
    border-radius: var(--ef-radius-sm);
    background: var(--ef-brand);
    color: #ffffff;
    font-family: var(--ef-font-ui);
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease;
}

.ef-skip-link:focus {
    transform: translateY(0);
}

.ef-body :focus-visible {
    outline: 3px solid var(--ef-focus);
    outline-offset: 3px;
}

.ef-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--ef-sidebar-width) minmax(0, 1fr);
}

.ef-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: var(--ef-sidebar-width);
    min-width: 0;
    height: 100dvh;
    overflow: hidden;
    background: var(--ef-sidebar);
    color: var(--ef-sidebar-text);
    border-right: 1px solid #323944;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
}

.ef-logo {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ef-text);
    text-decoration: none;
}

.ef-logo__image {
    width: 132px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
}

.ef-sidebar .ef-logo {
    color: #ffffff;
}

.ef-logo__copy {
    min-width: 0;
    display: grid;
    line-height: 1.05;
}

.ef-logo__copy strong {
    font-family: var(--ef-font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.ef-logo__copy small {
    margin-top: 5px;
    color: var(--ef-sidebar-muted);
    font-family: var(--ef-font-ui);
    font-size: 12px;
    font-weight: 620;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ef-logo--compact .ef-logo__copy small {
    display: none;
}

.ef-logo--compact .ef-logo__image {
    width: 112px;
    height: 44px;
}

.ef-sidebar__context {
    margin: 23px 2px 5px;
    padding: 13px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--ef-radius);
    background: rgba(255, 255, 255, 0.035);
}

.ef-sidebar__context strong,
.ef-sidebar__context span {
    display: block;
}

.ef-sidebar__context strong {
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 680;
}

.ef-sidebar__context span {
    margin-top: 3px;
    color: var(--ef-sidebar-muted);
    font-size: 13px;
}

.ef-nav {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    gap: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-block: 4px 12px;
}

.ef-nav__label {
    padding: 18px 12px 7px;
    color: var(--ef-sidebar-muted);
    font-family: var(--ef-font-ui);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ef-nav__link {
    position: relative;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #c1c9d1;
    font-family: var(--ef-font-ui);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 140ms ease, background 140ms ease;
}

.ef-nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 0 3px 3px 0;
    background: transparent;
}

.ef-nav__link:hover {
    background: color-mix(in srgb, #5f6670 18%, transparent);
    color: #ffffff;
}

.ef-nav__link[aria-current="page"] {
    background: color-mix(in srgb, var(--ef-brand) 14%, transparent);
    color: #ffffff;
}

.ef-nav__link[aria-current="page"]::before {
    background: var(--ef-brand);
}

.ef-nav__link[aria-current="page"] .ef-icon {
    color: #ffffff;
}

.ef-sidebar__footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #323944;
}

.ef-support-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ef-radius);
    background: rgba(255, 255, 255, 0.045);
    color: #dce4e9;
    font-size: 14px;
    text-decoration: none;
}

.ef-main-column {
    grid-column: 2;
    min-width: 0;
}

.ef-sidebar-backdrop {
    display: none;
}

.ef-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--ef-topbar-height);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 28px;
    border-bottom: 1px solid var(--ef-border);
    background: color-mix(in srgb, var(--ef-surface) 94%, transparent);
    backdrop-filter: blur(14px);
}

.ef-topbar__menu {
    display: none;
}

.ef-topbar__title {
    min-width: 150px;
    font-family: var(--ef-font-ui);
    font-size: 17px;
    font-weight: 720;
}

.ef-search {
    width: min(480px, 42vw);
    min-width: 220px;
    margin-left: auto;
    position: relative;
}

.ef-search .ef-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    color: var(--ef-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.ef-search input {
    width: 100%;
    min-height: 44px;
    padding: 9px 14px 9px 44px;
    border: 1px solid var(--ef-border);
    border-radius: 10px;
    background: var(--ef-surface-subtle);
    color: var(--ef-text);
    font-size: 15px;
}

.ef-topbar__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ef-icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: transparent;
    color: var(--ef-text-secondary);
    text-decoration: none;
    position: relative;
}

.ef-icon-button:hover {
    border-color: var(--ef-border);
    background: var(--ef-surface-subtle);
    color: var(--ef-text);
}

.ef-notification-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid var(--ef-surface);
    border-radius: 999px;
    background: var(--ef-brand);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-family: var(--ef-font-ui);
    font-size: 10px;
    font-weight: 750;
}

.ef-user-menu {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 4px;
    padding: 4px 8px 4px 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ef-text);
    text-align: left;
}

.ef-user-menu:hover {
    background: var(--ef-surface-subtle);
}

.ef-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ef-sidebar);
    color: #ffffff;
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 720;
}

.ef-user-menu__copy {
    line-height: 1.25;
}

.ef-user-menu__copy strong,
.ef-user-menu__copy small {
    display: block;
}

.ef-user-menu__copy strong {
    font-family: var(--ef-font-ui);
    font-size: 14px;
}

.ef-user-menu__copy small {
    margin-top: 2px;
    color: var(--ef-text-muted);
    font-size: 12px;
}

.ef-content {
    width: min(100%, var(--ef-content-max));
    min-width: 0;
    margin-inline: auto;
    padding: 24px 28px 110px;
}

.ef-page-header {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ef-page-header__copy {
    min-width: 0;
    max-width: 780px;
}

.ef-page-header h1 {
    margin: 0;
    color: var(--ef-text);
    font-family: var(--ef-font-heading);
    font-size: var(--ef-type-h1-size);
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: var(--ef-type-h1-line);
}

.ef-page-header p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--ef-text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.ef-page-header__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ef-body .ef-button {
    min-height: 44px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ef-space-sm);
    padding: 10px 16px;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-button);
    background: var(--ef-surface);
    color: var(--ef-text);
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.ef-button:hover {
    border-color: var(--ef-text-muted);
    background: var(--ef-surface-subtle);
}

.ef-button:active {
    transform: translateY(1px);
}

.ef-body .ef-button--primary {
    border-color: var(--ef-brand);
    background: var(--ef-brand);
    color: #ffffff;
    box-shadow: var(--ef-shadow-xs);
}

.ef-body .ef-button--primary:hover {
    border-color: var(--ef-brand-hover);
    background: var(--ef-brand-hover);
}

.ef-body .ef-button--danger {
    border-color: color-mix(in srgb, var(--ef-danger) 40%, var(--ef-border));
    background: var(--ef-danger-soft);
    color: var(--ef-danger);
}

.ef-body .ef-button--quiet {
    border-color: transparent;
    background: transparent;
    color: var(--ef-text-secondary);
}

.ef-body .ef-button--small {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
}

.ef-button--block {
    width: 100%;
}

.ef-button[disabled],
.ef-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
}

.ef-button[aria-disabled="true"] {
    pointer-events: none;
}

.ef-button[aria-busy="true"] .ef-button__icon {
    animation: ef-spin 760ms linear infinite;
}

.ef-button__icon {
    display: inline-grid;
    place-items: center;
}

.ef-button__icon .ef-icon {
    width: 20px;
    height: 20px;
}

@keyframes ef-spin {
    to { transform: rotate(360deg); }
}

.ef-grid {
    min-width: 0;
    display: grid;
    gap: 16px;
}

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

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

.ef-grid--dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.32fr);
    align-items: start;
}

.ef-stack {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.ef-panel {
    min-width: 0;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    background: var(--ef-surface);
    box-shadow: var(--ef-shadow-xs);
}

.ef-panel--padded {
    padding: 20px;
}

.ef-panel__header {
    min-width: 0;
    min-height: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ef-border);
}

.ef-panel__header--compact {
    min-height: 0;
    padding: 0 0 17px;
    border-bottom: 0;
}

.ef-panel__header h2,
.ef-panel__header h3 {
    margin: 0;
    font-family: var(--ef-font-heading);
    font-weight: 710;
    line-height: 1.25;
}

.ef-panel__header h2 {
    font-size: 18px;
}

.ef-panel__header h3 {
    font-size: 17px;
}

.ef-panel__header p {
    margin: 5px 0 0;
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-panel__body {
    padding: 20px;
}

.ef-metric-rail {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    background: var(--ef-surface);
    box-shadow: var(--ef-shadow-xs);
    overflow: hidden;
    margin-bottom: 20px;
}

.ef-metric {
    min-width: 0;
    min-height: 128px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-content: center;
    gap: 4px 14px;
    padding: 22px 24px;
    border-right: 1px solid var(--ef-border);
}

.ef-metric:last-child {
    border-right: 0;
}

.ef-metric__icon {
    grid-row: 1 / span 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ef-surface-subtle);
    color: var(--ef-text-secondary);
}

.ef-metric--brand .ef-metric__icon { color: var(--ef-brand-text); background: var(--ef-brand-soft); }
.ef-metric--success .ef-metric__icon { color: var(--ef-success); background: var(--ef-success-soft); }
.ef-metric--warning .ef-metric__icon { color: var(--ef-warning); background: var(--ef-warning-soft); }
.ef-metric--info .ef-metric__icon { color: var(--ef-info); background: var(--ef-info-soft); }

.ef-metric__label {
    color: var(--ef-text-secondary);
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 620;
}

.ef-metric__value {
    color: var(--ef-text);
    font-family: var(--ef-font-heading);
    font-size: 30px;
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.ef-metric__detail {
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-toolbar {
    min-width: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ef-toolbar__group {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

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

.ef-pagination .ef-button {
    min-width: 44px;
}

.ef-pagination__current {
    border-color: var(--ef-brand);
    background: var(--ef-brand-soft);
    color: var(--ef-brand-text);
}

.ef-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.ef-field label,
.ef-legend {
    color: var(--ef-text-secondary);
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 650;
}

.ef-field label .ef-required,
.ef-required {
    color: var(--ef-brand-text);
}

.ef-body .ef-input,
.ef-body .ef-select,
.ef-body .ef-textarea,
.ef-field input:not([type="checkbox"]):not([type="radio"]),
.ef-field select,
.ef-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-input);
    background: var(--ef-surface-subtle);
    color: var(--ef-text);
    font-family: var(--ef-font-body);
    font-size: 15px;
    line-height: 1.35;
    outline: 0;
}

.ef-field input::placeholder,
.ef-field textarea::placeholder {
    color: var(--ef-text-muted);
    opacity: 1;
}

.ef-field input:focus,
.ef-field select:focus,
.ef-field textarea:focus {
    border-color: var(--ef-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ef-focus) 20%, transparent);
}

.ef-field input[aria-invalid="true"],
.ef-field select[aria-invalid="true"],
.ef-field textarea[aria-invalid="true"] {
    border-color: var(--ef-danger);
}

.ef-field input[readonly],
.ef-field input:disabled,
.ef-field select:disabled,
.ef-field textarea:disabled {
    background: var(--ef-surface-strong);
    color: var(--ef-text-muted);
    cursor: not-allowed;
}

.ef-body .ef-textarea,
.ef-field textarea {
    min-height: 118px;
    resize: vertical;
}

.ef-field__hint,
.ef-field__error {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.ef-field__success {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--ef-success);
    font-size: var(--ef-type-body-small-size);
    font-weight: 620;
}

.ef-field__success .ef-icon {
    width: 17px;
    height: 17px;
}

.ef-field--success input:not([type="checkbox"]):not([type="radio"]) {
    border-color: var(--ef-success);
}

.ef-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ef-space-md) var(--ef-space-lg);
}

.ef-field__hint {
    color: var(--ef-text-muted);
}

.ef-field__error {
    color: var(--ef-danger);
    font-weight: 620;
}

.ef-form-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ef-field--full {
    grid-column: 1 / -1;
}

.ef-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ef-fieldset + .ef-fieldset {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--ef-border);
}

.ef-legend {
    width: 100%;
    margin-bottom: 16px;
    color: var(--ef-text);
    font-size: 18px;
}

.ef-check {
    min-height: 48px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 0;
    color: var(--ef-text-secondary);
    font-size: 15px;
}

.ef-check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 1px 0 0;
    accent-color: var(--ef-brand);
}

.ef-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ef-border);
}

.ef-password-control {
    position: relative;
}

.ef-password-control input {
    padding-right: 52px;
}

.ef-password-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--ef-text-secondary);
}

.ef-password-toggle:hover {
    background: var(--ef-surface-subtle);
    color: var(--ef-text);
}

.ef-password-toggle .ef-icon {
    width: 20px;
    height: 20px;
}

.ef-password-toggle__hide,
.ef-password-toggle[aria-pressed="true"] .ef-password-toggle__show {
    display: none;
}

.ef-password-toggle[aria-pressed="true"] .ef-password-toggle__hide {
    display: block;
}

.ef-caps-lock {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--ef-warning);
    font-size: 13px;
    font-weight: 650;
}

.ef-caps-lock[hidden] {
    display: none;
}

.ef-caps-lock .ef-icon {
    width: 17px;
    height: 17px;
}

.ef-password-strength {
    display: grid;
    gap: 9px;
}

.ef-password-strength__bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.ef-password-strength__bar i {
    height: 4px;
    border-radius: 999px;
    background: var(--ef-border);
}

.ef-password-strength[data-level="1"] i:nth-child(-n + 1) { background: var(--ef-danger); }
.ef-password-strength[data-level="2"] i:nth-child(-n + 2) { background: var(--ef-warning); }
.ef-password-strength[data-level="3"] i:nth-child(-n + 3) { background: var(--ef-info); }
.ef-password-strength[data-level="4"] i { background: var(--ef-success); }

.ef-password-strength__label {
    margin: 0;
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ef-password-rules li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-password-rules li::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.ef-password-rules li.is-met {
    color: var(--ef-success);
}

.ef-password-rules li.is-met::before {
    border-color: var(--ef-success);
    background: var(--ef-success);
}

.ef-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.ef-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    color: var(--ef-text-secondary);
    font-size: 15px;
}

.ef-table caption {
    padding: 14px 20px;
    color: var(--ef-text-muted);
    text-align: left;
    font-size: 13px;
}

.ef-table th,
.ef-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ef-border);
    text-align: left;
    vertical-align: middle;
}

.ef-table th {
    background: var(--ef-surface-subtle);
    color: var(--ef-text-secondary);
    font-family: var(--ef-font-ui);
    font-size: 13px;
    font-weight: 680;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.ef-table tbody tr:hover {
    background: color-mix(in srgb, var(--ef-brand) 2.5%, var(--ef-surface));
}

.ef-table tbody tr:last-child td {
    border-bottom: 0;
}

.ef-table__primary {
    color: var(--ef-text);
    font-family: var(--ef-font-ui);
    font-weight: 660;
}

.ef-table__secondary {
    display: block;
    margin-top: 3px;
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-mono {
    font-family: var(--ef-font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.015em;
}

.ef-status {
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid var(--ef-border);
    border-radius: 999px;
    background: var(--ef-surface-subtle);
    color: var(--ef-text-secondary);
    font-family: var(--ef-font-ui);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
}

.ef-status__dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
}

.ef-status-catalogue {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ef-space-sm);
    margin-bottom: var(--ef-space-md);
}

.ef-status--success { border-color: color-mix(in srgb, var(--ef-success) 27%, var(--ef-border)); background: var(--ef-success-soft); color: var(--ef-success); }
.ef-status--neutral { border-color: var(--ef-border); background: var(--ef-surface-subtle); color: var(--ef-text-secondary); }
.ef-status--active { border-color: color-mix(in srgb, var(--ef-brand) 24%, var(--ef-border)); background: var(--ef-brand-soft); color: var(--ef-brand-text); }
.ef-status--warning { border-color: color-mix(in srgb, var(--ef-warning) 28%, var(--ef-border)); background: var(--ef-warning-soft); color: var(--ef-warning); }
.ef-status--danger { border-color: color-mix(in srgb, var(--ef-danger) 26%, var(--ef-border)); background: var(--ef-danger-soft); color: var(--ef-danger); }
.ef-status--info { border-color: color-mix(in srgb, var(--ef-info) 26%, var(--ef-border)); background: var(--ef-info-soft); color: var(--ef-info); }
.ef-status--urgent { border-color: color-mix(in srgb, var(--ef-brand) 30%, var(--ef-border)); background: var(--ef-brand-soft); color: var(--ef-brand-text); }
.ef-status--error { border-color: color-mix(in srgb, var(--ef-danger) 30%, var(--ef-border)); background: var(--ef-danger-soft); color: var(--ef-danger); }

.ef-list {
    min-width: 0;
    display: grid;
}

.ef-list-row {
    min-width: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--ef-border);
    color: var(--ef-text);
    text-decoration: none;
}

.ef-list-row:last-child {
    border-bottom: 0;
}

.ef-list-row:hover {
    background: var(--ef-surface-subtle);
}

.ef-list-row__main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.ef-list-row__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ef-surface-strong);
    color: var(--ef-text-secondary);
}

.ef-list-row__icon--brand { background: var(--ef-brand-soft); color: var(--ef-brand-text); }
.ef-list-row__icon--success { background: var(--ef-success-soft); color: var(--ef-success); }
.ef-list-row__icon--warning { background: var(--ef-warning-soft); color: var(--ef-warning); }
.ef-list-row__icon--info { background: var(--ef-info-soft); color: var(--ef-info); }

.ef-list-row strong,
.ef-list-row small {
    display: block;
}

.ef-list-row strong {
    font-family: var(--ef-font-ui);
    font-size: 15px;
    font-weight: 660;
}

.ef-list-row small {
    margin-top: 4px;
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-list-row__side {
    flex: none;
    color: var(--ef-text-muted);
    font-size: 13px;
    text-align: right;
}

.ef-empty {
    min-height: 210px;
    display: grid;
    place-items: center;
    padding: 32px;
    text-align: center;
}

.ef-empty__inner {
    max-width: 430px;
}

.ef-empty__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border: 1px solid var(--ef-border);
    border-radius: 15px;
    background: var(--ef-surface-subtle);
    color: var(--ef-text-muted);
}

.ef-empty__icon .ef-icon {
    width: 28px;
    height: 28px;
}

.ef-empty h3 {
    margin: 0;
    font-family: var(--ef-font-ui);
    font-size: 19px;
}

.ef-empty p {
    margin: 8px 0 0;
    color: var(--ef-text-muted);
    font-size: 15px;
}

.ef-empty__action {
    margin-top: 19px;
}

.ef-detail-hero {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    background: var(--ef-surface);
    box-shadow: var(--ef-shadow-xs);
}

.ef-detail-hero__mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--ef-brand-soft);
    color: var(--ef-brand-text);
}

.ef-detail-hero__mark .ef-icon {
    width: 31px;
    height: 31px;
}

.ef-detail-hero h2 {
    margin: 0;
    font-family: var(--ef-font-heading);
    font-size: 25px;
    font-weight: 740;
}

.ef-detail-hero p {
    margin: 6px 0 0;
    color: var(--ef-text-secondary);
}

.ef-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 18px 0;
    border-bottom: 1px solid var(--ef-border);
    scrollbar-width: thin;
}

.ef-tab {
    min-height: 48px;
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ef-text-secondary);
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.ef-tab:hover,
.ef-tab[aria-selected="true"],
.ef-tab[aria-current="page"] {
    color: var(--ef-brand-text);
    border-bottom-color: var(--ef-brand);
}

.ef-description-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    background: var(--ef-border);
}

.ef-description-grid > div {
    min-width: 0;
    padding: 18px;
    background: var(--ef-surface);
}

.ef-description-grid dt {
    color: var(--ef-text-muted);
    font-family: var(--ef-font-ui);
    font-size: 13px;
    font-weight: 640;
}

.ef-description-grid dd {
    margin: 7px 0 0;
    color: var(--ef-text);
    font-size: 15px;
    font-weight: 560;
    overflow-wrap: anywhere;
}

.ef-timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.ef-timeline::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 31px;
    width: 1px;
    background: var(--ef-border);
}

.ef-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 16px;
}

.ef-timeline__dot {
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border: 5px solid var(--ef-surface);
    border-radius: 50%;
    background: var(--ef-brand);
}

.ef-timeline__item strong {
    display: block;
    font-family: var(--ef-font-ui);
    font-size: 15px;
}

.ef-timeline__item p {
    margin: 4px 0 0;
    color: var(--ef-text-muted);
    font-size: 14px;
}

.ef-timeline__item time {
    color: var(--ef-text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.ef-settings-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.ef-settings-nav {
    position: sticky;
    top: calc(var(--ef-topbar-height) + 20px);
    display: grid;
    gap: 3px;
    padding: 7px;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius);
    background: var(--ef-surface);
}

.ef-settings-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 9px;
    color: var(--ef-text-secondary);
    font-family: var(--ef-font-ui);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ef-settings-nav a:hover,
.ef-settings-nav a[aria-current="page"] {
    background: var(--ef-brand-soft);
    color: var(--ef-brand-text);
}

.ef-switch {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.ef-switch + .ef-switch {
    border-top: 1px solid var(--ef-border);
}

.ef-switch__copy {
    padding: 14px 0;
}

.ef-switch__copy strong,
.ef-switch__copy small {
    display: block;
}

.ef-switch__copy strong {
    font-family: var(--ef-font-ui);
    font-size: 15px;
}

.ef-switch__copy small {
    margin-top: 4px;
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-switch__control {
    position: relative;
    width: 48px;
    height: 44px;
}

.ef-switch__control input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.ef-switch__track {
    position: absolute;
    inset: 8px 0;
    border: 1px solid var(--ef-border-strong);
    border-radius: 999px;
    background: var(--ef-surface-strong);
    transition: background 140ms ease, border-color 140ms ease;
}

.ef-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    transition: transform 140ms ease;
}

.ef-switch__control input:checked + .ef-switch__track {
    border-color: var(--ef-brand);
    background: var(--ef-brand);
}

.ef-switch__control input:checked + .ef-switch__track::after {
    transform: translateX(20px);
}

.ef-switch__control input:focus-visible + .ef-switch__track {
    outline: 3px solid var(--ef-focus);
    outline-offset: 3px;
}

.ef-security-score {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.ef-security-score__value {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 8px solid var(--ef-success-soft);
    border-top-color: var(--ef-success);
    border-right-color: var(--ef-success);
    border-radius: 50%;
    color: var(--ef-success);
    font-family: var(--ef-font-ui);
    font-size: 27px;
    font-weight: 760;
}

.ef-security-score h2 {
    margin: 0;
    font-family: var(--ef-font-heading);
    font-size: 22px;
}

.ef-security-score p {
    margin: 7px 0 0;
    color: var(--ef-text-secondary);
}

.ef-notification-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ef-border);
}

.ef-notification-item:last-child {
    border-bottom: 0;
}

.ef-notification-item.is-unread {
    background: color-mix(in srgb, var(--ef-brand) 3%, var(--ef-surface));
}

.ef-notification-item__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ef-info-soft);
    color: var(--ef-info);
}

.ef-notification-item h3 {
    margin: 0;
    font-family: var(--ef-font-ui);
    font-size: 16px;
}

.ef-notification-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ef-notification-item p {
    margin: 5px 0 0;
    color: var(--ef-text-secondary);
    font-size: 14px;
}

.ef-notification-item time {
    color: var(--ef-text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.ef-notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 4px !important;
    color: var(--ef-text-muted) !important;
    font-size: var(--ef-type-caption-size) !important;
}

.ef-notification-meta span + span::before {
    content: "·";
    margin-right: 12px;
}

.ef-notification-item--success .ef-notification-item__icon { background: var(--ef-success-soft); color: var(--ef-success); }
.ef-notification-item--warning .ef-notification-item__icon { background: var(--ef-warning-soft); color: var(--ef-warning); }
.ef-notification-item--urgent .ef-notification-item__icon { background: var(--ef-brand-soft); color: var(--ef-brand-text); }
.ef-notification-item--error .ef-notification-item__icon { background: var(--ef-danger-soft); color: var(--ef-danger); }

.ef-toast-region {
    position: fixed;
    z-index: 180;
    top: 84px;
    right: 20px;
    width: min(390px, calc(100vw - 24px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.ef-toast {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 40px;
    gap: 11px;
    align-items: start;
    padding: 15px 10px 15px 15px;
    border: 1px solid var(--ef-border);
    border-left: 4px solid var(--ef-success);
    border-radius: var(--ef-radius);
    background: var(--ef-surface-raised);
    box-shadow: var(--ef-shadow-sm);
    pointer-events: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.ef-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}

.ef-toast--danger { border-left-color: var(--ef-danger); }
.ef-toast--warning { border-left-color: var(--ef-warning); }
.ef-toast--info { border-left-color: var(--ef-info); }
.ef-toast--urgent { border-left-color: var(--ef-brand); }
.ef-toast--error { border-left-color: var(--ef-danger); }

.ef-toast__icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ef-success-soft);
    color: var(--ef-success);
}

.ef-toast--danger .ef-toast__icon { background: var(--ef-danger-soft); color: var(--ef-danger); }
.ef-toast--warning .ef-toast__icon { background: var(--ef-warning-soft); color: var(--ef-warning); }
.ef-toast--info .ef-toast__icon { background: var(--ef-info-soft); color: var(--ef-info); }
.ef-toast--urgent .ef-toast__icon { background: var(--ef-brand-soft); color: var(--ef-brand-text); }
.ef-toast--error .ef-toast__icon { background: var(--ef-danger-soft); color: var(--ef-danger); }

.ef-toast strong,
.ef-toast p {
    display: block;
}

.ef-toast strong {
    font-family: var(--ef-font-ui);
    font-size: 15px;
}

.ef-toast p {
    margin: 3px 0 0;
    color: var(--ef-text-secondary);
    font-size: 13px;
}

.ef-toast__close {
    width: 44px;
    height: 44px;
    margin-top: -9px;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--ef-text-muted);
}

.ef-toast__close:hover {
    background: var(--ef-surface-subtle);
    color: var(--ef-text);
}

.ef-dialog {
    width: min(540px, calc(100vw - 28px));
    max-height: min(720px, calc(100dvh - 28px));
    margin: auto;
    padding: 0;
    overflow: hidden auto;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    background: var(--ef-surface-raised);
    color: var(--ef-text);
    box-shadow: var(--ef-shadow-lg);
}

.ef-dialog::backdrop {
    background: rgba(5, 13, 19, 0.64);
    backdrop-filter: blur(2px);
}

.ef-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 16px;
}

.ef-dialog__header h2 {
    margin: 0;
    font-family: var(--ef-font-heading);
    font-size: 22px;
}

.ef-dialog__header p {
    margin: 7px 0 0;
    color: var(--ef-text-secondary);
    font-size: 14px;
}

.ef-dialog__body {
    padding: 0 22px 22px;
}

.ef-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px 22px;
    border-top: 1px solid var(--ef-border);
}

.ef-ai-fab {
    position: fixed;
    z-index: 92;
    right: 26px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ef-brand);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(227, 6, 19, 0.28);
}

.ef-ai-fab:hover {
    background: var(--ef-brand-hover);
    transform: translateY(-2px);
}

.ef-ai-fab .ef-icon {
    width: 26px;
    height: 26px;
}

.ef-ai-backdrop {
    position: fixed;
    inset: 0;
    z-index: 119;
    background: rgba(5, 13, 19, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.ef-ai-drawer {
    position: fixed;
    z-index: 120;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(440px, calc(100vw - 32px));
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    background: var(--ef-surface-raised);
    color: var(--ef-text);
    box-shadow: var(--ef-shadow-lg);
    transform: translateX(calc(100% + 36px));
    visibility: hidden;
    transition: transform 200ms ease, visibility 0s linear 200ms;
}

body.ef-ai-open {
    overflow: hidden;
}

body.ef-ai-open .ef-ai-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease, visibility 0s;
}

body.ef-ai-open .ef-ai-drawer {
    transform: translateX(0);
    visibility: visible;
    transition: transform 200ms ease, visibility 0s;
}

body.ef-ai-open .ef-ai-fab {
    opacity: 0;
    pointer-events: none;
}

.ef-ai-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--ef-border);
}

.ef-ai-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ef-ai-title__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ef-brand);
    color: #ffffff;
}

.ef-ai-title strong,
.ef-ai-title small {
    display: block;
}

.ef-ai-title strong {
    font-family: var(--ef-font-ui);
    font-size: 17px;
}

.ef-ai-title small {
    margin-top: 2px;
    color: var(--ef-text-muted);
    font-size: 12px;
}

.ef-ai-drawer__body {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
}

.ef-ai-message {
    width: fit-content;
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 4px 13px 13px 13px;
    background: var(--ef-surface-strong);
    color: var(--ef-text-secondary);
    font-size: 14px;
}

.ef-ai-message--user {
    margin-left: auto;
    border-radius: 13px 4px 13px 13px;
    background: var(--ef-brand);
    color: #ffffff;
}

.ef-ai-message + .ef-ai-message {
    margin-top: 12px;
}

.ef-ai-suggestions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ef-ai-suggestions button {
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid var(--ef-border);
    border-radius: 999px;
    background: var(--ef-surface);
    color: var(--ef-text-secondary);
    font-size: 14px;
}

.ef-ai-suggestions button:hover {
    border-color: var(--ef-brand);
    color: var(--ef-brand-text);
}

.ef-ai-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 9px;
    padding: 14px;
    border-top: 1px solid var(--ef-border);
}

.ef-ai-compose input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--ef-border-strong);
    border-radius: 10px;
    background: var(--ef-surface);
    color: var(--ef-text);
}

.ef-ai-compose button {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ef-brand);
    color: #ffffff;
}

.ef-mobile-nav,
.ef-mobile-more-backdrop,
.ef-mobile-more {
    display: none;
}


.ef-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ef-text-link {
    color: var(--ef-brand-text);
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 660;
    text-decoration: none;
}

.ef-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ef-auth-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ef-border);
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-steps {
    display: flex;
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.ef-steps li {
    min-width: 0;
    flex: 1;
    color: var(--ef-text-muted);
    font-family: var(--ef-font-ui);
    font-size: 12px;
    font-weight: 650;
}

.ef-steps li::before {
    content: "";
    display: block;
    height: 4px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--ef-border);
}

.ef-steps li.is-current {
    color: var(--ef-brand-text);
}

.ef-steps li.is-current::before,
.ef-steps li.is-complete::before {
    background: var(--ef-brand);
}

.ef-email-canvas {
    padding: 32px;
    border-radius: var(--ef-radius);
    background: #e9edf1;
}

.ef-email-preview {
    width: min(100%, 680px);
    margin-inline: auto;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    color: #17212a;
    box-shadow: 0 12px 35px rgba(13, 26, 36, 0.13);
    font-family: Arial, sans-serif;
}

.ef-email-preview__header {
    padding: 28px 34px;
    background: #111c25;
    color: #ffffff;
}

.ef-email-preview__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.ef-email-preview__logo {
    width: 116px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
}

.ef-email-preview__identity {
    display: grid;
    gap: 2px;
    font-family: Arial, sans-serif;
}

.ef-email-preview__identity strong {
    font-size: 12px;
    letter-spacing: 1.8px;
}

.ef-email-preview__identity span,
.ef-email-preview__identity small {
    color: #b8c0c7;
    font-size: 13px;
}

.ef-email-preview__identity b {
    color: #ffffff;
    font-size: 20px;
}

.ef-email-contract {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin: var(--ef-space-lg) 0;
    overflow: hidden;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-card);
    background: var(--ef-border);
}

.ef-email-contract > div {
    min-width: 0;
    padding: var(--ef-space-md);
    background: var(--ef-surface);
}

.ef-email-contract dt {
    color: var(--ef-text-muted);
    font-size: var(--ef-type-caption-size);
    font-weight: 650;
}

.ef-email-contract dd {
    margin: var(--ef-space-xs) 0 0;
    overflow-wrap: anywhere;
    color: var(--ef-text);
    font-size: var(--ef-type-body-small-size);
}

.ef-email-preview__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e30613;
}

.ef-email-preview__body {
    padding: 36px 34px;
}

.ef-email-preview__body h2 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 26px;
    line-height: 1.25;
}

.ef-email-preview__body p {
    margin: 15px 0 0;
    color: #52616e;
    line-height: 1.65;
}

.ef-email-preview__callout {
    margin: 24px 0;
    padding: 18px;
    border-left: 4px solid #e30613;
    background: #f5f7f9;
}

.ef-email-preview__button {
    display: inline-block;
    margin-top: 8px;
    padding: 13px 18px;
    border-radius: 8px;
    background: #e30613;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.ef-email-preview__footer {
    padding: 22px 34px;
    border-top: 1px solid #dce2e7;
    color: #6e7c89;
    font-size: 12px;
}

.ef-error-surface {
    min-height: calc(100vh - var(--ef-topbar-height) - 146px);
    display: grid;
    place-items: center;
    padding: 36px;
}

.ef-error {
    width: min(100%, 650px);
    text-align: center;
}

.ef-error__code {
    color: var(--ef-brand-text);
    font-family: var(--ef-font-mono);
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 760;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.ef-error h1 {
    margin: 24px 0 0;
    font-family: var(--ef-font-heading);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.ef-error p {
    max-width: 520px;
    margin: 14px auto 0;
    color: var(--ef-text-secondary);
    font-size: 16px;
}

.ef-error__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.ef-mobile-demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.ef-phone-frame {
    min-height: 720px;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--ef-sidebar);
    border-radius: 32px;
    background: var(--ef-canvas);
    box-shadow: var(--ef-shadow-lg);
}

.ef-phone-frame__top {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px;
    background: var(--ef-sidebar);
    color: #ffffff;
}

.ef-phone-frame__content {
    padding: 22px 17px 120px;
}

.ef-phone-frame__content h2 {
    margin: 0;
    font-family: var(--ef-font-ui);
    font-size: 28px;
}

.ef-phone-frame__sheet {
    position: absolute;
    z-index: 3;
    right: 8px;
    bottom: 70px;
    left: 8px;
    overflow: hidden;
    border: 1px solid var(--ef-border);
    border-radius: 18px 18px 10px 10px;
    background: var(--ef-surface-raised);
    box-shadow: var(--ef-shadow-lg);
}

.ef-phone-frame__sheet h3 {
    margin: 0;
    padding: 16px;
    font-family: var(--ef-font-ui);
    font-size: 18px;
}

.ef-phone-frame__sheet a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--ef-border);
    color: var(--ef-text);
    text-decoration: none;
}

.ef-phone-frame__nav {
    position: absolute;
    inset: auto 0 0;
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--ef-sidebar);
    color: var(--ef-sidebar-muted);
}

.ef-phone-frame__nav span {
    display: grid;
    place-items: center;
    font-size: 11px;
}

.ef-phone-frame__nav span:last-child {
    color: #ffffff;
    background: var(--ef-sidebar-raised);
}

.ef-demo-note {
    padding: 16px 18px;
    border: 1px solid var(--ef-border);
    border-left: 4px solid var(--ef-info);
    border-radius: var(--ef-radius);
    background: var(--ef-info-soft);
    color: var(--ef-text-secondary);
    font-size: 14px;
}

.ef-demo-note strong {
    color: var(--ef-text);
}

.ef-auth-states {
    margin-top: var(--ef-space-xl);
    padding-top: var(--ef-space-lg);
    border-top: 1px solid var(--ef-border);
}

.ef-auth-states h3 {
    margin: 0 0 var(--ef-space-md);
    font-family: var(--ef-font-heading);
    font-size: var(--ef-type-h3-size);
    line-height: var(--ef-type-h3-line);
}

.ef-auth-state-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ef-space-sm);
}

.ef-auth-state-grid article {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: var(--ef-space-sm);
    padding: var(--ef-space-md);
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-card);
    background: var(--ef-surface-subtle);
}

.ef-auth-state-grid strong,
.ef-auth-state-grid label {
    font-size: var(--ef-type-label-size);
}

.ef-auth-state-grid p {
    margin: 0;
    color: var(--ef-text-secondary);
    font-size: var(--ef-type-body-small-size);
}

.ef-auth-state-grid input {
    width: 100%;
    min-height: 44px;
    padding: var(--ef-space-sm) 12px;
    border: 1px solid var(--ef-border-strong);
    border-radius: var(--ef-radius-input);
    background: var(--ef-surface);
    color: var(--ef-text);
}

.ef-security-alerts {
    display: grid;
    gap: var(--ef-space-sm);
    margin-block: var(--ef-space-lg);
}

.ef-demo-alert {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: var(--ef-space-md);
    padding: var(--ef-space-md) 18px;
    border: 1px solid var(--ef-border);
    border-left: 4px solid var(--ef-info);
    border-radius: var(--ef-radius-card);
    background: var(--ef-info-soft);
    color: var(--ef-info);
}

.ef-demo-alert p {
    margin: 3px 0 0;
    color: var(--ef-text-secondary);
    font-size: var(--ef-type-body-small-size);
}

.ef-demo-alert--warning { border-left-color: var(--ef-warning); background: var(--ef-warning-soft); color: var(--ef-warning); }
.ef-demo-alert--danger { border-left-color: var(--ef-danger); background: var(--ef-danger-soft); color: var(--ef-danger); }
.ef-demo-alert--info { border-left-color: var(--ef-info); background: var(--ef-info-soft); color: var(--ef-info); }

.ef-recovery-codes {
    margin: 0;
    padding: var(--ef-space-md);
    overflow-x: auto;
    border-radius: var(--ef-radius-input);
    background: var(--ef-surface-strong);
    color: var(--ef-text);
}

.ef-install-block {
    margin-top: var(--ef-space-lg);
    padding-top: var(--ef-space-lg);
    border-top: 1px solid var(--ef-border);
}

.ef-install-block h3,
.ef-install-block p {
    margin: 0 0 var(--ef-space-sm);
}

.ef-ai-transcript {
    display: grid;
    gap: var(--ef-space-md);
}

.ef-ai-transcript .ef-ai-message--user {
    justify-self: end;
}

.ef-dashboard-rail {
    display: grid;
    gap: 18px;
}

.ef-page-header h1,
.ef-panel__header h2,
.ef-panel__header h3,
.ef-detail-hero h2,
.ef-empty h3,
.ef-security-score h2,
.ef-notification-item h3,
.ef-dialog__header h2,
.ef-auth-aside h1,
.ef-auth-content h2,
.ef-error h1,
.ef-phone-frame__content h2,
.ef-phone-frame__sheet h3 {
    font-family: var(--ef-font-heading);
}

.ef-field label,
.ef-legend,
.ef-table th,
.ef-tab {
    font-size: var(--ef-type-label-size);
    font-weight: var(--ef-type-label-weight);
    line-height: var(--ef-type-label-line);
}

.ef-field__hint,
.ef-field__error,
.ef-field__success,
.ef-table__secondary {
    font-size: var(--ef-type-body-small-size);
    line-height: var(--ef-type-body-small-line);
}

@media (max-width: 1280px) {
    .ef-grid--dashboard { grid-template-columns: 1fr; }
    .ef-dashboard-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ef-metric { padding-inline: 18px; }
    .ef-user-menu__copy { display: none; }
}

@media (max-width: 1024px) {
    .ef-metric-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ef-metric:nth-child(2) { border-right: 0; }
    .ef-metric:nth-child(-n + 2) { border-bottom: 1px solid var(--ef-border); }
    .ef-description-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ef-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ef-mobile-demo { grid-template-columns: 1fr; }
    .ef-phone-frame { width: min(390px, 100%); margin-inline: auto; }
    .ef-email-contract { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
    :root { --ef-topbar-height: 64px; }
    .ef-app-shell { display: block; }
    .ef-main-column { min-width: 0; }
    .ef-sidebar { transform: translateX(-105%); visibility: hidden; transition: transform 180ms ease, visibility 0s linear 180ms; }
    .ef-sidebar-backdrop { position: fixed; inset: 0; z-index: 79; display: block; border: 0; background: rgba(5,13,19,.58); opacity: 0; visibility: hidden; transition: opacity 170ms ease, visibility 0s linear 170ms; }
    body.ef-menu-open { overflow: hidden; }
    body.ef-menu-open .ef-sidebar { transform: translateX(0); visibility: visible; box-shadow: var(--ef-shadow-lg); transition: transform 180ms ease, visibility 0s; }
    body.ef-menu-open .ef-sidebar-backdrop { opacity: 1; visibility: visible; transition: opacity 170ms ease, visibility 0s; }
    .ef-topbar { padding: 0 14px; background: var(--ef-sidebar); border-bottom-color: rgba(255,255,255,.08); color: #ffffff; }
    .ef-topbar__menu { display: inline-grid; color: #ffffff; }
    .ef-topbar__title { min-width: 0; color: #ffffff; font-size: 15px; }
    .ef-search { display: none; }
    .ef-topbar__actions { margin-left: auto; }
    .ef-topbar .ef-icon-button { color: #dce4e9; }
    .ef-topbar .ef-icon-button:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; }
    .ef-topbar .ef-user-menu { color: #ffffff; padding-right: 0; }
    .ef-topbar .ef-user-menu__copy,
    .ef-topbar .ef-user-menu > .ef-icon { display: none; }
    .ef-topbar .ef-avatar { border: 1px solid rgba(255,255,255,.24); background: var(--ef-sidebar-raised); }
    .ef-notification-count { border-color: var(--ef-sidebar); }
    .ef-content { padding: 20px 16px calc(104px + env(safe-area-inset-bottom)); }
    .ef-page-header { gap: 16px; margin-bottom: 16px; flex-direction: column; }
    .ef-page-header h1 { font-size: 26px; }
    .ef-page-header__actions { width: 100%; justify-content: stretch; }
    .ef-page-header__actions .ef-button { flex: 1 1 180px; }
    .ef-mobile-nav { position: fixed; z-index: 90; inset: auto 0 0; min-height: 70px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.08); background: var(--ef-sidebar); }
    .ef-mobile-nav a,
    .ef-mobile-nav button { min-width: 0; min-height: 70px; padding: 8px 3px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; color: var(--ef-sidebar-muted); font-family: var(--ef-font-ui); font-size: 13px; font-weight: 620; text-decoration: none; }
    .ef-mobile-nav a[aria-current="page"],
    .ef-mobile-nav button[aria-expanded="true"],
    .ef-mobile-nav button[aria-current="page"] { color: #ffffff; background: var(--ef-sidebar-raised); }
    .ef-mobile-nav a[aria-current="page"] .ef-icon { color: #ff3541; }
    .ef-mobile-nav .ef-icon { width: 23px; height: 23px; }
    .ef-mobile-more-backdrop { position: fixed; inset: 0; z-index: 108; display: block; background: rgba(5,13,19,.58); opacity: 0; visibility: hidden; transition: opacity 170ms ease, visibility 0s linear 170ms; }
    .ef-mobile-more { position: fixed; z-index: 109; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); left: 8px; display: block; overflow: hidden; border: 1px solid var(--ef-border); border-radius: 20px 20px 12px 12px; background: var(--ef-surface-raised); color: var(--ef-text); box-shadow: var(--ef-shadow-lg); transform: translateY(calc(100% + 90px)); visibility: hidden; transition: transform 190ms ease, visibility 0s linear 190ms; }
    body.ef-more-open { overflow: hidden; }
    body.ef-more-open .ef-mobile-more-backdrop { opacity: 1; visibility: visible; transition: opacity 170ms ease, visibility 0s; }
    body.ef-more-open .ef-mobile-more { transform: translateY(0); visibility: visible; transition: transform 190ms ease, visibility 0s; }
    .ef-mobile-more__handle { width: 42px; height: 5px; margin: 9px auto 4px; border-radius: 999px; background: var(--ef-border-strong); }
    .ef-mobile-more h2 { margin: 0; padding: 12px 17px 14px; font-family: var(--ef-font-ui); font-size: 20px; }
    .ef-mobile-more nav { display: grid; }
    .ef-mobile-more a,
    .ef-mobile-more button { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 10px 17px; border: 0; border-top: 1px solid var(--ef-border); background: transparent; color: var(--ef-text); font-family: var(--ef-font-ui); font-size: 15px; text-align: left; text-decoration: none; }
    .ef-mobile-more a:hover,
    .ef-mobile-more button:hover { background: var(--ef-surface-subtle); }
    .ef-mobile-more a[aria-current="page"] { background: var(--ef-brand-soft); color: var(--ef-brand-text); }
    .ef-mobile-more a:last-child { color: var(--ef-danger); }
    .ef-ai-fab { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
    .ef-ai-drawer { inset: 8px 8px calc(78px + env(safe-area-inset-bottom)); width: auto; border-radius: 16px; }
    .ef-grid--2,
    .ef-grid--3,
    .ef-form-grid,
    .ef-settings-layout { grid-template-columns: 1fr; }
    .ef-dashboard-rail { grid-template-columns: 1fr; }
    .ef-settings-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: thin; }
    .ef-settings-nav a { flex: none; }
}

@media (max-width: 768px) {
    .ef-page-header { flex-direction: column; }
    .ef-metric-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-inline: 0; border-radius: 0; margin-inline: -12px; padding-inline: 12px; background: transparent; box-shadow: none; scrollbar-width: thin; }
    .ef-metric { min-width: 190px; min-height: 132px; flex: 0 0 190px; scroll-snap-align: start; border: 1px solid var(--ef-border) !important; border-radius: var(--ef-radius); background: var(--ef-surface); padding: 18px; }
    .ef-panel__header { flex-direction: column; align-items: stretch; }
    .ef-panel__header .ef-toolbar__group { width: 100%; }
    .ef-toolbar__group > * { flex: 1 1 145px; }
    .ef-description-grid { grid-template-columns: 1fr; }
    .ef-detail-hero { grid-template-columns: auto minmax(0, 1fr); }
    .ef-detail-hero > .ef-status { grid-column: 1 / -1; }
    .ef-password-rules { grid-template-columns: 1fr; }
    .ef-notification-item { grid-template-columns: 42px minmax(0, 1fr); }
    .ef-notification-item time { grid-column: 2; }
    .ef-timeline__item { grid-template-columns: 40px minmax(0, 1fr); }
    .ef-timeline__item time { grid-column: 2; }
    .ef-table--responsive { min-width: 0; }
    .ef-table--responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .ef-table--responsive tbody,
    .ef-table--responsive tr,
    .ef-table--responsive td { display: block; width: 100%; }
    .ef-table--responsive tr { padding: 14px 16px; border-bottom: 1px solid var(--ef-border); }
    .ef-table--responsive td { display: grid; grid-template-columns: minmax(110px, .44fr) minmax(0, 1fr); gap: 12px; padding: 5px 0; border: 0; }
    .ef-table--responsive td::before { content: attr(data-label); color: var(--ef-text-muted); font-family: var(--ef-font-ui); font-size: 12px; font-weight: 650; }
    .ef-table--responsive td[data-primary="true"] { display: block; padding-bottom: 10px; }
    .ef-table--responsive td[data-primary="true"]::before { content: none; }
    .ef-table--responsive td[data-actions="true"] { display: flex; justify-content: flex-end; padding-top: 10px; }
    .ef-table--responsive td[data-actions="true"]::before { content: none; }
    .ef-form-actions .ef-button { flex: 1 1 145px; }
    .ef-dialog { width: calc(100vw - 16px); margin: auto 8px 8px; border-radius: 18px 18px 10px 10px; }
    .ef-dialog__actions { flex-direction: column-reverse; }
    .ef-dialog__actions .ef-button { width: 100%; }
    .ef-toast-region { top: 72px; right: 8px; width: calc(100vw - 16px); }
    .ef-email-canvas { padding: 10px; margin-inline: -8px; }
    .ef-email-preview__header,
    .ef-email-preview__body,
    .ef-email-preview__footer { padding-inline: 22px; }
    .ef-error-surface { padding-inline: 10px; }
    .ef-error__actions { flex-direction: column; }
    .ef-error__actions .ef-button { width: 100%; }
    .ef-email-contract { grid-template-columns: 1fr; }
    .ef-radio-row { display: grid; gap: 0; }
    .ef-auth-state-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    .ef-topbar { gap: 6px; padding-inline: 9px; }
    .ef-topbar__title { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ef-topbar__actions { gap: 2px; }
    .ef-topbar .ef-user-menu { margin-left: 0; }
    .ef-content { padding-inline: 16px; }
    .ef-page-header__actions .ef-button { flex-basis: 100%; }
    .ef-panel--padded,
    .ef-panel__body { padding: 16px; }
    .ef-panel__header { padding: 16px; }
    .ef-mobile-nav a,
    .ef-mobile-nav button { font-size: 13px; }
}

@media (display-mode: standalone) {
    .ef-sidebar { padding-top: calc(22px + env(safe-area-inset-top)); }
    .ef-topbar { min-height: calc(var(--ef-topbar-height) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
    .ef-ai-drawer { top: calc(8px + env(safe-area-inset-top)); }
}

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

@media print {
    .ef-sidebar,
    .ef-topbar,
    .ef-mobile-nav,
    .ef-mobile-more,
    .ef-mobile-more-backdrop,
    .ef-ai-fab,
    .ef-ai-backdrop,
    .ef-ai-drawer,
    .ef-toast-region,
    .ef-page-header__actions { display: none !important; }
    .ef-app-shell { display: block; }
    .ef-main-column { display: block; }
    .ef-content { max-width: none; padding: 0; }
    .ef-panel { break-inside: avoid; box-shadow: none; }
}

/* Auth source: actual Vozila login app.css + ef-fleet-standard.css.
 * Geometry is source-derived, with the existing canonical corporate wordmark.
 * These rules are deliberately scoped; the accepted app shell is unchanged. */
.ef-auth-shell[data-ef-auth-layout] {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    background: var(--ef-surface);
}
.ef-auth-shell[data-ef-auth-layout] .ef-auth-aside {
    position: relative;
    min-height: 100vh;
    min-width: 0;
    padding: 0;
    isolation: isolate;
    overflow: hidden;
    background: var(--ef-surface);
}
.ef-auth-aside__background {
    position: absolute !important;
    z-index: 0 !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ef-auth-shell[data-ef-auth-layout] .ef-auth-aside::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--ef-surface) 94%, transparent));
    pointer-events: none;
}
.ef-auth-shell[data-ef-auth-layout] .ef-auth-main {
    min-width: 0;
    min-height: 100vh;
    padding: 72px 35px 48px;
    display: grid;
    grid-template-rows: auto;
    place-items: center;
    background: var(--ef-surface);
}
.ef-auth-shell[data-ef-auth-layout] .ef-auth-toolbar {
    position: fixed;
    z-index: 20;
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    min-height: 0;
    padding: 0;
}
.ef-auth-shell[data-ef-auth-layout] .ef-auth-toolbar .ef-icon-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border: 1px solid var(--ef-border);
    border-radius: 11px;
    background: var(--ef-surface);
    color: var(--ef-text-secondary);
}
.ef-auth-toolbar .ef-icon { width: 19px; height: 19px; }
.ef-auth-shell[data-ef-auth-layout] .ef-auth-content {
    min-width: 0;
    width: min(420px, 100%);
    margin: 0;
    padding: 0;
}
.ef-auth-shell .ef-login-card {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.ef-auth-brand__logo {
    display: inline;
    width: 196px;
    height: 196px;
    max-height: none;
    margin: 0 0 20px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    vertical-align: baseline;
}
.ef-auth-brand h1 {
    margin: 0 0 8px;
    font-family: var(--ef-font-heading);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.ef-auth-brand p,
.ef-login-card .ef-auth-security-note {
    margin: 0 0 22px;
    color: var(--ef-text-muted);
    font-size: 14px;
    line-height: 1.55;
}
.ef-login-card__header { margin-bottom: 22px; }
.ef-auth-content .ef-login-card__header h2,
.ef-auth-content [data-ef-setup-step] h2 {
    margin: 0 0 8px;
    font-family: var(--ef-font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
}
.ef-login-card__header p,
.ef-auth-content [data-ef-setup-step] > p {
    margin: 0;
    color: var(--ef-text-muted);
    font-size: 14px;
    line-height: 1.55;
}
.ef-login-card__body { min-width: 0; }
.ef-login-card .ef-auth-form { display: block; }
.ef-auth-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.ef-login-card .ef-field { margin-bottom: 16px; gap: 7px; }
.ef-login-card .ef-field label { font-size: 14px; font-weight: 650; line-height: 1.35; }
/* Keep native required semantics while matching the source's unadorned labels. */
.ef-login-card .ef-required { display: none; }
.ef-login-card--setup .ef-required { display: inline; }
.ef-login-card .ef-field input:not([type="checkbox"]):not([type="radio"]),
.ef-login-card .ef-field select,
.ef-login-card .ef-field textarea {
    height: auto;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 15px;
    line-height: 1.55;
}
.ef-login-card .ef-field input:focus,
.ef-login-card .ef-field select:focus,
.ef-login-card .ef-field textarea:focus {
    border-color: color-mix(in srgb, var(--ef-brand) 65%, var(--ef-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ef-brand) 11%, transparent);
    outline: 3px solid var(--ef-focus);
    outline-offset: 3px;
}
.ef-login-card .ef-field [aria-invalid="true"] { border-color: var(--ef-danger); }
.ef-login-card .ef-password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
}
.ef-login-card .ef-password-toggle {
    position: static;
    width: 44px;
    height: auto;
    min-height: 44px;
    border: 1px solid var(--ef-border);
    border-radius: 10px;
    background: var(--ef-surface);
    color: var(--ef-text-secondary);
}
.ef-login-card .ef-check {
    min-height: 44px;
    padding: 0;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
}
.ef-login-card .ef-check input { width: 18px; height: 18px; flex-basis: 18px; margin: 0; }
.ef-login-card .ef-button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
    transform: none;
}
.ef-login-card .ef-button--primary { box-shadow: 0 1px 2px #0d1a240d; }
.ef-login-card .ef-auth-form .ef-button[type="submit"] { width: 100%; margin-top: 16px; }
.ef-login-card .ef-auth-meta { display: block; }
.ef-login-card .ef-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ef-brand-text); }
.ef-login-card .ef-auth-security-note p { margin: 0; }
.ef-auth-secondary-action { margin-top: 4px; }
.ef-login-card .ef-login-card__footer {
    margin-top: 16px;
    padding: 0;
    border: 0;
    color: var(--ef-text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.ef-login-card__footer p,
.ef-login-card .ef-auth-note { margin: 0; padding: 0; border: 0; }
.ef-auth-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--ef-border);
    border-radius: 10px;
    background: var(--ef-surface-subtle);
    color: var(--ef-text-secondary);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.ef-auth-message--error { border-color: var(--ef-danger); color: var(--ef-danger); background: var(--ef-danger-soft); }
.ef-auth-message--success { border-color: var(--ef-success); color: var(--ef-success); background: var(--ef-success-soft); }
.ef-auth-message--warning { border-color: var(--ef-warning); color: var(--ef-warning); background: var(--ef-warning-soft); }
.ef-login-card .ef-steps { margin: 0 0 22px; }
.ef-setup-progress__number { margin-right: 5px; }
.ef-auth-hint { color: var(--ef-text-muted); font-size: 14px; line-height: 1.55; }
.ef-setup-complete { color: var(--ef-text-secondary); font-size: 14px; line-height: 1.55; }
.ef-setup-complete__icon { display: inline-flex; padding: 10px; border-radius: 50%; color: var(--ef-success); background: var(--ef-success-soft); }
.ef-setup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ef-setup-actions .ef-button { flex: 1; }
.ef-login-card .ef-setup-actions .ef-button[type="submit"] { margin: 0; width: auto; }
.ef-auth-content [data-ef-setup-step][hidden] { display: none; }
.ef-auth-content [data-ef-setup-step] > p { margin-bottom: 16px; }
.ef-email-preview__identity img { display: block; width: 196px; height: auto; margin-bottom: 16px; }
.ef-access-list { margin: 0; padding: 0; list-style: none; }
.ef-access-list > li { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--ef-border); }
.ef-access-list__copy { min-width: 0; display: grid; gap: 6px; flex: 1 1 220px; overflow-wrap: anywhere; }
.ef-access-list__copy small { color: var(--ef-text-muted); font-size: 13px; }
.ef-access-list__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ef-access-list__actions .ef-button { min-height: 44px; }
.ef-mail-patterns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ef-mail-patterns [aria-current="page"] { border-color: var(--ef-brand); background: var(--ef-brand-soft); }
.ef-auth-actions { display: flex; flex-direction: column; gap: 10px; margin-block: 16px; }
.ef-auth-option-details > summary { min-height: 44px; align-content: center; cursor: pointer; }
.ef-passkey-state-controls { margin-block: 16px; }
.ef-setup-review { margin: 16px 0; }
.ef-setup-review dt { font-weight: 650; color: var(--ef-text-secondary); font-size: 14px; }
.ef-setup-review dd { margin: 4px 0 16px; overflow-wrap: anywhere; }

.ef-auth-recovery {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-sm);
    background: var(--ef-surface-subtle);
}

.ef-auth-recovery summary {
    min-height: 44px;
    align-content: center;
    cursor: pointer;
    color: var(--ef-text-secondary);
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 680;
}

.ef-auth-recovery > p {
    margin: 10px 0 14px;
    color: var(--ef-text-muted);
    font-size: 13px;
}

.ef-app-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.ef-app-identity__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.ef-app-identity__copy strong,
.ef-app-identity__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-app-identity__copy strong {
    font-family: var(--ef-font-ui);
    font-size: 12px;
    font-weight: 720;
}

.ef-app-identity__copy span {
    color: var(--ef-text-muted);
    font-family: var(--ef-font-ui);
    font-size: 12px;
    font-weight: 600;
}

.ef-sidebar .ef-app-identity {
    padding: 2px 4px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ef-sidebar .ef-app-identity .ef-logo__image {
    width: 82px;
    height: 32px;
}

.ef-sidebar .ef-app-identity .ef-logo {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.ef-sidebar .ef-app-identity__copy strong {
    color: #ffffff;
}

.ef-sidebar .ef-app-identity__copy span {
    color: var(--ef-sidebar-muted);
}

[data-ef-settings-content] {
    min-width: 0;
}

[data-ef-settings-section] {
    scroll-margin-top: calc(var(--ef-topbar-height) + 20px);
}

[data-ef-settings-section]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ef-focus) 38%, transparent);
    outline-offset: 3px;
}

.ef-settings-nav {
    max-height: calc(100vh - var(--ef-topbar-height) - 40px);
    overflow-y: auto;
}

[data-ef-analytics-shell] > .ef-tabs {
    margin-top: 0;
}

[data-ef-analytics-panel] {
    min-width: 0;
}

.ef-calendar {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-lg);
    background: var(--ef-surface);
    box-shadow: var(--ef-shadow-xs);
}

.ef-calendar__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--ef-border);
    background: var(--ef-surface-raised);
}

.ef-calendar__date-navigation,
.ef-calendar__view-switcher,
.ef-calendar__filters,
.ef-calendar__actions {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ef-calendar__date-navigation h2 {
    min-width: 0;
    margin: 0 0 0 6px;
    overflow: hidden;
    color: var(--ef-text);
    font-family: var(--ef-font-heading);
    font-size: 21px;
    font-weight: 730;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-calendar__view-switcher {
    padding: 4px;
    border: 1px solid var(--ef-border);
    border-radius: var(--ef-radius-button);
    background: var(--ef-surface-subtle);
}

.ef-calendar__view-switcher .ef-button {
    min-height: 44px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.ef-calendar__view-switcher .ef-button.is-active,
.ef-calendar__view-switcher .ef-button[aria-pressed="true"] {
    border-color: var(--ef-border);
    background: var(--ef-surface);
    color: var(--ef-brand-text);
    box-shadow: var(--ef-shadow-xs);
}

.ef-calendar__filters {
    flex-wrap: wrap;
}

.ef-calendar__filters .ef-field {
    min-width: 150px;
}

.ef-calendar__filters select {
    min-height: 44px;
}

.ef-calendar__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ef-calendar__body {
    min-width: 0;
}

.ef-calendar-month-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.ef-calendar-month {
    width: 100%;
    min-width: 840px;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: separate;
}

.ef-calendar-month caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ef-calendar-month th {
    height: 42px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ef-border);
    background: var(--ef-surface-subtle);
    color: var(--ef-text-muted);
    font-family: var(--ef-font-ui);
    font-size: 12px;
    font-weight: 690;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.ef-calendar-month td {
    height: 126px;
    padding: 8px;
    border-right: 1px solid var(--ef-border);
    border-bottom: 1px solid var(--ef-border);
    vertical-align: top;
    background: var(--ef-surface);
}

.ef-calendar-month tr:last-child td {
    border-bottom: 0;
}

.ef-calendar-month td:last-child {
    border-right: 0;
}

.ef-calendar-month td.is-outside {
    background: var(--ef-surface-subtle);
    color: var(--ef-text-muted);
}

.ef-calendar-month td.is-today {
    background: color-mix(in srgb, var(--ef-brand-soft) 62%, var(--ef-surface));
}

.ef-calendar-month td > button[data-ef-calendar-date] {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: -2px 0 4px -2px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-family: var(--ef-font-ui);
    font-size: 13px;
    font-weight: 690;
}

.ef-calendar-month td > button[data-ef-calendar-date]:hover {
    background: var(--ef-surface-strong);
}

.ef-calendar-month td > button[aria-current="date"] {
    background: var(--ef-brand);
    color: #ffffff;
}

.ef-calendar-event {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 6px;
    margin-top: 5px;
    padding: 7px 8px;
    overflow: hidden;
    border: 1px solid var(--ef-border);
    border-left: 3px solid var(--ef-info);
    border-radius: 8px;
    background: var(--ef-info-soft);
    color: var(--ef-text);
}

.ef-calendar-event__time {
    color: var(--ef-text-muted);
    font-family: var(--ef-font-mono);
    font-size: 10px;
    line-height: 1.45;
}

.ef-calendar-event__title {
    min-width: 0;
    overflow: hidden;
    font-family: var(--ef-font-ui);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-calendar-event__meta {
    grid-column: 1 / -1;
    color: var(--ef-text-muted);
    font-size: 11px;
}

.ef-calendar-event--active { border-left-color: var(--ef-brand); background: var(--ef-brand-soft); }
.ef-calendar-event--success { border-left-color: var(--ef-success); background: var(--ef-success-soft); }
.ef-calendar-event--warning { border-left-color: var(--ef-warning); background: var(--ef-warning-soft); }
.ef-calendar-event--danger { border-left-color: var(--ef-danger); background: var(--ef-danger-soft); }
.ef-calendar-event--neutral { border-left-color: var(--ef-border-strong); background: var(--ef-surface-subtle); }

.ef-calendar-week {
    min-width: 910px;
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
}

[data-ef-calendar-panel="week"] {
    max-width: 100%;
    overflow-x: auto;
}

.ef-calendar-day-column {
    min-height: 320px;
    padding: 16px;
    border-right: 1px solid var(--ef-border);
    background: linear-gradient(180deg, var(--ef-surface-subtle), var(--ef-surface) 48px);
}

.ef-calendar-day-column:last-child {
    border-right: 0;
}

.ef-calendar-day-column h3,
.ef-calendar-day h3 {
    margin: 0;
    font-family: var(--ef-font-ui);
    font-size: 14px;
    font-weight: 710;
}

.ef-calendar-day-column p {
    margin: 22px 0 0;
    color: var(--ef-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ef-calendar-day {
    min-height: 360px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px;
    background: repeating-linear-gradient(180deg, transparent 0, transparent 59px, var(--ef-border) 60px);
}

.ef-calendar-day > .ef-calendar-event {
    width: min(560px, 100%);
    min-height: 62px;
}

[data-ef-calendar-panel="list"] {
    padding: 0 18px;
}

.ef-calendar-mobile-agenda {
    display: none;
}

@media (max-width: 1120px) {
    .ef-calendar__toolbar { grid-template-columns: 1fr; }
    .ef-calendar__view-switcher,
    .ef-calendar__actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
    .ef-auth-shell[data-ef-auth-layout] { grid-template-columns: 1fr; }
    .ef-auth-shell[data-ef-auth-layout] .ef-auth-aside { display: none; }
}

@media (max-width: 768px) {
    .ef-calendar-month-wrap { display: none; }
    .ef-calendar-mobile-agenda {
        display: grid;
        gap: 10px;
        padding: 14px;
    }
    .ef-calendar-mobile-agenda h3 {
        margin: 0 0 2px;
        font-family: var(--ef-font-heading);
        font-size: 16px;
    }
    .ef-calendar-mobile-event {
        min-height: 64px;
        padding: 10px 12px;
    }
    .ef-calendar-week {
        min-width: 0;
        grid-template-columns: 1fr;
    }
    [data-ef-calendar-panel="week"] { overflow: visible; }
    .ef-calendar-day-column {
        min-height: 108px;
        border-right: 0;
        border-bottom: 1px solid var(--ef-border);
    }
    .ef-calendar-day-column:last-child { border-bottom: 0; }
    .ef-calendar-day-column p { margin-top: 12px; }
}

@media (max-width: 840px) {
    .ef-settings-nav { max-height: none; overflow-y: hidden; }
}

@media (max-width: 390px) {
    .ef-calendar__toolbar { padding: 12px; }
    .ef-calendar__date-navigation { flex-wrap: wrap; }
    .ef-calendar__date-navigation h2 { width: 100%; order: -1; margin: 0 0 4px; font-size: 19px; }
    .ef-calendar__view-switcher { max-width: 100%; overflow-x: auto; }
    .ef-calendar__filters { display: grid; grid-template-columns: 1fr; }
    .ef-calendar__filters .ef-field { min-width: 0; }
    .ef-calendar__actions .ef-button { flex: 1 1 140px; }
    [data-ef-calendar-panel="list"] { padding-inline: 12px; }
}

@media (max-width: 760px) {
    .ef-auth-shell[data-ef-auth-layout] .ef-auth-main { padding: 64px 20px 36px; }
    .ef-auth-brand__logo { width: 166px; height: 166px; }
    .ef-auth-brand h1 { font-size: 24px; }
    /* iOS must not zoom the form when a field gains focus. */
    .ef-login-card .ef-field input:not([type="checkbox"]):not([type="radio"]),
    .ef-login-card .ef-field select,
    .ef-login-card .ef-field textarea { font-size: 16px; }
}
@media (display-mode: standalone) {
    .ef-auth-shell[data-ef-auth-layout] .ef-auth-main { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) and (max-width: 760px) {
    .ef-auth-shell[data-ef-auth-layout] .ef-auth-main { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
}
