/* == Tokens == */
:root {
    color-scheme: light;
    --bg: #f5f6fb;
    --surface: #ffffff;
    --surface-muted: #edeff7;
    --text: #14162b;
    --text-muted: #5b6178;
    --line: #dde0ec;
    --primary: #4b45d1;
    --primary-strong: #3833b0;
    --primary-soft: #e9e8fc;
    --on-primary: #ffffff;
    --danger: #c22a45;
    --danger-soft: #fdeaee;
    --success: #0e7a5f;
    --success-soft: #dcf4ec;
    --warning: #a3660f;
    --warning-soft: #fdf1dc;
    --info: #2c6cb0;
    --info-soft: #e6effa;
    --shadow-sm: 0 1px 2px rgba(20, 22, 43, 0.05);
    --shadow-md: 0 8px 24px rgba(20, 22, 43, 0.08);
    --shadow-lg: 0 18px 40px rgba(20, 22, 43, 0.12);
    --shadow: var(--shadow-md);
    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --sidebar-width: 248px;
    --bottom-nav-height: 64px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-synthesis: none;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c0e18;
    --surface: #151827;
    --surface-muted: #1d2133;
    --text: #eceefa;
    --text-muted: #9aa1bc;
    --line: #2a2f45;
    --primary: #9c96ff;
    --primary-strong: #bcb8ff;
    --primary-soft: #232848;
    --on-primary: #12132e;
    --danger: #ff8fa3;
    --danger-soft: #432425;
    --success: #6fd8b6;
    --success-soft: #1d3b31;
    --warning: #e8b56a;
    --warning-soft: #3a2e18;
    --info: #8fb6e8;
    --info-soft: #1c2a3d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.36);
    --shadow: var(--shadow-md);
}

/* == Base == */
* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

button,
a,
label,
select {
    touch-action: manipulation;
}

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

input[readonly] {
    background: var(--surface-muted);
    color: var(--text);
    cursor: default;
}

a {
    color: inherit;
}

/* == Accessibility == */
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* == Auth == */
.auth-page {
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--primary-soft) 72%, transparent), transparent 34rem),
        radial-gradient(circle at 92% 85%, color-mix(in srgb, var(--surface-muted) 76%, transparent), transparent 30rem),
        var(--bg);
}

.auth-shell {
    width: min(100%, 460px);
}

