@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ===== Theme ===== */
:root {
    --bg: #0a0f1a;
    --bg-card: rgba(15, 23, 42, 0.8);
    --fg: #e2e8f0;
    --muted: #64748b;
    --border: rgba(148, 163, 184, 0.2);
    --accent: #38bdf8;
    --green: #22c55e;
    --red: #f87171;
    --radius: 0.6rem;
    --gap: 1rem;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { height: 100%; }
body {
    min-height: 100vh;
    font: 16px/1.6 var(--sans);
    background: var(--bg);
    color: var(--fg);
}

/* ===== Layout ===== */
.landing-page {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.08), transparent 50%),
        var(--bg);
}

.landing-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.landing-scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.landing-scanline span {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.12) 10%, transparent);
    transform: translateY(-100%);
    animation: scanline 12s linear infinite;
}

/* Nav */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 15, 26, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease;
    will-change: transform;
}
.landing-nav--hidden {
    transform: translateY(-100%);
}
.landing-nav .landing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-weight: 600;
    text-decoration: none;
    color: var(--fg);
}
.landing-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
}
.landing-logo-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke: #2dd4bf;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.landing-logo-text { font-size: 1rem; }
.landing-logo-text span { color: var(--accent); }
.landing-nav-user {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}

#auth-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Container */
.landing-container {
    width: min(960px, 100% - 2rem);
    margin: 0 auto;
}

/* Main content */
.landing-main {
    position: relative;
    z-index: 1;
    width: min(960px, 100% - 2rem);
    margin: 0 auto;
    padding: var(--gap) 0;
}

/* ===== Buttons ===== */
.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--fg);
    background: none;
    transition: background 0.2s, border-color 0.2s;
}
.landing-button svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.landing-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.landing-button--ghost {
    border-color: var(--border);
    color: var(--muted);
}
.landing-button--ghost:hover { background: rgba(148, 163, 184, 0.08); }

.landing-button--outline {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.06);
    color: var(--accent);
}
.landing-button--outline:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.12);
}

.landing-button--hero {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #0a0f1a;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}
.landing-button--hero:hover { box-shadow: 0 0 30px rgba(56, 189, 248, 0.4); }

/* ===== Forms ===== */
form { display: grid; gap: var(--gap); }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; }
.label-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.help-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: rgba(56, 189, 248, 0.5);
    font-family: var(--mono);
    font-size: 0.55rem;
    font-weight: 600;
    cursor: default;
    flex-shrink: 0;
    user-select: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.help-icon:hover,
.help-icon:focus {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--accent);
    outline: none;
}
.help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    max-width: 220px;
    padding: 0.35rem 0.6rem;
    background: rgba(10, 18, 35, 0.97);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 200;
}
.help-icon:hover::after,
.help-icon:focus::after {
    opacity: 1;
}
input, textarea, select {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.6);
    color: var(--fg);
}
textarea {
    resize: none;
    overflow: hidden;
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    outline-offset: 1px;
}
button {
    font: inherit;
    border: 0;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #0a0f1a;
    font-weight: 600;
}
button:hover { filter: brightness(1.1); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Card container for forms/pages */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}
.form-card h1, .form-card h2 { font-family: var(--mono); margin-bottom: 0.5rem; }
.form-card h1 { font-size: 1.3rem; }
.form-card h2 { font-size: 1rem; color: var(--accent); }
.form-card p { margin-bottom: 0.5rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

/* ===== Share Link ===== */
.share-link { margin-bottom: var(--gap); }
.share-link input {
    width: 100%;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.25);
}

/* ===== Auction Details / Countdown ===== */
.auction-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    flex-wrap: wrap;
    margin-bottom: var(--gap);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    font-family: var(--mono);
}
.auction-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.auction-banner strong { font-size: 1rem; }
.auction-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--accent);
    color: var(--accent);
}
[data-auction-status="Ended"] .auction-status,
[data-auction-status="Cancelled"] .auction-status {
    border-color: var(--red);
    color: var(--red);
}
.auction-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auction-countdown-label { color: var(--muted); font-size: 0.8rem; }
.auction-countdown-label time {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
    letter-spacing: 0.04em;
}
.auction-countdown-value {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    letter-spacing: 0.06em;
}

/* ===== Timeline / Bid Grid ===== */
#bids-scroll {
    margin-bottom: var(--gap);
    width: 100%;
}

.timeline {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    justify-items: stretch;
}
.timeline-empty { color: var(--muted); font-style: italic; font-family: var(--mono); font-size: 0.9rem; }

.timeline-header { padding-bottom: 0.25rem; }
.timeline-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--muted);
    font-family: var(--mono);
}
.timeline-chip {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 2px;
    margin-right: 0.25rem;
}
.timeline-chip--confirm { background: var(--green); }
.timeline-chip--decline { background: var(--red); }
.timeline-chip--pending { background: var(--muted); }

.timeline-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
}
.timeline-scroll::-webkit-scrollbar { height: 5px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 3px; }

.timeline-grid {
    --col-date: 200px;
    --col-user: 80px;
    --grid-gap: 2px;
    display: grid;
    grid-template-columns: var(--col-date) repeat(var(--timeline-columns, 1), var(--col-user));
    gap: var(--grid-gap);
    width: max-content;
    min-width: 100%;
    margin-inline: auto;
}

/* Sticky columns */
.timeline-sticky {
    position: sticky;
    z-index: 5;
    background: var(--bg);
}
.timeline-sticky--start { left: 0; }

