:root {
  color-scheme: light;
  --ink: #182521;
  --muted: #51615c;
  --accent: #155a49;
  --line: #d5dfd9;
  --paper: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #f3f5f2;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid #bb6800; outline-offset: 3px; }
.skip, .sr-only:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  top: 0;
  left: 0;
  z-index: 2;
  width: auto;
  height: auto;
  clip-path: none;
  background: #fff;
  padding: .7rem 1rem;
}
.masthead { background: #172e28; color: #fff; }
.topbar, .nav-shell nav, .workspace {
  width: min(75rem, 100%);
  padding-inline: clamp(1rem, 4vw, 3.5rem);
  margin-inline: auto;
}
.topbar {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand, .account { display: flex; align-items: center; gap: 1rem; }
.wordmark { color: #fff; font-size: 1.7rem; font-weight: 750; letter-spacing: -.075em; line-height: 1; }
.wordmark span { color: #ffbd52; }
.product { border-left: 1px solid #61736d; color: #e1eae4; padding-left: 1rem; font-weight: 550; }
.identity { color: #cfddd6; font-size: .88rem; overflow-wrap: anywhere; }
.session-link, .text-button {
  border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em;
  font-size: .9rem; color: var(--accent); font-weight: 590; padding: .55rem .15rem;
}
.session-link { color: #fff; white-space: nowrap; }
.nav-shell { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-shell nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.nav-shell a {
  padding-block: .9rem .72rem; display: block; border-bottom: 3px solid transparent;
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600;
}
.nav-shell a[aria-current="page"], .nav-shell a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.workspace { padding-block: clamp(1.75rem, 4vw, 3.5rem) 4rem; }
.public-page { max-width: 29rem; margin: clamp(2rem, 9vh, 6.5rem) auto; padding: 0 1rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 1.7rem; }
h2 { font-size: 1.18rem; line-height: 1.32; letter-spacing: -.022em; }
p { color: var(--muted); max-width: 76ch; }
h2 + p { margin-top: .55rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.panel {
  min-width: 0; padding: clamp(1.1rem, 2.7vw, 1.9rem); background: var(--paper); border: 1px solid var(--line);
  border-radius: .75rem;
}
.workspace > .panel + .panel, .workspace > .message, .workspace > .activation { margin-block: 1rem; }
.stat { display: flex; flex-direction: column; }
.metric { color: var(--ink); margin: 1.6rem 0 .85rem; line-height: 1.3; }
.timestamp { font-size: clamp(1.28rem, 2.3vw, 1.7rem); font-weight: 620; letter-spacing: -.035em; }
.meta { font-size: .88rem; border-top: 1px solid var(--line); margin-top: auto; padding-top: .9rem; }
.stat .meta { margin-top: 1.3rem; }
.meta strong { font-weight: 560; }
.flag {
  display: inline-flex; align-items: center; gap: .42rem; font-size: .85rem;
  line-height: 1.3; border-radius: 2rem; padding: .32rem .72rem; font-weight: 640;
  color: #43544e; background: #edf1ee;
}
.flag::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; flex: none; }
.flag.good { color: #15583d; background: #e0f3e5; }
.flag.warning { color: #763a07; background: #fff0d6; }
.metric .flag { font-size: 1.05rem; padding: .42rem .88rem; }
.handoff { border-left: 4px solid #b48133; }
.auth { padding: clamp(1.3rem, 3.5vw, 2.15rem); }
.auth h1 { font-size: 1.85rem; margin-bottom: 1.25rem; }
.stack, .filters { display: grid; gap: 1rem; }
.stack { margin-top: 1rem; }
.filters { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; margin-top: 1.25rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field span { font-weight: 600; font-size: .88rem; }
.field input, select {
  width: 100%; color: var(--ink); background: var(--paper); border: 1px solid #86988e;
  border-radius: .35rem; padding: .51rem .66rem; min-height: 2.65rem;
}
.field input:hover, select:hover { border-color: var(--accent); }
.actions, .inline-form, .pager { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.inline-form { align-items: end; margin-top: 1.1rem; }
.inline-form .field { flex: 0 1 22rem; }
.primary, .secondary, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem;
  padding: .52rem 1rem; border: 1px solid var(--accent); border-radius: .38rem;
  text-decoration: none; font-weight: 625; line-height: 1.4;
}
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: #0e4437; }
.secondary, .button { color: var(--accent); background: #fff; }
.secondary:hover, .button:hover { background: #eaf4ee; }
.back { display: inline-flex; margin-bottom: 1rem; font-size: .9rem; }
.footlink { margin-top: 1.15rem; font-size: .92rem; }
.empty { margin: 1rem 0; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 1.1rem; }
.table-wrap:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--line); padding: .68rem .65rem; vertical-align: middle; }
th { color: var(--muted); background: #f2f5f2; font-size: .82rem; white-space: nowrap; }
td { overflow-wrap: anywhere; }
td time { white-space: nowrap; }
.reference { font-weight: 590; }
.pager { margin-top: 1rem; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin: .7rem 0 1.25rem; }
.pairs > div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
dt { font-size: .86rem; color: var(--muted); }
dd { margin: .15rem 0 0; overflow-wrap: anywhere; font-weight: 575; }
.message, .activation { border-radius: .4rem; padding: .8rem 1rem; overflow-wrap: anywhere; margin-block: 1rem; }
.message.error { background: #fff0ec; border: 1px solid #f0c7bf; color: #872a20; }
.message.notice, .activation { background: #e3f1e8; border: 1px solid #bddac8; color: #16472f; }
.activation code { display: block; width: fit-content; margin: .55rem 0; padding: .35rem .6rem; background: #fff; font-size: 1rem; }
.activation p { color: inherit; }
@media (max-width: 50rem) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 35rem) {
  .topbar { align-items: flex-start; flex-wrap: wrap; gap: .3rem .7rem; padding-block: .7rem; min-height: 0; }
  .brand, .account { gap: .6rem; }
  .product { padding-left: .6rem; font-size: .85rem; }
  .nav-shell nav { gap: 1.15rem; }
  .filters, .pairs { grid-template-columns: 1fr; }
  .inline-form { display: grid; }
  .table-wrap { margin-inline: -.3rem; }
}