.auth-card {
    padding: clamp(26px, 6vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-md);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.brand--compact {
    margin-bottom: 36px;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: var(--shadow-sm);
}

.auth-copy {
    margin: 34px 0 26px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1 {
    margin: 0;
    font-size: clamp(1.6rem, 5vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    letter-spacing: -0.03em;
}

h3 {
    margin: 0;
}

.auth-copy p:last-child,
.welcome-panel p,
.empty-state p {
    margin: 13px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.form-stack {
    display: grid;
    gap: 17px;
}

.form-stack label:not(.check-row) {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 680;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="search"],
textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--surface);
    color: var(--text);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
    min-height: 112px;
    padding-top: 14px;
    resize: vertical;
    line-height: 1.55;
}

select {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--surface);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

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

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.button:active:not(:disabled) {
    transform: translateY(1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

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

.button--primary:hover:not(:disabled) {
    background: var(--primary-strong);
}

.button--quiet {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-muted);
}

.button--secondary {
    border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--line));
    background: var(--primary-soft);
    color: var(--primary);
}

.button--link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.text-link {
    display: block;
    margin-top: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.text-link--inline {
    display: inline;
    margin: 0;
    white-space: nowrap;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.45;
}

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

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

.theme-toggle {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.theme-toggle--inline {
    position: static;
    box-shadow: none;
}

/* == Layout == */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    padding: 28px 22px;
    border-right: 1px solid var(--line);
    background: var(--surface);
}

.sidebar nav {
    display: grid;
    gap: 7px;
}

.nav-link {
    padding: 12px 14px;
    border-radius: 11px;
    color: var(--text-muted);
    font-weight: 650;
    text-decoration: none;
}

.nav-link.is-active,
.nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.app-shell {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 15;
    top: 0;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 5vw, 54px);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.page-content {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(26px, 5vw, 54px);
}

/* == Home (mobile-first) == */
.home {
    display: grid;
    gap: var(--space-4);
}

.home-top {
    display: grid;
    gap: var(--space-3);
}

.home-top__copy h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    letter-spacing: -0.03em;
}

.home-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 4px 4px 4px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.home-search__icon {
    color: var(--primary);
    font-weight: 800;
}

.home-search input {
    min-width: 0;
    min-height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    box-shadow: none;
}

.home-search:focus-within {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.home-search__submit,
.home-search__clear {
    display: inline-grid;
    min-width: 44px;
    min-height: 40px;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.home-search__clear {
    background: var(--surface-muted);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

.quick-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color 140ms ease, transform 140ms ease;
}

.quick-action:active {
    transform: scale(0.985);
}

.quick-action--primary {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
    background: linear-gradient(135deg, var(--primary-soft), var(--surface));
}

.quick-action--secondary {
    background: var(--surface);
}

.quick-action__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.quick-action--secondary .quick-action__icon {
    background: var(--info-soft);
    color: var(--info);
}

.quick-action__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.quick-action__copy strong {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.quick-action__copy small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.home-section {
    display: grid;
    gap: var(--space-3);
}

.home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-section__head h2 {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.home-section__link {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.home-inline-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: inherit;
    font-size: 0.86rem;
    text-decoration: none;
}

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

.stack-list--tight {
    gap: 6px;
}

.stack-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    content-visibility: auto;
    contain-intrinsic-size: auto 60px;
}

.stack-item--domain {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    align-items: center;
}

.stack-item--account {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px 8px 12px;
}

.stack-item__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.stack-item__avatar {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

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

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

.stack-item__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.stack-item__body strong {
    overflow: hidden;
    font-size: 0.95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stack-item__body small,
.stack-item__body em {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stack-item__meta {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.stack-item--domain .stack-item__avatar,
.stack-item--domain .stack-item__body,
.stack-item--domain .stack-item__meta {
    grid-row: 1;
}

.life-bar {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--surface-muted);
    appearance: none;
    overflow: hidden;
}

.life-bar::-webkit-progress-bar {
    border-radius: inherit;
    background: var(--surface-muted);
}

.life-bar::-webkit-progress-value {
    border-radius: inherit;
    background: currentColor;
}

.life-bar::-moz-progress-bar {
    border-radius: inherit;
    background: currentColor;
}

.life-tone--green {
    color: #18a566;
}

.life-tone--yellow {
    color: #d6ad08;
}

.life-tone--amber {
    color: #e38a0b;
}

.life-tone--orange {
    color: #e96518;
}

.life-tone--vermilion {
    color: #dc4028;
}

.life-tone--red {
    color: #c92f45;
}

.stack-item__meta--days {
    text-align: right;
}

.stack-item__meta--days strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.stack-item__meta--days small {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.stack-item__meta--days.is-urgent strong {
    color: var(--warning);
}

.stack-item__meta--days.is-expired strong {
    color: var(--danger);
}

.stack-item__chevron {
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
}

.stack-item--warning {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--line));
}

.stack-item--danger {
    border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
}

.stack-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-item__actions form {
    margin: 0;
}

.stack-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.pill--warning {
    background: var(--warning);
    color: var(--surface);
}

.pill--danger {
    background: var(--danger);
    color: var(--surface);
}

:root[data-theme="dark"] .pill--warning,
:root[data-theme="dark"] .pill--danger {
    color: var(--on-primary);
}

.home-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 36px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: center;
}

.home-empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 1.4rem;
}

.home-empty h2 {
    font-size: 1.05rem;
}

.home-empty p {
    margin: 0;
    max-width: 28ch;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.home-logout {
    margin-top: 8px;
    padding-bottom: 8px;
}

.home-logout .button {
    width: 100%;
}

@media (min-width: 640px) {
    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-logout .button {
        width: auto;
    }
}

@media (min-width: 900px) {
    .home {
        gap: var(--space-5);
    }

    .stack-item:hover,
    .quick-action:hover {
        border-color: color-mix(in srgb, var(--primary) 36%, var(--line));
        box-shadow: var(--shadow-sm);
    }
}

/* Legacy helpers still used on other pages */
.welcome-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(24px, 5vw, 42px);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 88%, var(--surface)), var(--surface-muted));
}

.welcome-panel h1 {
    max-width: 780px;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.welcome-panel__content {
    flex: 1 1 auto;
    min-width: 0;
}

.welcome-panel__add {
    flex: 0 0 auto;
    align-self: flex-start;
}

.vault-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    width: min(100%, 700px);
    margin-top: 22px;
}

.vault-search__field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-left: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
    border-radius: 14px;
    background: var(--surface);
}

.vault-search__field > span {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 850;
}

.vault-search__field input {
    min-width: 0;
    min-height: 54px;
    padding: 0 15px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.vault-search__field:focus-within {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.vault-search .button {
    min-height: 54px;
    padding-inline: 24px;
}

.section-block {
    margin-top: 42px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-clear {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 740;
    text-decoration: none;
}

.page-heading {
    margin-bottom: 30px;
}

.page-heading--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.hero-stat {
    flex: 0 0 auto;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.hero-stat strong {
    display: block;
    color: var(--primary);
    font-size: 1.35rem;
}

.page-heading h1 {
    font-size: clamp(2rem, 6vw, 3.6rem);
}

.page-heading p:last-child {
    max-width: 660px;
    margin: 12px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.create-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    width: min(100%, 980px);
    margin: 0 auto 32px;
}

.create-hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.create-hero p:last-child {
    max-width: 690px;
    margin: 13px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.create-security-badge {
    display: flex;
    flex: 0 0 300px;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
}

.create-security-badge > span {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--surface);
    font-size: 1.2rem;
    font-weight: 900;
}

.create-security-badge strong,
.create-security-badge small {
    display: block;
}

.create-security-badge small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

.vault-form {
    display: grid;
    gap: 22px;
}

.vault-form--create {
    width: min(100%, 980px);
    margin: 0 auto;
    gap: 18px;
}

.form-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.vault-form--create .form-card {
    padding: clamp(24px, 4vw, 38px);
    border-radius: 24px;
    box-shadow: 0 14px 38px color-mix(in srgb, var(--primary) 6%, transparent);
}

.form-card--category {
    border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 42%, var(--surface)), var(--surface) 62%);
}

.compact-form-card {
    max-width: 760px;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.form-card__heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 26px;
}

.form-card__heading--split {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.form-card__heading--split .form-card__aside-link {
    align-self: center;
}

.form-step-label {
    margin: 0 0 5px !important;
    color: var(--primary) !important;
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.12em;
}

.form-card__aside-link {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 740;
    text-decoration: none;
}

.form-card__heading p {
    margin: 6px 0 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-badge {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 820;
}

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

.form-grid--account {
    gap: 22px;
}

.vault-form--create[data-account-mode="database-server"] [data-site-url-field] {
    grid-column: auto;
}

.vault-form--create[data-account-mode="database-server"] [data-platform-field],
.vault-form--create[data-account-mode="website-admin"] [data-login-field],
.vault-form--create[data-account-mode="website-admin"] [data-site-url-field],
.vault-form--create[data-account-mode="game"] [data-platform-field],
.vault-form--create[data-account-mode="corporate-email"] [data-login-field] {
    grid-column: 1 / -1;
}

.vault-form--create[data-account-mode="database-server"] .form-card:nth-of-type(2) {
    border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
}

.vault-form--create[data-account-mode="website-admin"] .form-card:nth-of-type(2) {
    border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
}

.field {
    display: grid;
    align-content: start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 680;
}

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

.field strong {
    color: var(--danger);
}

.field em {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 520;
}

.category-field {
    position: relative;
}

.category-choice {
    max-width: 780px;
}

.category-field__hint {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 520;
}

.category-field__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 560;
}

.category-mode-note {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.45;
}

.category-picker {
    position: relative;
}

.category-picker__trigger {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 680;
    text-align: left;
}

.form-card--category .category-picker__trigger {
    min-height: 62px;
    padding: 0 18px;
    border-width: 1.5px;
    border-color: color-mix(in srgb, var(--primary) 44%, var(--line));
    border-radius: 15px;
    font-size: 0.95rem;
}

.category-picker__trigger.is-placeholder {
    color: var(--text-muted);
    font-weight: 590;
}

.category-picker__trigger:hover,
.category-picker__trigger:focus,
.category-picker__trigger[aria-expanded="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.category-picker__trigger[aria-invalid="true"] {
    border-color: var(--danger);
}

.category-picker__chevron {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 150ms ease;
}

.category-picker__trigger[aria-expanded="true"] .category-picker__chevron {
    transform: rotate(180deg);
}

.category-picker__panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 54%, var(--line));
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.category-picker.opens-up .category-picker__panel {
    top: auto;
    bottom: calc(100% + 8px);
}

.category-picker__search {
    position: sticky;
    z-index: 1;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-muted);
}

.category-picker__search input[type="search"] {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: var(--surface-muted);
    color: var(--text);
}

.category-picker__search input[type="search"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.category-picker__result {
    margin: 0;
    padding: 8px 14px 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 620;
}

.category-picker__options {
    max-height: min(390px, 48vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 8px 10px;
}

.category-picker__group-title {
    padding: 10px 10px 6px;
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-picker__option {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 590;
    text-align: left;
}

.category-picker__option:hover,
.category-picker__option:focus,
.category-picker__option.is-selected {
    outline: none;
    background: var(--primary-soft);
    color: var(--primary);
}

.category-picker__option.is-selected::after {
    margin-left: auto;
    content: "✓";
    font-weight: 820;
}

.category-picker__empty {
    margin: 0;
    padding: 20px 14px 24px;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: center;
}

.field-error {
    color: var(--danger);
    font-weight: 650;
}

.input-action,
.password-field {
    position: relative;
}

.input-action input,
.password-field input {
    padding-right: 88px;
}

.input-action button,
.password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: var(--surface-muted);
    color: var(--primary);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 760;
    transform: translateY(-50%);
}

.password-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.game-pin-field {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.game-pin-remove {
    margin-top: 4px;
    color: var(--danger);
}

.password-composer {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.password-guidance {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-muted);
}

.password-guidance strong {
    color: var(--primary);
    font-size: 0.86rem;
}

.password-guidance ul {
    display: grid;
    gap: 9px;
    margin: 13px 0 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    list-style: none;
}

.password-guidance li {
    position: relative;
    padding-left: 19px;
}

.password-guidance li::before {
    position: absolute;
    left: 0;
    color: var(--success);
    content: "✓";
    font-weight: 850;
}

.form-hint {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-submit-bar {
    position: sticky;
    z-index: 12;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-3) var(--space-4);
    border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.form-submit-bar__note {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.form-submit-bar__note > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--success-soft);
    color: var(--success);
    font-weight: 850;
}

.form-submit-bar__note p {
    margin: 0;
}

.form-submit-bar__note strong,
.form-submit-bar__note small {
    display: block;
}

.form-submit-bar__note small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.count-badge {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 730;
}

.notice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 17px 19px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
}

.notice-card p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.notice-card--compact {
    display: block;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* == Vault == */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.entry-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 180px;
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.entry-card:hover {
    border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.entry-card__detail {
    display: block;
    color: inherit;
    text-decoration: none;
}

.entry-card__detail:focus-visible {
    border-radius: var(--radius-sm);
    outline: none;
    box-shadow: var(--focus-ring);
}

.entry-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-card__top p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.entry-avatar {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 820;
}

.entry-card__login {
    margin: 18px 0;
    padding: 11px 12px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-card__open {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 760;
}

.entry-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.entry-card__footer a {
    color: var(--primary);
    font-weight: 730;
    text-decoration: none;
}

.entry-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.entry-card__actions form {
    margin: 0;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    cursor: pointer;
    font-size: inherit;
    font-weight: 730;
}

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

/* == Categories & Trash == */
.category-list,
.trash-list {
    display: grid;
    gap: var(--space-3);
}

.category-row,
.trash-row {
    content-visibility: auto;
    contain-intrinsic-size: auto 72px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.category-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 820;
}

.category-row__copy,
.trash-row__copy {
    min-width: 0;
    flex: 1;
}

.category-row__copy p,
.trash-row__copy p {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-row__copy small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.icon-button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
}

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

.trash-row__actions {
    display: flex;
    gap: 8px;
}

.button--small {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.8rem;
}

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

/* == Settings == */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.settings-card {
    padding: clamp(21px, 4vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.settings-card--wide {
    grid-column: 1 / -1;
}

.settings-card__heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.settings-card__heading p,
.settings-note,
.help-columns p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.settings-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 820;
}

.theme-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.theme-choices button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 720;
}

.theme-choices button.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

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

.status-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.status-list dt {
    color: var(--text-muted);
}

.status-list dd {
    margin: 0;
    font-weight: 740;
}

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

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

.settings-note {
    margin-top: 16px;
}

.backup-status {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 780;
    white-space: nowrap;
}

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

.telegram-backup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 18px;
}

.telegram-backup-form {
    display: grid;
    align-content: start;
    gap: 13px;
}

.telegram-backup-form .button {
    width: 100%;
}

.backup-explanation {
    padding: 17px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
    border-radius: 14px;
    background: var(--primary-soft);
}

.backup-explanation ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.telegram-backup-card code {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--surface-muted);
    color: var(--text);
    font-size: 0.78rem;
}

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

.pwa-install-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.pwa-install-actions small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.logout-form {
    margin-top: 36px;
}

.entry-avatar--large {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    font-size: 1.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
    gap: 18px;
}

.detail-card {
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.detail-card__heading {
    margin-bottom: 24px;
}

.detail-field {
    display: grid;
    gap: 8px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.detail-field > span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 680;
}

.detail-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.detail-value strong,
.detail-value a {
    overflow-wrap: anywhere;
}

.detail-value a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.detail-value button {
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 9px;
    background: var(--surface-muted);
    color: var(--primary);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 740;
}

.password-field--saved input {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.04em;
}

.secret-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.secret-actions span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.secret-actions span.is-error {
    color: var(--danger);
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.detail-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

/* == Account detail == */
.account-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 20px;
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 15rem),
        linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 62%, var(--surface)), var(--surface) 58%);
}

.account-hero::after {
    position: absolute;
    right: -38px;
    bottom: -74px;
    width: 210px;
    height: 210px;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.account-hero__identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 470px;
}

.entry-avatar--hero {
    display: grid;
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    border-radius: 22px;
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: var(--shadow-sm);
    font-size: 1.65rem;
    font-weight: 850;
}

.account-hero__copy {
    min-width: 0;
}

.account-hero__copy h1 {
    margin-top: 9px;
    overflow-wrap: anywhere;
    font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.account-hero__copy p {
    margin: 9px 0 0;
    color: var(--text-muted);
}

.account-category {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.account-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
}

.account-action {
    gap: 8px;
    min-height: 48px;
    white-space: nowrap;
}

.account-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.58fr);
    align-items: start;
    gap: 20px;
}

.credential-panel,
.account-info-card,
.account-safety-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.credential-panel {
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 16px 38px color-mix(in srgb, var(--primary) 6%, transparent);
}

.credential-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.encrypted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.credential-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 21px 0;
    border-top: 1px solid var(--line);
}

.credential-row__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 850;
}

