:root {
  --ink: #172e2a;
  --muted: #475e58;
  --paper: #f2f6f3;
  --white: #fcfefc;
  --line: #c6d6cb;
  --green: #0e3f37;
  --mint: #d4ebd8;
  --alert: #852e23;
  --amber: #f7edda;
  --focus: #007174;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.frame { width: min(1080px, calc(100% - 64px)); margin-inline: auto; min-width: 0; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 10px;
  background: var(--white);
  transform: translateY(-120%);
}
.skip-link:focus { transform: none; }
.topbar {
  background: var(--green);
  color: #fcfefb;
  border-bottom: 1px solid #296456;
}
.topbar-inner, .session-actions, .wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-inner { min-height: 66px; justify-content: space-between; }
.wordmark {
  text-decoration: none;
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-icon {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid #c6e7ca;
  display: inline-block;
  position: relative;
  overflow: hidden;
  flex: none;
}
.brand-icon::before, .brand-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #c6e7ca;
  border-radius: 50%;
}
.brand-icon::after { inset: 9px; }
.brand-icon i {
  position: absolute;
  inset: 50% 0 auto 50%;
  height: 1px;
  background: #d3f0d3;
  transform: rotate(-39deg);
  transform-origin: 0 center;
}
.plain-button {
  min-height: 42px;
  padding: 3px 8px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.plain-button:hover { text-decoration: underline; text-underline-offset: .25em; }
.topbar :focus-visible { outline-color: #c7f7d1; }
main { flex: 1; }
.status-block {
  min-height: 42vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  color: var(--muted);
}
.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 8vw, 116px);
  align-items: start;
  padding: clamp(45px, 10vh, 105px) 0;
}
.invite-intro { padding-top: 12px; }
.invite-tag {
  display: inline-flex;
  color: var(--green);
  border-radius: 3px;
  border: 1px solid #a9c8b5;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 650;
}
h1, h2 { letter-spacing: -.055em; line-height: 1.17; }
.invite-intro h1 {
  font-size: clamp(40px, 6.2vw, 73px);
  margin-block: 15px 18px;
  font-weight: 760;
}
.intro-copy { max-width: 28ch; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }
.issuer-list {
  list-style: none;
  padding: 14px 0 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.invite-access {
  position: relative;
  padding: clamp(22px, 4vw, 39px);
  border: 1px solid var(--line);
  border-top: 4px solid #31705c;
  border-radius: 5px 5px 15px 5px;
  background: var(--white);
  width: 100%;
  align-self: center;
}
#invite-form { display: grid; gap: 10px; }
#invite-form h2 { font-size: clamp(25px, 3vw, 31px); }
#invite-help { color: var(--muted); font-size: 14px; margin-bottom: 9px; }
#invite-form label { font-size: 14px; font-weight: 680; }
#invite-form input {
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid #aabeb3;
  border-radius: 5px;
}
.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
}
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: #135b4c; }
.button-secondary { background: var(--white); border-color: #aebfb6; }
.button-secondary:hover { background: var(--mint); }
#invite-submit { margin-top: 8px; min-height: 47px; }
.form-error { color: var(--alert); font-size: 14px; }
.briefing { padding: 38px 0 52px; }
.briefing-heading, .checked, .inbox-heading, .watchlist-heading, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.briefing-heading { align-items: end; margin-bottom: 24px; }
.briefing-heading h1 { font-size: clamp(35px, 5vw, 53px); margin-bottom: 6px; }
.briefing-heading p, .checked time { color: var(--muted); }
.checked { justify-content: flex-end; flex-wrap: wrap; }
.checked time { font-size: 12px; }
.briefing-layout { display: grid; grid-template-columns: minmax(0, 2.9fr) minmax(210px, 1.1fr); align-items: start; gap: 24px; }
.notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #574218;
  background: var(--amber);
  border-left: 3px solid #906a29;
  font-size: 14px;
}
.inbox, .watchlist { border: 1px solid var(--line); border-radius: 7px; background: var(--white); min-width: 0; }
.inbox-heading { padding: 15px 18px 9px; }
.inbox-heading h2, .watchlist-heading h2 { font-size: 20px; }
.muted { color: var(--muted); font-size: 14px; }
#feed-total { font-size: 13px; font-variant-numeric: tabular-nums; }
.feed-controls {
  display: flex;
  gap: 4px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.filter {
  min-height: 42px;
  padding: 4px 9px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.filter[aria-pressed="true"] {
  color: var(--green);
  border-bottom-color: #3a7b64;
  font-weight: 730;
}
.alert-list { margin: 0; padding: 0; list-style: none; }
.alert-list li + li { border-top: 1px solid var(--line); }
.alert-row {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 13px 18px;
  min-height: 80px;
}
.alert-row:hover { background: #eaf4eb; }
.alert-row:focus-visible { outline-offset: -3px; }
.event-meta {
  font-size: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  color: var(--muted);
}
.event-kind {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--mint);
  color: #1e5c47;
  font-weight: 680;
}
.event-kind.terms { background: #efe9db; color: #6a4a26; }
.alert-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 680;
  grid-column: 1;
  min-width: 0;
}
.alert-row time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.alert-row .arrow { grid-column: 2; justify-self: end; color: var(--green); }
.alert-empty { padding: 28px 18px; display: grid; gap: 6px; }
.alert-empty > button { justify-self: start; margin-top: 5px; }
.watchlist { padding: 14px 16px 18px; }
.watchlist-heading { margin-bottom: 11px; }
.inline-button {
  min-height: 36px;
  background: transparent;
  border: 0;
  padding: 2px 4px;
  color: #195749;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  white-space: nowrap;
}
.watch-group + .watch-group { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.watch-group dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.watch-group dd { font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 10px; }
.footer-inner { min-height: 61px; font-size: 13px; color: var(--muted); }
dialog {
  width: min(600px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 70px #142e2540;
}
dialog::backdrop { background: #16342bc2; }
.dialog-inner { padding: 18px 20px 22px; }
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 { font-size: 23px; margin-top: 5px; min-width: 0; }
.dialog-heading button { min-height: 36px; }
.detail-body { margin-block: 12px; white-space: pre-line; }
.detail-block { margin-top: 13px; }
.detail-block h3 { font-size: 15px; margin-bottom: 5px; }
.detail-block dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 11px; }
.detail-block dt { color: var(--muted); font-size: 13px; }
.detail-block dd { min-width: 0; font-size: 14px; white-space: pre-line; }
.detail-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 11px; }
.detail-links a { font-size: 14px; font-weight: 680; text-underline-offset: 4px; color: #185e4d; }
#preferences-form { display: grid; gap: 15px; }
#preferences-form fieldset { min-inline-size: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
#preferences-form legend { font-size: 14px; font-weight: 700; padding-inline: 4px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
.choices label { min-height: 42px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.choices input { width: 17px; height: 17px; accent-color: #286d57; margin: 0; flex: none; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; }
@media (max-width: 740px) {
  .frame { width: min(1080px, calc(100% - 34px)); }
  .invite-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 27px; }
  .invite-intro { padding-top: 0; }
  .invite-intro h1 { font-size: clamp(35px, 8vw, 63px); margin-block: 10px 12px; }
  .intro-copy { max-width: 36ch; }
  .issuer-list { margin-top: 20px; padding-top: 10px; }
  .briefing { padding-top: 23px; }
  .briefing-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .briefing-heading { display: grid; gap: 12px; align-items: start; margin-bottom: 15px; }
  .checked { justify-content: space-between; }
}
@media (max-width: 405px) {
  .topbar-inner, .session-actions { gap: 3px; }
  .plain-button { padding-inline: 6px; }
  .wordmark { gap: 7px; font-size: 18px; }
  .brand-icon { width: 26px; height: 26px; }
  .alert-row { padding-inline: 13px; }
  .event-meta { font-size: 12px; gap: 3px 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .13s ease, color .13s ease; }
}

.beta-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
}
.beta-nav a {
  padding: 9px 2px;
  color: var(--muted);
  text-decoration: none;
}
.beta-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--green);
  color: var(--green);
  font-weight: 700;
}
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.archive-controls label { display: grid; gap: 5px; min-width: 0; }
.archive-controls label:last-child { flex: 1 1 230px; }
.archive-controls select, .archive-controls input {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--white);
}
.archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr));
  gap: 12px;
  margin-block: 10px 24px;
}
.archive-card, .archive-coverage {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.archive-card { display: grid; align-content: start; gap: 7px; }
.archive-card h2 { font-size: 20px; }
.archive-card ul { margin: 0; padding-inline-start: 1.25em; }
.archive-card .detail-links { margin-top: 3px; }
.archive-coverage summary { cursor: pointer; font-weight: 700; }
.archive-coverage p { margin-top: 10px; }
.archive-coverage ul { margin-bottom: 0; padding-inline-start: 1.35em; }
