* { box-sizing: border-box; }
:root { font-family: Inter, "Segoe UI", sans-serif; color: #182c42; background: #f7f8f5; line-height: 1.5; --blue: #153d69; --border: #dbe3e9; --muted: #4e6378; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1152px, 92%); margin-inline: auto; }
.top { background: #102d4c; color: white; }
.top-inner, .account, .heading, .records-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-inner { min-height: 70px; }
.brand { color: white; display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; text-decoration: none; }
.brand span { display: grid; place-items: center; background: #bde4ff; color: #102d4c; border-radius: 8px; width: 34px; height: 34px; }
.account { font-size: .88rem; }
main { padding-block: 33px 48px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.45rem); line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: 1.05rem; }
.heading { align-items: end; margin-bottom: 25px; }
.heading p, .entry p, small, .records-title span, .card > span { color: var(--muted); }
.heading .context { color: var(--blue); font-size: .88rem; font-weight: 700; margin-bottom: 5px; }
.heading h1 + p, .entry p { margin-top: 8px; }
.actions { display: grid; justify-items: end; gap: 5px; white-space: nowrap; }
button, input, select { font: inherit; }
.button, .quiet { cursor: pointer; padding: .53rem .9rem; border-radius: 8px; border: 1px solid transparent; }
.button { text-decoration: none; display: inline-block; }
.primary { background: var(--blue); color: white; font-weight: 650; }
.primary:hover { background: #0e2b4a; }
button:disabled { opacity: .65; cursor: progress; }
.quiet { color: white; background: transparent; border-color: #7390ab; }
:focus-visible { outline: 3px solid #4389ce; outline-offset: 3px; }
.metrics, .charts { display: grid; gap: 14px; margin-bottom: 16px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.charts { grid-template-columns: 1fr 1fr; }
.card, .entry { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.metrics strong { display: block; font-size: 1.9rem; line-height: 1.3; color: var(--blue); }
.bar-row { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr) 2.1rem; align-items: center; gap: 10px; margin-top: 9px; font-size: .86rem; }
.bar-row strong { text-align: right; }
meter { width: 100%; height: 14px; appearance: none; accent-color: #2b639e; }
meter::-webkit-meter-bar { background: #e8eef5; border: 0; border-radius: 8px; }
meter::-webkit-meter-optimum-value { background: #2b639e; border-radius: 8px; }
.filters { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 10px; padding-block: 14px; }
label { display: grid; gap: 4px; font-size: .84rem; font-weight: 650; }
input, select { padding: .5rem; min-width: 0; background: #fff; color: inherit; border: 1px solid #aebfce; border-radius: 7px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 630px; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: .64rem .55rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #eef3f8; color: #243f5d; }
td small, td a { display: block; }
td a { color: #205790; overflow-wrap: anywhere; max-width: 235px; }
tbody tr:last-child td { border-bottom: 0; }
.notice { padding: .7rem 1rem; margin-bottom: 14px; background: #e9f1fa; border: 1px solid #bdd1e7; border-radius: 9px; }
.entry { max-width: 660px; margin: 3rem auto; padding: 2rem; }
.entry .button { margin-top: 18px; }
@media (max-width: 760px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .charts, .filters { grid-template-columns: 1fr 1fr; }
  .heading { align-items: start; flex-direction: column; }
  .actions { justify-items: start; }
}
@media (max-width: 520px) {
  .charts { grid-template-columns: 1fr; }
  .card { padding: 12px; }
}
