:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #192c36;
  background: #f2f5f5;
  font-synthesis: none;
  --ink: #192c36;
  --subtle: #52656c;
  --line: #d8e3e3;
  --green: #0b6057;
  --white: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1d9685; outline-offset: 3px; }

.bar { background: #142e37; color: #fff; border-bottom: 3px solid #6cc9b3; }
.bar-inner {
  max-width: 1360px;
  min-height: 64px;
  padding: 0 36px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; white-space: nowrap; }
.brand strong { font-size: 1.37rem; font-weight: 850; letter-spacing: -.055em; }
.brand span { color: #dcebe9; padding-left: 14px; border-left: 1px solid #668187; font-size: .95rem; }
.account { display: flex; align-items: center; gap: 10px; font-size: .9rem; min-width: 0; }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 1360px; margin: auto; padding: 39px 36px 60px; }
h1 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -.045em; line-height: 1.15; }
h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
p { margin: 8px 0 0; line-height: 1.5; color: var(--subtle); }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.demo-label { background: #e2eee9; color: #24574c; padding: 7px 10px; border-radius: 6px; font-size: .83rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.login { max-width: 550px; margin: 52px auto; padding: 34px; }
.login p { margin-bottom: 20px; }
.profiles { display: flex; flex-wrap: wrap; gap: 9px; }
.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(100px, .53fr) minmax(140px, 1fr) minmax(134px, .72fr) auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
}
label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-weight: 650; font-size: .86rem; }
select, input {
  width: 100%;
  height: 41px;
  font: inherit;
  font-weight: 450;
  color: var(--ink);
  border: 1px solid #b9c9cb;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: .89rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #084b44; }
.secondary { color: #1e554f; background: #fff; border-color: #b1c8c5; }
.secondary:hover { background: #edf5f2; }
.quiet { color: #fff; background: transparent; border-color: #668187; min-height: 34px; }
button:disabled { cursor: default; opacity: .49; }
.results { margin-top: 22px; min-width: 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px; gap: 16px; }
.results-head p:empty { display: none; }
.results-head p { margin-top: 3px; font-size: .86rem; }
.notice { margin: 0 0 14px; border-radius: 6px; background: #e9f1f1; padding: 11px 13px; color: #365456; }
.results .notice { margin: 0 20px 15px; }
.warning { background: #fff5d9; color: #694e0c; }
.error { background: #fdecea; color: #8d2e2a; }
.empty { border-top: 1px solid var(--line); padding: 42px 20px; text-align: center; margin: 0; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
th, td {
  border-top: 1px solid var(--line);
  padding: 11px 15px;
  white-space: nowrap;
  vertical-align: top;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
}
th { background: #eaf2f0; color: #314e4e; font-weight: 680; }
td { font-variant-numeric: tabular-nums; }
tr:nth-child(even) td { background: #f8faf9; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; }
.table-footer span { color: var(--subtle); font-size: .85rem; }
.table-footer button { min-height: 34px; }

@media (max-width: 950px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  main { padding: 24px 14px 38px; }
  .bar-inner { padding: 0 14px; }
  .page-title { flex-direction: column; }
  .filters { padding: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicator, .filters button { grid-column: 1 / -1; }
  .results-head { padding: 14px; align-items: flex-start; flex-wrap: wrap; }
  .table-footer { padding: 10px 14px; flex-wrap: wrap; }
  .login { margin: 30px 0; padding: 21px; }
}
