:root { color-scheme: dark; --bg: #0e0c1f; --card: #1a1736; --line: #2f2a5c; --ink: #f3f1ff; --muted: #a8a3d4; --accent: #ffc94d; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, 'Noto Sans Ethiopic', sans-serif; padding: 16px; }
[hidden] { display: none !important; }
h1 { font-size: 1.3rem; }
h2 { font-size: 1rem; color: var(--accent); }
header { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
#badges { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { border: 1px solid var(--line); border-radius: 20px; padding: 2px 12px; font-size: 0.85rem; }
.badge.ok { border-color: #2ee58f; color: #2ee58f; }
.badge.warn { border-color: var(--accent); color: var(--accent); }
.badge.bad { border-color: #ff6b7a; color: #ff6b7a; }
#message { min-height: 1.5em; margin: 8px 0; color: #2ee58f; }
#message.error, .error { color: #ff6b7a; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#login { max-width: 420px; margin: 12vh auto; }
.layout { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.wide { grid-column: 1 / -1; }
.frame { aspect-ratio: 9 / 16; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
iframe { width: 100%; height: 100%; border: 0; }
form { display: flex; flex-direction: column; gap: 10px; }
form.row { flex-direction: row; }
form.row input { flex: 1; min-width: 0; }
label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.85rem; }
label.inline { flex-direction: row; align-items: center; }
input, select, button { font: inherit; color: var(--ink); background: #100e28; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
button { background: #3a2f85; cursor: pointer; }
button:hover { filter: brightness(1.2); }
button.ghost { background: transparent; align-self: flex-start; }
button.danger { background: #7d2036; }
button.active { outline: 2px solid var(--accent); }
a { color: var(--accent); align-self: center; }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: 0.85rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
ol, ul { padding-left: 22px; max-height: 220px; overflow: auto; }
pre { max-height: 260px; overflow: auto; font-size: 0.78rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .preview { max-width: 360px; } }
