/* Colors: light by default; dark from the OS setting unless the switcher forces light,
   or when the switcher forces dark (data-theme on <html>, set by theme.js). */
:root {
    color-scheme: light;
    --bg: #f5f7f7; --fg: #14201e; --muted: #566663; --card: #fff; --border: #d6dfdd;
    --accent: #0f766e; --accent-fg: #fff; --error: #b42318; --notice-bg: #e3f2ef; --danger: #b42318;
    --surface: #eef3f2; --link: #1d4ed8;
    --shadow: 0 1px 2px rgb(15 30 28 / .05), 0 2px 8px rgb(15 30 28 / .06);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0e1413; --fg: #e4eeec; --muted: #92a4a0; --card: #16201e; --border: #283633;
        --accent: #2dd4bf; --accent-fg: #042f2a; --error: #f6a5a5; --notice-bg: #10312c; --danger: #f6a5a5;
        --surface: #1b2826; --link: #8ab4f8;
        --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 2px 8px rgb(0 0 0 / .25);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e1413; --fg: #e4eeec; --muted: #92a4a0; --card: #16201e; --border: #283633;
    --accent: #2dd4bf; --accent-fg: #042f2a; --error: #f6a5a5; --notice-bg: #10312c; --danger: #f6a5a5;
    --surface: #1b2826; --link: #8ab4f8;
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 2px 8px rgb(0 0 0 / .25);
}
/* One content width for every page (header and main). */
:root { --page-width: 72rem; }
/* Always reserve the scrollbar's space, so the centered column doesn't shift between short and long pages. */
html { scrollbar-gutter: stable; }
:root { --radius: 8px; --radius-sm: 6px; --control-h: 2.5rem; }
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px;
    background: var(--bg); color: var(--fg); margin: 0; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 0; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
/* External URLs (the entry's URL) in blue, so they stand apart from in-app links like the entry name. */
a.url-link { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.mono, pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
/* Header content uses the same centered column as <main>. */
.bar { max-width: var(--page-width); margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; gap: 1.25rem; min-height: 3.5rem; }
header form { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.02rem; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.brand::before { content: ""; width: .75rem; height: .75rem; border-radius: 3px; background: var(--accent); }
header nav { display: flex; gap: .25rem; }
header nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: .35rem .7rem; border-radius: var(--radius-sm); }
header nav a:hover { color: var(--fg); background: var(--surface); }
header nav a[aria-current="page"] { color: var(--accent); background: var(--notice-bg); }

main { max-width: var(--page-width); margin: 2rem auto 0; padding: 0 1rem 50vh; }

/* Page heading row: title left, actions right */
.toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.toolbar h1 { margin: 0; }
.toolbar form { margin: 0; }
.back { display: inline-block; margin-bottom: .75rem; font-size: .95rem; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* Cards */
.card, .panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 1.5rem; }
.panel { display: grid; gap: .9rem; padding: 1.25rem; margin-top: 1.5rem; }
.panel > button, .inline-form > button { justify-self: start; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }

/* Buttons */
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: var(--control-h); padding: 0 1.1rem;
    font: inherit; font-weight: 500; line-height: 1; border: 1px solid transparent; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--accent-fg); cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: filter .15s, background-color .15s, border-color .15s; }
button:hover, a.button:hover { filter: brightness(1.08); text-decoration: none; }
button:active, a.button:active { filter: brightness(.95); }
button:disabled, button:disabled:hover { opacity: .5; filter: none; cursor: not-allowed; }
button.secondary, a.button.secondary { background: var(--card); color: var(--fg); border-color: var(--border); }
button.secondary:hover, a.button.secondary:hover { filter: none; background: var(--surface); }
button.danger, a.button.danger { background: var(--danger); color: var(--card); }
.delete-form { max-width: 32rem; }
.delete-form h1, .delete-form h2 { margin: 0; font-size: 1.25rem; }
.delete-form p { margin: 0; }
/* Standalone delete page: the card in the middle of the screen. */
.center-page { max-width: 32rem; margin: 10vh auto 0; }
.center-page .delete-form { margin-top: 0; }
/* Modal dialog (native <dialog>, centered by the browser) */
dialog.modal { padding: 0; border: 0; background: transparent; width: min(32rem, calc(100% - 2rem)); max-width: none; color: var(--fg); }
dialog.modal .delete-form { margin: 0; max-width: none; box-shadow: 0 10px 40px rgb(0 0 0 / .35); }
dialog.modal::backdrop { background: rgb(0 0 0 / .55); }
.delete-form .form-actions { display: flex; justify-content: flex-end; gap: .75rem; }
button.small, a.button.small { height: 2rem; padding: 0 .75rem; font-size: .92rem; }

