:root { --bg: #f6f1e7; --card: #fffdf8; --ink: #2d1c10; --mute: #7a6653; --line: #e6dac6; --brand: #8c2f12; --brand2: #b5521c; --gold: #d99a2b; --ok: #1f7a4d; --bad: #b3261e; --field: #fff; }
@media (prefers-color-scheme: dark) { :root { --bg: #17100a; --card: #221810; --ink: #f4e9d8; --mute: #b09c86; --line: #3b2c1e; --brand: #e0813f; --brand2: #eb9b5c; --gold: #e7b04c; --ok: #4cc08b; --bad: #ff8a80; --field: #2b1f15; } }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 "Be Vietnam Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 20px; } h3 { font-size: 15px; margin-top: 1.1em; }
.top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: linear-gradient(90deg, #5e1c08, #8c2f12); color: #fff3df; flex-wrap: wrap; }
.top .logo { font-weight: 800; font-size: 18px; color: #ffe0a4; }
.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top nav a { color: #fff3df; text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.top nav a.on, .top nav a:hover { background: #ffffff24; }
.top button { color: #fff3df; background: transparent; border: 1px solid #ffffff55; }
main { max-width: 1320px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.muted { color: var(--mute); } .small { font-size: 13px; }
button, .btn { font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-block; text-decoration: none; min-height: 38px; }
button.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
button.bad { color: var(--bad); border-color: var(--bad); background: transparent; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
label { display: block; margin: 10px 0; font-weight: 500; }
label .hint { display: block; font-weight: 400; font-size: 13px; color: var(--mute); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea { width: 100%; font: inherit; padding: 8px 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); }
textarea { min-height: 76px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--brand); margin-top: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; }
.auth { max-width: 420px; margin: 7vh auto; padding: 0 16px; }
.auth h1 { color: var(--brand); text-align: center; margin-bottom: 4px; }
.err { color: var(--bad); min-height: 1.4em; }
.ok { color: var(--ok); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 13px; color: var(--mute); font-weight: 600; }
.tbl { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--line); }
.pill.live { background: #1f7a4d22; color: var(--ok); } .pill.err { background: #b3261e22; color: var(--bad); }
.room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 980px) { .room { grid-template-columns: 1fr; } .prev { position: static !important; } }
.prev { position: sticky; top: 12px; }
.prev .frame { aspect-ratio: 9/16; width: 100%; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.prev iframe { width: 100%; height: 100%; border: 0; display: block; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--mute); white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 180px; }
.url { font: 13px ui-monospace, Menlo, monospace; word-break: break-all; padding: 8px 10px; background: var(--field); border: 1px dashed var(--line); border-radius: 8px; }
.slot { padding: 10px 0; border-bottom: 1px solid var(--line); }
.slot:last-child { border-bottom: 0; }
.slot .nm { font-weight: 600; }
.val { float: right; font-weight: 400; color: var(--mute); font-variant-numeric: tabular-nums; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 10px; background: #2d1c10; color: #fff; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 90vw; z-index: 9; }
#toast.on { opacity: 1; }