.credential-row__content {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.credential-row__content > span:first-child {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 720;
}

.credential-row__content strong,
.credential-row__content a {
    overflow-wrap: anywhere;
    font-size: 0.98rem;
}

.credential-row__content a {
    color: var(--primary);
    font-weight: 760;
    text-decoration: none;
}

.copy-control {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-muted);
    color: var(--primary);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 780;
}

.copy-control--primary {
    border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
    background: var(--primary-soft);
}

.saved-secret {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 430px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.saved-secret input {
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.12em;
    box-shadow: none;
}

.saved-secret button {
    padding: 0 13px;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--primary);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 780;
}

.secret-status {
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 550 !important;
}

.secret-status.is-error {
    color: var(--danger) !important;
}

.account-side {
    display: grid;
    gap: 14px;
}

.account-info-card {
    padding: 22px;
}

.account-info-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.account-info-card__icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 850;
}

.account-info-card__header h2 {
    font-size: 1.08rem;
}

.account-meta {
    margin: 0;
}

.account-meta > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.72fr) minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.account-meta > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-meta dt {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.account-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    font-weight: 760;
}

.account-safety-card {
    display: flex;
    gap: 12px;
    padding: 18px;
    border-color: color-mix(in srgb, var(--success) 28%, var(--line));
    background: color-mix(in srgb, var(--success-soft) 46%, var(--surface));
}

