
@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/NotoSans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --graphite: #3c3c3e;
  --mineral: #58665b;
  --chalk: #f4f1e9;
  --sage: #aab8a2;
  --copper: #b47755;
  --muted: #5c5c5e;
  --wash: #e8eadf;
  --line: #d5d8cc;
  --folio: #efece4;
  --font: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--chalk);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--mineral); }
a:hover { color: var(--graphite); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip-link {
  position: absolute; left: 1rem; top: 0.75rem; z-index: 20;
  padding: 0.4rem 0.7rem; background: var(--graphite); color: var(--chalk);
  text-decoration: none; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.account {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}
.account-card {
  width: min(100%, 28rem);
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--sage) 45%, transparent);
}
.wordmark { width: min(16rem, 100%); margin: 0 auto 1.5rem; }
.kicker {
  margin: 0 0 0.65rem;
  color: var(--mineral);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 { margin: 0 0 0.75rem; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.dek { margin: 0 0 0.75rem; color: var(--mineral); font-size: 1.15rem; font-weight: 500; }
.lede, .intro { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
label { display: block; margin: 1rem 0 0.4rem; font-size: 0.92rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  height: 2.85rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 0.8rem;
}
textarea { height: auto; padding: 0.7rem 0.8rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--mineral);
  outline-offset: 2px;
}
button.primary, .primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 1.25rem; height: 3rem; border: 0;
  background: var(--mineral); color: var(--chalk); font-weight: 600; cursor: pointer;
  text-decoration: none;
}
button.primary:hover { background: var(--graphite); }
button:disabled { opacity: 0.65; cursor: wait; }
.secondary {
  display: block; width: fit-content; margin: 1rem auto 0; border: 0; background: none;
  color: var(--mineral); cursor: pointer; padding: 0.25rem; text-decoration: none; font-size: 0.95rem;
}
.message { min-height: 1.2em; margin: 1rem 0 0; color: var(--copper); font-size: 0.92rem; }
.message:empty { display: none; }
.notice { margin: 0 0 1rem; color: var(--muted); }
.notice strong { color: var(--graphite); }
.hidden { display: none !important; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 2.8rem; }
.password-toggle {
  position: absolute; top: 0; right: 0; width: 2.75rem; height: 2.85rem;
  border: 0; background: none; color: var(--muted); cursor: pointer;
}
.choice {
  display: block; border: 1px solid var(--line); background: var(--folio);
  padding: 1rem 1.1rem; margin: 0.75rem 0; color: var(--graphite); text-decoration: none;
}
.choice:hover { border-color: var(--sage); background: var(--wash); }
.choice strong { display: flex; justify-content: space-between; font-size: 1.05rem; }
.choice small { display: block; margin-top: 0.35rem; color: var(--muted); }
.brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; font-weight: 650; letter-spacing: -0.03em; }
.brand img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.app-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--chalk) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .shell { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand-link { display: flex; align-items: center; gap: 0.7rem; color: var(--graphite); text-decoration: none; }
.brand-link img.mark { width: 2rem; height: 2rem; object-fit: contain; }
.brand-link img.logo { width: 8.5rem; }
.app-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.app-nav a { color: var(--graphite); text-decoration: none; font-weight: 500; }
.app-nav a[aria-current="page"], .app-nav a:hover { color: var(--mineral); text-decoration: underline; }
.who { color: var(--muted); font-size: 0.9rem; }
.linkish { border: 0; background: none; color: var(--mineral); cursor: pointer; padding: 0; }
main.shell { padding: 2rem 0 3.5rem; }
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.85rem; }
.card, .empty, .panel {
  background: #fff; border: 1px solid var(--line); padding: 1.15rem 1.2rem;
}
.empty { background: color-mix(in srgb, var(--sage) 22%, #fff); }
.empty h2, .panel h2 { margin: 0 0 0.4rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.empty p, .panel p { margin: 0; color: var(--muted); }
.stat { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.03em; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mineral); font-weight: 600; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; align-items: end; }
.form-row .primary { width: auto; padding: 0 1.1rem; margin-top: 0; }
.stack { display: grid; gap: 1rem; }
.preview-banner {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.8rem 1.25rem; background: var(--wash); color: var(--graphite); border-bottom: 1px solid var(--sage);
}
.preview-banner button, .danger {
  border: 1px solid var(--copper); background: #fff; color: var(--copper); border-radius: 0; padding: 0.45rem 0.7rem; cursor: pointer;
}
dialog {
  width: min(26rem, calc(100% - 2rem)); border: 1px solid var(--line); background: #fff; color: var(--graphite); padding: 1.5rem;
}
dialog::backdrop { background: color-mix(in srgb, var(--graphite) 35%, transparent); }
@media (max-width: 40rem) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.8rem 0; }
  .page-head { flex-direction: column; align-items: start; }
}
