* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16px;
}
.box {
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding: 32px 24px;
}
h1 { font-size: 38px; margin: 0 0 8px; }
.sub { color: #94a3b8; margin: 0 0 24px; }
form { display: flex; gap: 8px; flex-wrap: wrap; }
input[type=url] {
    flex: 1 1 280px;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 6px;
    outline: none;
}
input[type=url]:focus { border-color: #38bdf8; }
button {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    background: #38bdf8;
    color: #0f172a;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.status { margin-top: 18px; min-height: 1.4em; color: #94a3b8; font-size: 14px; }
.status.error { color: #f87171; }
.status.ok { color: #4ade80; }
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #334155;
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: -2px;
}
[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
