:root {
  font-family: system-ui, sans-serif;
  color: #22202c;
  background: #f5f2ee;
  line-height: 1.55;
  --ink: #262134;
  --accent: #4f2a6d;
  --line: #ded5df;
  --muted: #62576a;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.masthead {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100vw - 1160px) / 2));
  color: #fff;
  background: var(--ink);
  border-bottom: 4px solid #dc9a78;
}
.wordmark { font-size: 1.1rem; letter-spacing: .015em; }
.wordmark strong { color: #f6cebb; font-weight: 650; }
.training { color: #ebe1f1; font-size: .85rem; white-space: nowrap; }
main { max-width: 1160px; margin: 0 auto; padding: 3.5rem 1rem; }
h1, h2 { line-height: 1.15; margin: 0 0 1rem; }
h1 { font: 500 clamp(2rem, 5vw, 3.25rem)/1.1 Georgia, serif; letter-spacing: -.035em; }
h2 { font-size: 1.2rem; }
p { color: var(--muted); margin: 0 0 1.2rem; }
.card { background: #fffdfa; border: 1px solid var(--line); border-radius: 10px; padding: clamp(1rem, 4vw, 2rem); }
.entry { width: min(100%, 33rem); margin: 0 auto; }
form { display: grid; align-items: end; gap: .85rem; }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 650; }
label.check { display: flex; }
input:not([type=checkbox]), select {
  min-width: 0;
  width: 100%;
  padding: .6rem .7rem;
  background: #fff;
  border: 1px solid #95849b;
  border-radius: 5px;
  font: inherit;
  font-weight: 450;
  color: inherit;
}
button, .button {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
}
[inert] { opacity: .62; }
:focus-visible { outline: 3px solid #a45128; outline-offset: 3px; }
.quiet, .claim-link { color: var(--accent); background: transparent; border-color: var(--line); }
.claim-link { border: 0; padding: 0; text-decoration: underline; text-align: left; }
.identity { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; margin: 0 0 1rem; }
.identity dt { color: var(--muted); font-size: .8rem; }
.identity dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.page-head { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: start; }
.claim-layout { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
#filter-form { grid-template-columns: minmax(6rem, 14rem) auto auto; justify-content: start; }
[hidden] { display: none !important; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: .6rem .45rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: .85rem; color: var(--muted); }
[role=alert] { margin: 0 auto 1rem; width: max-content; max-width: 100%; padding: .55rem 1rem; color: #7b261f; background: #feede5; }
.trial-label { font-size: .85rem; color: var(--accent); }
@media (max-width: 660px) {
  main { padding-top: 1.8rem; }
  .claim-layout, #filter-form { grid-template-columns: minmax(0, 1fr); }
}
