:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #263248; background: #f5f6f8; font-size: 15px; }
* { box-sizing: border-box; }
body { margin: 0; }
.container { max-width: 1380px; margin: 0 auto; padding: 28px 24px 48px; }
h1 { margin: 0 0 5px; font-size: 23px; letter-spacing: -.5px; }
h2 { margin: 0 0 12px; font-size: 18px; }
a { color: #315fbb; text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: #697489; font-size: 13px; line-height: 1.55; }
.card { background: #fff; border: 1px solid #dde2eb; border-radius: 10px; padding: 20px; margin-top: 18px; }
.topbar, .section-heading, .pagination, .store-switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.store-switch { justify-content: flex-start; margin-top: 22px; flex-wrap: wrap; }
.refresh { margin-left: auto; font-size: 13px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; background: #315fbb; color: white; border: 1px solid #315fbb; border-radius: 6px; padding: 9px 15px; cursor: pointer; white-space: nowrap; text-decoration: none; }
button:hover, .button:hover { background: #264e9f; text-decoration: none; }
.secondary { background: #fff; color: #435269; border-color: #d7deea; }
.secondary:hover { background: #f1f4f9; }
.selected { background: #315fbb; }
input, textarea, select { display: block; width: 100%; border: 1px solid #ccd5e2; border-radius: 6px; padding: 10px; font: inherit; background: #fff; color: #263248; margin-top: 7px; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid #6084d1; outline-offset: 2px; }
textarea { resize: vertical; min-height: 160px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.6; }
label { font-size: 13px; font-weight: 500; }
.stack { display: grid; gap: 15px; }
.stack button { justify-self: start; }
.command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.thresholds-form { display: flex; align-items: end; flex-wrap: wrap; gap: 20px; }
.thresholds-form label { flex: 1; min-width: 230px; }
.thresholds-form input { max-width: 170px; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form input { margin: 0; width: 180px; }
.tabs { display: flex; gap: 20px; }
.tabs a { padding: 10px 0; color: #697489; border-bottom: 2px solid transparent; }
.tabs .active { color: #315fbb; border-color: #315fbb; font-weight: 600; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #edf0f5; vertical-align: top; }
th { background: #f7f8fb; font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #fafbfd; }
.product-name { min-width: 200px; max-width: 420px; }
.nowrap { white-space: nowrap; }
.status { background: #edf1f8; border-radius: 4px; padding: 3px 6px; font-size: 11px; white-space: nowrap; }
.empty { text-align: center; color: #697489; padding: 28px; }
.pagination { margin-top: 15px; font-size: 13px; }
.pagination a { margin-left: 20px; }
.notice { padding: 12px 16px; margin: 0 0 16px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.notice.error { background: #fff0ef; color: #963630; border: 1px solid #efcac7; }
.notice.success { background: #edf7f0; color: #306441; border: 1px solid #cfe6d6; }
.notice.info { background: #edf3ff; color: #315fbb; border: 1px solid #d0def7; }
summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.log-selector { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 20px 0 16px; }
.log-selector label { flex: 1; min-width: 200px; }
.log-view { background: #f6f8fb; padding: 16px; max-height: 420px; overflow: auto; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 6px; }
.login-container { max-width: 430px; padding-top: 12vh; }
.login-card { padding: 28px; }
.login-card .stack { margin-top: 24px; }
.login-card button { width: 100%; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.checkbox input { width: auto; margin: 0; }
@media (max-width: 750px) {
  .container { padding: 18px 12px 32px; }
  .card { padding: 15px; }
  .command-grid { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
  .inline-form { width: 100%; }
  .inline-form input { flex: 1; min-width: 0; }
  .refresh { margin-left: 0; }
  .pagination { align-items: start; }
  .thresholds-form label { min-width: 180px; }
}