.account-safety-card__icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--success);
    color: var(--on-primary);
    font-weight: 850;
}

.account-safety-card p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.5;
}

.account-trash-form {
    display: grid;
    gap: 7px;
    justify-items: start;
    padding: 4px 3px;
}

.account-trash-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font-weight: 750;
}

.account-trash-form small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.edit-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    width: min(100%, 980px);
    margin: 0 auto 28px;
}

.edit-hero__copy h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
}

.edit-hero__copy > p:last-child {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.edit-hero__identity {
    display: flex;
    flex: 0 0 280px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.edit-hero__identity .entry-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 1.05rem;
}

.edit-hero__identity div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.edit-hero__identity small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.edit-hero__identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vault-form--edit .form-card--password-update {
    border-color: color-mix(in srgb, var(--success) 25%, var(--line));
}

.vault-form--edit .form-submit-bar {
    position: static;
    border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
}

.reauth-dialog {
    width: min(calc(100% - 28px), 440px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.reauth-dialog::backdrop {
    background: color-mix(in srgb, var(--bg) 35%, rgba(8, 10, 24, 0.72));
}

.reauth-dialog form {
    padding: 28px;
}

.reauth-dialog h2 {
    margin-top: 16px;
}

.reauth-dialog form > p:not(.field-error) {
    margin: 9px 0 20px;
    color: var(--text-muted);
    line-height: 1.55;
}

.reauth-dialog__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
}

.reauth-dialog .field-error {
    min-height: 20px;
    margin: 10px 0 0;
}

.empty-state {
    padding: 48px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 16px;
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 1.65rem;
}

/* == Domains == */
.domain-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 28rem),
        var(--surface);
    box-shadow: 0 18px 48px color-mix(in srgb, var(--primary) 7%, transparent);
}

