:root {
    color-scheme: light;
    --canvas: #f1f3f2;
    --surface: #ffffff;
    --surface-subtle: #f7f8f7;
    --surface-hover: #f2f5f4;
    --ink: #18211f;
    --ink-soft: #3f4d49;
    --muted: #65736f;
    --line: #dde3e1;
    --line-strong: #c6d0cc;
    --accent: #0a6f58;
    --accent-hover: #075a48;
    --accent-soft: #e7f3ef;
    --accent-ink: #075a48;
    --nav: #f7f8f6;
    --nav-raised: #ffffff;
    --nav-text: #18211f;
    --nav-muted: #65736f;
    --success: #0a6f58;
    --success-soft: #e7f3ef;
    --warning: #98601a;
    --warning-soft: #fff3dd;
    --danger: #b73749;
    --danger-soft: #fdecef;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --radius-surface: 12px;
    --radius-control: 8px;
    --shadow-surface: 0 1px 2px rgba(24, 33, 31, 0.025), 0 10px 30px rgba(24, 33, 31, 0.04);
    --shadow-overlay: 0 24px 70px rgba(15, 27, 23, 0.2);
    --motion-fast: 180ms;
    --motion-overlay: 260ms;
    --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --z-sidebar: 20;
    --z-topbar: 30;
    --z-overlay: 50;
    --z-toast: 70;
}

[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #111615;
    --surface: #18201e;
    --surface-subtle: #1d2724;
    --surface-hover: #23302c;
    --ink: #f1f5f3;
    --ink-soft: #c0cbc7;
    --muted: #96a5a0;
    --line: #2c3834;
    --line-strong: #43524d;
    --accent: #65d0b2;
    --accent-hover: #78dbc0;
    --accent-soft: #1b3b33;
    --accent-ink: #81e0c5;
    --nav: #0d1211;
    --nav-raised: #171f1d;
    --nav-text: #f1f5f3;
    --nav-muted: #91a09b;
    --success: #65d0b2;
    --success-soft: #1b3b33;
    --warning: #e7b865;
    --warning-soft: #40321d;
    --danger: #f28391;
    --danger-soft: #47232b;
    --shadow-surface: 0 1px 2px rgba(0, 0, 0, 0.14), 0 12px 32px rgba(0, 0, 0, 0.13);
    --shadow-overlay: 0 28px 80px rgba(0, 0, 0, 0.52);
}

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

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--surface);
    background: var(--ink);
    border-radius: var(--radius-control);
    transform: translateY(-160%);
}

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

.error-page {
    display: grid;
    min-height: 100dvh;
    padding: clamp(20px, 5vw, 48px);
    place-items: center;
}

