:root {
    --bg: #0b1220;
    --card: #0f1724;
    --accent: #ff6b6b;
    --error: #ef4444;
    --muted: #9aa4b2;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background: linear-gradient(180deg, var(--bg), #071022);
    color: #e6eef9;
    display: flex;
    align-items: center;
    align-items: safe center;
    justify-content: center;
    padding: 32px;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.shell {
    width: 100%;
    max-width: 820px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

.title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

.logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #ff9a9a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #08101a;
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.12), inset 0 -6px 18px rgba(255, 255, 255, 0.03);
}

h1 {
    margin: 0;
    font-size: 18px
}

p.lead {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 14px
}

.stage {
    margin-top: 18px
}

.status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px
}

.progress {
    height: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #2dd4bf);
    border-radius: 10px;
    transition: width 600ms linear;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.14) inset;
}

.log {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 8px;
    color: var(--muted);
    font-family: monospace;
    font-size: 13px;
    height: 140px;
    overflow: auto;
    white-space: pre-wrap;
}

.error {
    display: none;
    margin-top: 18px;
    padding: 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.04));
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.error h3 {
    margin: 0;
    color: #fff;
    font-size: 15px
}

.error p {
    margin: 8px 0 0 0;
    color: var(--muted);
    font-size: 13px
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 12px
}

.btn {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid white;
    font-weight: 600;
    cursor: pointer
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), #ff9a9a);
    border: 1px solid transparent;
    color: #08101a
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted)
}

.hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted)
}

footer {
    grid-column: 1/-1;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    text-align: center;
}