/* ---------------------------------------------------------------------------
   Terminator — Task Defense System
   A dark, chrome-and-red HUD aesthetic with calm, readable task cards.
--------------------------------------------------------------------------- */

:root {
    color-scheme: dark;
    --bg: #0a0c0e;
    --bg-raised: #111519;
    --panel: #151a1f;
    --panel-2: #1a2026;
    --panel-3: #20272e;
    --line: #2b343c;
    --line-bright: #3c4852;
    --text: #eceae4;
    --text-dim: #b3bcc4;
    --muted: #85909a;
    --red: #e63329;
    --red-bright: #ff5a4f;
    --red-deep: #8f1712;
    --amber: #eaa63c;
    --amber-text: #f0c37e;
    --amber-label: rgba(234, 166, 60, 0.75);
    --amber-border: rgba(234, 166, 60, 0.35);
    --amber-faint: rgba(234, 166, 60, 0.08);
    --amber-soft: rgba(234, 166, 60, 0.12);
    --amber-tint: rgba(234, 166, 60, 0.13);
    --amber-strong: rgba(234, 166, 60, 0.3);
    --green: #58d68d;
    --info: #6aa7d8;
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    --body-glow-1: rgba(230, 51, 41, 0.13);
    --body-glow-2: rgba(90, 120, 140, 0.09);
    --body-bg-top: #0c0f12;
    --body-bg-bottom: #08090b;
    --grid-line: rgba(255, 255, 255, 0.022);
    --scanline: rgba(255, 255, 255, 0.028);
    --hover: rgba(255, 255, 255, 0.07);
    --hover-soft: rgba(255, 255, 255, 0.035);
    --glass: rgba(0, 0, 0, 0.28);
    --glass-strong: rgba(0, 0, 0, 0.25);
    --input-bg: #0e1216;
    --placeholder: #5d6872;
    --btn-hover: #28313a;
    --btn-border-hover: #4b5a66;
    --avatar-a: #343d45;
    --avatar-b: #20272d;
    --topbar-a: rgba(18, 22, 26, 0.97);
    --topbar-b: rgba(12, 15, 18, 0.94);
    --board-empty-a: rgba(26, 32, 38, 0.92);
    --board-empty-b: rgba(15, 18, 22, 0.92);
    --bucket-a: rgba(29, 35, 41, 0.96);
    --bucket-b: rgba(18, 22, 26, 0.98);
    --card-a: #212830;
    --card-b: #1a2026;
    --awaiting-card-a: #23211c;
    --awaiting-card-b: #1a1a18;
    --awaiting-bg: rgba(0, 0, 0, 0.22);
    --menu-a: #222a31;
    --menu-b: #161b20;
    --modal-a: #1c2228;
    --modal-b: #12161a;
    --toast-a: #232b32;
    --toast-b: #171c21;
    --auth-a: rgba(29, 35, 41, 0.97);
    --auth-b: rgba(13, 16, 20, 0.98);
    --scrollbar: #39434c;
    --empty-hint: #66727c;
    --grip: #5c6873;
    --chip-case-text: #cfd7dd;
    --chip-case-border: #3a4650;
    --chip-due-text: #f0c37e;
    --chip-overdue-text: #ff9c94;
    --danger-text: #ff8a82;
    --danger-text-strong: #ffb3ad;
    --meta-label: #6f7b85;
    --task-border-left: #47535d;
    --task-border-hover: #4a5762;
    --divider: rgba(255, 255, 255, 0.06);
    --term-bg: rgba(0, 0, 0, 0.18);
    --alert-bg: rgba(0, 0, 0, 0.24);
    --backdrop: rgba(4, 6, 8, 0.74);
    --eye-socket: #210b0b;
    --eye-pupil: #120506;
    --eye-glint: #ffd9d4;
    --shadow-panel: 0 18px 40px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
    --shadow-topbar: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 18px rgba(0, 0, 0, 0.32);
    --shadow-menu: 0 18px 40px rgba(0, 0, 0, 0.6);
    --shadow-modal: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(230, 51, 41, 0.18);
    --shadow-toast: 0 14px 34px rgba(0, 0, 0, 0.55);
    --shadow-auth: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(230, 51, 41, 0.08);
    --radius: 12px;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f1ea;
    --bg-raised: #fffdf8;
    --panel: #fffdf8;
    --panel-2: #f7f3ec;
    --panel-3: #ebe5db;
    --line: #d8d1c5;
    --line-bright: #bfb7aa;
    --text: #1b2126;
    --text-dim: #46515a;
    --muted: #66727c;
    --red: #b3261e;
    --red-bright: #a9231c;
    --red-deep: #7d1610;
    --amber: #8a5a0a;
    --amber-text: #7a4f08;
    --amber-label: #8a5a0a;
    --amber-border: rgba(138, 90, 10, 0.35);
    --amber-faint: rgba(138, 90, 10, 0.07);
    --amber-soft: rgba(138, 90, 10, 0.1);
    --amber-tint: rgba(138, 90, 10, 0.1);
    --amber-strong: rgba(138, 90, 10, 0.28);
    --green: #1c6b45;
    --info: #2b6f9e;
    --body-glow-1: rgba(179, 38, 30, 0.08);
    --body-glow-2: rgba(60, 90, 110, 0.06);
    --body-bg-top: #fbf8f2;
    --body-bg-bottom: #ede8df;
    --grid-line: rgba(0, 0, 0, 0.035);
    --scanline: rgba(0, 0, 0, 0.03);
    --hover: rgba(0, 0, 0, 0.055);
    --hover-soft: rgba(0, 0, 0, 0.035);
    --glass: rgba(255, 255, 255, 0.65);
    --glass-strong: rgba(0, 0, 0, 0.04);
    --input-bg: #fffdf8;
    --placeholder: #8a949c;
    --btn-hover: #e2dcd2;
    --btn-border-hover: #a99f91;
    --avatar-a: #d8d0c4;
    --avatar-b: #c7bdb0;
    --topbar-a: rgba(252, 249, 243, 0.97);
    --topbar-b: rgba(242, 237, 229, 0.96);
    --board-empty-a: rgba(255, 253, 248, 0.96);
    --board-empty-b: rgba(244, 239, 231, 0.96);
    --bucket-a: rgba(255, 253, 248, 0.98);
    --bucket-b: rgba(247, 243, 236, 0.98);
    --card-a: #fffdf8;
    --card-b: #f7f2ea;
    --awaiting-card-a: #fff8e8;
    --awaiting-card-b: #f8efdc;
    --awaiting-bg: rgba(0, 0, 0, 0.035);
    --menu-a: #fffdf8;
    --menu-b: #f4efe7;
    --modal-a: #fffdf8;
    --modal-b: #f4efe7;
    --toast-a: #fffdf8;
    --toast-b: #f4efe7;
    --auth-a: rgba(255, 253, 248, 0.98);
    --auth-b: rgba(244, 239, 231, 0.99);
    --scrollbar: #c4bbae;
    --empty-hint: #7d878e;
    --grip: #8b948f;
    --chip-case-text: #34424c;
    --chip-case-border: #c3ccd2;
    --chip-due-text: #7a4f08;
    --chip-overdue-text: #a52a22;
    --danger-text: #a52a22;
    --danger-text-strong: #8f1712;
    --meta-label: #6b757d;
    --task-border-left: #c3b9ab;
    --task-border-hover: #a99e8f;
    --divider: rgba(0, 0, 0, 0.08);
    --term-bg: rgba(0, 0, 0, 0.025);
    --alert-bg: rgba(0, 0, 0, 0.035);
    --backdrop: rgba(35, 30, 24, 0.45);
    --eye-socket: #fff0ee;
    --eye-pupil: #2a0b08;
    --eye-glint: #ffffff;
    --shadow-panel: 0 18px 40px rgba(40, 35, 28, 0.14), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    --shadow-topbar: 0 8px 30px rgba(40, 35, 28, 0.12);
    --shadow-card: 0 3px 10px rgba(40, 35, 28, 0.08);
    --shadow-card-hover: 0 8px 18px rgba(40, 35, 28, 0.12);
    --shadow-menu: 0 18px 40px rgba(40, 35, 28, 0.22);
    --shadow-modal: 0 30px 90px rgba(40, 35, 28, 0.32), 0 0 0 1px rgba(179, 38, 30, 0.12);
    --shadow-toast: 0 14px 34px rgba(40, 35, 28, 0.18);
    --shadow-auth: 0 30px 80px rgba(40, 35, 28, 0.22), 0 0 60px rgba(179, 38, 30, 0.06);
}

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

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(1200px 700px at 12% -10%, var(--body-glow-1), transparent 60%),
        radial-gradient(900px 600px at 110% 10%, var(--body-glow-2), transparent 55%),
        linear-gradient(180deg, var(--body-bg-top) 0%, var(--bg) 45%, var(--body-bg-bottom) 100%);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        var(--scanline) 0px,
        var(--scanline) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.5;
    animation: scan-drift 12s linear infinite;
}

