:root {
    color-scheme: light;
    --bg: #f3f7fc;
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --surface-strong: #eaf2ff;
    --ink: #14273d;
    --muted: #66778b;
    --line: #dfe8f3;
    --brand: #1168d9;
    --brand-dark: #0b4fa8;
    --brand-soft: #e9f2ff;
    --success: #138a66;
    --success-soft: #e5f8f1;
    --warning: #b46a09;
    --warning-soft: #fff5df;
    --danger: #c63c4a;
    --danger-soft: #fff0f2;
    --sidebar: #0d2848;
    --sidebar-soft: #14375f;
    --shadow: 0 18px 50px rgba(29, 57, 91, .09);
    --shadow-sm: 0 10px 24px rgba(29, 57, 91, .07);
    --radius: 20px;
    --radius-sm: 13px;
    --font: Inter, Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1828;
    --surface: #14253a;
    --surface-soft: #172b43;
    --surface-strong: #1c3552;
    --ink: #edf5ff;
    --muted: #9db0c7;
    --line: #28425f;
    --brand: #5ca1ff;
    --brand-dark: #85b9ff;
    --brand-soft: #18385f;
    --success-soft: #123d34;
    --warning-soft: #493716;
    --danger-soft: #4c222c;
    --shadow: 0 18px 50px rgba(0, 0, 0, .22);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, .17);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, p, a, li, label, span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.muted-copy { color: var(--muted); }

