:root {
  color-scheme: light;
  --ink: #172c26;
  --dark: #122723;
  --muted: #52665e;
  --paper: #f3f6f3;
  --white: #fff;
  --line: #d3ddd7;
  --action: #1b624f;
  --action-hover: #124a3b;
  --focus: #127e64;
  --danger: #a12630;
  --scrollbar: #85998f;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: var(--scrollbar) var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--action); text-underline-offset: .2em; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.12; margin-bottom: 0; letter-spacing: -.05em; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; margin-bottom: 1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .48rem .82rem;
  background: var(--white);
  font-size: .875rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button:hover:not(:disabled), .button:hover { background: #e8efea; color: var(--ink); }
button:active:not(:disabled), .button:active { border-color: var(--action); }
button:disabled { opacity: .65; cursor: default; }
button.primary { color: var(--white); border-color: var(--action); background: var(--action); }
button.primary:hover:not(:disabled) { color: var(--white); background: var(--action-hover); }
button.danger { color: var(--white); border-color: var(--danger); background: var(--danger); }
button.danger:hover:not(:disabled) { color: var(--white); background: #801a23; }
button.text-danger { color: var(--danger); border-color: transparent; background: transparent; }
button.text-danger:hover:not(:disabled) { color: var(--danger); background: #fbecee; }
.frame { margin-inline: auto; width: min(100% - 2.5rem, 79rem); }
.masthead { color: var(--white); background: var(--dark); }
.masthead-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { color: var(--white); text-decoration: none; font-size: 1.22rem; font-weight: 820; letter-spacing: -.035em; white-space: nowrap; }
.wordmark:hover { color: #caece0; }
.wordmark span { font-size: .92rem; color: #c4ddd4; font-weight: 500; margin-inline-start: .38rem; letter-spacing: 0; }
.masthead :focus-visible { outline-color: #8dd5bc; }
.account { display: flex; align-items: center; gap: 1rem; font-size: .85rem; }
.account span { overflow-wrap: anywhere; }
.account button { min-height: 36px; white-space: nowrap; }
.shell { padding-block: 2rem 3rem; }
.signed-in { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.3rem; }
.product-nav { padding-inline-end: 1rem; border-inline-end: 1px solid var(--line); }
.product-nav h2 { margin: .12rem 0 .65rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.product-nav a {
  display: flex;
  gap: .65rem;
  align-items: center;
  min-height: 48px;
  padding: .35rem .5rem;
  margin-bottom: .25rem;
  text-decoration: none;
  border-radius: 7px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
}
.product-nav a:hover, .product-nav [aria-current] { background: #e0ede5; }
.product-nav [aria-current] { box-shadow: inset 3px 0 var(--action); color: var(--action-hover); }
.product-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 5px;
  border: 1px solid #bacdc3;
  background: var(--white);
  font: 700 .75rem var(--mono);
}
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1.35rem; }
.product-name { margin-bottom: .25rem; font-size: .875rem; font-weight: 700; color: var(--action); }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1rem; }
.login { width: min(100%, 27rem); padding: clamp(1.25rem, 5vw, 2rem); margin: clamp(1rem, 8vh, 5rem) auto; }
.login h1 { margin-bottom: .5rem; }
.login p { color: var(--muted); }
.login button[type=submit] { width: 100%; margin-top: .4rem; }
.settings, .records, .problem { padding: clamp(1rem, 3vw, 1.5rem); }
.section-title { margin: 0; padding: 1rem 1.25rem; }
.section-title span { color: var(--muted); padding-inline-start: .35rem; font-weight: 500; }
.toolbar { padding: .86rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.search, .password { display: flex; align-items: stretch; gap: .45rem; }
.search { width: min(100%, 21rem); }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  background: var(--white);
  border: 1px solid #a9bdb2;
  border-radius: 7px;
  padding: .5rem .65rem;
}
textarea { resize: none; field-sizing: content; min-height: 5.8rem; }
[aria-invalid=true] { border-color: var(--danger); }
label { font-weight: 650; font-size: .9rem; }
.field { display: block; margin-bottom: .75rem; }
.field input, .field select, .field textarea { display: block; margin-top: .3rem; }
.field small { display: block; margin-top: .3rem; font-weight: 400; color: var(--muted); }
label[for=password] { margin-bottom: .3rem; }
.password { margin-bottom: .75rem; }
.password button { min-width: 4rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; }
.span { grid-column: 1 / -1; }
fieldset { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 7px; }
legend { font-size: .95rem; font-weight: 700; }
.fixed-code { font: .9rem var(--mono); margin-top: .75rem; }
.form-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; align-items: center; }
.metadata { color: var(--muted); font-size: .85rem; margin: .85rem 0 0; }
.table-wrap { overflow: auto; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: start; font-size: .9rem; }
th, td { text-align: start; padding: .7rem 1rem; vertical-align: middle; border-top: 1px solid var(--line); }
thead th { color: var(--muted); background: #f5f8f5; font-size: .82rem; white-space: nowrap; }
tbody th { min-width: 8rem; overflow-wrap: anywhere; max-width: 22rem; }
tbody th a { display: inline-block; font-weight: 740; }
tbody td { min-width: max-content; overflow-wrap: anywhere; }
tbody tr:hover { background: #f8faf8; }
.code { display: block; font: .78rem/1.35 var(--mono); color: var(--muted); margin-top: .23rem; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 5px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge.active { color: #174b36; background: #e1f0e6; }
.badge.suspended { color: #83252a; background: #f9e8e9; }
.badge.expired, .badge.expiring { color: #694400; background: #fff1d5; }
.muted, .empty { color: var(--muted); }
.empty { padding: 1.05rem; margin: 0; }
.notice, .error { padding: .7rem .85rem; border: 1px solid #b7d4c4; background: #e9f5ee; border-radius: 7px; }
.error, .login .error { border-color: #e4b7bd; background: #fbeaee; color: #78212b; }
.back { display: inline-block; margin-bottom: .8rem; font-weight: 650; }
.record-types { display: flex; flex-wrap: wrap; gap: .45rem; }
.record-types button[aria-pressed=true] { border-color: var(--action); background: #e0ede5; }
#record-results:not(:empty) { margin-top: 1rem; }
#record-results table td, #feedback table td { white-space: pre-wrap; min-width: 7rem; max-width: 21rem; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; padding: .8rem; }
dialog { width: min(calc(100% - 2rem), 37rem); max-height: calc(100% - 2rem); border: 1px solid var(--line); border-radius: 10px; padding: clamp(.95rem, 4vw, 1.5rem); color: var(--ink); }
dialog h2 { font-size: 1.3rem; }
dialog::backdrop { background: rgb(14 34 27 / .65); }
.dialog-actions { justify-content: end; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; top: .7rem; left: .7rem; padding: .5rem; background: var(--white); }
@media (max-width: 800px) {
  .signed-in { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .product-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: 0 0 .7rem; border-inline: 0; border-bottom: 1px solid var(--line); }
  .product-nav h2 { width: 100%; margin: 0; }
  .shell { padding-top: .8rem; }
}
@media (max-width: 520px) {
  .frame { width: calc(100% - 1.4rem); }
  .masthead-inner { gap: .5rem; }
  .account { gap: .5rem; }
  .page-heading { align-items: start; flex-direction: column; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .product-nav a { padding-inline: .32rem; gap: .35rem; }
  th, td { padding-inline: .7rem; }
}