@keyframes scan-drift {
    from { background-position-y: 0; }
    to { background-position-y: 120px; }
}

a {
    color: var(--red-bright);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

h1, h2, h3, p, dl, dd {
    margin: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red-bright);
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid var(--line-bright);
    background: var(--panel-3);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease,
        box-shadow 0.15s ease;
}

.btn:hover {
    background: var(--btn-hover);
    border-color: var(--btn-border-hover);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.context-menu button:focus-visible,
.awaiting-toggle:focus-visible,
.bucket-grip:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(180deg, #f04a3f 0%, #cf2a20 60%, #b41f16 100%);
    border-color: #ff7065;
    color: #fff8f7;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(230, 51, 41, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #ff5c50 0%, #e2342a 60%, #c5271d 100%);
    border-color: #ff8b82;
}

.btn-danger {
    background: linear-gradient(180deg, #6d1713, #4a0f0c);
    border-color: #a02a22;
    color: #ffd7d3;
}

.btn-danger:hover {
    background: linear-gradient(180deg, #87201a, #5d130f);
    border-color: var(--red-bright);
}

.btn-ghost {
    background: var(--hover-soft);
    border-color: var(--line);
    color: var(--text-dim);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--hover);
}

.btn-quiet {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    padding: 8px 10px;
}

.btn-quiet:hover {
    background: var(--hover);
    border-color: var(--line);
    color: var(--text);
}

.btn-block {
    width: 100%;
    padding: 11px 16px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
    color: var(--text);
    background: var(--hover);
    border-color: var(--line);
}

/* ---------------------------------------------------------------------------
   Top bar
--------------------------------------------------------------------------- */

.board-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px 22px;
    background: linear-gradient(180deg, var(--topbar-a), var(--topbar-b));
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-topbar);
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 51, 41, 0.7) 18%, rgba(230, 51, 41, 0.18) 55%, transparent);
}

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

.brand-eye {
    display: inline-flex;
    width: 44px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(230, 51, 41, 0.55));
}

.brand-eye svg {
    width: 100%;
    height: 100%;
}

.eye-socket {
    fill: var(--eye-socket);
    stroke: var(--red);
    stroke-width: 1.5;
}