/* Form controls */
label { display: grid; gap: .35rem; font-size: .95rem; font-weight: 500; }
input, textarea { font: inherit; font-weight: 400; width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--card); color: var(--fg); transition: border-color .15s, box-shadow .15s; }
input { height: var(--control-h); }
textarea { resize: vertical; line-height: 1.5; }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--error); }
.hint { margin: 0; font-size: .9rem; font-weight: 400; color: var(--muted); }
.error { color: var(--error); margin: 0; font-size: .95rem; }
.required { color: var(--error); font-weight: 600; }

/* Messages */
.notice { background: var(--notice-bg); border-left: 3px solid var(--accent); padding: .7rem .9rem; border-radius: var(--radius-sm); margin: 0 0 1.25rem; }
p.error[role="alert"] { background: color-mix(in srgb, var(--error) 10%, transparent); border-left: 3px solid var(--error); padding: .7rem .9rem; border-radius: var(--radius-sm); margin: 0 0 1.25rem; }

/* Sign-in pages */
.auth-card { max-width: 24rem; margin: 12vh auto 0; padding: 2rem; display: grid; gap: 1rem; }
.auth-card h1 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; gap: .55rem; }
.auth-card h1::before { content: ""; width: .9rem; height: .9rem; border-radius: 4px; background: var(--accent); }
.auth-card button { width: 100%; }
.auth-card p.error[role="alert"] { margin: 0; }
.theme-corner { position: fixed; top: .75rem; right: .75rem; }