.error-page__panel {
    width: min(100%, 680px);
    padding: clamp(28px, 7vw, 52px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.error-page__brand {
    width: fit-content;
    margin-bottom: clamp(40px, 9vw, 72px);
    color: var(--ink);
    text-decoration: none;
}

.error-page__code {
    margin-bottom: var(--space-4);
    color: var(--accent);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .08em;
}

.error-page h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(32px, 7vw, 48px);
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.error-page p {
    max-width: 52ch;
    margin: var(--space-5) 0 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.error-page__action {
    width: fit-content;
    margin-top: var(--space-8);
    white-space: nowrap;
}

.skip-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

a {
    color: var(--accent-ink);
}

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

.brand {
    display: inline-flex;
    gap: var(--space-3);
    align-items: center;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 40px;
    height: 40px;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 10px;
    place-items: center;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    min-height: 100svh;
}

.auth-shell__intro,
.auth-shell__content {
    padding: clamp(var(--space-6), 5vw, 72px);
}

.auth-shell__intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface-subtle);
    border-right: 1px solid var(--line);
}

.auth-shell__intro-copy {
    max-width: 520px;
    margin: auto 0;
}

.auth-shell__headline {
    max-width: 13ch;
    margin: var(--space-3) 0 var(--space-5);
    color: var(--ink);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.auth-shell__intro p:last-child,
.page-heading p {
    max-width: 58ch;
    color: var(--ink-soft);
}

.auth-shell__content {
    display: grid;
    background: var(--surface);
    place-items: center;
}

.auth-panel {
    width: min(100%, 440px);
}

.auth-locale-switcher {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.auth-locale-switcher a {
    min-height: 42px;
    padding: 0 var(--space-3);
    display: inline-flex;
    align-items: center;
    color: var(--ink-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-locale-switcher a:hover {
    color: var(--ink);
    background: var(--surface-hover);
}

.auth-locale-switcher a[aria-current="page"] {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.auth-locale-switcher a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.section-label {
    margin: 0 0 var(--space-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-heading {
    margin-bottom: var(--space-8);
}

.page-heading--compact {
    margin-bottom: var(--space-6);
}

.page-heading h1,
.page-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.page-heading p:last-child {
    margin: var(--space-3) 0 0;
}

.form-stack {
    display: grid;
    gap: var(--space-5);
}

.form-field {
    --floating-label-scale: 0.86;
    position: relative;
    display: grid;
    gap: var(--space-2);
}

.form-field > label {
    position: absolute;
    z-index: 1;
    top: 17px;
    left: var(--space-3);
    max-width: calc(100% - 24px);
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform-origin: left top;
    transition: color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 56px;
    padding: 20px var(--space-3) 4px;
    color: var(--ink);
    background: var(--surface-subtle);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    transition: border-color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.form-field select {
    padding-right: 36px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted);
    opacity: 0;
    transition: opacity var(--motion-fast) var(--motion-ease);
}

.form-field:focus-within input::placeholder,
.form-field:focus-within textarea::placeholder {
    opacity: 1;
}

.form-field > label,
.form-field:focus-within > label,
.form-field:has(> input:not(:placeholder-shown)) > label,
.form-field:has(> textarea:not(:placeholder-shown)) > label {
    transform: translateY(-10px) scale(var(--floating-label-scale));
}

.form-field:has(> input:placeholder-shown):not(:focus-within) > label,
.form-field:has(> textarea:placeholder-shown):not(:focus-within) > label {
    color: var(--ink-soft);
    transform: none;
}

.form-field:focus-within > label {
    color: var(--accent-ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    background: var(--surface);
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field:has(> .form-errors) > label,
.form-field:has(> [aria-invalid="true"]) > label {
    color: var(--danger);
}

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

.form-errors {
    margin: 0;
    padding: 0;
    color: var(--danger);
    font-size: 13px;
    list-style: none;
}

.form-help,
.section-intro {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    padding: 0 var(--space-5);
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    cursor: pointer;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
    touch-action: manipulation;
}

.button .ph {
    margin-right: var(--space-2);
    font-size: 18px;
}

.button--primary {
    color: var(--surface);
    background: var(--accent);
}

[data-theme="dark"] .button--primary {
    color: var(--canvas);
}

.button--primary:hover {
    background: var(--accent-hover);
}

.button--quiet {
    min-height: 42px;
    color: var(--ink-soft);
    background: var(--surface);
    border-color: var(--line);
}

.button--quiet:hover {
    color: var(--ink);
    background: var(--surface-hover);
    border-color: var(--line-strong);
}

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

.button--danger:hover {
    border-color: var(--danger);
}

.button--compact {
    min-height: 42px;
    padding-inline: var(--space-3);
    font-size: 13px;
}

.button:disabled,
.form-field input:disabled,
.form-field select:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.button-link {
    padding: 0;
    color: var(--accent-ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
}

.button:focus-visible,
.brand:focus-visible,
.context-row:focus-visible,
.topbar__context:focus-visible,
.topbar__mobile-brand:focus-visible,
.sidebar__brand:focus-visible,
.workspace-switcher:focus-visible,
.sidebar__link:focus-visible,
.sidebar__footer-link:focus-visible,
.profile-menu > summary:focus-visible,
.profile-menu__popover a:focus-visible,
.profile-menu__popover button:focus-visible,
.topbar__icon-button:focus-visible,
.topbar__help-button:focus-visible,
.topbar-menu__popover a:focus-visible,
.mobile-navigation a:focus-visible,
.button-link:focus-visible,
.inline-form select:focus-visible,
.toggle-field input:focus-visible,
.breadcrumb a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.alert {
    margin-bottom: var(--space-5);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
}

.alert--success {
    color: var(--success);
    background: var(--success-soft);
    border-color: color-mix(in srgb, var(--success) 30%, var(--line));
}

.alert--danger {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
}

.alert--warning {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
}

.app-shell {
    display: grid;
    min-height: 100svh;
    grid-template-columns: 248px minmax(0, 1fr);
}

.app-stage {
    min-width: 0;
}

.sidebar {
    position: sticky;
    z-index: var(--z-sidebar);
    top: 0;
    display: flex;
    height: 100dvh;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--nav-text);
    background: var(--nav);
    border-right: 1px solid var(--line);
}

.sidebar__brand,
.topbar__mobile-brand {
    display: flex;
    min-height: 72px;
    padding: 0 var(--space-5);
    gap: var(--space-3);
    align-items: center;
    color: var(--nav-text);
    text-decoration: none;
}

.sidebar__brand {
    border-bottom: 1px solid var(--line);
}

.brand__mark,
.workspace-switcher__mark,
.profile-menu__avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
}

.brand__mark {
    width: 36px;
    height: 36px;
    color: var(--surface);
    background: var(--ink);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.sidebar__brand-copy,
.sidebar__brand-copy strong,
.sidebar__brand-copy small,
.workspace-switcher > span:nth-child(2),
.workspace-switcher strong,
.workspace-switcher small {
    display: block;
    min-width: 0;
}

.sidebar__brand-copy strong {
    font-size: 16px;
    line-height: 1.2;
}

.sidebar__brand-copy small,
.workspace-switcher small {
    color: var(--nav-muted);
    font-size: 12px;
}

.workspace-switcher {
    display: grid;
    min-height: 58px;
    margin: var(--space-4) 14px 6px;
    padding: 9px 10px;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: var(--space-2);
    align-items: center;
    color: var(--nav-text);
    background: var(--nav-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-surface);
    text-decoration: none;
    transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}

.workspace-switcher:hover {
    background: var(--surface-hover);
    border-color: var(--line-strong);
}

.workspace-switcher--static:hover {
    background: var(--nav-raised);
    border-color: var(--line);
}

.workspace-switcher__mark {
    width: 36px;
    height: 36px;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 10px;
    font-weight: 750;
}

.workspace-switcher strong,
.workspace-switcher small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-switcher strong {
    font-size: 13px;
}

.workspace-switcher > .ph {
    color: var(--nav-muted);
    font-size: 17px;
}

.sidebar__nav {
    flex: 1;
    padding: 10px 14px var(--space-4);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar__nav p {
    margin: 18px var(--space-3) 7px;
    color: var(--nav-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.sidebar__link {
    position: relative;
    display: grid;
    min-height: 46px;
    margin: 3px 0;
    padding: 0 var(--space-3);
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: var(--space-2);
    align-items: center;
    color: var(--ink-soft);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}

.sidebar__link:hover {
    color: var(--nav-text);
    background: var(--surface-hover);
}

.sidebar__link.is-active {
    color: var(--accent-ink);
    background: var(--surface);
    box-shadow: 0 1px 1px color-mix(in srgb, var(--ink) 4%, transparent), inset 3px 0 0 var(--accent);
}

.sidebar__link.is-disabled {
    color: var(--nav-muted);
    cursor: not-allowed;
    opacity: 0.72;
}

.sidebar__link.is-disabled:hover {
    color: var(--nav-muted);
    background: transparent;
}

.sidebar__link > .ph {
    font-size: 20px;
}

.sidebar__link > small {
    font-size: 11px;
    font-weight: 700;
}

.sidebar__link > .nav-meta {
    color: var(--nav-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.sidebar__footer {
    display: grid;
    margin-top: auto;
    padding: 10px 14px 14px;
    gap: 3px;
    border-top: 1px solid var(--line);
}

.profile-menu__avatar {
    width: 38px;
    height: 38px;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
}

.topbar {
    position: sticky;
    z-index: var(--z-topbar);
    top: 0;
    display: flex;
    min-height: 72px;
    padding: 0 var(--space-8);
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.topbar__mobile-brand {
    display: none;
    min-height: auto;
    padding: 0;
    font-weight: 700;
}

.topbar__location {
    display: flex;
    min-width: 0;
    gap: var(--space-3);
    align-items: center;
}

.topbar__location-copy {
    color: var(--muted);
    font-size: 13px;
}

.topbar__context {
    max-width: 34ch;
    padding: var(--space-2) var(--space-3);
    overflow: hidden;
    color: var(--ink);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    font-weight: 650;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__context:hover:not(.topbar__context--static) {
    background: var(--surface-hover);
    border-color: var(--line-strong);
}

.global-search {
    position: relative;
    display: grid;
    width: min(560px, 48vw);
    min-width: 220px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.search-suggestions {
    position: absolute;
    z-index: 2;
    top: calc(100% + var(--space-2));
    right: 0;
    left: 0;
    max-height: min(520px, calc(100dvh - 96px));
    padding: var(--space-2) 0;
    overflow-y: auto;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-overlay);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestions__group + .search-suggestions__group {
    margin-top: var(--space-1);
    padding-top: var(--space-1);
    border-top: 1px solid var(--line);
}

.search-suggestions__heading {
    padding: var(--space-2) var(--space-4) var(--space-1);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.search-suggestions__option {
    display: grid;
    min-height: 52px;
    padding: var(--space-2) var(--space-4);
    gap: 2px;
    align-content: center;
    color: var(--ink);
    text-decoration: none;
}

.search-suggestions__option:hover,
.search-suggestions__option:focus,
.search-suggestions__option.is-active {
    background: var(--surface-hover);
    outline: none;
}

.search-suggestions__option:focus-visible {
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent);
}

.search-suggestions__option strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestions__option span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestions__state {
    min-height: 68px;
    padding: var(--space-4);
    color: var(--muted);
    font-size: 13px;
}

.search-suggestions__state.is-loading {
    background: linear-gradient(90deg, transparent, var(--surface-hover), transparent);
    background-size: 200% 100%;
}

.global-search__field {
    position: relative;
    min-width: 0;
}

.global-search .ph {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
    transform: translateY(-50%);
}

.global-search input {
    width: 100%;
    height: 44px;
    padding: 0 64px 0 44px;
    color: var(--ink);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: 9px 0 0 9px;
    font: inherit;
    font-size: 14px;
    transition: border-color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.global-search__scope {
    height: 44px;
    min-width: 104px;
    padding: 0 32px 0 var(--space-3);
    color: var(--ink-soft);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 9px 9px 0;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.global-search__scope:hover {
    background: var(--surface-hover);
}

.global-search__scope:focus {
    position: relative;
    z-index: 1;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
    outline: none;
}

.global-search input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.global-search input:hover {
    border-color: var(--line-strong);
}

.global-search input:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
    outline: none;
}

.global-search kbd {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 28px;
    padding: 4px 8px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 1px 1px color-mix(in srgb, var(--ink) 5%, transparent);
    font: 600 11px/18px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.topbar__actions {
    display: flex;
    flex: 0 0 auto;
    gap: var(--space-2);
    align-items: center;
}

.topbar__sync-state {
    display: flex;
    margin-right: 6px;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.topbar__sync-state .ph {
    color: var(--success);
    font-size: 17px;
}

.topbar__icon-button,
.topbar__help-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    list-style: none;
    white-space: nowrap;
    transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease);
}

.topbar__icon-button {
    width: 44px;
    padding: 0;
}

.topbar__help-button {
    padding: 0 14px;
    gap: var(--space-2);
}

.topbar__icon-button:hover,
.topbar__help-button:hover,
.topbar-menu[open] > summary {
    color: var(--ink);
    background: var(--surface-hover);
    border-color: var(--line-strong);
}

.topbar__icon-button:active,
.topbar__help-button:active {
    opacity: 0.78;
}

.topbar__help-button:disabled {
    color: var(--muted);
    background: var(--surface-subtle);
    border-color: var(--line);
    cursor: not-allowed;
    opacity: 0.58;
}

.topbar__icon-button .ph,
.topbar__help-button .ph {
    font-size: 19px;
}

.topbar-menu {
    position: relative;
}

.topbar-menu > summary::-webkit-details-marker {
    display: none;
}

.topbar-menu__popover {
    position: absolute;
    z-index: var(--z-overlay);
    top: calc(100% + var(--space-2));
    right: 0;
    width: min(300px, calc(100vw - 28px));
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-overlay);
}

.topbar-menu__popover strong,
.topbar-menu__popover p {
    display: block;
    margin: 0;
}

.topbar-menu__popover p {
    margin-top: var(--space-2);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.topbar-menu__popover a {
    display: inline-block;
    margin-top: var(--space-3);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 650;
}

.profile-menu {
    position: relative;
    flex: 0 0 auto;
}

.profile-menu > summary {
    display: grid;
    min-width: 230px;
    min-height: 52px;
    padding: 6px var(--space-2);
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: var(--space-2);
    align-items: center;
    color: var(--ink);
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
    transition: background-color var(--motion-fast) var(--motion-ease);
}

.profile-menu > summary::-webkit-details-marker {
    display: none;
}

.profile-menu > summary:hover,
.profile-menu[open] > summary {
    background: var(--surface-hover);
}

.profile-menu__identity {
    display: block;
    min-width: 0;
}

.profile-menu__identity strong,
.profile-menu__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu__identity strong {
    font-size: 13px;
}

.profile-menu__identity small {
    color: var(--muted);
    font-size: 12px;
}

.profile-menu > summary > .ph {
    color: var(--muted);
    font-size: 16px;
    transition: transform var(--motion-fast) var(--motion-ease);
}

.profile-menu[open] > summary > .ph {
    transform: rotate(180deg);
}

.profile-menu__popover {
    position: absolute;
    z-index: var(--z-overlay);
    top: calc(100% + var(--space-2));
    right: 0;
    width: min(320px, calc(100vw - 28px));
    padding: var(--space-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-overlay);
}

.profile-menu__heading {
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
}

.profile-menu__heading strong,
.profile-menu__heading span {
    display: block;
    overflow-wrap: anywhere;
}

.profile-menu__heading strong {
    font-size: 13px;
}

.profile-menu__heading span {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 12px;
}

.profile-menu__popover a,
.profile-menu__popover button {
    display: grid;
    width: 100%;
    min-height: 44px;
    padding: 0 var(--space-3);
    grid-template-columns: 24px minmax(0, 1fr);
    gap: var(--space-2);
    align-items: center;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: var(--radius-control);
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.profile-menu__popover a:hover,
.profile-menu__popover button:hover {
    background: var(--surface-hover);
}

.profile-menu__popover .ph {
    color: var(--muted);
    font-size: 19px;
}

.profile-menu__popover form {
    margin: var(--space-1) 0 0;
    padding-top: var(--space-1);
    border-top: 1px solid var(--line);
}

.sidebar__footer-link {
    display: grid;
    min-height: 46px;
    padding: 0 var(--space-3);
    grid-template-columns: 28px minmax(0, 1fr);
    gap: var(--space-2);
    align-items: center;
    color: var(--ink-soft);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}

.sidebar__footer-link:hover,
.sidebar__footer-link.is-active {
    color: var(--nav-text);
    background: var(--surface-hover);
}

.sidebar__footer-link > .ph {
    font-size: 20px;
}

.sidebar-profile-menu {
    min-width: 0;
    margin-top: 5px;
}

.sidebar-profile-menu > summary {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: var(--space-2);
    grid-template-columns: 38px minmax(0, 1fr) 22px;
}

.sidebar-profile-menu > summary > .ph {
    color: var(--nav-muted);
    font-size: 19px;
    transition: none;
}

.sidebar-profile-menu[open] > summary > .ph {
    transform: none;
}

.sidebar-profile-menu .profile-menu__identity small {
    color: var(--nav-muted);
}

.sidebar-profile-menu .profile-menu__popover {
    top: auto;
    right: auto;
    bottom: calc(100% + var(--space-2));
    left: 0;
    width: min(300px, calc(100vw - 28px));
}

.app-content {
    width: min(100%, 1720px);
    margin: 0 auto;
    padding: var(--space-8);
}

.app-content:focus {
    outline: none;
}

.flash-stack {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.flash-stack .alert {
    display: flex;
    margin: 0;
    gap: var(--space-2);
    align-items: flex-start;
}

.flash-stack .alert .ph {
    margin-top: 2px;
    font-size: 18px;
}

.mobile-navigation {
    display: none;
}

.context-list {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.context-row {
    display: flex;
    min-height: 76px;
    padding: var(--space-4) var(--space-5);
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    text-decoration: none;
    transition: background-color var(--motion-fast) var(--motion-ease);
}

.context-row + .context-row {
    border-top: 1px solid var(--line);
}

.context-row:hover {
    background: var(--surface-hover);
}

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

.context-row small {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 12px;
}

.context-row__action {
    color: var(--accent-ink);
    font-weight: 650;
}

.empty-state {
    padding: var(--space-10);
}

.empty-state h2 {
    margin: 0 0 var(--space-2);
    font-size: 18px;
}

.empty-state p {
    margin: 0;
    color: var(--ink-soft);
}

.breadcrumb {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--accent-ink);
}

.detail-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
}

.detail-strip div {
    padding: var(--space-5);
}

.detail-strip div + div {
    border-left: 1px solid var(--line);
}

.detail-strip dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-strip dd {
    margin: var(--space-1) 0 0;
    font-weight: 650;
}

.dashboard-placeholder {
    display: grid;
    width: min(100%, 640px);
    min-height: 156px;
    padding: var(--space-6);
    grid-template-columns: 52px minmax(0, 1fr);
    gap: var(--space-5);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.dashboard-placeholder h1 {
    margin: 0;
    font-size: 18px;
}

.dashboard-placeholder p {
    max-width: 52ch;
    margin: var(--space-2) 0 0;
    color: var(--ink-soft);
}

.dashboard-placeholder__icon {
    display: grid;
    width: 52px;
    height: 52px;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 10px;
    place-items: center;
}

.dashboard-placeholder__icon .ph {
    font-size: 24px;
}

.section-title {
    margin: 0 0 var(--space-4);
    font-size: 18px;
    line-height: 1.3;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--space-6);
    align-items: start;
}

.tenant-list,
.form-surface {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.tenant-row {
    display: flex;
    min-height: 76px;
    padding: var(--space-4) var(--space-5);
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.tenant-row + .tenant-row {
    border-top: 1px solid var(--line);
}

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

.tenant-row small {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 12px;
}

.form-surface {
    padding: var(--space-5);
}

.form-surface--danger {
    border-color: color-mix(in srgb, var(--danger) 24%, var(--line));
}

.form-surface .section-intro {
    margin: calc(-1 * var(--space-2)) 0 var(--space-5);
}

.status {
    display: inline-flex;
    min-height: 31px;
    padding: 0 9px;
    align-items: center;
    gap: 5px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status > .ph {
    font-size: 14px;
}

.status--success {
    color: var(--success);
    background: var(--success-soft);
}

.status--warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.status--danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.auth-links,
.auth-secondary {
    margin: var(--space-4) 0 0;
    text-align: center;
}

.auth-divider {
    display: flex;
    gap: var(--space-3);
    margin: var(--space-5) 0;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.page-heading--with-actions {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    justify-content: space-between;
}

.page-actions,
.row-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
}

.page-actions {
    margin-bottom: var(--space-6);
}

.page-heading__actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.page-heading__actions form {
    margin: 0;
}

.page-actions form,
.row-actions form {
    margin: 0;
}

.seat-meter {
    min-width: 150px;
    padding: var(--space-3) var(--space-4);
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-control);
    font-variant-numeric: tabular-nums;
}

.seat-meter strong,
.seat-meter span {
    display: block;
}

.seat-meter strong {
    font-size: 18px;
}

.seat-meter span {
    color: var(--muted);
    font-size: 12px;
}

.admin-grid--users {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.registry,
.module-list,
.settings-section,
.recovery-surface {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.registry-row {
    display: grid;
    min-height: 96px;
    padding: var(--space-4) var(--space-5);
    grid-template-columns: minmax(190px, 1fr) minmax(360px, 1.5fr);
    gap: var(--space-4);
    align-items: center;
}

.registry-row + .registry-row,
.module-row + .module-row,
.passkey-row + .passkey-row {
    border-top: 1px solid var(--line);
}

.registry-row__identity {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
}

.registry-row__identity strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.registry-row__controls {
    display: grid;
    gap: var(--space-2);
    justify-items: end;
}

.inline-form,
.inline-settings-form {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: end;
}

.inline-form > select {
    min-height: 42px;
    padding: 0 var(--space-3);
    color: var(--ink);
    background: var(--surface-subtle);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
}

.security-unlock {
    max-width: 540px;
}

.account-preferences {
    max-width: 680px;
}

.security-grid {
    display: grid;
    gap: var(--space-6);
}

.settings-section {
    padding: var(--space-5);
}

.settings-section + .settings-section,
.settings-section + section,
section + .settings-section {
    margin-top: var(--space-6);
}

.settings-section--danger {
    border-color: color-mix(in srgb, var(--danger) 24%, var(--line));
}

.settings-section__heading {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    align-items: flex-start;
    justify-content: space-between;
}

.settings-section__heading h2,
.settings-section__heading p,
.module-row__copy p {
    margin: 0;
}

.settings-section__heading h2 {
    font-size: 18px;
}

.settings-section__heading p,
.module-row__copy p {
    margin-top: var(--space-1);
    color: var(--ink-soft);
    font-size: 13px;
}

.number-series-list {
    display: grid;
    max-width: 1120px;
    gap: var(--space-6);
}

.number-series-help {
    max-width: 1120px;
    margin: calc(-1 * var(--space-4)) 0 var(--space-6);
    color: var(--muted);
    font-size: 13px;
}

.number-series-section__heading {
    display: flex;
    min-height: 42px;
    margin-bottom: var(--space-2);
    gap: var(--space-4);
    align-items: flex-end;
    justify-content: space-between;
}

.number-series-section__heading h2,
.number-series-section__heading p {
    margin: 0;
}

.number-series-section__heading h2 {
    font-size: 18px;
}

.number-series-section__heading p {
    margin-top: 2px;
    margin-bottom: var(--space-1);
    color: var(--muted);
    font-size: 13px;
}

.number-series-table {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.number-series-row {
    display: grid;
    min-height: 70px;
    padding: 10px var(--space-4);
    grid-template-columns: 140px minmax(220px, 1fr) 160px 150px 42px;
    gap: var(--space-3);
    align-items: center;
}

.number-series-row + .number-series-row {
    border-top: 1px solid var(--line);
}

.number-series-row__errors {
    grid-column: 1 / -1;
}

.number-series-row__errors:empty {
    display: none;
}

.number-series-row__identity strong,
.number-series-row__identity small,
.number-series-row__preview span,
.number-series-row__preview code {
    display: block;
}

.number-series-row__identity strong {
    font-size: 14px;
}

.number-series-row__identity small,
.number-series-row__preview span {
    color: var(--muted);
    font-size: 11px;
}

.number-series-row__field input {
    width: 100%;
    min-height: 48px;
    padding: 17px var(--space-3) 2px;
    color: var(--ink);
    background: var(--surface-subtle);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
}

.number-series-row__field input:focus {
    background: var(--surface);
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.number-series-row__field .form-errors {
    margin-top: var(--space-1);
}

.number-series-row__preview {
    min-width: 0;
    font-variant-numeric: tabular-nums;
}

.number-series-row__preview span {
    display: block;
}

.number-series-row__preview code {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.number-series-row__save {
    width: 42px;
    min-height: 42px;
    padding: 0;
}

.number-series-row__save .ph {
    margin: 0;
    font-size: 19px;
}

.passkey-list {
    margin-bottom: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
}

.passkey-row {
    display: flex;
    min-height: 72px;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
}

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

.passkey-row small {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 12px;
}

.empty-state--compact {
    padding: var(--space-4);
}

.totp-setup {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.totp-qr {
    display: grid;
    min-height: 260px;
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    place-items: center;
}

.totp-qr img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.recovery-surface {
    max-width: 680px;
    padding: var(--space-6);
}

.recovery-codes {
    display: grid;
    margin: 0 0 var(--space-6);
    padding: var(--space-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-5);
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    font-variant-numeric: tabular-nums;
    list-style: none;
}

.recovery-codes code {
    color: var(--ink);
    font-size: 14px;
}

.module-row {
    display: grid;
    min-height: 100px;
    padding: var(--space-4) var(--space-5);
    grid-template-columns: minmax(240px, 1fr) auto 150px auto;
    gap: var(--space-4);
    align-items: center;
}

.module-row__copy code {
    display: inline-block;
    margin-top: var(--space-2);
    color: var(--muted);
    font-size: 12px;
}

.toggle-field {
    display: flex;
    min-height: 44px;
    gap: var(--space-2);
    align-items: center;
    font-weight: 650;
}

.toggle-field input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.module-row__limit {
    gap: var(--space-1);
}

.inline-settings-form .form-field {
    width: 180px;
}

.search-filter-state {
    display: flex;
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    align-items: center;
    justify-content: space-between;
    color: var(--ink-soft);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    border-radius: var(--radius-control);
    font-size: 14px;
}

.search-filter-state a {
    flex: 0 0 auto;
    font-weight: 650;
}

.client-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--space-6);
    align-items: start;
}

.client-layout--single {
    grid-template-columns: 1fr;
}

.client-layout > section > .section-heading-row {
    margin-bottom: var(--space-3);
}

.workspace-search-results {
    display: grid;
    gap: var(--space-8);
}

.search-result-section > .section-heading-row {
    margin-bottom: var(--space-3);
}

.search-result-empty {
    padding: var(--space-6) var(--space-5);
    color: var(--muted);
    text-align: center;
}

.section-heading-row {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    justify-content: space-between;
}

.section-heading-row h2,
.section-heading-row p {
    margin: 0;
}

.section-heading-row p {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 13px;
}

.registry-count {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.client-registry,
.detail-section {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.client-row {
    display: grid;
    min-height: 76px;
    padding: var(--space-4) var(--space-5);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    transition: background-color var(--motion-fast) var(--motion-ease);
}

.client-row + .client-row {
    border-top: 1px solid var(--line);
}

.client-row:hover {
    background: var(--surface-hover);
}

.client-row:focus-visible {
    position: relative;
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.client-row__main strong,
.client-row__main small,
.client-row__meta > span:not(.status),
.detail-list-row strong,
.detail-list-row small,
.relationship-row strong,
.relationship-row small {
    display: block;
}

.client-row__main strong,
.contacts-row__link strong {
    font-size: 14px;
    font-weight: 650;
}

.client-row__main small,
.detail-list-row small,
.relationship-row small {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 12px;
}

.client-row__meta {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.client-registry-stack,
.client-create-aside {
    display: grid;
    gap: var(--space-6);
    align-content: start;
}

.contacts-row {
    display: grid;
    min-height: 68px;
    padding: var(--space-3) var(--space-5);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: center;
}

.contacts-row + .contacts-row {
    border-top: 1px solid var(--line);
}

.contacts-row__action {
    margin: 0;
}

.contacts-row__action form {
    margin: 0;
}

.contacts-row__link {
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.contacts-row__link:hover strong {
    color: var(--accent-ink);
}

.contacts-row__link:focus-visible {
    border-radius: var(--radius-control);
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.contacts-reference {
    display: grid;
    min-height: 88px;
    padding: var(--space-4) var(--space-5);
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: center;
}

.contacts-reference__icon {
    display: grid;
    width: 44px;
    height: 44px;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 10px;
    font-size: 22px;
    place-items: center;
}

.contacts-reference strong,
.contacts-reference small {
    display: block;
}

.contacts-reference small {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 12px;
}

.contacts-detail {
    margin-top: var(--space-6);
}

.registry-toolbar {
    display: flex;
    margin-bottom: var(--space-5);
    gap: var(--space-5);
    align-items: center;
    justify-content: space-between;
}

.registry-toolbar h1,
.registry-toolbar p {
    margin: 0;
}

.registry-toolbar h1 {
    font-size: 30px;
    letter-spacing: -.035em;
}

.registry-toolbar p {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 13px;
}

.contacts-registry {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.contacts-table th {
    height: 46px;
    padding: 0 var(--space-5);
    color: var(--muted);
    background: var(--surface-subtle);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 650;
    text-align: left;
}

.contacts-table th:first-child {
    width: 22%;
}

.contacts-table th:nth-child(2) {
    width: 20%;
}

.contacts-table th:last-child {
    width: 15%;
}

.contacts-table td {
    height: 76px;
    padding: var(--space-3) var(--space-5);
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: middle;
}

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

.contacts-table tbody tr {
    cursor: pointer;
    transition: background-color var(--motion-fast) var(--motion-ease);
}

.contacts-table tbody tr:hover {
    background: var(--surface-hover);
}

.contacts-table a {
    color: var(--ink-soft);
}

.contacts-table__name {
    color: var(--ink) !important;
    font-weight: 650;
    text-decoration: none;
}

.contacts-table__identity {
    display: grid;
    gap: 2px;
}

.contacts-table__identity small {
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.contacts-table__row:hover .contacts-table__name {
    color: var(--accent-ink) !important;
}

.contacts-table__name:focus-visible {
    border-radius: var(--radius-control);
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.contacts-table__na {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.contacts-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-6);
    align-items: start;
}

.contacts-detail-main,
.contacts-detail-aside {
    display: grid;
    gap: var(--space-6);
}

.contacts-detail-aside {
    position: sticky;
    top: calc(72px + var(--space-6));
}

.contact-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.contact-facts div {
    padding: var(--space-4) var(--space-5);
}

.contact-facts div:nth-child(even) {
    border-left: 1px solid var(--line);
}

.contact-facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
}

.contact-facts dt {
    color: var(--muted);
    font-size: 12px;
}

.contact-facts dd {
    margin: var(--space-1) 0 0;
    font-weight: 650;
}

.contact-value-list,
.note-content {
    padding: var(--space-2) var(--space-5);
}

.contact-value-list > .empty-copy {
    margin: var(--space-3) 0;
}

.contact-value-row {
    display: flex;
    min-height: 52px;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
}

.contact-value-row + .contact-value-row {
    border-top: 1px solid var(--line);
}

.contact-value-row > span:not(.status) {
    color: var(--muted);
    font-size: 13px;
}

.note-content {
    min-height: 88px;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    color: var(--ink-soft);
    white-space: normal;
}

.project-placeholder {
    display: flex;
    min-height: 88px;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
    align-items: center;
    color: var(--muted);
    background: var(--surface-subtle);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-control);
}

.detail-section > .project-placeholder {
    margin: var(--space-5);
}

.project-placeholder .ph {
    font-size: 22px;
}

.project-placeholder p {
    margin: 0;
}

.contacts-form,
.clients-form {
    display: grid;
    width: min(100%, 1040px);
    gap: var(--space-5);
}

.client-tabs {
    display: flex;
    min-height: 50px;
    margin-bottom: var(--space-6);
    gap: var(--space-1);
    align-items: end;
    border-bottom: 1px solid var(--line);
}

.client-tabs__item {
    display: inline-flex;
    min-height: 46px;
    padding: 0 var(--space-4);
    gap: var(--space-2);
    align-items: center;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    font-weight: 650;
    text-decoration: none;
}

button.client-tabs__item {
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    font: inherit;
    cursor: pointer;
}

.client-tabs__item:hover {
    color: var(--ink);
    background: var(--surface-hover);
}

.client-tabs__item:focus-visible {
    border-radius: var(--radius-control) var(--radius-control) 0 0;
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.client-tabs__item--active {
    color: var(--accent-ink);
    border-bottom-color: var(--accent);
}

.client-editor-tabs {
    width: min(100%, 1040px);
}

.client-editor-panel {
    display: grid;
    gap: var(--space-5);
}

.client-editor-panel[hidden] {
    display: none;
}

.client-type-fields {
    display: grid;
    gap: var(--space-4);
}

.client-type-fields[hidden] {
    display: none;
}

.ares-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-3);
    align-items: end;
}

.ares-status {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.ares-status--error {
    color: var(--danger);
}

.form-columns--address {
    grid-template-columns: minmax(0, 1fr) minmax(120px, .25fr) minmax(120px, .25fr);
}

.form-columns--address-meta {
    grid-template-columns: minmax(0, 1fr) minmax(130px, .4fr) minmax(90px, .25fr);
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.detail-facts div {
    min-height: 76px;
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--line);
}

.detail-facts div:nth-child(-n + 2) {
    border-top: 0;
}

.detail-facts div:nth-child(even):not(.detail-facts__wide) {
    border-left: 1px solid var(--line);
}

.detail-facts .detail-facts__wide {
    grid-column: 1 / -1;
}

.detail-facts dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-facts dd {
    margin: var(--space-1) 0 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.client-address {
    display: grid;
    padding: var(--space-5);
    gap: var(--space-1);
    color: var(--ink-soft);
    font-style: normal;
}

.client-address strong {
    color: var(--ink);
}

.client-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

.client-contact-grid .section-heading-row h2 {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.client-linked-contacts {
    margin-top: var(--space-5);
}

.form-section {
    display: grid;
    overflow: hidden;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
    box-shadow: var(--shadow-surface);
}

.form-section__heading {
    display: grid;
    padding: var(--space-5);
    grid-template-columns: 32px minmax(0, 1fr);
    gap: var(--space-3);
    align-content: start;
    background: var(--surface-subtle);
    border-right: 1px solid var(--line);
}

.form-section__heading > span {
    display: grid;
    width: 32px;
    height: 32px;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: var(--radius-control);
    font-size: 12px;
    font-weight: 700;
    place-items: center;
}

.form-section__heading h2,
.form-section__heading p {
    margin: 0;
}

.form-section__heading h2 {
    font-size: 18px;
}

.form-section__heading p {
    margin-top: var(--space-1);
    color: var(--muted);
    font-size: 13px;
}

.form-section__body {
    display: grid;
    padding: var(--space-5);
    gap: var(--space-4);
    align-content: start;
}

.contact-method-list,
.client-link-list {
    display: grid;
    gap: var(--space-3);
}

.contact-method-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(140px, .6fr) auto auto;
    gap: var(--space-3);
    align-items: center;
}

.client-link-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: var(--space-3);
    align-items: center;
}

.primary-choice {
    display: inline-flex;
    min-height: 44px;
    padding: 0 var(--space-3);
    gap: var(--space-2);
    align-items: center;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    cursor: pointer;
}

.primary-choice:has(input:checked) {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.primary-choice input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.contact-method-row__remove,
.client-link-row > .button {
    min-width: 104px;
}

.collection-add {
    justify-self: start;
}

.field-help {
    margin: calc(-1 * var(--space-2)) 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    justify-content: flex-end;
}

.client-archive {
    display: flex;
    width: min(100%, 1040px);
    margin-top: var(--space-8);
    gap: var(--space-5);
    align-items: center;
    justify-content: space-between;
}

.client-archive[hidden] {
    display: none;
}

.client-archive h2,
.client-archive p {
    margin: 0;
}

.client-archive p {
    margin-top: var(--space-1);
}

.contacts-delete {
    display: flex;
    width: min(100%, 1040px);
    margin-top: var(--space-8);
    gap: var(--space-5);
    align-items: center;
    justify-content: space-between;
}

.contacts-delete h2,
.contacts-delete p {
    margin: 0;
}

.contacts-delete p {
    margin-top: var(--space-1);
    color: var(--ink-soft);
}

.empty-state--compact {
    min-height: auto;
    padding: var(--space-5);
}

.field-group {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
}

.field-group legend {
    padding-inline: var(--space-2);
    font-size: 13px;
    font-weight: 700;
}

.form-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.form-field textarea {
    min-height: 104px;
    padding-top: 26px;
    padding-bottom: var(--space-3);
    resize: vertical;
}

.relationship-row {
    display: flex;
    min-height: 60px;
    padding: var(--space-2) 0;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
}

.relationship-row + .relationship-row {
    border-top: 1px solid var(--line);
}

.empty-copy {
    margin: var(--space-3) 0;
    color: var(--muted);
    font-size: 13px;
}

.client-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 var(--space-6);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-surface);
}

.client-facts div {
    padding: var(--space-4);
}

.client-facts div + div {
    border-left: 1px solid var(--line);
}

.client-facts dt {
    color: var(--muted);
    font-size: 12px;
}

.client-facts dd {
    margin: var(--space-1) 0 0;
    font-weight: 650;
}

.inline-note {
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-5);
    background: var(--surface-subtle);
    border-left: 3px solid var(--line-strong);
    border-radius: var(--radius-control);
}

.inline-note p {
    margin: var(--space-1) 0 0;
    color: var(--ink-soft);
}

.client-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-6);
    align-items: start;
}

.client-detail-main,
.client-detail-aside {
    display: grid;
    gap: var(--space-6);
}

.detail-section > .section-heading-row {
    padding: var(--space-5);
    border-bottom: 1px solid var(--line);
}

.detail-section h2 {
    font-size: 18px;
}

.detail-list-row {
    display: grid;
    min-height: 68px;
    padding: var(--space-3) var(--space-5);
    grid-template-columns: minmax(150px, .6fr) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
}

.detail-list-row + .detail-list-row {
    border-top: 1px solid var(--line);
}

.relationship-row {
    min-height: 68px;
    padding-inline: var(--space-5);
}

.inline-entry-form {
    display: grid;
    padding: var(--space-4) var(--space-5);
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: var(--space-3);
    align-items: end;
    background: var(--surface-subtle);
    border-top: 1px solid var(--line);
}

.inline-entry-form--address {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
}

.inline-entry-form__wide {
    grid-column: span 2;
}

.access-list {
    margin: var(--space-4) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.access-form {
    margin-top: var(--space-5);
}

.secondary-danger-action {
    margin-top: var(--space-3);
}

@media (max-width: 1280px) {
    .app-shell {
        grid-template-columns: 224px minmax(0, 1fr);
    }

    .app-content {
        padding: var(--space-6);
    }

    .topbar {
        padding-right: var(--space-6);
        padding-left: var(--space-6);
    }

    .global-search {
        width: min(500px, 44vw);
    }
}

@media (max-width: 1024px) {
    .global-search {
        width: auto;
        flex: 1 1 auto;
    }

    .topbar__sync-state {
        display: none;
    }

    .topbar__help-button {
        width: 44px;
        padding: 0;
    }

    .topbar__help-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .form-surface {
        order: -1;
    }

    .client-layout,
    .client-detail-grid {
        grid-template-columns: 1fr;
    }

    .contacts-detail-layout {
        grid-template-columns: 1fr;
    }

    .contacts-detail-aside {
        position: static;
    }

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

    .client-contact-grid {
        grid-template-columns: 1fr;
    }

    .form-section__heading {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .client-detail-aside .form-surface {
        order: initial;
    }

    .registry-row {
        grid-template-columns: 1fr;
    }

    .registry-row__controls {
        justify-items: start;
    }

    .module-row {
        grid-template-columns: minmax(220px, 1fr) auto 150px;
    }

    .module-row .button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        min-height: 64px;
        padding: 0 14px;
        gap: var(--space-2);
    }

    .topbar__mobile-brand {
        display: flex;
    }

    .topbar__mobile-brand .brand__mark {
        width: 34px;
        height: 34px;
    }

    .global-search {
        min-width: 0;
        margin: 0 var(--space-2);
    }

    .global-search input {
        height: 42px;
        font-size: 16px;
    }

    .global-search__scope {
        height: 42px;
    }

    .global-search kbd,
    .topbar__help-button {
        display: none;
    }

    .topbar__actions {
        gap: 5px;
    }

    .topbar__location {
        margin-right: auto;
    }

    .topbar__location-copy {
        display: none;
    }

    .topbar__context {
        max-width: 22ch;
    }

    .profile-menu > summary {
        min-width: 52px;
        grid-template-columns: 38px;
        justify-content: center;
    }

    .profile-menu__identity,
    .profile-menu > summary > .ph {
        display: none;
    }

    .app-content {
        padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
    }

    .mobile-navigation {
        position: fixed;
        z-index: var(--z-topbar);
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        min-height: calc(68px + env(safe-area-inset-bottom));
        padding: 6px 8px env(safe-area-inset-bottom);
        align-items: stretch;
        justify-content: space-around;
        color: var(--nav-text);
        background: color-mix(in srgb, var(--nav) 96%, transparent);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }

    .mobile-navigation a {
        display: flex;
        min-width: 58px;
        min-height: 56px;
        padding: 5px var(--space-2);
        flex: 1 1 0;
        flex-direction: column;
        gap: 2px;
        align-items: center;
        justify-content: center;
        color: var(--nav-muted);
        border-radius: var(--radius-control);
        font-size: 11px;
        font-weight: 650;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
    }

    .mobile-navigation a:hover,
    .mobile-navigation a.is-active {
        color: var(--accent-ink);
        background: var(--accent-soft);
    }

    .mobile-navigation .ph {
        font-size: 22px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-shell__intro {
        padding: var(--space-4);
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .auth-shell__intro-copy {
        display: none;
    }

    .auth-shell__content {
        padding: var(--space-8) var(--space-4);
        align-items: start;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        min-height: 56px;
        font-size: 16px;
    }

    .form-field > label {
        font-size: 16px;
    }

    .form-field {
        --floating-label-scale: 0.75;
    }

    .client-row__main strong,
    .contacts-row__link strong {
        font-size: 16px;
    }

    .form-field textarea {
        min-height: 104px;
    }

    .topbar {
        min-height: 64px;
        padding: 0 14px;
        gap: var(--space-2);
    }

    .topbar__mobile-brand > span:last-child,
    .topbar-menu--notifications {
        display: none;
    }

    .global-search {
        margin: 0;
    }

    .global-search input {
        padding-right: var(--space-3);
    }

    .button--quiet,
    .button--compact {
        min-height: 44px;
    }

    .topbar__context {
        max-width: 9ch;
        padding-right: var(--space-2);
        padding-left: var(--space-2);
        font-size: 13px;
    }

    .app-content {
        padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
    }

    .context-row {
        min-height: 76px;
        padding: var(--space-4);
    }

    .detail-strip {
        grid-template-columns: 1fr;
    }

    .detail-strip div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .page-heading--with-actions,
    .settings-section__heading,
    .passkey-row {
        align-items: stretch;
        flex-direction: column;
    }

    .number-series-row {
        min-height: 0;
        padding: var(--space-3);
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
        gap: var(--space-2);
    }

    .number-series-row__identity,
    .number-series-row__field--template {
        grid-column: 1 / -1;
    }

    .number-series-row__identity {
        margin-bottom: var(--space-1);
    }

    .number-series-row__field--sequence {
        grid-column: 1;
    }

    .number-series-row__preview {
        grid-column: 2;
    }

    .number-series-row__actions {
        grid-column: 3;
    }

    .page-heading__actions,
    .page-heading__actions .button,
    .page-heading__actions form {
        width: 100%;
    }

    .seat-meter {
        width: 100%;
    }

    .registry-row,
    .module-row {
        padding: var(--space-4);
    }

    .inline-form,
    .inline-settings-form,
    .row-actions,
    .module-row {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .inline-form select,
    .inline-form .button,
    .inline-settings-form .form-field,
    .inline-settings-form .button,
    .row-actions form,
    .row-actions .button,
    .module-row .button,
    .module-row__limit {
        width: 100%;
    }

    .totp-setup {
        grid-template-columns: 1fr;
    }

    .recovery-codes {
        grid-template-columns: 1fr;
    }

    .search-filter-state,
    .client-row,
    .contacts-row,
    .client-row__meta,
    .relationship-row {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .registry-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .registry-toolbar .button {
        width: 100%;
    }

    .contacts-registry {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .contacts-table,
    .contacts-table tbody,
    .contacts-table tr,
    .contacts-table td {
        display: block;
        width: 100%;
    }

    .contacts-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .contacts-table tr {
        overflow: hidden;
        margin-bottom: var(--space-3);
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-surface);
        box-shadow: var(--shadow-surface);
    }

    .contacts-table td {
        display: grid;
        min-height: 44px;
        height: auto;
        padding: var(--space-3) var(--space-4);
        grid-template-columns: 120px minmax(0, 1fr);
        gap: var(--space-3);
        align-items: center;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }

    .contacts-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 650;
    }

    .contacts-table td:first-child {
        min-height: 60px;
    }

    .contacts-table__name {
        font-size: 16px;
    }

    .contact-facts {
        grid-template-columns: 1fr;
    }

    .contact-facts div:nth-child(even) {
        border-left: 0;
    }

    .contact-facts div + div {
        border-top: 1px solid var(--line);
    }

    .contact-method-row,
    .client-link-row {
        padding-bottom: var(--space-4);
        grid-template-columns: 1fr;
        border-bottom: 1px solid var(--line);
    }

    .ares-fields,
    .form-columns--address,
    .form-columns--address-meta,
    .detail-facts {
        grid-template-columns: 1fr;
    }

    .ares-fields .button {
        width: 100%;
    }

    .detail-facts div,
    .detail-facts div:nth-child(even):not(.detail-facts__wide) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .detail-facts div:first-child {
        border-top: 0;
    }

    .client-tabs {
        overflow-x: auto;
    }

    .client-tabs__item {
        min-width: max-content;
    }

    .contact-method-row__remove,
    .client-link-row > .button,
    .collection-add {
        width: 100%;
    }

    .form-section__heading,
    .form-section__body {
        padding: var(--space-4);
    }

    .form-actions,
    .client-archive,
    .contacts-delete {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .button,
    .client-archive,
    .client-archive form,
    .client-archive .button,
    .contacts-delete,
    .contacts-delete form,
    .contacts-delete .button {
        width: 100%;
    }

    .search-filter-state {
        align-items: start;
    }

    .client-row__meta {
        gap: var(--space-2);
    }

    .client-row__meta .status {
        width: fit-content;
    }

    .contacts-row__action,
    .contacts-row__action .button {
        width: 100%;
    }

    .contacts-reference {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .contacts-reference .button {
        width: 100%;
        grid-column: 1 / -1;
    }

    .form-columns,
    .client-facts,
    .detail-list-row,
    .inline-entry-form,
    .inline-entry-form--address {
        grid-template-columns: 1fr;
    }

    .workspace-module-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .workspace-module-row > :last-child {
        width: fit-content;
        grid-column: 2;
    }

    .client-facts div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .inline-entry-form__wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .topbar,
    .mobile-navigation {
        background: var(--nav);
        backdrop-filter: none;
    }
}

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