.domain-hero h1 {
    max-width: 760px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.domain-hero p:last-child {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.domain-hero > .button {
    flex: 0 0 auto;
}

.domain-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.domain-summary article {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.domain-summary article.is-urgent {
    border-color: color-mix(in srgb, var(--warning) 46%, var(--line));
    background: color-mix(in srgb, var(--warning-soft) 72%, var(--surface));
}

.domain-summary article.is-danger {
    border-color: color-mix(in srgb, var(--danger) 44%, var(--line));
    background: color-mix(in srgb, var(--danger-soft) 48%, var(--surface));
}

.domain-summary span,
.domain-summary strong {
    display: block;
}

.domain-summary span {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.domain-summary strong {
    margin-top: 7px;
    overflow: hidden;
    color: var(--text);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.35fr) auto auto;
    gap: 9px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
}

.domain-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding-left: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.domain-search > span {
    color: var(--primary);
    font-weight: 850;
}

.domain-search input {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.domain-type-filter select {
    height: 100%;
}

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

.domain-card {
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.domain-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--success);
    content: "";
}

.domain-card--urgent::before {
    background: var(--warning);
}

.domain-card--expired::before {
    background: var(--danger);
}

.domain-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 18px 25px;
}

.domain-card__head > div:first-child {
    min-width: 0;
}

.domain-card__head h3 {
    margin-top: 11px;
    overflow-wrap: anywhere;
    font-size: 1.25rem;
}

.domain-card__head p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.asset-type {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.asset-type--hosting {
    background: var(--info-soft);
    color: var(--info);
}

.remaining-days {
    flex: 0 0 94px;
    text-align: right;
}

.remaining-days strong,
.remaining-days span {
    display: block;
}

.remaining-days strong {
    color: var(--success);
    font-size: 2rem;
    line-height: 1;
}

.remaining-days span {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.66rem;
    line-height: 1.3;
}

.remaining-days--urgent strong {
    color: var(--warning);
}

.remaining-days--expired strong {
    color: var(--danger);
}

.domain-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg);
}

.domain-details div {
    min-width: 0;
    padding: var(--space-3) var(--space-4);
}

.domain-details div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.domain-details div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
}

