/* Neutral, flat controls matching the authorization page. */
:root { color-scheme:light; --blue:#0071e3; --line:rgba(0,0,0,.08); --muted:#6e6e73; color:#1d1d1f; background:#fff; }
body { background:#fff; min-height:100vh; }
main { padding:4px 0 20px; }
textarea { background:#f8f8fa; color:#1d1d1f; border-color:rgba(0,0,0,.08); border-radius:10px; }
textarea:focus, textarea:focus-visible { outline:none; box-shadow:none; border-color:rgba(0,0,0,.12); }
.input-section label, .input-hint { color:#6e6e73; }
.form-actions { margin-top:12px; }
.form-actions .primary { max-width:none; width:100%; min-height:42px; background:#0071e3; box-shadow:none; border-radius:10px; font-weight:500; }
.form-actions .primary .icon { color:#fff; }
.time-icon { background:#f2f5fa; color:#0071e3; }
.game-icon { border-radius:10px; box-shadow:none; }
:root[data-theme="dark"] { color-scheme:dark; background:#242427; color:#f0f0f2; --blue:#64a8f4; --muted:#a7a7af; --line:rgba(255,255,255,.09); }
[data-theme="dark"] body { background:#242427; }
[data-theme="dark"] textarea, [data-theme="dark"] .search-box, [data-theme="dark"] .search-box input { background:#2c2c30; color:#f0f0f2; border-color:#44444b; }
[data-theme="dark"] textarea::placeholder, [data-theme="dark"] input::placeholder { color:#85858e; }
[data-theme="dark"] .input-section label, [data-theme="dark"] .input-hint, [data-theme="dark"] .account-state, [data-theme="dark"] .text-button, [data-theme="dark"] .time-copy p, [data-theme="dark"] .game-metrics, [data-theme="dark"] .game-actions>span, [data-theme="dark"] .list-note, [data-theme="dark"] .list-heading>span, [data-theme="dark"] .game-status, [data-theme="dark"] .list-heading h2>span { color:#a7a7af; }
[data-theme="dark"] .game-card, [data-theme="dark"] .time-bar, [data-theme="dark"] dialog, [data-theme="dark"] .toast { background:#2c2c30; color:#f0f0f2; border-color:#44444b; }
[data-theme="dark"] .game-info h3, [data-theme="dark"] .time-copy strong, [data-theme="dark"] .list-heading h2 { color:#f0f0f2; }
[data-theme="dark"] .game-actions { border-color:#44444b; }
[data-theme="dark"] .filters, [data-theme="dark"] .filter, [data-theme="dark"] .secondary { background:#343438; color:#bcbcc4; border-color:#44444b; }
[data-theme="dark"] .filter.active { background:#253c51; color:#9bcbfa; }
[data-theme="dark"] .game-status.banned { color:#9bcbfa; }
[data-theme="dark"] .switch { background:#54545c; }
[data-theme="dark"] .switch[aria-checked="true"] { background:#0071e3; }
[data-theme="dark"] .primary { color:#fff; }
[data-theme="dark"] .form-error, [data-theme="dark"] .error-banner { background:#432c30; border-color:#734256; color:#ffadc0; }
[data-theme="dark"] dialog>p { color:#a7a7af; }
[data-theme="dark"] dialog::backdrop { background:#0008; }
@media(max-width:500px) { main { padding:4px 2px 16px; } textarea { min-height:130px; } }

/* Keep iPhone input editing at the normal viewport scale. */
textarea, input, select { font-size: 16px; max-width: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