/* Data list */
/* Second row under the heading: search box (fills the row) + "New data" */
.list-controls { display: flex; gap: .75rem; align-items: center; margin: 0 0 1rem; }
.list-controls .button { height: 2.75rem; }
.search { position: relative; flex: 0 1 26rem; min-width: 0; margin: 0; }
.list-controls .button { margin-left: auto; }
.search input { height: 2.75rem; padding-left: 2.4rem; }
.search::before { content: "⌕"; position: absolute; left: .85rem; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 1.25rem; pointer-events: none; }
/* While a search request runs (search.js), the magnifier becomes a spinner. */
.search.is-loading::before { content: ""; left: .95rem; width: 1rem; height: 1rem; border: 2px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: search-spin .7s linear infinite; }
@keyframes search-spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .search.is-loading::before { animation-duration: 2s; } }
.table-card { padding: 0; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { background: var(--surface); font-size: .84rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.data-table td { word-break: break-word; }
.data-table td:first-child a { font-weight: 600; text-decoration: none; }
.data-table td:first-child a:hover { text-decoration: underline; }
.data-table td.actions { text-align: right; white-space: nowrap; }
.data-table td.actions a { font-weight: 500; }
.data-table time { font-variant-numeric: tabular-nums; }
.data-table th a { color: inherit; text-decoration: none; }
.data-table th a:hover { color: var(--fg); }
.data-table th[aria-sort] a { color: var(--fg); }
.data-table th a { display: inline-flex; align-items: center; gap: .4em; }
/* Sort icon: ▲ over ▼, both dim; the active direction is bright (ascending = ▼, descending = ▲). */
.sort-icon { width: .75em; height: 1.2em; flex: none; }
.sort-icon path { fill: currentColor; opacity: .45; }
th[aria-sort="ascending"] .sort-icon .down, th[aria-sort="descending"] .sort-icon .up { fill: var(--accent); opacity: 1; }
.empty { margin: 0; padding: 3rem 1rem; text-align: center; }
/* Phone: keep Name, User, Updated (+ Edit); hide URL, Email, Created. */
@media (max-width: 700px) { .data-table td:nth-child(2), .data-table th:nth-child(2), .data-table td:nth-child(4), .data-table th:nth-child(4),
    .data-table td:nth-child(5), .data-table th:nth-child(5) { display: none; } }

/* Pager */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: .75rem 1rem;
    border-top: 1px solid var(--border); background: var(--surface); font-size: .95rem; }
.pager .pages, .pager .per-page { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.pager a, .pager .current { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .5rem;
    border-radius: var(--radius-sm); text-decoration: none; }
.pager a:hover { background: var(--card); }
.pager .current { font-weight: 600; background: var(--accent); color: var(--accent-fg); }

/* Data form */
.data-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; }
.data-form .field { display: grid; gap: .35rem; align-content: start; }
.data-form .full { grid-column: 1 / -1; }
.data-form .form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 700px) { .data-form { grid-template-columns: 1fr; } }
.data-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.data-form legend { padding: 0; margin-bottom: .35rem; font-size: .95rem; font-weight: 500; }
.secret-rows { display: grid; gap: .75rem; }
.secret-row { display: grid; gap: .5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.secret-row-head { display: flex; gap: .75rem; align-items: end; }
.secret-row-head label { flex: 1; min-width: 0; }
.secret-row-head button { height: var(--control-h); }
.data-form .add-secret { justify-self: start; }

/* Data detail page */
.fields { display: grid; grid-template-columns: 9rem 1fr; margin: 0; }
.fields dt, .fields dd { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.fields dt { color: var(--muted); font-size: .95rem; font-weight: 500; }
.fields dd { margin: 0; min-width: 0; }
.fields dt:last-of-type, .fields dd:last-of-type { border-bottom: 0; }
.fields dt:first-of-type, .fields dd:first-of-type { padding-top: 0; }
.field-row { display: flex; gap: .75rem; align-items: center; }
.field-row > :first-child { flex: 1; min-width: 0; word-break: break-all; }
.secret-box { display: grid; gap: .6rem; justify-items: start; }
.secret-box pre { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem;
    white-space: pre-wrap; word-break: break-all; max-height: 20rem; overflow: auto; margin: 0; }
/* Each secret's label sits above its box across the full width, so long labels (URLs) are never cut off. */
.fields dt.secret-label { grid-column: 1 / -1; border-bottom: 0; padding-bottom: .4rem; overflow-wrap: anywhere; }
.fields dt.secret-label + dd { grid-column: 1 / -1; padding-top: 0; }
.notes { white-space: normal; }
.fields dd.meta { font-variant-numeric: tabular-nums; }

/* Info: Markdown editor (markdown.js) and rendered descriptions */
.md-head { display: flex; align-items: end; justify-content: space-between; gap: .75rem; }
.md-tabs { display: flex; gap: .25rem; }
.md-tabs button { background: transparent; color: var(--muted); border: 0; border-radius: var(--radius-sm); padding: .3rem .7rem; font-weight: 500; height: auto; }
.md-tabs button:hover { color: var(--fg); background: var(--surface); }
.md-tabs button[aria-selected="true"] { color: var(--accent); background: var(--notice-bg); }
.md-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; }
.md-toolbar button { min-width: 2.4rem; }
.md-editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }
.md-preview { min-height: 12rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow-wrap: anywhere; }
.markdown { overflow-wrap: anywhere; line-height: 1.6; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { margin: 1.4rem 0 .6rem; line-height: 1.3; }
.markdown h1 { font-size: 1.4rem; }
.markdown h2 { font-size: 1.25rem; }
.markdown h3, .markdown h4, .markdown h5, .markdown h6 { font-size: 1.05rem; }
.markdown p, .markdown ul, .markdown ol, .markdown pre, .markdown blockquote, .markdown table { margin: 0 0 .9rem; }
.markdown ul, .markdown ol { padding-left: 1.5rem; }
.markdown li > ul, .markdown li > ol { margin-bottom: 0; }
.markdown code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: .05rem .3rem; font-size: .9em; }
.markdown pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .9rem; overflow: auto; max-height: 40rem; }
.markdown pre code { background: none; border: 0; padding: 0; font-size: .9rem; }
.md-preview pre, .md-preview code { background: var(--card); }
.markdown blockquote { border-left: 3px solid var(--border); padding-left: .9rem; color: var(--muted); margin-left: 0; }
.markdown table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.markdown th, .markdown td { border: 1px solid var(--border); padding: .4rem .6rem; text-align: left; vertical-align: top; overflow-wrap: normal; } /* the table scrolls instead */
.markdown th { background: var(--surface); }
.markdown hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.markdown img { max-width: 100%; }
.info-dates { margin: 1.25rem 0 0; padding-top: .9rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } .fields dt { border-bottom: 0; padding-bottom: 0; } }

