body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
    background: #050505;
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}
#stars-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero-shell, .dashboard {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: auto;
    padding: 48px 24px;
}
.hero-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 24px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 32px;
    align-items: center;
    transform: translateY(-45px);
}
.hero-copy {
    text-align: left;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}
.hero-copy h1 {
    margin: 0;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-transform: lowercase;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.hero-description {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.topbar h1 {
    font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tab {
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
}
.tab.active {
    background: linear-gradient(135deg, #ffffff, #b4f7cb);
    color: #020617;
    border-color: transparent;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.panel-copy {
    color: #cbd5e1;
    line-height: 1.6;
    margin-top: 0;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.panel-header h2 {
    margin: 0;
}
.panel-actions {
    margin-bottom: 0;
}
.file-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-upload input[type="file"] {
    padding: 12px;
    border-style: dashed;
}
.preprocessing-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.summary-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
}
.summary-label {
    display: block;
    color: #94a3b8;
    font-size: 0.82rem;
    margin-bottom: 6px;
}
.empty-state,
.success-state {
    color: #cbd5e1;
    line-height: 1.6;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
.success-state {
    color: #86efac;
    border-color: rgba(134,239,172,0.25);
}
.fault-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.fault-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
.fault-warning {
    border-color: rgba(250, 204, 21, 0.25);
}
.fault-error {
    border-color: rgba(248, 113, 113, 0.25);
}
.fault-title {
    font-weight: 700;
    margin-bottom: 6px;
}
.fault-resolution {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
}
.hidden {
    display: none;
}
.button.disabled,
a.button.disabled {
    opacity: 0.45;
    pointer-events: none;
}
.button {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #b4f7cb);
    color: #020617;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    margin-top: 12px;
    cursor: pointer;
    border: none;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(180,247,203,0.22);
}
.button.secondary {
    background: #111827;
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.12);
}
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.panel {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
}
.output-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
label {
    display: block;
    margin: 12px 0;
    font-weight: 600;
    color: #f8fafc;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.03);
    color: #f8fafc;
}
select {
    background: #0b1220;
    color: #f8fafc;
    appearance: none;
}
select option {
    background: #0f172a;
    color: #f8fafc;
}
input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}
textarea {
    min-height: 520px;
    font-family: Consolas, monospace;
    background: #03110a;
    color: #71f0a3;
    border: 1px solid rgba(113,240,163,0.3);
    box-shadow: inset 0 0 24px rgba(113,240,163,0.08);
}
.instructions-list ol {
    padding-left: 20px;
    color: #e2e8f0;
}
.auth-card {
    display: grid;
    gap: 16px;
    max-width: 480px;
    margin: auto;
    text-align: left;
    width: 100%;
}
.auth-panel {
    display: none;
    background: rgba(15, 23, 42, 0.84);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
}
.auth-panel.active {
    display: block;
}
.panel-label {
    margin: 0 0 8px;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}
.auth-panel h2 {
    margin-top: 0;
}
.auth-switch {
    margin-top: 14px;
    color: #cbd5e1;
}
.auth-switch a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}
@media (max-width: 900px) {
    .hero-grid,
    .workspace-grid,
    .auth-card {
        grid-template-columns: 1fr;
    }
    .hero-shell {
        padding-top: 84px;
    }
}