.eye-iris {
    fill: var(--red);
    animation: iris-pulse 4.5s ease-in-out infinite;
}

.eye-pupil {
    fill: var(--eye-pupil);
}

.eye-glint {
    fill: var(--eye-glint);
}

@keyframes iris-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 17px;
    letter-spacing: 0.16em;
    font-weight: 800;
}

.hud {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--glass);
    margin-left: 4px;
}

.hud-item {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 44px;
}

.hud-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.hud-value {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-top: 3px;
}

.hud-item--alert .hud-value {
    color: var(--amber);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(88, 214, 141, 0.8);
    animation: status-pulse 2.4s ease-in-out infinite;
    flex: 0 0 auto;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.topbar-quote {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: 540px;
    margin: 0 0 0 4px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--text-dim);
    transition: border-color 0.3s ease;
}

.topbar-quote:hover {
    border-left-color: var(--red);
}

.quote-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.quote-line {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.quote-mark {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1;
    color: var(--red);
    opacity: 0.8;
}

.quote-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.quote-credit {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.topbar-quote.is-changing .quote-inner {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(2px);
}

.topbar-quote.is-entering .quote-inner {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
    transition: none;
}

.quote-cursor {
    flex: 0 0 auto;
    width: 6px;
    height: 13px;
    margin-left: 2px;
    background: var(--red);
    opacity: 0.85;
    animation: quote-cursor-blink 1.1s steps(1, end) infinite;
}

@keyframes quote-cursor-blink {
    0%, 49% { opacity: 0.85; }
    50%, 100% { opacity: 0; }
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 5px;
}

.topbar-tool {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border-color: var(--line);
    background: var(--hover-soft);
}

.topbar-tool .icon {
    width: 16px;
    height: 16px;
}

.undo-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.undo-btn:disabled:hover {
    color: var(--muted);
    background: var(--hover-soft);
    border-color: var(--line);
}

.upload-form {
    margin: 0;
}

.upload-label {
    min-height: 30px;
    padding: 0 11px;
    gap: 6px;
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
}

.upload-label .icon {
    width: 13px;
    height: 13px;
}

.upload-label:hover {
    background: var(--hover);
    border-color: var(--line-bright);
    color: var(--text);
}

.account-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass-strong);
    max-width: 240px;
}

.account-divider {
    width: 1px;
    height: 18px;
    background: var(--line);
    flex: 0 0 auto;
}

.user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--avatar-a), var(--avatar-b));
    border: 1px solid var(--line-bright);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    flex: 0 0 auto;
}

.user-name {
    font-size: 12px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.account-pill .icon-btn {
    border-radius: 50%;
}

.account-pill .logout-form {
    display: flex;
    margin: 0;
}

.logout-btn:hover {
    color: var(--red-bright);
    background: rgba(230, 51, 41, 0.1);
    border-color: rgba(230, 51, 41, 0.3);
}

/* ---------------------------------------------------------------------------
   Board layout
--------------------------------------------------------------------------- */

.board-shell {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    min-height: 0;
}

.noscript {
    margin: 14px 22px 0;
    padding: 10px 14px;
    border: 1px solid var(--amber-border);
    border-radius: 8px;
    background: var(--amber-faint);
    color: var(--amber-text);
    font-size: 12px;
}

.board {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 20px 22px 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: var(--scrollbar) transparent;
    scrollbar-width: thin;
}

.board::-webkit-scrollbar {
    height: 10px;
}

.board::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 8px;
}

.board-empty {
    align-self: center;
    margin: auto;
    max-width: 460px;
    padding: 34px 38px 38px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, var(--board-empty-a), var(--board-empty-b));
    box-shadow: var(--shadow-panel);
}

.board-empty[hidden] {
    display: none;
}

.board-empty-eye {
    width: 76px;
    margin: 0 auto 16px;
    filter: drop-shadow(0 0 16px rgba(230, 51, 41, 0.4));
}

.board-empty-eye svg {
    width: 100%;
    height: auto;
}

.board-empty h1 {
    font-size: 24px;
    letter-spacing: -0.01em;
    margin: 6px 0 8px;
}

.board-empty p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.bucket-ghost {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 160px;
    height: 118px;
    border: 1px dashed var(--line-bright);
    border-radius: var(--radius);
    background: var(--hover-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.bucket-ghost:hover {
    border-color: var(--red);
    color: var(--red-bright);
    background: rgba(230, 51, 41, 0.06);
}

.bucket-ghost[hidden] {
    display: none;
}

/* ---------------------------------------------------------------------------
   Bucket columns
--------------------------------------------------------------------------- */

.bucket {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 320px;
    width: 320px;
    max-height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, var(--bucket-a) 0%, var(--bucket-b) 100%);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.bucket::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), rgba(230, 51, 41, 0.12) 55%, transparent);
    z-index: 2;
}

.bucket.dragging {
    opacity: 0.5;
    transform: scale(0.99);
    border-color: var(--red);
}

.bucket-header {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 13px 11px 10px 8px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--hover-soft), transparent);
    flex: 0 0 auto;
}

.bucket-grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 26px;
    padding: 0;
    margin-top: 1px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--grip);
    cursor: grab;
    flex: 0 0 auto;
}

.bucket-grip:active {
    cursor: grabbing;
}

.bucket-grip:hover {
    color: var(--red-bright);
    background: rgba(230, 51, 41, 0.08);
}

.bucket-grip svg {
    width: 12px;
    height: 20px;
    fill: currentColor;
}

.bucket-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.bucket-title {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-top: 2px;
}

.bucket-subline {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.03em;
    opacity: 0.78;
}