.domain-details dt {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.domain-details dd {
    margin: 5px 0 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
}

.domain-hosting-relation {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 var(--space-5) var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
}

.domain-hosting-relation > span {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 850;
}

.domain-hosting-relation p,
.domain-hosting-relation small,
.domain-hosting-relation strong {
    display: block;
    margin: 0;
}

.domain-hosting-relation small {
    color: var(--text-muted);
    font-size: 0.66rem;
}

.domain-hosting-relation strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.domain-hosting-field {
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary-soft) 42%, var(--surface));
}

.domain-hosting-field > label {
    color: var(--text-muted);
}

.renewal-label {
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 780;
}

.renewal-label--urgent {
    color: var(--warning);
}

.renewal-label--expired {
    color: var(--danger);
}

.domain-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.76rem;
    font-weight: 740;
}

.domain-card__actions a {
    color: var(--primary);
    text-decoration: none;
}

.domain-card__actions form {
    margin: 0;
}

.asset-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.asset-type-options legend {
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 680;
}

.asset-type-options legend strong {
    color: var(--danger);
}

.asset-type-options label {
    position: relative;
    cursor: pointer;
}

.asset-type-options input {
    position: absolute;
    opacity: 0;
}

.asset-type-options label > span {
    display: block;
    min-height: 84px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.asset-type-options label > span strong,
.asset-type-options label > span small {
    display: block;
}

.asset-type-options label > span small {
    margin-top: 5px;
    color: var(--text-muted);
}

.asset-type-options input:checked + span {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.asset-type-options input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--primary) 24%, transparent);
    outline-offset: 2px;
}

