:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #61707a;
  --line: #d8e0e3;
  --panel: #ffffff;
  --band: #edf5f1;
  --accent: #0b6b62;
  --accent-2: #b33f62;
  --bg: #f7f8f6;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
.topbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 800; color: var(--ink); }
nav { display: flex; gap: 16px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 24px; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; }
h1, h2 { margin: 0 0 10px; letter-spacing: 0; }
h1 { font-size: 32px; }
h2 { font-size: 18px; }
.muted { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow: auto; }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
button { border: 0; border-radius: 6px; background: var(--accent); color: #fff; min-height: 38px; padding: 0 14px; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(0.94); }
.button-link { display: inline-flex; align-items: center; min-height: 38px; border-radius: 6px; background: var(--accent); color: #fff; padding: 0 14px; font-weight: 700; }
form.inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.settings-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.settings-form button { margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #10191f; color: #eff7f4; border-radius: 8px; padding: 14px; max-height: 560px; overflow: auto; }
footer { color: var(--muted); border-top: 1px solid var(--line); padding: 20px 24px; text-align: center; font-size: 13px; }
.auth { max-width: 420px; margin: 8vh auto; }
.error { color: var(--accent-2); font-weight: 700; }
.notice { background: #fff8da; border: 1px solid #e8d989; border-radius: 8px; padding: 14px; margin-bottom: 18px; overflow-wrap: anywhere; }
.section-head, .admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 14px; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .topbar, .band, .section-head, .admin-head { align-items: flex-start; flex-direction: column; }
  .two { grid-template-columns: 1fr; }
  .shell { padding: 16px; }
  table { font-size: 13px; }
}