.bucket-count[hidden],
.awaiting-count[hidden] {
    display: none;
}

.bucket-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    margin-top: 2px;
    border-radius: 999px;
    background: var(--amber-soft);
    border: 1px solid var(--amber-border);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--amber-text);
    flex: 0 0 auto;
}

.bucket-menu-btn {
    margin-top: -1px;
    flex: 0 0 auto;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    min-height: 62px;
    flex: 0 1 auto;
    overflow-y: auto;
    scrollbar-color: var(--scrollbar) transparent;
    scrollbar-width: thin;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.task-list::-webkit-scrollbar {
    width: 8px;
}

.task-list::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 8px;
}

.task-list.drop-target {
    background: rgba(230, 51, 41, 0.055);
    box-shadow: inset 0 0 0 1px rgba(230, 51, 41, 0.35);
    border-radius: 8px;
}

.task-list:has(.task-card) .empty-hint {
    display: none;
}

.empty-hint {
    padding: 14px 10px;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: var(--empty-hint);
    border: 1px dashed var(--hover);
    border-radius: 8px;
}

.empty-hint[hidden] {
    display: none;
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px 8px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.add-task-btn:hover {
    color: var(--red-bright);
    background: rgba(230, 51, 41, 0.07);
    border-color: rgba(230, 51, 41, 0.24);
}

/* Awaiting input area */

.awaiting {
    flex: 0 0 auto;
    border-top: 1px solid var(--line);
    background: var(--awaiting-bg);
}

.awaiting-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.awaiting-toggle:hover {
    background: var(--amber-faint);
    color: var(--amber);
}

.awaiting-toggle.drop-target {
    background: var(--amber-soft);
    box-shadow: inset 0 0 0 1px var(--amber-border);
}

.awaiting-chevron {
    display: inline-block;
    font-size: 12px;
    color: var(--amber);
    transition: transform 0.2s ease;
    transform-origin: 50% 50%;
}

.is-awaiting-open .awaiting-chevron {
    transform: rotate(90deg);
}

.awaiting-label {
    flex: 1 1 auto;
}

.awaiting-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--amber-tint);
    border: 1px solid var(--amber-strong);
    color: var(--amber);
    font-size: 9px;
}

.awaiting-body {
    padding: 0 0 8px;
    max-height: 34vh;
    overflow-y: auto;
}

.awaiting-body[hidden] {
    display: none;
}

.awaiting-list {
    padding-top: 2px;
    min-height: 54px;
    overflow: visible;
}

/* ---------------------------------------------------------------------------
   Task cards
--------------------------------------------------------------------------- */

.task-card {
    position: relative;
    padding: 10px 10px 10px 8px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--task-border-left);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--card-a) 0%, var(--card-b) 100%);
    box-shadow: var(--shadow-card);
    cursor: default;
    transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.task-card:hover {
    border-color: var(--task-border-hover);
    border-left-color: var(--red);
    box-shadow: var(--shadow-card-hover);
}

.task-card:active {
    cursor: default;
}

.task-card.dragging {
    opacity: 0.4;
    transform: rotate(1deg) scale(1.01);
    border-color: var(--red);
}

.task-card--awaiting {
    border-left-color: var(--amber);
    background: linear-gradient(180deg, var(--awaiting-card-a) 0%, var(--awaiting-card-b) 100%);
}

.task-card--awaiting:hover {
    border-left-color: var(--amber);
}

.task-card--melting {
    pointer-events: none;
    transform-origin: 50% 100%;
    animation: card-melt 0.95s cubic-bezier(0.4, 0, 0.7, 1) forwards;
}

.task-card--highlighted {
    border-color: var(--red);
    outline: 2px solid var(--red);
    outline-offset: 1px;
    box-shadow: 0 0 14px rgba(230, 51, 41, 0.35), var(--shadow-card);
}

.task-card--highlighted:hover {
    border-color: var(--red-bright);
    outline-color: var(--red-bright);
    box-shadow: 0 0 18px rgba(230, 51, 41, 0.45), var(--shadow-card-hover);
}

@keyframes card-melt {
    0% {
        transform: none;
        filter: none;
    }
    22% {
        transform: translateY(2px) scale(1.02);
        filter: brightness(1.35) saturate(1.35);
    }
    58% {
        transform: translateY(10px) scaleY(0.78) rotate(0.6deg);
        filter: brightness(1.8) blur(1px);
        border-color: #ff9a3c;
        background: linear-gradient(180deg, #ffc46b, #e63329);
    }
    100% {
        transform: translateY(30px) scaleY(0.04) rotate(1deg);
        opacity: 0;
        filter: blur(6px) brightness(2);
        background: linear-gradient(180deg, #ff7a1a, #8f1c14);
    }
}

.task-grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 22px;
    padding: 0;
    margin: 0 1px 0 -2px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--grip);
    cursor: grab;
    flex: 0 0 auto;
}

.task-grip:active {
    cursor: grabbing;
}

.task-grip:hover {
    color: var(--red-bright);
    background: rgba(230, 51, 41, 0.08);
}

.task-grip svg {
    width: 10px;
    height: 18px;
    fill: currentColor;
}

.task-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    min-height: 20px;
}

.task-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--glass-strong);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.5;
    color: var(--text-dim);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chip-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.chip--case {
    border-color: var(--chip-case-border);
    color: var(--chip-case-text);
}

.chip--case .chip-value {
    user-select: all;
}

.chip--due {
    border-color: var(--amber-border);
    color: var(--amber-text);
}

.chip--due .chip-label {
    color: var(--amber-label);
}

.chip--overdue {
    border-color: rgba(230, 51, 41, 0.5);
    background: rgba(230, 51, 41, 0.1);
    color: var(--chip-overdue-text);
}