.domain-form-grid {
    gap: 18px;
}

.input-with-suffix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.input-with-suffix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.input-with-suffix input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.input-with-suffix > span {
    padding: 0 15px;
    color: var(--text-muted);
    font-weight: 760;
}

/* == Mobile navigation == */
.bottom-nav {
    display: none;
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }

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

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

    .page-content {
        padding: 28px 20px 40px;
    }
}

@media (max-width: 760px) {
    .sidebar {
        display: none;
    }

    .app-shell {
        margin-left: 0;
        padding-bottom: calc(var(--bottom-nav-height) + 28px + env(safe-area-inset-bottom));
    }

    .topbar {
        min-height: 56px;
        padding: 0 16px;
    }

    .page-content {
        padding: 20px 16px 36px;
    }

    .create-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
    }

    .create-hero .back-link {
        margin-bottom: 22px;
    }

    .create-security-badge {
        flex-basis: auto;
        width: 100%;
    }

    .welcome-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .welcome-panel .button {
        width: 100%;
    }

    .welcome-panel__add {
        align-self: stretch;
    }

    .vault-search {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .vault-search .button {
        width: auto;
        padding-inline: 14px;
    }

    .domain-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 24px 20px;
    }

    .domain-hero > .button {
        width: 100%;
    }

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

    .domain-filters {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .domain-search,
    .domain-type-filter {
        grid-column: 1 / -1;
    }

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

    .section-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading__actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .form-grid,
    .entry-grid,
    .settings-grid,
    .help-columns,
    .detail-grid,
    .password-composer {
        grid-template-columns: 1fr;
    }

    .settings-card--wide {
        grid-column: auto;
    }

    .telegram-backup-grid {
        grid-template-columns: 1fr;
    }

    .telegram-backup-card .settings-card__heading {
        flex-wrap: wrap;
    }

    .telegram-backup-card .backup-status {
        margin-left: 53px;
    }

    .field--full {
        grid-column: auto;
    }

    .form-card__heading--split {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .form-card__heading--split .form-card__aside-link {
        grid-column: 2;
        justify-self: start;
    }

    .category-picker__panel,
    .category-picker.opens-up .category-picker__panel {
        position: fixed;
        z-index: 40;
        top: auto;
        right: 12px;
        bottom: calc(var(--bottom-nav-height) + 20px + env(safe-area-inset-bottom));
        left: 12px;
        max-height: min(68vh, 560px);
        padding-top: 10px;
        border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md);
        overscroll-behavior: contain;
        box-shadow: var(--shadow-lg);
    }

    .category-picker__panel::before {
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto 10px;
        border-radius: var(--radius-pill);
        background: var(--line);
        content: "";
    }

    .category-picker__options {
        max-height: min(48vh, 420px);
    }

    .category-picker__option {
        min-height: 48px;
    }

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

    .form-actions .button--primary {
        grid-row: 1;
    }

    .form-submit-bar {
        position: sticky;
        bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom));
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

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

    .page-heading--split,
    .notice-card,
    .trash-row {
        align-items: stretch;
        flex-direction: column;
    }

    .edit-hero,
    .account-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .edit-hero__identity {
        flex-basis: auto;
        width: 100%;
    }

    .account-hero__identity {
        align-items: flex-start;
        flex: 0 1 auto;
    }

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

    .account-hero__actions .account-action:only-child {
        grid-column: 1 / -1;
    }

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

    .credential-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .credential-row__icon {
        width: 40px;
        height: 40px;
    }

    .credential-row > .copy-control {
        grid-column: 2;
        justify-self: stretch;
        width: 100%;
    }

    .credential-panel__header {
        align-items: flex-start;
    }

    .hero-stat {
        align-self: flex-start;
    }

    .trash-row__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .trash-row__actions .button {
        width: 100%;
    }

    .detail-value {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-value button {
        width: 100%;
    }

    .bottom-nav {
        position: fixed;
        z-index: 20;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        background: var(--surface);
        box-shadow: none;
    }

    .bottom-nav a {
        display: grid;
        justify-items: center;
        gap: 3px;
        min-height: 56px;
        padding: 8px 2px;
        border-radius: var(--radius-sm);
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }

    .bottom-nav a svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .bottom-nav a.is-active {
        color: var(--primary);
        background: transparent;
        box-shadow: inset 0 2px 0 var(--primary);
    }
}