.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-lockup:hover { color: var(--ink); }
.brand-lockup .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(140deg, var(--brand), #4a9bff); color: #fff; font-weight: 850; font-size: 13px; letter-spacing: -.03em; box-shadow: 0 10px 22px rgba(17, 104, 217, .22); }
.brand-lockup > span:last-child { display: grid; line-height: 1.12; }
.brand-lockup strong { font-size: 14px; letter-spacing: -.01em; }
.brand-lockup small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.brand-lockup.is-light { color: #fff; }
.brand-lockup.is-light:hover { color: #fff; }
.brand-lockup.is-light small { color: rgba(255,255,255,.6); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 750; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(53, 139, 255, .28); outline-offset: 2px; }
.button-primary { background: linear-gradient(135deg, var(--brand), #3188ee); color: #fff; box-shadow: 0 12px 24px rgba(17, 104, 217, .2); }
.button-primary:hover { color: #fff; box-shadow: 0 15px 28px rgba(17, 104, 217, .27); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button-secondary:hover { color: var(--brand); border-color: #a9c9ef; }
.button-danger { background: var(--danger-soft); border-color: rgba(198,60,74,.22); color: var(--danger); }
.button-large { min-height: 50px; padding-inline: 22px; border-radius: 14px; }
.button-block { width: 100%; }
.button:disabled { opacity: .48; cursor: not-allowed; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span:first-child { color: var(--ink); font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); padding: 11px 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b5c9df; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(17, 104, 217, .09); outline: 0; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.field-grid { display: grid; gap: 15px; }
.field-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-wide { grid-column: 1 / -1; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 64px; }
.password-toggle { position: absolute; inset: 50% 8px auto auto; transform: translateY(-50%); border: 0; background: transparent; color: var(--brand); font-size: 11px; font-weight: 800; cursor: pointer; }

.eyebrow-chip { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-chip.is-glass { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.12); }
.version-chip { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 750; }
.version-chip.is-large { padding: 9px 14px; font-size: 12px; background: var(--surface); }
.phase-badge { display: inline-flex; padding: 8px 12px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-size: 12px; font-weight: 750; }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 13px 15px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.notice strong { grid-row: span 2; font-size: 12px; color: var(--ink); }
.notice span { color: var(--muted); font-size: 13px; }
.notice-success { background: var(--success-soft); border-color: rgba(19,138,102,.2); }
.notice-success strong { color: var(--success); }
.notice-error { background: var(--danger-soft); border-color: rgba(198,60,74,.2); }
.notice-error strong { color: var(--danger); }
.notice-info { background: var(--brand-soft); border-color: rgba(17,104,217,.18); }
.notice-info strong { color: var(--brand); }

/* Installer */
.installer-body { background: radial-gradient(circle at 10% 0, #e7f1ff 0, transparent 35%), radial-gradient(circle at 100% 10%, #edf7ff 0, transparent 32%), var(--bg); }
.installer-shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 52px; }
.installer-header { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 22px; }
.installer-intro { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 32px; padding: 31px 34px; margin-bottom: 22px; border-radius: 25px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(105,181,255,.42), transparent 35%), linear-gradient(135deg, #0c315c, #0f63c7); box-shadow: 0 24px 55px rgba(10,55,100,.18); }
.installer-intro h1 { max-width: 680px; margin: 11px 0 8px; font-size: clamp(27px, 4vw, 44px); line-height: 1.08; letter-spacing: -.04em; }
.installer-intro p { max-width: 680px; margin: 0; color: rgba(255,255,255,.72); font-size: 15px; }
.install-progress { display: flex; gap: 9px; padding: 0; margin: 0; list-style: none; }
.install-progress li { display: grid; justify-items: center; gap: 5px; min-width: 62px; color: rgba(255,255,255,.63); font-size: 10px; font-weight: 750; }
.install-progress li span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.08); }
.install-progress li.is-active { color: #fff; }
.install-progress li.is-active span { background: #fff; color: var(--brand-dark); border-color: #fff; }
.installer-grid { display: grid; grid-template-columns: 350px minmax(0, 1fr); align-items: start; gap: 22px; }
.install-check-card, .install-form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.install-check-card { position: sticky; top: 18px; padding: 22px; }
.install-form-card { padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading.compact { justify-content: flex-start; align-items: flex-start; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 850; }
.check-list { display: grid; gap: 7px; margin-top: 19px; }
.check-row { display: grid; grid-template-columns: 29px 1fr; gap: 9px; align-items: center; padding: 9px; border-radius: 10px; background: var(--surface-soft); }
.check-row .check-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; font-weight: 850; }
.check-row .icon { width: 15px; height: 15px; }
.check-row > span:last-child { display: grid; }
.check-row strong { font-size: 12px; }
.check-row small { color: var(--muted); font-size: 10px; }
.check-row.is-ok .check-symbol { background: var(--success-soft); color: var(--success); }
.check-row.is-warning .check-symbol { background: var(--warning-soft); color: var(--warning); }
.check-row.is-error .check-symbol { background: var(--danger-soft); color: var(--danger); }
.helper-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.form-section + .form-section { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }
.form-section .field-grid { margin-top: 19px; }
.install-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.secure-note { display: flex; align-items: center; gap: 8px; max-width: 320px; color: var(--muted); font-size: 11px; }
.secure-note .icon { color: var(--success); }

/* Authentication */
.auth-body { overflow-x: hidden; }
.auth-shell { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); min-height: 100vh; }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vw, 68px); overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 18%, rgba(79,167,255,.45), transparent 31%), radial-gradient(circle at 12% 90%, rgba(50,123,218,.32), transparent 36%), linear-gradient(145deg, #071e38, #0d4f93); }
.auth-story::after { content: ""; position: absolute; right: -120px; bottom: -180px; width: 490px; height: 490px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.auth-story > * { position: relative; z-index: 1; }
.auth-story-copy { max-width: 540px; }
.auth-story-copy h1 { margin: 15px 0 14px; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.auth-story-copy > p { max-width: 480px; color: rgba(255,255,255,.7); font-size: 17px; }
.auth-feature-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.auth-feature-list span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; }
.auth-feature-list .icon { width: 14px; height: 14px; color: #89e1c3; }
.auth-version { color: rgba(255,255,255,.45); }
.auth-content { display: grid; place-items: center; padding: 30px; background: var(--bg); }
.auth-card { width: min(100%, 470px); padding: clamp(25px, 4vw, 38px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card-heading h2 { margin: 11px 0 7px; font-size: 30px; letter-spacing: -.04em; }
.auth-card-heading p { color: var(--muted); }
.auth-card-heading.centered { text-align: center; }
.auth-form { display: grid; gap: 17px; margin-top: 25px; }
.auth-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.auth-card-footer span { display: inline-flex; align-items: center; gap: 6px; }
.auth-card-footer .icon { width: 14px; height: 14px; color: var(--success); }
.status-illustration { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 21px; border-radius: 22px; font-size: 31px; font-weight: 900; }
.status-illustration.is-error { background: var(--danger-soft); color: var(--danger); }

/* Application shell */
.app-frame { display: grid; grid-template-columns: 264px minmax(0,1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; height: 100vh; padding: 21px 17px; color: #dce9f7; background: radial-gradient(circle at 30% 0, #184675 0, transparent 30%), linear-gradient(180deg, var(--sidebar), #091d35); }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.sidebar-close { display: none; border: 0; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.workspace-chip { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 24px 0 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.055); }
.workspace-avatar, .user-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: linear-gradient(135deg, #438ff3, #6bb8ff); color: #fff; font-weight: 850; }
.workspace-chip > span:last-child { display: grid; min-width: 0; }
.workspace-chip small { color: rgba(255,255,255,.48); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-chip strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-label { padding: 17px 10px 7px; color: rgba(255,255,255,.35); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 9px 11px; border-radius: 11px; color: rgba(231,241,252,.72); font-size: 12px; font-weight: 700; transition: background .15s ease, color .15s ease; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-nav a.is-active { color: #fff; background: linear-gradient(135deg, rgba(50,135,238,.62), rgba(40,115,205,.34)); box-shadow: inset 0 0 0 1px rgba(111,180,255,.18); }
.sidebar-nav a .icon { width: 18px; height: 18px; }
.sidebar-nav a em { margin-left: auto; padding: 3px 6px; border-radius: 6px; background: rgba(98,177,255,.16); color: #9bcaff; font-size: 8px; font-style: normal; text-transform: uppercase; }
.sidebar-footer { display: grid; gap: 11px; margin-top: auto; padding: 16px 6px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.version-row { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.43); font-size: 10px; }
.version-row strong { color: rgba(255,255,255,.68); }
.public-site-link { display: flex; align-items: center; justify-content: space-between; color: #cfe5ff; font-size: 11px; font-weight: 700; }
.public-site-link:hover { color: #fff; }
.public-site-link .icon { width: 15px; height: 15px; }
.sidebar-backdrop { display: none; }
.app-workspace { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; min-height: 72px; padding: 11px clamp(17px, 3vw, 34px); border-bottom: 1px solid rgba(222,232,243,.85); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); }
.topbar-title { display: grid; line-height: 1.22; }
.topbar-title small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.topbar-title strong { font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-preview { color: var(--muted); font-size: 11px; font-weight: 750; }
.topbar-preview:hover { color: var(--brand); }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-button:hover { color: var(--brand); border-color: #b9cee7; }
.icon-button .icon { width: 18px; height: 18px; }
.menu-button { display: none; margin-right: 10px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 9px; border-left: 1px solid var(--line); }
.user-copy { display: grid; min-width: 105px; line-height: 1.2; }
.user-copy strong { color: var(--ink); font-size: 11px; }
.user-copy small { color: var(--muted); font-size: 9px; }
.logout-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.logout-button:hover { background: var(--danger-soft); color: var(--danger); }
.logout-button .icon { width: 17px; height: 17px; }
.app-content { width: min(100%, 1560px); margin: 0 auto; padding: clamp(20px, 3vw, 36px); }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.page-heading h1 { margin: 9px 0 4px; font-size: clamp(27px, 3vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.panel-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 8px 0 0; font-size: 19px; letter-spacing: -.025em; }
.panel-heading > a { color: var(--muted); font-size: 11px; font-weight: 750; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { position: relative; display: flex; align-items: center; gap: 13px; min-height: 106px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -39px; top: -42px; border-radius: 50%; background: var(--card-accent, #e9f2ff); opacity: .48; }
.metric-card .metric-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 13px; color: var(--card-color, var(--brand)); background: var(--card-accent, var(--brand-soft)); }
.metric-card > div { display: grid; min-width: 0; }
.metric-card small { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.metric-card strong { margin: 2px 0 5px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.accent-blue { --card-accent: #e8f2ff; --card-color: #1168d9; }
.accent-violet { --card-accent: #f0ebff; --card-color: #7354d7; }
.accent-cyan { --card-accent: #e4f8fb; --card-color: #14849b; }
.accent-green { --card-accent: #e6f8f0; --card-color: #16835f; }
.status-inline { width: fit-content; padding: 2px 6px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 800; }
.status-inline.is-ok { background: var(--success-soft); color: var(--success); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px,.75fr); gap: 18px; }
.setup-card, .activity-card { padding: 22px; }
.progress-ring { display: grid; place-items: center; width: 48px; height: 48px; border: 5px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; color: var(--brand); font-size: 10px; font-weight: 850; }
.setup-list { display: grid; gap: 7px; margin-top: 20px; }
.setup-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; min-height: 60px; padding: 10px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); }
a.setup-item:hover { border-color: var(--line); background: var(--surface-soft); color: var(--ink); }
.setup-item > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-strong); color: var(--brand); font-size: 11px; font-weight: 850; }
.setup-item.is-done > span:first-child { background: var(--success-soft); color: var(--success); }
.setup-item > span:first-child .icon { width: 16px; height: 16px; }
.setup-item > div { display: grid; }
.setup-item strong { font-size: 12px; }
.setup-item small { color: var(--muted); font-size: 10px; }
.setup-item > .icon { width: 15px; height: 15px; color: var(--muted); }
.activity-list { display: grid; margin-top: 20px; }
.activity-item { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 8px; min-height: 48px; }
.activity-item:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.activity-dot { width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.activity-item > div { display: grid; align-content: start; }
.activity-item strong { font-size: 11px; }
.activity-item small { color: var(--muted); font-size: 9px; }
.quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.quick-actions > a { display: grid; grid-template-columns: 41px 1fr auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.quick-actions > a:hover { border-color: #b6cce5; color: var(--ink); transform: translateY(-1px); }
.quick-actions > a > span { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.quick-actions > a > div { display: grid; }
.quick-actions strong { font-size: 12px; }
.quick-actions small { color: var(--muted); font-size: 10px; }
.quick-actions > a > .icon { width: 16px; height: 16px; color: var(--muted); }

/* Team and account */
.role-badge { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 13px; border: 1px solid rgba(17,104,217,.16); border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.team-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); align-items: start; gap: 18px; }
.team-create-card { position: sticky; top: 91px; padding: 22px; }
.team-create-card > .muted-copy { margin: 16px 0 19px; font-size: 12px; }
.team-create-form { display: grid; gap: 14px; }
.team-list { display: grid; gap: 12px; }
.team-user-card { padding: 18px; }
.team-user-card.is-inactive { opacity: .72; }
.team-user-main { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px; }
.team-user-avatar, .account-avatar { display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg,var(--brand),#5ba9ff); color: #fff; font-weight: 850; box-shadow: 0 10px 24px rgba(17,104,217,.18); }
.team-user-avatar { width: 46px; height: 46px; }
.team-user-main > div { display: grid; min-width: 0; }
.team-user-title { display: flex; align-items: center; gap: 8px; }
.team-user-title h2 { margin: 0; font-size: 15px; }
.team-user-title span { padding: 3px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.team-user-main a { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-user-main small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.team-user-controls { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: end; gap: 10px; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.team-user-controls > form:first-child { display: grid; grid-template-columns: minmax(160px,1fr) auto; align-items: end; gap: 9px; }
.team-user-controls > form:nth-child(2) { display: flex; align-items: end; }
.team-password-reset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.team-password-reset summary { padding: 10px 12px; color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 800; }
.team-password-reset form { display: grid; gap: 12px; padding: 13px; border-top: 1px solid var(--line); }
.account-layout { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(0,1.35fr); align-items: start; gap: 18px; }
.account-summary-card, .account-form-card { padding: 24px; }
.account-summary-card { display: grid; justify-items: start; }
.account-avatar { width: 66px; height: 66px; margin-bottom: 17px; font-size: 24px; }
.account-summary-card h2 { margin: 0 0 3px; font-size: 21px; }
.account-summary-card > p { color: var(--muted); }
.account-summary-card .data-list { width: 100%; }
.account-security-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; margin: 18px 0 0 !important; border-radius: 11px; background: var(--success-soft); color: var(--success) !important; font-size: 10px; }
.account-security-note .icon { width: 16px; height: 16px; }
.account-form { display: grid; gap: 17px; margin-top: 22px; }
.account-form-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.account-form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-submit-row > span { display: flex; align-items: center; gap: 7px; max-width: 330px; color: var(--muted); font-size: 10px; }
.account-submit-row .icon { width: 15px; height: 15px; color: var(--success); }

.module-preview-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 18px; margin-bottom: 18px; }
.module-hero-card { position: relative; display: flex; align-items: center; gap: 20px; min-height: 230px; padding: 30px; overflow: hidden; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.module-hero-card::after { content: ""; position: absolute; right: -70px; bottom: -100px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025); }
.crm-gradient { background: linear-gradient(135deg, #0b4d93, #177ada); }
.tour-gradient { background: linear-gradient(135deg, #075f74, #0d9cb2); }
.module-hero-icon { display: grid; place-items: center; width: 78px; height: 78px; flex: 0 0 78px; border: 1px solid rgba(255,255,255,.2); border-radius: 23px; background: rgba(255,255,255,.11); }
.module-hero-icon .icon { width: 37px; height: 37px; }
.module-hero-card > div { position: relative; z-index: 1; }
.module-hero-card > div > span { font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.module-hero-card h2 { margin: 8px 0; font-size: clamp(24px,3vw,34px); letter-spacing: -.04em; }
.module-hero-card p { max-width: 650px; margin: 0; color: rgba(255,255,255,.74); }
.module-preview-grid > .panel-card { padding: 24px; }
.feature-check-list { display: grid; gap: 13px; padding: 0; margin: 22px 0 0; list-style: none; }
.feature-check-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.feature-check-list .icon { width: 18px; height: 18px; padding: 3px; border-radius: 6px; background: var(--success-soft); color: var(--success); }
.empty-state { display: grid; place-items: center; padding: 45px 24px; border: 1px dashed #bccde0; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 62%, transparent); text-align: center; }
.large-empty-state { min-height: 480px; }
.empty-state .empty-icon { display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 10px; margin-bottom: 15px; border-radius: 17px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.empty-state .empty-icon .icon { width: 27px; height: 27px; }
.empty-state h1, .empty-state h2 { margin-bottom: 6px; }
.empty-state p { max-width: 690px; margin: 0 auto 18px; color: var(--muted); }

.update-overview-grid { display: grid; grid-template-columns: minmax(300px,.75fr) minmax(0,1.25fr); gap: 18px; margin-bottom: 18px; }
.version-card, .update-roadmap-card { min-height: 230px; padding: 24px; overflow: hidden; }
.version-card .card-orb { position: absolute; right: -55px; top: -75px; width: 180px; height: 180px; border-radius: 50%; background: var(--brand-soft); }
.version-card h2 { font-size: 36px; color: var(--brand); }
.status-pill { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 800; }
.status-pill.is-success { background: var(--success-soft); color: var(--success); }
.status-pill.is-warning { background: var(--warning-soft); color: var(--warning); }
.data-list { display: grid; gap: 7px; margin: 21px 0 0; }
.data-list div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.data-list dt { color: var(--muted); font-size: 11px; }
.data-list dd { margin: 0; font-size: 11px; font-weight: 750; }
.update-roadmap-card > p { max-width: 650px; margin-top: 20px; color: var(--muted); }
.update-roadmap-card .panel-heading > .icon { width: 33px; height: 33px; color: var(--brand); }
.mini-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mini-steps span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 750; }
.mini-steps span.is-done { background: var(--success-soft); border-color: transparent; color: var(--success); }
.backup-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.backup-card { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 24px; }
.backup-card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.restore-card .backup-card-icon { background: var(--danger-soft); color: var(--danger); }
.backup-card h2 { margin: 8px 0 5px; font-size: 20px; }
.backup-card p { margin: 0; color: var(--muted); font-size: 12px; }
.backup-card form { grid-column: 1 / -1; display: grid; gap: 13px; }

.health-score { display: grid; place-items: center; min-width: 95px; padding: 10px 15px; border-radius: 15px; background: var(--warning-soft); color: var(--warning); }
.health-score.is-perfect { background: var(--success-soft); color: var(--success); }
.health-score strong { font-size: 18px; }
.health-score small { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.system-summary-card { display: flex; align-items: center; gap: 15px; padding: 19px 22px; margin-bottom: 18px; border-radius: 16px; }
.system-summary-card > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; font-weight: 900; }
.system-summary-card h2 { margin: 0 0 2px; font-size: 16px; }
.system-summary-card p { margin: 0; font-size: 11px; }
.system-summary-card.is-good { background: var(--success-soft); color: var(--success); }
.system-summary-card.is-good p { color: color-mix(in srgb, var(--success) 75%, var(--muted)); }
.system-summary-card.has-warnings { background: var(--warning-soft); color: var(--warning); }
.system-summary-card.has-warnings p { color: color-mix(in srgb, var(--warning) 72%, var(--muted)); }
.check-table { overflow: hidden; }
.check-table-head, .check-table-row { display: grid; grid-template-columns: .55fr .8fr .6fr 1.4fr; align-items: center; gap: 15px; padding: 13px 17px; }
.check-table-head { background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.check-table-row + .check-table-row { border-top: 1px solid var(--line); }
.check-table-row > span:first-child { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.check-table-row strong { font-size: 12px; }
.check-table-row > span:nth-child(3) { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 750; }
.check-table-row > span:nth-child(3) i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-style: normal; }
.check-table-row.is-ok > span:nth-child(3) { color: var(--success); }
.check-table-row.is-ok > span:nth-child(3) i { background: var(--success-soft); }
.check-table-row.is-warning > span:nth-child(3) { color: var(--warning); }
.check-table-row.is-warning > span:nth-child(3) i { background: var(--warning-soft); }
.check-table-row .icon { width: 13px; height: 13px; }
.check-table-row > small { color: var(--muted); font-size: 10px; }
.page-bottom-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

/* Estate Office license */
.license-heading-status { padding: 9px 13px; font-size: 11px; }
.license-overview { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr); gap: 18px; margin-bottom: 18px; }
.license-status-card, .license-action-card { min-height: 410px; padding: 25px; }
.license-status-card { position: relative; display: grid; grid-template-columns: 86px 1fr; align-content: start; gap: 18px; overflow: hidden; }
.license-status-card::after { content: ''; position: absolute; right: -80px; top: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); pointer-events: none; }
.license-status-card.is-active::after { background: radial-gradient(circle, var(--success-soft), transparent 70%); }
.license-status-visual { position: relative; display: grid; place-items: center; width: 82px; height: 82px; }
.license-shield { position: relative; z-index: 2; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 21px; background: linear-gradient(145deg,#eff6ff,#dcecff); color: var(--brand); box-shadow: 0 15px 35px rgba(30,102,178,.18); }
.license-shield .icon { width: 31px; height: 31px; }
.license-status-card.is-active .license-shield { background: linear-gradient(145deg,#eafaf4,#d4f2e7); color: var(--success); }
.license-pulse { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); border-radius: 27px; }
.license-status-card.is-active .license-pulse { border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.license-status-copy { align-self: center; }
.license-status-copy h2 { margin: 7px 0 4px; font-size: 28px; }
.license-status-copy p { max-width: 600px; margin: 0; color: var(--muted); font-size: 12px; }
.license-data-list { grid-column: 1 / -1; margin-top: 9px; }
.license-data-list code { color: var(--brand); font-size: 10px; }
.license-action-card { display: grid; align-content: start; gap: 18px; background: linear-gradient(160deg,var(--surface),color-mix(in srgb,var(--brand-soft) 32%,var(--surface))); }
.license-action-card .panel-heading > .icon { width: 30px; height: 30px; color: var(--brand); }
.license-action-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.license-key-form, .license-action-stack { display: grid; gap: 15px; }
.license-deactivate-box { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.license-deactivate-box summary { cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 750; }
.license-deactivate-box p { margin: 11px 0; color: var(--muted); font-size: 10px; }
.license-security-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.license-feature { display: grid; grid-template-columns: 46px 1fr; gap: 13px; align-items: center; padding: 18px; }
.license-feature > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.license-feature > span .icon { width: 22px; height: 22px; }
.license-feature strong { display: block; margin-bottom: 3px; font-size: 12px; }
.license-feature p { margin: 0; color: var(--muted); font-size: 10px; }
.license-update-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 23px; margin-bottom: 18px; }
.license-update-card h2 { margin: 6px 0 4px; font-size: 20px; }
.license-update-card p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; }
.license-update-result { grid-column: 1 / -1; display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--warning-soft); color: var(--warning); font-size: 11px; }
.license-update-result.is-ok { background: var(--success-soft); color: var(--success); }

/* Visual content editor */
.visual-editor { display: grid; grid-template-columns: minmax(400px,.88fr) minmax(420px,1.12fr); gap: 18px; padding-bottom: 88px; }
.editor-fields { display: grid; align-content: start; gap: 10px; }
.editor-section { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.editor-section summary { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; min-height: 65px; padding: 10px 14px; cursor: pointer; list-style: none; }
.editor-section summary::-webkit-details-marker { display: none; }
.editor-section summary:hover { background: var(--surface-soft); }
.editor-section summary > span:nth-child(2) { display: grid; }
.editor-section summary strong { font-size: 12px; }
.editor-section summary small { color: var(--muted); font-size: 10px; }
.editor-section summary > i { color: var(--muted); font-style: normal; transition: transform .18s ease; }
.editor-section[open] summary > i { transform: rotate(180deg); }
.editor-section-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 850; }
.editor-section-body { display: grid; gap: 15px; padding: 17px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.service-editor-list { gap: 12px; }
.service-editor-item { display: grid; grid-template-columns: 29px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.service-editor-item > span { color: var(--brand); font-size: 10px; font-weight: 850; }
.service-editor-item > div { display: grid; gap: 10px; }
.editor-preview-panel { position: sticky; top: 90px; align-self: start; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #e8eef6; box-shadow: var(--shadow); }
.editor-preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 1px 2px 12px; color: #4f6174; font-size: 10px; font-weight: 800; }
.editor-preview-toolbar > span { display: flex; align-items: center; gap: 7px; }
.editor-preview-toolbar > span i { width: 7px; height: 7px; border-radius: 50%; background: #24a876; box-shadow: 0 0 0 4px rgba(36,168,118,.12); }
.editor-preview-toolbar > div { display: flex; gap: 4px; }
.editor-preview-toolbar button { display: grid; place-items: center; width: 28px; height: 25px; border: 0; border-radius: 7px; background: transparent; color: #718296; cursor: pointer; }
.editor-preview-toolbar button.is-active { background: #fff; color: #1264c5; box-shadow: 0 3px 10px rgba(37,65,97,.12); }
.editor-preview-frame { width: 100%; max-width: 100%; margin: 0 auto; overflow: hidden; border-radius: 13px; background: #f4f9ff; color: #143454; box-shadow: 0 15px 35px rgba(24,52,84,.16); transition: max-width .25s ease; }
.editor-preview-frame.is-mobile { max-width: 330px; }
.preview-site-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 42px; padding: 8px 15px; background: #fff; font-size: 7px; }
.preview-site-header strong { font-size: 9px; }
.preview-site-header span { color: #60758d; }
.preview-site-hero { display: grid; justify-items: center; align-content: center; min-height: clamp(230px,32vw,390px); padding: 35px 27px; text-align: center; background: radial-gradient(circle at 10% 30%, rgba(112,181,246,.7), transparent 35%), linear-gradient(130deg, #103b68, #126ec5); color: #fff; }
.preview-site-hero small { font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.preview-site-hero h2 { max-width: 550px; margin: 8px 0; font-family: Georgia, serif; font-size: clamp(23px,3.2vw,43px); line-height: 1.03; }
.preview-site-hero p { max-width: 520px; margin: 0 0 14px; color: rgba(255,255,255,.75); font-size: 9px; }
.preview-site-hero b { padding: 7px 12px; border-radius: 999px; background: #fff; color: #105fae; font-size: 8px; }
.preview-site-about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: center; padding: 30px; }
.preview-site-about > span { display: block; min-height: 125px; border-radius: 12px; background: linear-gradient(145deg,#bcd8f4,#e3effc); }
.preview-site-about small, .preview-site-services > small { color: #176ccc; font-size: 7px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.preview-site-about h3, .preview-site-services h3 { margin: 5px 0; font-family: Georgia, serif; font-size: 18px; line-height: 1.08; }
.preview-site-about p { margin: 0; color: #687d93; font-size: 8px; }
.preview-site-services { padding: 25px 30px 33px; background: #fff; }
.preview-site-services > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 12px; }
.preview-site-services > div span { min-height: 55px; padding: 9px; border-top: 3px solid #1670d1; border-radius: 7px; background: #f4f8fd; font-family: Georgia, serif; font-size: 9px; font-weight: 700; }
.editor-preview-frame.is-mobile .preview-site-header span { display: none; }
.editor-preview-frame.is-mobile .preview-site-about { grid-template-columns: 1fr; padding: 21px; }
.editor-preview-frame.is-mobile .preview-site-about > span { min-height: 100px; }
.editor-preview-frame.is-mobile .preview-site-services { padding: 21px; }
.editor-preview-frame.is-mobile .preview-site-services > div { grid-template-columns: 1fr; }
.preview-note { margin: 10px 3px 0; color: #617589; font-size: 9px; text-align: center; }
.editor-savebar { position: fixed; z-index: 25; right: 0; bottom: 0; left: 264px; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 10px clamp(20px,4vw,48px); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 -12px 30px rgba(24,52,84,.08); backdrop-filter: blur(14px); }
.editor-savebar > div { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.save-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #aab8c8; }
.visual-editor.is-dirty .save-status-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .visual-editor { grid-template-columns: minmax(360px,.95fr) minmax(390px,1.05fr); }
}

@media (max-width: 980px) {
    .installer-grid { grid-template-columns: 1fr; }
    .install-check-card { position: static; }
    .app-frame { grid-template-columns: 1fr; }
    .app-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 274px; transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.22); }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-close, .menu-button { display: grid; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 29; border: 0; background: rgba(5,18,32,.5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    body.sidebar-open .sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .dashboard-grid, .module-preview-grid { grid-template-columns: 1fr; }
    .team-layout, .account-layout { grid-template-columns: 1fr; }
    .license-overview { grid-template-columns: 1fr; }
    .team-create-card { position: static; }
    .visual-editor { grid-template-columns: 1fr; }
    .editor-preview-panel { position: static; }
    .editor-savebar { left: 0; }
}

@media (max-width: 760px) {
    .installer-shell { width: min(100% - 20px, 680px); padding-top: 12px; }
    .installer-intro { grid-template-columns: 1fr; padding: 25px; }
    .install-progress { justify-content: flex-start; }
    .field-grid.two-columns, .backup-grid, .update-overview-grid { grid-template-columns: 1fr; }
    .license-security-grid { grid-template-columns: 1fr; }
    .license-update-card { grid-template-columns: 1fr; }
    .license-update-card form .button { width: 100%; }
    .install-form-card { padding: 18px; }
    .install-submit-row { align-items: stretch; flex-direction: column; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { min-height: 330px; padding: 28px; }
    .auth-story-copy h1 { font-size: 39px; }
    .auth-content { padding: 18px; }
    .app-topbar { padding-inline: 12px; }
    .topbar-preview, .user-copy { display: none; }
    .user-menu { padding-left: 6px; }
    .app-content { padding: 18px 13px 90px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-actions { justify-content: flex-start; }
    .metric-grid, .quick-actions { grid-template-columns: 1fr; }
    .team-user-main { grid-template-columns: 42px 1fr; }
    .team-user-main > .status-pill { grid-column: 2; width: fit-content; }
    .team-user-controls, .team-user-controls > form:first-child { grid-template-columns: 1fr; }
    .team-user-controls > form:nth-child(2) .button { width: 100%; }
    .account-submit-row { align-items: stretch; flex-direction: column; }
    .account-submit-row .button { width: 100%; }
    .module-hero-card { align-items: flex-start; flex-direction: column; padding: 24px; }
    .check-table-head { display: none; }
    .check-table-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 15px; }
    .check-table-row > *::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
    .editor-page-heading { margin-bottom: 15px; }
    .editor-preview-panel { padding: 9px; }
    .editor-savebar { min-height: 80px; padding: 10px 13px; }
    .editor-savebar > div { display: none; }
    .editor-savebar .button { width: 100%; }
}

@media (max-width: 430px) {
    .installer-header .version-chip { display: none; }
    .installer-intro { padding: 21px; }
    .install-progress li { min-width: 55px; }
    .auth-story { min-height: 300px; }
    .auth-story-copy > p, .auth-feature-list { display: none; }
    .auth-card { padding: 22px 18px; }
    .auth-card-footer { align-items: flex-start; flex-direction: column; }
    .metric-card { min-height: 96px; }
    .backup-card { grid-template-columns: 1fr; }
    .editor-section-body .two-columns { grid-template-columns: 1fr; }
}

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