.chip--overdue .chip-label {
    color: var(--red-bright);
}

.chip--attachments {
    gap: 4px;
    color: var(--text-dim);
}

.chip--attachments .icon {
    width: 10px;
    height: 10px;
    color: var(--red-bright);
}

.task-menu-btn {
    width: 22px;
    height: 20px;
    margin: -2px -3px 0 0;
    font-size: 16px;
    flex: 0 0 auto;
}

.task-description-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 6px;
}

.task-description-row[hidden] {
    display: none;
}

.task-description {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.task-desc-edit {
    width: 22px;
    height: 22px;
    margin: -3px -4px 0 0;
    color: var(--meta-label);
    flex: 0 0 auto;
}

.task-desc-edit .icon {
    width: 12px;
    height: 12px;
}

.task-desc-edit:hover,
.task-desc-edit:focus-visible {
    color: var(--red-bright);
}

.task-description-editor {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}

.task-description-input {
    width: 100%;
    min-height: 52px;
    padding: 7px 9px;
    border: 1px solid var(--line-bright);
    border-radius: 7px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.task-description-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.15);
}

.task-description-error {
    font-size: 11px;
    line-height: 1.4;
    color: var(--danger-text);
}

.task-description-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-description-actions .btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
}

.task-meta {
    display: grid;
    gap: 4px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid var(--divider);
}

.task-meta div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 7px;
    align-items: baseline;
}

.task-meta dt {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--meta-label);
}

.task-meta dd {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text-dim);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------------------------------------------------------------------------
   Context menus
--------------------------------------------------------------------------- */

.context-menu {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    min-width: 168px;
    padding: 5px;
    border: 1px solid var(--line-bright);
    border-radius: 9px;
    background: linear-gradient(180deg, var(--menu-a), var(--menu-b));
    box-shadow: var(--shadow-menu);
}

.context-menu[hidden] {
    display: none;
}

.context-menu button {
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
}

.context-menu button:hover {
    background: var(--hover);
    color: var(--text);
}

.context-menu button:disabled {
    opacity: 0.45;
    cursor: default;
}

.context-menu button:disabled:hover {
    background: transparent;
    color: var(--text-dim);
}

.context-menu button.danger {
    color: var(--danger-text);
}

.context-menu button.danger:hover {
    background: rgba(230, 51, 41, 0.14);
    color: var(--danger-text-strong);
}

/* ---------------------------------------------------------------------------
   Dialogs
--------------------------------------------------------------------------- */

.modal {
    width: min(680px, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 1px solid var(--line-bright);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--modal-a) 0%, var(--modal-b) 100%);
    color: var(--text);
    box-shadow: var(--shadow-modal);
    overflow: auto;
}

.modal::backdrop {
    background: var(--backdrop);
    backdrop-filter: blur(4px);
}

.modal--small {
    width: min(440px, calc(100vw - 28px));
}

.modal-form {
    padding: 20px 22px 22px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.modal-header h2 {
    font-size: 19px;
    letter-spacing: -0.01em;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.modal-header .icon-btn {
    font-size: 22px;
    margin-top: -3px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

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

.field > span {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.field > span em {
    font-style: normal;
    color: var(--red-bright);
    font-size: 8.5px;
    letter-spacing: 0.1em;
}

.field input,
.field textarea,
.field select,
.auth-form input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line-bright);
    border-radius: 7px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
    resize: vertical;
    min-height: 92px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.field input::placeholder,
.field textarea::placeholder,
.auth-form input::placeholder {
    color: var(--placeholder);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.auth-form input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.15);
}

.field input[type="date"] {
    color-scheme: inherit;
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.field-help {
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--meta-label);
}

.field-help ul {
    margin: 3px 0 0;
    padding-left: 16px;
}

.field-error {
    font-style: normal;
    font-size: 11px;
    color: var(--danger-text);
}

.form-error {
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(230, 51, 41, 0.4);
    border-radius: 7px;
    background: rgba(230, 51, 41, 0.1);
    color: var(--danger-text-strong);
    font-size: 12px;
}

.form-error[hidden] {
    display: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.confirm-message {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   Toasts
--------------------------------------------------------------------------- */

.toast-region {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line-bright);
    border-left: 3px solid var(--text-dim);
    border-radius: 9px;
    background: linear-gradient(180deg, var(--toast-a), var(--toast-b));
    box-shadow: var(--shadow-toast);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.45;
    pointer-events: auto;
    animation: toast-in 0.22s ease-out;
}

.toast--success { border-left-color: var(--green); }
.toast--error { border-left-color: var(--red); }
.toast--warning { border-left-color: var(--amber); }
.toast--info { border-left-color: var(--info); }

.toast-text {
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.toast-close {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    flex: 0 0 auto;
}

.toast-close:hover {
    color: var(--text);
}

.toast.leaving {
    animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(6px); }
}

/* ---------------------------------------------------------------------------
   Auth screens
--------------------------------------------------------------------------- */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 16px;
    overflow-y: auto;
}

.auth-shell {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    position: relative;
    width: min(440px, 100%);
    padding: 30px 32px 24px;
    border: 1px solid var(--line-bright);
    border-radius: 16px;
    background:
        linear-gradient(180deg, var(--auth-a), var(--auth-b));
    box-shadow: var(--shadow-auth);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(230, 51, 41, 0.03) 50%, transparent 100%);
    pointer-events: none;
    animation: auth-sweep 7s ease-in-out infinite;
}

@keyframes auth-sweep {
    0%, 100% { transform: translateY(-40%); opacity: 0.35; }
    50% { transform: translateY(40%); opacity: 0.8; }
}

.auth-eye {
    width: 66px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 14px rgba(230, 51, 41, 0.55));
}