@media (max-width: 420px) {
    .domain-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 24px 20px;
    }

    .domain-hero > .button {
        width: 100%;
    }

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

    .domain-filters {
        grid-template-columns: 1fr 1fr;
    }

    .domain-search {
        grid-column: 1 / -1;
    }

    .domain-type-filter {
        grid-column: 1 / -1;
    }

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

    .domain-card__head {
        gap: 12px;
        padding: 20px 18px 16px 21px;
    }

    .remaining-days {
        flex-basis: 80px;
    }

    .domain-details {
        margin-right: var(--space-4);
        margin-left: var(--space-4);
    }

    .domain-card__footer {
        align-items: flex-start;
        flex-direction: column;
        padding: var(--space-4);
    }

    .domain-card__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .asset-type-options,
    .domain-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 22px;
    }

    .theme-toggle {
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
    }

    .account-hero {
        padding: 22px 18px;
    }

    .account-hero__identity {
        flex-direction: column;
    }

    .entry-avatar--hero {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 18px;
    }

    .account-hero__actions {
        grid-template-columns: 1fr;
    }

    .credential-panel {
        padding: 20px 17px;
    }

    .credential-panel__header {
        flex-direction: column;
    }

    .saved-secret {
        grid-template-columns: 1fr;
    }

    .saved-secret button {
        min-height: 40px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

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