:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  color: #1b2925;
  background: #f7f9f8;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: #16685d; text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 12px; color: #61716b; }
.mono, code, .activation-code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.break { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #f0985d; outline-offset: 2px; }
.topbar { background: #fff; border-bottom: 1px solid #d9e3de; }
.topbar-inner { width: min(1360px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #1b2925; font-weight: 800; white-space: nowrap; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand small { display: block; margin-top: 3px; font-weight: 500; }
.brand-mark { width: 38px; height: 38px; border-radius: 5px; background: #16685d; color: #fff; font-size: 13px; font-weight: 900; display: inline-grid; place-items: center; flex: none; }
.topbar nav { display: flex; align-items: stretch; gap: 2px; align-self: stretch; }
.topbar nav a { display: inline-flex; align-items: center; border-bottom: 3px solid transparent; padding: 0 13px; color: #57665f; font-weight: 700; white-space: nowrap; }
.topbar nav a[aria-current="page"] { border-bottom-color: #16685d; color: #145b51; }
.topbar nav a:hover { text-decoration: none; color: #145b51; background: #f5f8f6; }
.account { margin-left: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.account a { max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: #31413b; font-weight: 700; }
.text-button { border: 0; background: transparent; color: #687971; padding: 8px 0; }
.text-button:hover { color: #b04431; }
.content { width: min(1360px, calc(100% - 40px)); margin: 30px auto 64px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-title h1 { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 800; }
.page-title p { margin: 7px 0 0; color: #61716b; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; border-radius: 5px; border: 1px solid #9cafa6; background: #fff; color: #23453e; font-weight: 750; text-align: center; white-space: nowrap; }
.button:hover { background: #eef5f1; text-decoration: none; }
.button.primary { border-color: #16685d; background: #16685d; color: #fff; }
.button.primary:hover { background: #0e5248; }
.button.quiet { background: #eef3f0; border-color: #eef3f0; color: #38544c; }
.button.warning { color: #984c18; border-color: #e9cbb3; background: #fff7ee; }
.button:disabled { opacity: .6; cursor: not-allowed; }
.notice { padding: 13px 16px; border-radius: 5px; border: 1px solid; margin: 0 0 22px; overflow-wrap: anywhere; }
.notice p { margin: 6px 0 0; }
.notice-success { background: #e5f5ec; border-color: #b9dfc9; color: #215e3c; }
.notice-error { background: #fff0ed; border-color: #eec0b6; color: #953b30; }
.notice-warning { background: #fff7e9; border-color: #e7d4a9; color: #745323; }
.notice code { user-select: all; font-size: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #d9e3de; border-bottom: 1px solid #d9e3de; margin: 0 0 34px; }
.metrics div { padding: 22px 25px 24px; border-right: 1px solid #d9e3de; }
.metrics div:first-child { padding-left: 0; }
.metrics div:last-child { border-right: 0; }
.metrics strong { display: block; font-size: 30px; line-height: 1.2; }
.metrics span { display: block; margin-top: 5px; color: #61716b; }
.section { margin: 0 0 38px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2, .form-section h2, .form-stack h2, .side-section h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.section-title form { margin-left: auto; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #dae3de; border-radius: 5px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e8eeea; vertical-align: top; }
th { color: #51635a; background: #f1f5f2; font-size: 12px; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfa; }
td strong { display: block; font-weight: 740; }
td small { display: block; margin-top: 3px; }
td.mono { font-size: 12px; white-space: nowrap; }
td a { font-weight: 750; }
.empty { padding: 35px; color: #64746c; text-align: center; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.good { background: #e0f2e7; color: #176342; }
.badge.bad { background: #fce7e3; color: #a1392f; }
.badge.muted { background: #ecf0ee; color: #667770; }
.form-stack { display: grid; gap: 20px; }
.form-width { width: min(720px, 100%); }
.form-section { display: grid; gap: 16px; padding: 0 0 22px; border-bottom: 1px solid #d9e3de; }
.form-section:last-child { border-bottom: 0; }
label { display: grid; gap: 7px; font-weight: 720; color: #344740; }
input:not([type="hidden"]):not([type="checkbox"]), select, textarea { min-width: 0; width: 100%; border: 1px solid #aebdb4; border-radius: 5px; background: #fff; color: #1b2925; padding: 10px 12px; }
input:not([type="hidden"]):not([type="checkbox"]), select { min-height: 42px; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.field-note { margin: -6px 0 0; font-size: 13px; color: #66766e; }
.required { color: #b04431; }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.filter-bar label { font-size: 12px; }
.filter-bar .search-label { flex: 1; min-width: 280px; }
.logs-filter label { width: min(170px, 100%); }
.filter-bar .button { min-height: 42px; }
.result-count { margin: 0 0 12px; color: #61716b; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 15px; margin-top: 16px; }
.pagination span { color: #63746b; }
.license-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; border-top: 1px solid #d9e3de; border-bottom: 1px solid #d9e3de; padding: 26px 0; }
.detail-primary { align-self: start; }
.eyebrow { display: block; color: #65766d; font-size: 12px; text-transform: uppercase; font-weight: 800; }
.activation-code { margin: 15px 0 17px; padding: 18px 20px; border: 1px solid #a5c6b6; border-radius: 5px; background: #eef8f2; color: #174d3a; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; user-select: all; }
.activation-code.masked { color: #88978e; border-color: #d9e3de; background: #f1f5f2; user-select: none; }
.detail-primary > .field-note { margin: 12px 0 0; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 22px; margin: 0; }
.details div { min-width: 0; }
.details div.wide { grid-column: 1 / -1; }
.details dt { margin-bottom: 4px; color: #697970; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 650; }
.details.compact { grid-template-columns: 1fr; gap: 17px; }
.important-note { color: #7a5632; padding: 12px 0; font-size: 13px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr); gap: 50px; max-width: 960px; }
.two-column .form-stack, .side-section { align-content: start; }
.side-section { display: grid; gap: 20px; }
.reset-form { margin-top: 10px; border-top: 1px solid #d9e3de; padding-top: 20px; }
.check-row { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: #16685d; }
.log-detail { min-width: 180px; padding: 10px 0; font-size: 12px; }
.log-detail pre { max-width: 350px; white-space: pre-wrap; overflow-wrap: anywhere; }
details summary { cursor: pointer; color: #16685d; font-weight: 750; }
.footer { width: min(1360px, calc(100% - 40px)); margin: 30px auto; border-top: 1px solid #d9e3de; padding-top: 15px; color: #87948c; font-size: 12px; }
.auth-page { background: #f3f7f4; }
.auth-layout, .setup-layout { width: min(460px, calc(100% - 28px)); margin: min(10vh, 95px) auto 30px; }
.setup-layout { width: min(700px, calc(100% - 28px)); margin-top: 45px; }
.auth-header { display: flex; align-items: center; gap: 13px; margin-bottom: 27px; }
.auth-header .brand-mark { width: 46px; height: 46px; }
.auth-header small { font-weight: 700; text-transform: uppercase; }
.auth-header h1 { margin: 3px 0 0; font-size: 25px; }
.auth-layout .login-form, .setup-layout .form-stack { border: 1px solid #d9e3de; border-radius: 5px; background: #fff; padding: 25px; }
.login-form { display: grid; gap: 18px; }
.subtle { color: #61716b; }
.setup-success { border: 1px solid #b9dfc9; border-radius: 5px; background: #fff; padding: 25px; }
.setup-success h2 { margin-top: 0; }
.setup-success dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; padding: 16px; background: #e5f5ec; border-radius: 5px; }
.setup-success dt { font-weight: 800; }
.setup-success dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1060px) { .topbar-inner { flex-wrap: wrap; gap: 0 18px; padding-top: 12px; } .topbar nav { order: 3; width: 100%; overflow-x: auto; min-height: 50px; } .topbar nav a { padding: 0 11px; } .account { margin-left: auto; } }
@media (max-width: 720px) { .topbar-inner, .content, .footer { width: min(100% - 24px, 1360px); } .content { margin-top: 23px; } .page-title { align-items: start; flex-wrap: wrap; } .page-title h1 { font-size: 23px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics div { padding: 17px 13px; border-bottom: 1px solid #d9e3de; } .metrics div:nth-child(2) { border-right: 0; } .metrics div:nth-last-child(-n+2) { border-bottom: 0; } .metrics div:first-child { padding-left: 13px; } .license-detail, .two-column { grid-template-columns: 1fr; gap: 24px; } .form-grid { grid-template-columns: 1fr; } .logs-filter label { flex: 1 1 130px; } .activation-code { font-size: 16px; } .topbar nav a { font-size: 13px; } }
@media (max-width: 440px) { .account a { max-width: 95px; } .brand { font-size: 14px; } .auth-layout .login-form, .setup-layout .form-stack { padding: 18px; } .details { grid-template-columns: 1fr; } .section-title { align-items: start; flex-wrap: wrap; } }