/* Settings / 2FA */
.inline-form { display: grid; gap: .75rem; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 1.5rem; }
.qr { display: block; margin: .75rem 0; background: #fff; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.secret { font-size: 1.05rem; letter-spacing: .05em; user-select: all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; max-width: 36rem; }
.codes code { display: block; padding: .6rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; font-size: 1.02rem; user-select: all; }

/* Error pages */
.error-page { text-align: center; margin-top: 15vh; }
.error-page h1 { font-size: 3.5rem; margin: 0 0 .5rem; color: var(--accent); }

/* Theme switcher (icon only) */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0;
    background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.theme-toggle:hover { color: var(--fg); background: var(--surface); filter: none; }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle [data-icon] { display: none; }
/* Icon of the theme in use: the forced one, or the OS preference until the first click. */
:root:not([data-theme]) .theme-toggle [data-icon="light"],
:root[data-theme="light"] .theme-toggle [data-icon="light"],
:root[data-theme="dark"] .theme-toggle [data-icon="dark"] { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle [data-icon="light"] { display: none; }
    :root:not([data-theme]) .theme-toggle [data-icon="dark"] { display: block; }
}

/* Settings-style sections: heading + explanation left, form card right; stacked on narrow screens. */
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.section-intro h2 { margin-bottom: .5rem; }
.section-intro p { margin: 0 0 .6rem; }
.section-intro .steps { padding-left: 1.2rem; margin: 0 0 .6rem; }
.section-intro .steps li { margin-bottom: .35rem; }
.section-body .panel { margin-top: 0; }
.section-body .panel .notice { margin: 0; }
.section-body h3 { margin: 0; font-size: 1rem; }
/* Short inputs (a password or a code) don't need the full card width. */
.section-body input { max-width: 24rem; }
/* The wrapper must be as narrow as its input, or the show/hide button ends up outside it. */
.section-body .password-field { max-width: 24rem; }
/* Backup: the explanation is the main content, the form is short (2/3 : 1/3). */
.section.intro-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 800px) { .section, .section.intro-wide { grid-template-columns: 1fr; gap: 1rem; } }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
    background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.badge.on { background: var(--notice-bg); color: var(--accent); border-color: transparent; }
.badge.off { color: var(--error); }

header nav .nav-icon { display: none; }

/* Phone (Android style): the top bar keeps brand, theme and Sign out; the menu becomes a fixed
   bottom navigation (icon above label) in the order Data, Info, Backup, Security. */
@media (max-width: 700px) {
    .bar { gap: .75rem; padding: .5rem 1rem; min-height: 3.25rem; }
    .bar .user-email { display: none; }
    header nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
        padding: .3rem .5rem calc(.3rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--border);
        box-shadow: 0 -2px 10px rgb(0 0 0 / .08); }
    header nav a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .3rem 0; font-size: .86rem; }
    header nav a:hover, header nav a[aria-current="page"] { background: transparent; }
    header nav .nav-icon { display: block; width: 3.5rem; height: 1.9rem; padding: .25rem 1rem; border-radius: 999px; }
    header nav a[aria-current="page"] .nav-icon { background: var(--notice-bg); }
    header nav [data-nav="data"] { order: 1; }
    header nav [data-nav="info"] { order: 2; }
    header nav [data-nav="backup"] { order: 3; }
    header nav [data-nav="security"] { order: 4; }

    /* List: the table uses the full width (no side margin, no rounded card edges). */
    .table-card { margin: 0 -1rem; border-radius: 0; border-left: 0; border-right: 0; }
    .data-table th, .data-table td { padding: .6rem .5rem; }
}

/* Bottom sheets on phones: sign-in card and the delete dialog slide up from the bottom. */
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes backdrop-in { from { opacity: 0; } }
@media (max-width: 700px) {
    .auth-card { position: fixed; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; border-radius: 1rem 1rem 0 0; border-bottom: 0;
        padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); animation: sheet-up .3s ease-out; }
    dialog.modal { width: 100%; max-width: 100%; margin: auto 0 0; animation: sheet-up .25s ease-out; }
    dialog.modal::backdrop { animation: backdrop-in .25s ease-out; }
    dialog.modal.closing { animation: sheet-down .2s ease-in forwards; }
    dialog.modal .delete-form { border-radius: 1rem 1rem 0 0; border-bottom: 0; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
    /* Drag handle, Android style */
    .auth-card::before, dialog.modal .delete-form::before { content: ""; justify-self: center; width: 2.5rem; height: .25rem; border-radius: 999px; background: var(--border); }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
    .auth-card, dialog.modal, dialog.modal::backdrop, dialog.modal.closing { animation: none; }
}

/* Show/hide password button, inside the right end of the input */
.password-field { position: relative; }
.password-field input { padding-right: 2.75rem; }
.password-field .password-toggle { position: absolute; right: .3rem; bottom: calc((var(--control-h) - 2rem) / 2); width: 2rem; height: 2rem; padding: 0;
    background: transparent; color: var(--muted); border: 0; }
.password-toggle:hover { color: var(--fg); background: var(--surface); filter: none; }
.password-toggle[hidden] { display: none; }
.password-toggle svg { width: 1.1rem; height: 1.1rem; }
.password-toggle [data-icon="hide"], .password-toggle[aria-pressed="true"] [data-icon="show"] { display: none; }
.password-toggle[aria-pressed="true"] [data-icon="hide"] { display: block; }
