:root { color-scheme: dark; font: 15px/1.5 system-ui,sans-serif; color: #e8edf4; background: #10151e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1450px; margin: auto; padding: 32px clamp(12px, 4vw, 48px); }
header, .section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
h1, h2, h3, p { margin: 0 0 8px; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
.eyebrow { color: #8cb9fd; font-size: 12px; font-weight: 750; letter-spacing: .13em; }
.signals, nav, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.signals { align-items: center; }
.signals form { margin: 0; }
nav { margin: 22px 0 16px; }
button, input, textarea, select { font: inherit; }
button { border: 1px solid #40506a; background: #243148; color: inherit; border-radius: 7px; padding: 8px 13px; cursor: pointer; }
button:hover:not(:disabled) { border-color: #90bbf8; }
button[aria-pressed="true"], .primary { background: #83b8ff; color: #101b29; border-color: #83b8ff; font-weight: 700; }
button:disabled { opacity: .45; cursor: default; }
.badge { display: inline-block; border-radius: 20px; background: #29364d; padding: 5px 11px; font-size: 13px; }
.good { color: #9fe5c2; }
.warn { color: #ffd08a; }
.error { color: #ffabac; }
section { border: 1px solid #304056; border-radius: 12px; background: #182230; padding: 20px; }
section p, .muted, small { color: #afbed0; }
.muted { font-size: 13px; margin: 10px 0; }
.search, .fields label { display: flex; flex-direction: column; gap: 4px; }
.processing-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.processing-filters[hidden] { display: none; }
.processing-filters label { display: flex; flex-direction: column; gap: 4px; min-width: min(260px,100%); }
.processing-filters #processing-reason { max-width: 480px; }
input:not([type="checkbox"]), textarea, select { width: 100%; min-width: 0; background: #121c29; border: 1px solid #40506a; border-radius: 6px; color: inherit; padding: 8px 10px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)); gap: 14px; margin: 18px 0; }
.settings-block { border: 1px solid #40506a; border-radius: 8px; margin: 16px 0; padding: 12px 16px; }
.settings-block legend { padding: 0 7px; font-weight: 700; }
.check { display: flex; align-items: baseline; gap: 8px; margin: 12px 0; }
.fields .check { flex-direction: row; align-items: center; }
details.settings-block summary { cursor: pointer; font-weight: 700; }
.buy-controls { border-top: 1px solid #304056; margin-top: 18px; padding-top: 15px; }
#message { margin-top: 12px; }
#test-result { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #40506a; border-radius: 8px; background: #121c29; padding: 14px; min-height: 80px; }
.table-wrap { overflow: auto; margin: 12px 0 22px; }
.login-layout { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: min(100%, 410px); }
.login-form, .login-form label { display: flex; flex-direction: column; gap: 8px; }
.login-form { margin-top: 20px; gap: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; vertical-align: top; padding: 9px; border-bottom: 1px solid #304056; }
th { background: #212e40; color: #c4d4e7; white-space: nowrap; }
td span, td small { display: block; }
td small { font-variant-numeric: tabular-nums; }
