:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #233146; background: #f6f8fb; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { padding: 9px 14px; border: 1px solid #cdd5e0; border-radius: 6px; background: white; color: #233146; cursor: pointer; white-space: nowrap; }
button:hover { background: #edf2f9; }
button:disabled { opacity: .55; cursor: wait; }
.primary { background: #255bbd; color: white; border-color: #255bbd; }
.primary:hover { background: #1e4c9f; }
.danger { color: #ad3340; }
input, textarea, select { width: 100%; padding: 10px 11px; border: 1px solid #cdd5e0; border-radius: 6px; background: white; color: #233146; }
input[type=checkbox] { width: 18px; height: 18px; }
label { display: grid; gap: 7px; font-weight: 500; }
label.check { display: flex; align-items: center; gap: 10px; }
:focus-visible { outline: 3px solid #8baded; outline-offset: 2px; }
header { min-height: 72px; display: flex; align-items: center; gap: 24px; padding: 16px 32px; background: white; border-bottom: 1px solid #dfe5ee; }
header #connection { margin-left: auto; }
.brand { font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.brand span { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: #66758a; margin-top: 6px; }
.layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: calc(100vh - 72px); }
nav { padding: 26px 16px; background: white; border-right: 1px solid #dfe5ee; }
nav a { display: block; padding: 12px 16px; border-radius: 6px; margin-bottom: 4px; }
nav a.active { color: #255bbd; background: #edf3ff; font-weight: 600; }
#content { padding: 30px 36px; max-width: 1600px; width: 100%; }
h1 { font-size: 27px; font-weight: 600; letter-spacing: -.6px; margin: 0 0 8px; }
h2 { font-size: 18px; font-weight: 600; margin: 0; }
p { line-height: 1.6; }
.muted { color: #66758a; }
.small { font-size: 12px; }
.title-row, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar { justify-content: flex-start; margin-top: 24px; margin-bottom: 14px; }
.toolbar input { max-width: 300px; }
.toolbar select { width: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid #dfe5ee; border-radius: 8px; margin: 26px 0; }
.stats > div { padding: 24px; border-right: 1px solid #dfe5ee; }
.stats > div:last-child { border: 0; }
.stats strong { display: block; font-size: 28px; margin-top: 10px; font-weight: 550; }
.panel { background: white; border: 1px solid #dfe5ee; border-radius: 8px; padding: 24px; margin: 20px 0; }
.table-wrap { overflow: auto; background: white; border: 1px solid #dfe5ee; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 16px; color: #66758a; background: #fafbfd; font-size: 12px; font-weight: 500; white-space: nowrap; }
td { padding: 15px 16px; border-top: 1px solid #e7ebf1; vertical-align: middle; }
td small { display: block; color: #66758a; margin-top: 5px; }
td .actions { display: flex; gap: 6px; }
td button { padding: 6px 9px; font-size: 12px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; color: #416076; background: #edf2f6; font-size: 12px; white-space: nowrap; }
.badge.good { color: #236648; background: #eaf5ef; }
.badge.bad { color: #a52d3c; background: #fceff0; }
.empty { text-align: center; padding: 48px 20px; color: #66758a; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.settings-grid .wide { grid-column: 1 / -1; }
.settings-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 24px 0; }
.login { width: min(440px, calc(100% - 40px)); margin: 10vh auto; padding: 32px; background: white; border: 1px solid #dfe5ee; border-radius: 10px; }
.login h1 { margin-top: 36px; }
form { display: grid; gap: 18px; }
#settings-form { gap: 0; }
.login button { margin-top: 5px; }
dialog { width: min(560px, calc(100% - 24px)); max-height: 92vh; overflow: auto; border: 1px solid #cdd5e0; border-radius: 10px; padding: 26px; color: #233146; }
dialog::backdrop { background: #23314666; }
dialog .title-row { margin-bottom: 0; }
#notice { position: fixed; bottom: 24px; right: 24px; max-width: min(520px, calc(100% - 48px)); padding: 16px 20px; background: #233146; color: white; border-radius: 8px; z-index: 5; line-height: 1.5; box-shadow: 0 4px 20px #23314622; }
code { font-size: 12px; overflow-wrap: anywhere; }
.alert { padding: 14px 18px; background: #fff4e5; color: #80571a; border-radius: 6px; margin: 16px 0; }
@media (max-width: 800px) { header { padding: 16px; gap: 12px; } header #connection { font-size: 12px; } .layout { display: block; } nav { display: flex; padding: 8px; overflow: auto; border-right: 0; border-bottom: 1px solid #dfe5ee; } nav a { margin: 0; padding: 10px 13px; } #content { padding: 24px 16px; } .stats > div { padding: 16px; } .stats strong { font-size: 23px; } .settings-grid { grid-template-columns: 1fr; } .title-row { align-items: flex-start; } .panel { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