.auth-eye svg {
    width: 100%;
    height: auto;
}

.boot-line {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 8px;
}

.auth-title {
    text-align: center;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

.auth-tagline {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 22px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-form .btn {
    margin-top: 4px;
}

.auth-alt {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.auth-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.cursor {
    color: var(--red-bright);
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.alert {
    padding: 9px 11px;
    border: 1px solid var(--line-bright);
    border-left: 3px solid var(--text-dim);
    border-radius: 8px;
    background: var(--alert-bg);
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.alert p + p {
    margin-top: 4px;
}

.alert--error {
    border-left-color: var(--red);
    background: rgba(230, 51, 41, 0.09);
    color: var(--danger-text-strong);
}

.alert--success { border-left-color: var(--green); }
.alert--warning { border-left-color: var(--amber); }

.auth-messages {
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------------------
   Theme and motion toggles
--------------------------------------------------------------------------- */

.theme-toggle {
    gap: 6px;
}

.motion-toggle {
    gap: 6px;
}

.motion-icon--reduced {
    display: none;
}

html[data-motion="reduced"] .motion-icon--full {
    display: none;
}

html[data-motion="reduced"] .motion-icon--reduced {
    display: block;
}

.theme-icon--moon {
    display: none;
}

html[data-theme="light"] .theme-icon--sun {
    display: none;
}

html[data-theme="light"] .theme-icon--moon {
    display: block;
}

html[data-theme="light"] .scanlines {
    opacity: 0.35;
}

html[data-theme="light"] .btn-primary {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 8px 18px rgba(179, 38, 30, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html[data-theme="light"] .btn-danger {
    background: linear-gradient(180deg, #a8322a, #7d1f19);
    border-color: #8f2a22;
    color: #fff4f2;
}

html[data-theme="light"] .btn-danger:hover {
    background: linear-gradient(180deg, #bb3a31, #8f241d);
    border-color: var(--red);
}

/* ---------------------------------------------------------------------------
   Dates, term editor and import notifications
--------------------------------------------------------------------------- */

.date-preview {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.modal--wide {
    width: min(900px, calc(100vw - 28px));
}

.task-alert {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin-top: 8px;
    padding: 5px 8px;
    border: 1px solid var(--amber-border);
    border-radius: 6px;
    background: var(--amber-soft);
    color: var(--amber-text);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.task-alert:hover {
    background: var(--amber-tint);
    border-color: var(--amber);
}

.task-alert-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber-border);
    flex: 0 0 auto;
}

.task-alert-text {
    flex: 1 1 auto;
}

.task-alert-close {
    font-size: 14px;
    line-height: 1;
}

.terms-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.terms-section[hidden] {
    display: none;
}

/* ---------------------------------------------------------------------------
   Attachments
--------------------------------------------------------------------------- */

.attachments-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.attachments-section[hidden] {
    display: none;
}

.attachments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.attachments-header h3 {
    margin-top: 3px;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.attachments-hint {
    max-width: 62ch;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.attachments-sort {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.attachment-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px;
    border: 1px dashed var(--line-bright);
    border-radius: 10px;
    background: var(--hover-soft);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.attachment-dropzone:hover,
.attachment-dropzone.is-dragging {
    border-color: var(--red);
    background: rgba(230, 51, 41, 0.08);
    color: var(--text);
}

.attachment-dropzone.is-uploading {
    opacity: 0.6;
    pointer-events: none;
}

.attachment-dropzone .icon {
    width: 16px;
    height: 16px;
    color: var(--red-bright);
}

.attachment-dropzone strong {
    color: var(--red-bright);
    font-weight: 600;
}

.attachment-empty {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.attachment-empty[hidden] {
    display: none;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.attachment-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--term-bg);
}

.attachment-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.attachment-open {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-dim);
    text-decoration: none;
}

.attachment-open:hover {
    color: var(--text);
    text-decoration: none;
}

.attachment-open .icon {
    width: 13px;
    height: 13px;
    color: var(--red-bright);
}

.attachment-name {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.attachment-size {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.attachment-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.attachment-action .icon {
    width: 14px;
    height: 14px;
}

.attachment-action--danger:hover {
    color: var(--red-bright);
    background: rgba(230, 51, 41, 0.1);
    border-color: rgba(230, 51, 41, 0.3);
}

.attachment-rename {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.attachment-rename-input {
    flex: 1 1 140px;
    min-width: 0;
    padding: 5px 7px;
    border: 1px solid var(--line-bright);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 12px;
    outline: none;
}

.attachment-rename-input:focus {
    border-color: var(--red);
}

.attachment-rename-btn {
    padding: 5px 8px;
    font-size: 11px;
}

@media (max-width: 760px) {
    .attachments-header {
        flex-direction: column;
    }

    .attachment-row {
        flex-wrap: wrap;
    }

    .attachment-size {
        order: 2;
    }
}

.terms-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.terms-header h3 {
    margin-top: 3px;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.terms-hint {
    max-width: 62ch;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.term-empty {
    padding: 14px;
    border: 1px dashed var(--line-bright);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.term-empty[hidden] {
    display: none;
}

.term-table-wrap {
    width: 100%;
}

.term-table-wrap[hidden] {
    display: none;
}

.term-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;
}

.term-table th {
    padding: 0 8px 2px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
}

.term-table th:nth-child(1),
.term-table th:nth-child(2) {
    width: 100px;
}

.term-table th:nth-child(5) {
    width: 68px;
}

.term-row td {
    padding: 7px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--term-bg);
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.term-cell--due {
    border-left: 1px solid var(--line);
    border-radius: 8px 0 0 8px;
}

.term-cell--due,
.term-cell--number {
    white-space: nowrap;
}

.term-cell--tools {
    border-right: 1px solid var(--line);
    border-radius: 0 8px 8px 0;
}

.term-cell input:not([type="checkbox"]),
.term-cell textarea,
.term-cell select {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid var(--line-bright);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.term-cell input[type="date"] {
    color-scheme: inherit;
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.term-cell textarea {
    overflow-y: hidden;
    resize: none;
    min-height: 0;
    white-space: pre-wrap;
}

.term-cell input:focus,
.term-cell textarea:focus,
.term-cell select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.15);
}

.term-cell .date-preview {
    display: block;
    margin-top: 4px;
    font-size: 9px;
}

.term-cell--external {
    text-align: center;
}

.term-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 30px;
    cursor: pointer;
}

.term-external input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
}

.term-row-flag {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    border: 1px solid var(--amber-border);
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber-text);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.term-row-flag[hidden] {
    display: none;
}

.term-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.term-tools .term-move {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--text-dim);
}

.term-tools .term-move:hover {
    color: var(--text);
}

.term-tools .term-remove {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    font-size: 16px;
    color: var(--danger-text);
}

.term-tools .icon {
    width: 14px;
    height: 14px;
}

.term-row--readonly td {
    font-size: 12px;
    line-height: 1.45;
}

.term-row--readonly .term-cell--status,
.term-row--readonly .term-cell--action {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.term-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-dim);
}

.term-case {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.term-external-flag {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid rgba(230, 51, 41, 0.45);
    border-radius: 999px;
    color: var(--red-bright);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.term-muted {
    color: var(--muted);
}

.term-add-panel {
    margin-bottom: 13px;
    padding: 12px;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    background: var(--term-bg);
}

.term-add-panel[hidden] {
    display: none;
}

.term-add-heading {
    margin-bottom: 10px;
}

.term-add-hint {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.term-add-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.term-add-grid .field-wide {
    grid-column: 1 / -1;
}

.term-add-external {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
}

.term-add-external input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
}

.term-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.term-row--external td {
    border-color: rgba(230, 51, 41, 0.45);
    background: rgba(230, 51, 41, 0.06);
}

.term-row--readonly.term-row--external td {
    color: var(--red-bright);
}

.term-row--external .term-cell--due {
    box-shadow: inset 2px 0 0 var(--red);
}

.term-row--external input:not([type="checkbox"]),
.term-row--external textarea,
.term-row--external select,
.term-row--external .date-preview,
.term-row--external .term-row-flag {
    border-color: rgba(230, 51, 41, 0.42);
    color: var(--red-bright);
}

.term-row--external input:not([type="checkbox"]),
.term-row--external textarea {
    background: rgba(230, 51, 41, 0.08);
}

.term-row--external .term-remove,
.term-row--external .term-move {
    color: var(--red-bright);
}

@media (max-width: 760px) {
    .terms-header {
        flex-direction: column;
    }

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

    .term-table {
        border-spacing: 0;
    }

    .term-table thead {
        display: none;
    }

    .term-row {
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--term-bg);
        overflow: hidden;
    }

    .term-row td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        padding: 7px 9px;
        border: none;
        border-bottom: 1px solid var(--divider);
        border-radius: 0;
    }

    .term-row td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .term-row td:last-child {
        border-bottom: none;
    }

    .term-cell--due,
    .term-cell--number {
        white-space: normal;
    }

    .term-row--external td {
        border-bottom-color: rgba(230, 51, 41, 0.28);
    }
}

/* ---------------------------------------------------------------------------
   Dramatic task effects
--------------------------------------------------------------------------- */

.fx-layer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
}

.fx-banner {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.fx-text {
    position: relative;
    z-index: 2;
    padding: 0 18px;
    font-family: var(--font-mono);
    font-size: clamp(28px, 7vw, 72px);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.fx-banner--terminated .fx-text {
    color: #ffb066;
    text-shadow: 0 0 16px rgba(255, 110, 26, 0.9), 0 0 48px rgba(230, 51, 41, 0.7),
        3px 0 0 rgba(230, 51, 41, 0.6), -3px 0 0 rgba(255, 196, 107, 0.45);
    animation: fx-terminate 1.35s ease-out forwards;
}

.fx-banner--awaiting .fx-text {
    color: var(--amber);
    text-shadow: 0 0 14px rgba(245, 166, 35, 0.75), 0 0 44px rgba(245, 166, 35, 0.35);
    animation: fx-awaiting 1.15s ease-out forwards;
}

.fx-lava {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34vh;
    background:
        radial-gradient(ellipse at 20% 100%, rgba(255, 225, 140, 0.85), transparent 62%),
        radial-gradient(ellipse at 75% 100%, rgba(255, 170, 60, 0.9), transparent 58%),
        linear-gradient(180deg, rgba(230, 51, 41, 0) 0%, #ff8a1f 38%, #e63329 70%, #6f120c 100%);
    filter: blur(2px) saturate(1.35);
    box-shadow: 0 -20px 60px rgba(255, 120, 30, 0.45);
    animation: lava-rise 1.35s ease-out forwards;
}

.fx-scan {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(245, 166, 35, 0.06) 42%,
        rgba(245, 166, 35, 0.24) 49%,
        rgba(245, 166, 35, 0.7) 50%,
        rgba(245, 166, 35, 0.24) 51%,
        rgba(245, 166, 35, 0.06) 58%,
        transparent 100%
    );
    animation: scan-sweep 1.15s ease-in-out forwards;
}

@keyframes fx-terminate {
    0% {
        opacity: 0;
        transform: scale(1.35) translateY(-8px);
        filter: blur(6px);
    }
    12% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    18% {
        transform: translateX(-4px) skewX(-2deg);
    }
    22% {
        transform: translateX(5px) skewX(3deg);
    }
    27% {
        transform: none;
    }
    68% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.04) translateY(6px);
        filter: blur(3px);
    }
}

@keyframes fx-awaiting {
    0% {
        opacity: 0;
        letter-spacing: 0.4em;
        transform: translateY(8px) scale(0.96);
    }
    14% {
        opacity: 1;
        letter-spacing: 0.12em;
        transform: none;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@keyframes lava-rise {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    18% {
        opacity: 1;
    }
    70% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10%);
    }
}

@keyframes scan-sweep {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* ---------------------------------------------------------------------------
   Board-wide term table
--------------------------------------------------------------------------- */

.modal--terms {
    width: min(1180px, calc(100vw - 28px));
}

.terms-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.terms-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
}

.terms-filter input {
    width: 16px;
    height: 16px;
    accent-color: var(--red);
    cursor: pointer;
}

.terms-result-count {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.terms-table-scroll {
    max-height: calc(100vh - 270px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    scrollbar-color: var(--scrollbar) transparent;
    scrollbar-width: thin;
}

.terms-table-scroll[hidden] {
    display: none;
}

.terms-overview-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.terms-overview-table th:nth-child(1) {
    width: 104px;
}

.terms-overview-table th:nth-child(2) {
    width: 120px;
}

.terms-overview-table th:nth-child(3) {
    width: 96px;
}

.terms-overview-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0;
    border-bottom: 1px solid var(--line-bright);
    background: var(--modal-a);
    text-align: left;
}

.terms-overview-table th button {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 8px 9px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.terms-overview-table th button:hover {
    background: var(--hover);
    color: var(--text);
}

.terms-overview-table th button:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: -2px;
}

.sort-arrow {
    font-size: 8px;
    color: var(--red-bright);
}

.terms-overview-table td {
    padding: 7px 9px;
    border-bottom: 1px solid var(--divider);
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.terms-overview-table td:nth-child(-n + 3) {
    white-space: nowrap;
}

.terms-overview-table tbody tr:hover {
    background: var(--hover-soft);
}

.terms-overview-row--external td {
    color: var(--red-bright);
}

.terms-overview-row--external td:first-child {
    box-shadow: inset 2px 0 0 var(--red);
}

/* ---------------------------------------------------------------------------
   Terms calendar
--------------------------------------------------------------------------- */

.modal--calendar {
    width: min(980px, calc(100vw - 28px));
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.calendar-title {
    flex: 1 1 auto;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.calendar-today {
    margin-left: auto;
    padding: 6px 10px;
    font-size: 11px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-bottom: 4px;
}

.calendar-weekdays span {
    padding: 4px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-cell {
    min-height: 88px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--term-bg);
}

.calendar-cell--muted {
    opacity: 0.38;
}

.calendar-cell--today {
    border-color: var(--red);
    background: rgba(230, 51, 41, 0.07);
    box-shadow: inset 0 0 0 1px var(--red), 0 0 12px rgba(230, 51, 41, 0.16);
}

.calendar-cell--today .calendar-day {
    color: var(--red-bright);
    font-weight: 700;
}

.calendar-day {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.calendar-chip {
    display: block;
    margin-top: 3px;
    padding: 2px 4px;
    border: 1px solid var(--line-bright);
    border-radius: 4px;
    background: var(--hover-soft);
    color: var(--text-dim);
    font-size: 9px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.calendar-chip--external {
    border-color: rgba(230, 51, 41, 0.45);
    background: rgba(230, 51, 41, 0.08);
    color: var(--red-bright);
}

.calendar-undated {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.calendar-undated[hidden] {
    display: none;
}

.calendar-undated h3 {
    margin-bottom: 7px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.calendar-undated-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.calendar-undated-list .calendar-chip {
    display: inline-block;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */

@media (max-width: 1280px) {
    .topbar-quote {
        display: none;
    }
}

@media (max-width: 1080px) {
    .topbar {
        gap: 14px;
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .hud {
        order: 3;
        width: 100%;
        justify-content: space-between;
        padding: 6px 12px;
    }

    .topbar-actions {
        margin-left: auto;
    }
}

@media (max-width: 760px) {
    .board-page {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .board-shell {
        overflow: visible;
    }

    .board {
        height: auto;
        min-height: calc(100vh - 120px);
        padding: 14px;
        align-items: flex-start;
    }

    .bucket {
        flex: 0 0 86vw;
        width: 86vw;
        max-height: none;
    }

    .task-list {
        max-height: none;
    }

    .awaiting-body {
        max-height: none;
    }

    .user-name,
    .hud {
        display: none;
    }

    .field-grid,
    .term-add-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .calendar-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .calendar-title {
        flex-basis: 100%;
        order: -1;
    }

    .calendar-today {
        margin-left: 0;
    }

    .calendar-cell {
        min-height: 68px;
        padding: 3px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .toast-region {
        right: 12px;
        bottom: 12px;
    }

    .auth-card {
        padding: 24px 20px 20px;
    }
}

/* Motion is on by default; the top-bar toggle opts into reduced motion. The
   media query still covers pages rendered without an explicit full state. */
@media (prefers-reduced-motion: reduce) {
    html:not([data-motion="full"]) *,
    html:not([data-motion="full"]) *::before,
    html:not([data-motion="full"]) *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