/* Header cells */
.timeline-head {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.4rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.timeline-head--corner {
    text-align: left;
    padding: 0.5rem;
    display: flex;
    align-items: flex-end;
}
.timeline-head--participant {
    position: relative;
    min-height: 72px;
    padding: 0.35rem 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-head--participant::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--participant-color, var(--accent));
    opacity: 0.8;
}
.timeline-head--participant.is-current {
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.3);
}
.timeline-head-name {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.timeline-head-name--rotated {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.65rem;
}

/* Date row label */
.timeline-row-label {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: 3px;
    padding: 0.4rem 0.5rem;
    display: grid;
    gap: 0.2rem;
}
.timeline-row-label--active { border-left-color: var(--row-accent, var(--accent)); }
.timeline-row-label--inactive { opacity: 0.7; }
.timeline-row-label--resolved {
    border-color: rgba(34, 197, 94, 0.35);
    border-left-color: var(--green);
    background: rgba(34, 197, 94, 0.06);
}
.timeline-row-label--dimmed:not(.timeline-row-label--resolved) { opacity: 0.5; }
.timeline-row-label[data-latest-row="true"] { animation: pop 0.5s ease; }

.timeline-row-primary {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.82rem;
}
.timeline-row-primary time { color: var(--fg); }
.timeline-row-time {
    font-family: var(--mono);
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent);
}
.timeline-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--muted);
    align-items: center;
    font-family: var(--mono);
}
.timeline-row-author { font-weight: 500; }

/* Data cells */
.timeline-cell {
    border: 1px solid var(--border);
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.04);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.timeline-cell--confirmed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}
.timeline-cell--declined {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.25);
}
.timeline-cell--pending { background: rgba(148, 163, 184, 0.04); }
.timeline-cell--resolved {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}
.timeline-cell--dimmed:not(.timeline-cell--resolved) { opacity: 0.45; }
.timeline-cell--inactive { opacity: 0.55; }
.timeline-cell--current { border-color: rgba(56, 189, 248, 0.25); }
.timeline-cell--interactive { cursor: pointer; }
.timeline-cell--interactive:hover { background: rgba(56, 189, 248, 0.06); }

/* Toggle button filling current-user cells */
.timeline-toggle-form { display: contents; }
.timeline-toggle-btn {
    width: 100%;
    height: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    color: var(--fg);
}
.timeline-toggle-btn:hover { background: rgba(255, 255, 255, 0.04); }

/* Delete button in row meta */
.timeline-delete-form { display: contents; }
.timeline-btn--delete {
    font-family: var(--mono);
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: var(--red);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.timeline-btn--delete:hover { background: rgba(248, 113, 113, 0.15); }

/* Bid form */
#bid-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
#bid-form h2 {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
#bid-form.bid-form--needs-bid {
    border-color: rgba(248, 113, 113, 0.4);
}
#bid-form.bid-form--needs-bid button[type="submit"] {
    animation: blink 1.2s ease-in-out infinite;
}
.bid-form-warning {
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.8rem;
}

/* ===== My Auctions ===== */
.bids-list { display: grid; gap: 0.75rem; list-style: none; padding: 0; }
.bids-list .bid {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.bids-list .bid header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

/* ===== State Icons ===== */
.landing-icon-check,
.landing-icon-cross,
.landing-icon-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    font-family: var(--mono);
    font-weight: 700;
}
.landing-icon-check::before { content: '\2713'; color: var(--green); }
.landing-icon-cross::before { content: '\2715'; color: var(--red); }
.landing-icon-pending { color: var(--muted); }

/* ===== Landing: Hero ===== */
.landing-hero { padding: 4.5rem 0 3rem; }
.landing-hero-content { display: flex; flex-direction: column; gap: 1.25rem; }
.landing-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    text-wrap: balance;
}
.landing-gradient {
    background: linear-gradient(135deg, #2dd4bf, #38bdf8);
    -webkit-background-clip: text;
    color: transparent;
}
.landing-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.75);
}
.landing-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.landing-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.82rem;
}
.landing-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.landing-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.landing-meta-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Landing: Sections ===== */
.landing-section { padding: 4rem 0; }
.landing-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}
.landing-section-header h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.landing-section-header p { color: rgba(226, 232, 240, 0.7); line-height: 1.7; }

/* Steps */
.landing-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.landing-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.landing-step + .landing-step { position: relative; }
.landing-step + .landing-step::before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: 1.5rem;
    width: 1px;
    height: 1.25rem;
    background: rgba(56, 189, 248, 0.3);
}
.landing-step-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}
.landing-step h3 { margin-bottom: 0.3rem; font-size: 1rem; }
.landing-step p { color: rgba(226, 232, 240, 0.7); line-height: 1.6; font-size: 0.9rem; }

/* Features */
.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.landing-feature-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: border-color 0.2s;
}
.landing-feature-card:hover { border-color: rgba(56, 189, 248, 0.4); }
.landing-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    background: rgba(56, 189, 248, 0.08);
    margin-bottom: 0.75rem;
    color: var(--accent);
}
.landing-feature-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.landing-feature-card h3 {
    font-family: var(--mono);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.landing-feature-card p {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Animations ===== */
.landing-fade-in { animation: fadeIn 0.6s ease both; }
.landing-slide-in { animation: slideIn 0.6s ease both; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}
@keyframes pop {
    0% { transform: scale(0.98); }
    50% { transform: scale(1.01); }
    100% { transform: none; }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}
@keyframes scanline {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

/* ===== Utilities ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.muted { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .landing-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .landing-container { width: 100%; padding: 0 1rem; }
    .landing-nav .landing-container { flex-direction: row; align-items: center; flex-wrap: nowrap; }
    .landing-cta { flex-direction: column; }
    .landing-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .timeline-grid { --col-date: 160px; --col-user: 60px; }
    .timeline-head-name--rotated { font-size: 0.6rem; max-height: 48px; }
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
