:root {
    --bg: #0f1115;
    --panel: #171a21;
    --border: #2a2e37;
    --text: #e6e8eb;
    --muted: #9aa1ac;
    --accent: #5b8def;
    --danger: #e5534b;
    --ok: #3fb950;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a { color: var(--text); text-decoration: none; font-weight: 600; }
header nav a { color: var(--muted); margin-left: 1rem; font-weight: 400; }

main {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

h1, h2, h3 { font-weight: 600; }
h2 { font-size: 1.1rem; margin-top: 0; }

table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--muted); font-weight: 500; width: 40%; }

a.button, button, input[type="submit"] {
    display: inline-block;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.92rem;
    text-decoration: none;
}

button.danger, input.danger { background: var(--danger); }
button.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }

input[type="text"], input[type="password"], input[type="url"] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    background: #0d0f13;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    margin-bottom: 0.9rem;
}

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; }

.notice {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.notice.ok { background: rgba(63,185,80,0.12); border: 1px solid var(--ok); }
.notice.err { background: rgba(229,83,75,0.12); border: 1px solid var(--danger); }

code { background: #0d0f13; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.88em; }

.site-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.site-row:last-child { border-bottom: none; }
.muted { color: var(--muted); font-size: 0.85rem; }

.cred-box { background: #0d0f13; border: 1px dashed var(--accent); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.cred-box div { margin-bottom: 0.4rem; word-break: break-all; }
