/* Panel Vibeuu - publiczna rejestracja i /admin. Jeden plik, bez frameworka. */
:root {
  --bg: #f4f5f7; --card: #ffffff; --text: #23272f; --muted: #6b7280; --line: #e3e6ea;
  --accent: #2563eb; --accent-text: #ffffff; --ok-bg: #e7f6ec; --ok: #166534; --err-bg: #fdecec; --err: #b42318;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181d; --card: #1e222a; --text: #e6e9ef; --muted: #9aa3b2; --line: #2d333d;
    --accent: #5b8def; --ok-bg: #12301f; --ok: #86efac; --err-bg: #3a1717; --err: #fca5a5;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--text); }
.langs a, .admin-nav a, .link { margin-left: .75rem; text-decoration: none; color: var(--muted); font: inherit; }
.langs a.active { color: var(--text); font-weight: 600; }
.admin-nav { display: flex; align-items: center; flex-wrap: wrap; }
.inline { display: inline; }
.link { background: none; border: 0; padding: 0; cursor: pointer; }
main { margin: 2rem auto; padding: 2rem 16px; background: var(--card); border-radius: 10px; }
main.narrow { max-width: 36rem; }
main.wide { max-width: 80rem; overflow-x: auto; }
h1 { margin: 0 0 .5rem; font-size: 1.6rem; }
h2 { margin-top: 2rem; font-size: 1.2rem; }
.lead { color: var(--muted); margin-top: 0; }
label { display: block; margin-top: 1rem; font-weight: 600; }
input, select { width: 100%; padding: .6rem .7rem; margin-top: .3rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.subdomain { display: flex; align-items: center; gap: .4rem; }
.subdomain input { flex: 1; }
.suffix { color: var(--muted); white-space: nowrap; margin-top: .3rem; }
.hint { color: var(--muted); font-size: .88rem; margin: .3rem 0 0; }
.status { min-height: 1.4rem; margin: .3rem 0 0; font-size: .92rem; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); } .status.busy { color: var(--muted); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: .3rem; }
button { margin-top: 1.5rem; padding: .7rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--accent-text); background: var(--accent); border: 0; border-radius: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: .8rem 1rem; border-radius: 6px; margin: 1rem 0; }
.msg.ok { background: var(--ok-bg); color: var(--ok); } .msg.err { background: var(--err-bg); color: var(--err); }
.msg ul { margin: 0; padding-left: 1.2rem; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 16px 2rem; }
table.grid { width: 100%; border-collapse: collapse; font-size: .9rem; }
.grid th, .grid td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.grid .empty, .muted { color: var(--muted); }
.st-provisioningfailed td { color: var(--err); } .st-deleted td { color: var(--muted); text-decoration: line-through; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1.2rem 0 0; padding: .4rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 .4rem; }
.settings { max-width: 32rem; }
@media (max-width: 600px) { main { margin: 0; border-radius: 0; padding: 1.5rem 16px; } }
