:root {
    --bg: #0f1115;
    --panel: #171a21;
    --line: #262b36;
    --text: #e8eaf0;
    --muted: #8b93a7;
    --accent: #1ed760;
    --accent-ink: #06210f;
    --danger: #ff6b6b;
    --radius: 14px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 10% -10%, #1b2a22 0%, transparent 60%), var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }

.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.brand h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.logout { margin-left: auto; color: var(--muted); text-decoration: none; font-size: .9rem; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.logout:hover { color: var(--text); border-color: var(--muted); }

.logo { display: flex; align-items: flex-end; gap: 3px; height: 34px; flex: none; }
.logo span { width: 5px; background: var(--accent); border-radius: 3px; }
.logo span:nth-child(1) { height: 40%; }
.logo span:nth-child(2) { height: 75%; }
.logo span:nth-child(3) { height: 100%; }
.logo span:nth-child(4) { height: 65%; }
.logo span:nth-child(5) { height: 35%; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 380px; margin: 40px auto; }
.card h2 { margin: 0 0 14px; font-size: 1.1rem; }

label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
input:not([type=file]) {
    display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
    background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button, .button {
    display: inline-block; width: 100%; padding: 12px 18px; border: 0; border-radius: 10px;
    background: var(--accent); color: var(--accent-ink); font: 600 1rem/1.2 inherit; text-align: center;
    text-decoration: none; cursor: pointer;
}
button:disabled { opacity: .5; cursor: progress; }

.hint { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.hint strong { color: var(--text); }

.drop {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 34px 16px; margin-bottom: 16px; text-align: center;
    border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(30, 215, 96, .05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { color: var(--text); font-weight: 600; }
.drop-file { color: var(--muted); font-size: .9rem; word-break: break-all; }

.status { margin-top: 18px; }
.bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.bar.busy div { width: 35% !important; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.status p { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }

.result { margin-top: 20px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child { text-align: left; color: var(--muted); font-weight: 500; }
thead th { color: var(--muted); font-weight: 500; font-size: .85rem; }
td:last-child { color: var(--accent); font-weight: 600; }
.meta { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }

.alert { color: var(--danger); background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .3); padding: 10px 12px; border-radius: 10px; margin: 14px 0 0; }
.small { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }

.platforms ul { list-style: none; padding: 0; margin: 0; }
.platforms li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.platforms li b { font-weight: 500; color: var(--muted); text-align: right; }

[hidden] { display: none !important; }

@media (max-width: 520px) {
    .brand { flex-wrap: wrap; }
    .card { padding: 18px; }
    .platforms li { flex-direction: column; gap: 0; }
    .platforms li b { text-align: left; }
}
