*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #0f1419;
    color: #e6edf3;
    line-height: 1.5;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}
.top nav a { margin-left: 16px; }

.container { max-width: 960px; margin: 0 auto; padding: 24px 20px 48px; }
.container.narrow { max-width: 480px; }

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

h1 { font-size: 1.5rem; margin: 0 0 16px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #238636;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none !important;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: #21262d; color: #e6edf3 !important; border: 1px solid #30363d; }
.btn.danger { background: #da3633; }
.btn.small { padding: 4px 10px; font-size: 13px; }

label {
    display: block;
    font-size: 13px;
    color: #8b949e;
    margin: 12px 0 4px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
    font-size: 14px;
}

textarea { resize: vertical; min-height: 72px; }

.panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tbl th, .tbl td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #30363d;
}
.tbl th { color: #8b949e; font-weight: 600; }
.tbl code { font-size: 13px; background: #0d1117; padding: 2px 6px; border-radius: 4px; }
.nowrap { white-space: nowrap; }

.muted { color: #8b949e; font-size: 13px; }
.ok { color: #3fb950; }
.err { color: #f85149; }

.code {
    width: 100%;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #e6edf3;
    border-radius: 6px;
    padding: 10px;
}

.actions { margin-top: 24px; }
.danger-zone { border-color: #6e2a2a; }

.grid2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    margin-bottom: 12px;
}
.grid3 {
    display: grid;
    grid-template-columns: 1fr 100px 2fr;
    gap: 12px;
    margin-bottom: 12px;
}
.grid-src {
    display: grid;
    grid-template-columns: 1fr 170px 2fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 720px) {
    .grid2, .grid3, .grid-src { grid-template-columns: 1fr; }
}

.slug-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
form.inline { display: inline; margin: 0; }

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 28px;
}
.login-card h1 { margin-top: 0; font-size: 1.25rem; }
.login-card button { width: 100%; margin-top: 16px; }
