:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f3f6fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  color: white; background: #243536;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; }
h2 { font-size: 19px; }
.eyebrow { margin-bottom: 4px; color: #a9ddd2; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.environment { padding: 6px 10px; border: 1px solid #8ebbb1; border-radius: 999px; font-size: 12px; }
main { width: min(1180px, calc(100% - 32px)); margin: 28px auto; }
.panel { margin-bottom: 18px; padding: 22px; background: white; border: 1px solid #dde5f0; border-radius: 8px; box-shadow: 0 8px 24px rgba(25, 53, 86, .06); }
.login-panel { width: min(440px, 100%); margin: 56px auto; }
form { display: grid; gap: 14px; }
.inline-form { grid-template-columns: repeat(4, minmax(130px, 1fr)); align-items: end; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #b9c7da; border-radius: 7px; font: inherit; }
.checkbox { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.checkbox input { width: 18px; min-height: 18px; }
button { min-height: 40px; padding: 8px 14px; color: white; background: #176c5e; border: 0; border-radius: 7px; font-weight: 700; cursor: pointer; }
button:hover { background: #105447; }
button.secondary { color: #23415e; background: #e8eff7; }
button.danger { background: #a83d47; }
.toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.table-tools { display: flex; align-items: end; gap: 10px; margin-bottom: 12px; }
.table-tools label { width: min(420px, 100%); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 9px; border-bottom: 1px solid #e5eaf1; text-align: left; vertical-align: top; }
th { color: #5a6b7e; font-size: 12px; text-transform: uppercase; }
td.actions { display: flex; flex-wrap: wrap; gap: 6px; }
td.actions button { min-height: 30px; padding: 4px 8px; font-size: 12px; }
pre { min-height: 0; padding: 12px; overflow-x: auto; color: #d8f5e9; background: #1b2829; border-radius: 8px; white-space: pre-wrap; }
pre:empty { display: none; }
.message { min-height: 20px; margin: 12px 0 0; color: #a3313b; }

@media (max-width: 760px) {
  .inline-form { grid-template-columns: 1fr 1fr; }
  .table-tools { align-items: stretch; flex-direction: column; }
  header { padding: 22px 18px; }
  main { width: min(100% - 20px, 1180px); }
}
