:root {
    --vtx-blue: #003366;
    --vtx-accent: #00a3e0;
    --bg: #f5f7fa;
    --card-bg: #fff;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #dde1e6;
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.topnav {
    background: var(--vtx-blue);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.nav-version {
    color: #fff;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}
.nav-visitor {
    color: #fff;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}
.nav-guestbook {
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}


h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--vtx-blue); }

.subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.help-link { color: var(--vtx-accent); font-size: 0.82rem; font-weight: 600; text-decoration: none; margin-left: 0.5rem; }
.help-link:hover { text-decoration: underline; }

.hero {
    background: linear-gradient(135deg, #002244 0%, #003366 40%, #00a3e0 100%);
    padding: 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: -2rem -1.5rem 0;
    width: calc(100% + 3rem);
    border-radius: 0 0 12px 12px;
}

.hero-mascot-area {
    flex-shrink: 0;
}

.hero-mascot {
    width: 160px;
    height: 220px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero-content {
    flex: 1;
    max-width: 520px;
}

.hero-speech-bubble {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    position: relative;
}

.hero-speech-bubble::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 40px;
    border: 10px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.12);
}

.hero h1 {
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.hero h1 span {
    color: #5cd5ff;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.hero-graphic {
    flex-shrink: 0;
    width: 220px;
    height: 180px;
    opacity: 0.9;
}

.hero-graphic .node {
    fill: rgba(255, 255, 255, 0.15);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1.5;
}

.hero-graphic .node-accent {
    fill: rgba(92, 213, 255, 0.25);
    stroke: #5cd5ff;
    stroke-width: 2;
}

.hero-graphic .line {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1.5;
}

.hero-graphic .line-accent {
    stroke: #5cd5ff;
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.hero-graphic .dot {
    fill: #5cd5ff;
}

.hero-graphic text {
    fill: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-family: inherit;
}

@media (max-width: 900px) {
    .hero { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem; }
    .hero h1 { font-size: 1.4rem; }
    .hero-mascot { width: 120px; height: 165px; }
    .hero-speech-bubble::before { display: none; }
    .hero-graphic { width: 160px; height: 130px; }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-card:hover:not(.disabled) {
    border-color: var(--vtx-accent);
    box-shadow: 0 2px 8px rgba(0, 163, 224, 0.15);
}

.tool-card.disabled {
    opacity: 0.5;
    cursor: default;
}

.tool-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tool-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.tool-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }

.tool-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.tool-status.available { background: #e6f9f0; color: #0a7b4f; }
.tool-status.coming-soon { background: #fef3e0; color: #b86e00; }

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--vtx-blue);
}

input[type="text"], input[type="password"], textarea {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
}

textarea { resize: vertical; }

input:focus, textarea:focus {
    outline: none;
    border-color: var(--vtx-accent);
    box-shadow: 0 0 0 2px rgba(0, 163, 224, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s;
}

.btn-primary { background: var(--vtx-blue); color: #fff; }
.btn-primary:hover { background: #004080; }
.btn-primary:disabled { background: #8899aa; cursor: not-allowed; }

.btn-success { background: #0a7b4f; color: #fff; }
.btn-success:hover { background: #08613e; }

.terminal {
    background: #1e1e2e;
    color: #cdd6f4;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    padding: 1rem;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

.hidden { display: none; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error { background: #fde8e8; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Tabs */
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover { color: var(--vtx-accent); }
.tab-btn.active { color: var(--vtx-blue); border-bottom-color: var(--vtx-blue); }

.tab-panel { display: none; padding: 1.25rem 0; }
.tab-panel.active { display: block; }

/* Editable grids */
.edit-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.edit-grid th {
    text-align: left;
    padding: 0.4rem 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vtx-blue);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.edit-grid td {
    padding: 0.2rem 0.15rem;
    border-bottom: 1px solid var(--border);
}

.edit-grid input[type="text"],
.edit-grid input[type="number"] {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: inherit;
}

.edit-grid input:focus {
    outline: none;
    border-color: var(--vtx-accent);
}

.edit-grid input[type="checkbox"] { width: auto; }

.edit-grid tr:hover td { background: #f0f4f8; }

.grid-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.setup-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.setup-table th { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.setup-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.setup-table tr:hover { background: #f8fafc; }

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    font-weight: 500;
}

.btn-sm:hover { border-color: var(--vtx-accent); color: var(--vtx-accent); }

.btn-danger { background: #fde8e8; color: #b91c1c; border-color: #fca5a5; }
.btn-danger:hover { background: #fca5a5; }

/* Action bar */
.action-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-generate {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
}

/* Progress */
.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar.active .progress-fill {
    width: 100%;
    height: 100%;
    background: var(--vtx-accent);
    animation: progress-sweep 1.5s ease-in-out infinite;
}

@keyframes progress-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Status cycling animation */
@keyframes statusSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes statusGlint {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes matthewPulse {
    0%, 100% { text-shadow: 0 0 4px rgba(212, 160, 23, 0.3); }
    50% { text-shadow: 0 0 12px rgba(212, 160, 23, 0.5); }
}

@keyframes matthewGlint {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

#progressStatus.status-cycling {
    animation: statusSlideUp 400ms ease-out;
    background: linear-gradient(
        90deg,
        var(--text) 0%,
        var(--text) 40%,
        var(--vtx-accent) 50%,
        var(--text) 60%,
        var(--text) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: statusSlideUp 400ms ease-out, statusGlint 2.5s ease-in-out 0.4s infinite;
}

#progressStatus.status-matthew {
    font-size: 1.05em;
    background: linear-gradient(
        90deg,
        #d4a017 0%,
        #d4a017 40%,
        #fff5cc 50%,
        #d4a017 60%,
        #d4a017 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: statusSlideUp 400ms ease-out, matthewGlint 2.5s ease-in-out 0.4s infinite;
}

/* Progress spinner */
.progress-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid var(--border);
    border-top-color: var(--vtx-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.progress-spinner.spinner-error {
    border-top-color: #b91c1c;
    animation: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AI output toggle */
.btn-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-toggle:hover {
    border-color: var(--vtx-accent);
    color: var(--vtx-accent);
}

/* Select styling */
select {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    background: #fff;
}

select:focus {
    outline: none;
    border-color: var(--vtx-accent);
    box-shadow: 0 0 0 2px rgba(0, 163, 224, 0.2);
}

.mif-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Mode cards */
.mode-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
}

.mode-card:hover {
    border-color: var(--vtx-accent);
    box-shadow: 0 2px 8px rgba(0, 163, 224, 0.15);
}

.mode-card.selected {
    border-color: var(--vtx-blue);
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.15);
}

.mode-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--vtx-blue); }
.mode-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Toast notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    background: #0a7b4f;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: opacity 0.5s;
    max-width: 500px;
}

.toast-error { background: #b91c1c; cursor: pointer; }
.toast-fade { opacity: 0; }

/* Summary card */
.summary-card {
    background: var(--card-bg);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Company info */
.company-info {
    background: #f0f4f8;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.company-info:hover {
    background: #e2eaf3;
    border-color: #003366;
}

/* Method selection cards */
.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.method-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
    position: relative;
}

.method-card:hover:not(.disabled) {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.method-card.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.method-card .method-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.method-card h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.method-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.method-card.selected-ai {
    border-color: #5b5fc7;
    background: #f0f0ff;
    box-shadow: 0 2px 8px rgba(91, 95, 199, 0.15);
}

.method-card.selected-ai h4 { color: #5b5fc7; }

.method-card.selected-random {
    border-color: #0a7b4f;
    background: #e6f9f0;
    box-shadow: 0 2px 8px rgba(10, 123, 79, 0.15);
}

.method-card.selected-random h4 { color: #0a7b4f; }

.method-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
}

.method-badge-ai {
    background: #e8e8ff;
    color: #5b5fc7;
}

.method-badge-random {
    background: #d1fae5;
    color: #0a7b4f;
}

/* Deterministic form styles */
.rnd-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rnd-form .form-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.rnd-form .form-section:first-child {
    border-top: none;
    padding-top: 0;
}

.rnd-form .section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

select[multiple] {
    height: auto;
    min-height: 360px;
}

input[type="number"] {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--vtx-accent);
    box-shadow: 0 0 0 2px rgba(0, 163, 224, 0.2);
}

input[type="month"] {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
}

input[type="month"]:focus {
    outline: none;
    border-color: var(--vtx-accent);
    box-shadow: 0 0 0 2px rgba(0, 163, 224, 0.2);
}

/* Volume radio pills */
.volume-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.volume-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
}

.volume-option:hover {
    border-color: var(--vtx-accent);
}

.volume-option:has(input:checked) {
    border-color: #0a7b4f;
    background: #e6f9f0;
    color: #0a7b4f;
}

.volume-option input[type="radio"] {
    display: none;
}

.volume-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Tax category checkboxes */
.taxcat-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.taxcat-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.taxcat-option input[type="checkbox"] {
    accent-color: var(--vtx-blue);
}

/* Build button - green gradient for random path */
.btn-build {
    background: linear-gradient(135deg, #0a7b4f 0%, #10b981 100%);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-build:hover { opacity: 0.9; }
.btn-build:disabled { opacity: 0.5; cursor: not-allowed; }

/* =============================================
   90s RETRO ZONE - Abandon all taste, ye who enter
   ============================================= */

.retro-banner {
    background: linear-gradient(180deg, #000080 0%, #000050 100%);
    border-bottom: 3px solid #ffff00;
    padding: 0.5rem 1rem;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    color: #00ff00;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    font-size: 0.9rem;
    margin: -2rem -1.5rem 1.5rem -1.5rem;
}

.retro-counter {
    display: inline-block;
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.1rem 0.5rem;
    border: 2px inset #808080;
    letter-spacing: 0.15em;
    text-shadow: 0 0 6px #0f0;
}

.retro-links {
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.retro-link {
    color: #ffff00;
    text-decoration: underline;
    font-weight: bold;
}

.retro-link:hover { color: #ff0; text-decoration: none; }

.retro-separator {
    color: #808080;
    margin: 0 0.5rem;
}

.retro-webring {
    color: #ccc;
}

/* Guestbook page */
.retro-page {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.retro-title-bar {
    background: linear-gradient(180deg, #000080 0%, #000050 100%);
    border: 3px outset #c0c0c0;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.retro-title {
    color: #ffff00;
    font-size: 2rem;
    text-shadow: 2px 2px 0 #ff0000, 3px 3px 0 #000;
    animation: retro-rainbow 3s linear infinite;
}

.retro-subtitle {
    color: #00ffff;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.retro-marquee {
    color: #00ff00;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.retro-card {
    background: #c0c0c0;
    border: 3px outset #fff;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.retro-form-card {
    background: #ffffcc;
}

.retro-section-title {
    color: #000080;
    font-size: 1.2rem;
    border-bottom: 2px solid #000080;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.retro-form-group {
    margin-bottom: 0.75rem;
}

.retro-label {
    display: block;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.retro-hint {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
}

.retro-identity {
    display: block;
    font-weight: bold;
    color: #000080;
    font-size: 1rem;
    padding: 0.3rem 0;
}

.retro-input, .retro-textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 0.9rem;
    border: 2px inset #808080;
    background: #fff;
}

.retro-textarea { resize: vertical; }

.retro-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.retro-btn {
    background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%);
    border: 2px outset #fff;
    padding: 0.5rem 1.25rem;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 0.95rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.retro-btn:hover { background: linear-gradient(180deg, #d0d0d0 0%, #a0a0a0 100%); }
.retro-btn:active { border-style: inset; }
.retro-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.retro-status {
    color: #008000;
    font-weight: bold;
    font-size: 0.85rem;
}

.retro-error {
    background: #ff0000;
    color: #fff;
    padding: 0.5rem;
    font-weight: bold;
    margin-top: 0.5rem;
    border: 2px outset #ff6666;
    text-align: center;
}

.retro-entries {
    max-height: 500px;
    overflow-y: auto;
}

.retro-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.retro-entry {
    background: #fff;
    border: 2px inset #808080;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.retro-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.retro-entry-name {
    font-weight: bold;
    color: #000080;
    font-size: 0.9rem;
}

.retro-entry-date {
    color: #808080;
    font-size: 0.75rem;
}

.retro-entry-msg {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.retro-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 2px ridge #808080;
}

.retro-footer a { color: #000080; }

.retro-construction {
    color: #ff0000;
    font-weight: bold;
    font-size: 1rem;
    animation: retro-blink 1s step-end infinite;
    margin-top: 0.5rem;
}

@keyframes retro-rainbow {
    0% { color: #ff0000; }
    16% { color: #ff8800; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0088ff; }
    83% { color: #ff00ff; }
    100% { color: #ff0000; }
}

@keyframes retro-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 7px #ff00de, 0 0 10px #ff00de, 0 0 21px #ff00de, 0 0 42px #ff00de, 0 0 82px #ff00de, 0 0 92px #ff00de;
        color: #fff;
    }
    20%, 24%, 55% {
        text-shadow: none;
        color: #ff00de;
    }
}

.retro-neon {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    animation: neon-flicker 1.5s infinite alternate;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
