:root {
  --ink: #29231f;
  --ink-soft: #554b44;
  --night: #27211d;
  --night-soft: #342c26;
  --paper: #f7f1e7;
  --paper-deep: #eee4d5;
  --paper-light: #fffdf9;
  --line: #d8cbbb;
  --line-dark: rgba(255, 250, 241, 0.16);
  --brass: #9a7d50;
  --brass-dark: #6f5735;
  --oxblood: #814f47;
  --oxblood-dark: #603b35;
  --sage: #66725f;
  --sage-pale: #e4e8df;
  --danger: #a23f39;
  --danger-pale: #f9e5e1;
  --info-pale: #e9eeef;
  --shadow: 0 18px 46px rgba(50, 39, 30, 0.12);
  --radius-sm: 0.45rem;
  --radius: 0.8rem;
  --radius-lg: 1.2rem;
  --content: 74rem;
  --reading: 43rem;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(154, 125, 80, 0.09), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--oxblood-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--oxblood);
}

:focus-visible {
  outline: 0.19rem solid #2367a0;
  outline-offset: 0.18rem;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 750;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  min-height: 4.8rem;
  padding: 0.9rem max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--night);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34rem;
  color: var(--paper);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark:hover {
  color: #fff;
}

.wordmark i {
  color: #c3a97c;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.private-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d1bea0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.private-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  background: #91a084;
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(145, 160, 132, 0.18);
}

.network-banner {
  padding: 0.7rem 1rem;
  background: #7a352f;
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

#main-content {
  min-height: calc(100svh - 11rem);
}

.page-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.page-shell--reading {
  width: min(100%, var(--reading));
}

.page-shell--wide {
  width: min(100%, 88rem);
}

.route-bar {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.route-bar__project {
  min-width: 0;
}

.route-bar__project strong,
.route-bar__project span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-bar__project strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.route-bar__project span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-menu a,
.nav-menu button {
  min-height: 2.75rem;
  padding: 0.55rem 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu button:hover {
  background: var(--paper-light);
  border-color: var(--line);
  color: var(--ink);
}

.auth-layout {
  width: min(100%, 69rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5.5rem) 1rem;
  display: grid;
  gap: 1rem;
}

.auth-panel,
.editorial-panel {
  padding: clamp(1.35rem, 5vw, 3.3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.auth-panel {
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.editorial-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--night);
  color: var(--paper);
}

.editorial-panel p {
  color: rgba(247, 241, 231, 0.72);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brass-dark);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editorial-panel .eyebrow {
  color: #c7aa7a;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 540;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 4.9rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 6vw, 2.7rem);
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.lede {
  max-width: 47rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.small-copy,
.muted {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.fine-print {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.section-heading {
  margin: 2.1rem 0 0.9rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 5vw, 2rem);
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack--tight {
  display: grid;
  gap: 0.55rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.divider {
  height: 1px;
  margin: 1.2rem 0;
  background: var(--line);
  border: 0;
}

.field {
  display: grid;
  gap: 0.38rem;
}

.field label,
.field legend,
.form-label {
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 780;
}

.field-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.8rem;
  background: #fff;
  border: 1px solid #aa9c8b;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #776a5d;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.check-row,
.radio-row {
  min-height: 2.75rem;
  padding: 0.55rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.check-row input,
.radio-row input {
  width: 1.25rem;
  min-height: 1.25rem;
  margin: 0.18rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--oxblood);
}

.check-row label,
.radio-row label {
  font-weight: 520;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.button {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.56;
}

.button--primary {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: white;
}

.button--primary:hover:not(:disabled) {
  background: var(--oxblood-dark);
  border-color: var(--oxblood-dark);
  color: white;
}

.button--secondary {
  background: var(--paper-light);
  border-color: #988875;
  color: var(--ink);
}

.button--secondary:hover:not(:disabled) {
  background: var(--paper-deep);
  color: var(--ink);
}

.button--quiet {
  border-color: transparent;
  color: var(--oxblood-dark);
}

.button--quiet:hover:not(:disabled) {
  background: rgba(129, 79, 71, 0.08);
}

.button--danger {
  background: white;
  border-color: var(--danger);
  color: var(--danger);
}

.button--full {
  width: 100%;
}

.button--small {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
}

.notice {
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.2rem;
  background: var(--info-pale);
  border: 1px solid #bdc9cb;
  border-left: 0.3rem solid #6f8588;
  border-radius: var(--radius-sm);
  color: #26363a;
}

.notice strong {
  font-size: 0.88rem;
}

.notice p {
  margin: 0;
  font-size: 0.84rem;
}

.notice--warm {
  background: #f3eadb;
  border-color: #d9c298;
  border-left-color: var(--brass);
  color: #49391f;
}

.notice--success {
  background: var(--sage-pale);
  border-color: #b8c2b1;
  border-left-color: var(--sage);
  color: #31402d;
}

.notice--error {
  background: var(--danger-pale);
  border-color: #dfaea8;
  border-left-color: var(--danger);
  color: #62231f;
}

.notice--dark {
  background: var(--night-soft);
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: #c7aa7a;
  color: var(--paper);
}

.surface {
  padding: 1rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.surface--raised {
  box-shadow: var(--shadow);
}

.project-hero {
  padding: clamp(1.4rem, 6vw, 3.4rem);
  background: var(--night);
  border-radius: var(--radius-lg);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.project-hero .eyebrow {
  color: #c7aa7a;
}

.project-hero .lede {
  color: rgba(247, 241, 231, 0.72);
}

.project-hero__meta {
  margin-top: 1.4rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-top: 1px solid var(--line-dark);
}

.pill {
  min-height: 1.7rem;
  padding: 0.22rem 0.55rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 99rem;
  color: var(--brass-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pill--light {
  color: #d8c6a9;
}

.pill--sage {
  color: #52634b;
}

.pill--danger {
  color: var(--danger);
}

.stat-grid,
.action-grid,
.studio-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.stat-card {
  min-width: 0;
  padding: 1rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 9vw, 2.7rem);
  font-weight: 520;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
}

.action-card {
  min-height: 9rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.action-card:hover {
  border-color: #a9957e;
  box-shadow: 0 10px 24px rgba(50, 39, 30, 0.09);
  color: var(--ink);
}

.action-card strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
}

.action-card span {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.action-card em {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--oxblood-dark);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.tabs {
  margin: 1rem 0;
  padding: 0.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  background: var(--paper-deep);
  border-radius: var(--radius-sm);
}

.tabs a,
.tabs button {
  min-height: 2.8rem;
  padding: 0.55rem;
  background: transparent;
  border: 0;
  border-radius: 0.32rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.tabs [aria-current="page"],
.tabs [aria-selected="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(50, 39, 30, 0.08);
}

.card-list,
.contribution-list,
.activity-list,
.proposal-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.work-card {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.work-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 560;
}

.work-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.work-card__footer {
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
}

.card-prompt {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 6vw, 2.15rem);
  line-height: 1.25;
}

.why-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #f1e9dc;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.response-type-grid,
.choice-grid {
  display: grid;
  gap: 0.65rem;
}

.response-type {
  position: relative;
}

.response-type input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.response-type label {
  min-height: 3.2rem;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #a89987;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.response-type input:checked + label {
  background: var(--night);
  border-color: var(--night);
  color: white;
}

.response-type input:focus-visible + label {
  outline: 0.19rem solid #2367a0;
  outline-offset: 0.18rem;
}

.file-zone {
  padding: 1rem;
  background: #fff;
  border: 1px dashed #8e7d69;
  border-radius: var(--radius-sm);
}

.file-zone input {
  min-height: auto;
  padding: 0;
  border: 0;
}

.helper-box {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  background: #efe8dc;
  border: 1px solid #d4c3aa;
  border-radius: var(--radius);
}

.helper-box__identity {
  display: grid;
  gap: 0.4rem;
}

.identity-row {
  padding: 0.55rem 0;
  display: grid;
  gap: 0.12rem;
  border-bottom: 1px solid rgba(83, 67, 48, 0.14);
}

.identity-row:last-child {
  border-bottom: 0;
}

.identity-row span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.identity-row strong {
  font-size: 0.92rem;
}

.draft-note {
  padding: 0.7rem 0.8rem;
  background: #f0e9de;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.submission-status {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  background: var(--night);
  border-radius: var(--radius);
  color: var(--paper);
}

.submission-status p {
  margin: 0;
  color: rgba(247, 241, 231, 0.72);
  font-size: 0.83rem;
}

.step-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 700;
}

.step-line::before {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  background: #c5a773;
  border-radius: 50%;
  content: "";
}

.outcome-grid {
  display: grid;
  gap: 0.5rem;
}

.receipt {
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid #bba98f;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.receipt__header {
  padding: 1.3rem;
  background: var(--sage);
  color: white;
}

.receipt__header h1 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 9vw, 3.6rem);
}

.receipt__body {
  padding: 1.2rem;
}

.integrity-badge {
  min-height: 2.8rem;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--sage-pale);
  border: 1px solid #bac6b4;
  border-radius: var(--radius-sm);
  color: #34432f;
  font-size: 0.82rem;
  font-weight: 800;
}

.integrity-badge::before {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--sage);
  border-radius: 50%;
  color: white;
  content: "✓";
  font-size: 0.75rem;
}

.definition-list {
  margin: 1rem 0 0;
  display: grid;
}

.definition-list div {
  padding: 0.7rem 0;
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line);
}

.definition-list div:last-child {
  border-bottom: 0;
}

.definition-list dt {
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.definition-list dd {
  margin: 0;
  font-size: 0.91rem;
  overflow-wrap: anywhere;
}

.empty-state,
.center-state {
  padding: clamp(2.5rem, 10vw, 5rem) 1rem;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  text-align: center;
}

.empty-state {
  background: rgba(255, 253, 249, 0.58);
  border: 1px dashed #b9aa98;
  border-radius: var(--radius);
}

.empty-state h2,
.empty-state p,
.center-state p {
  margin: 0;
}

.empty-state p,
.center-state p {
  max-width: 35rem;
  color: var(--ink-soft);
}

.loader {
  width: 2rem;
  height: 2rem;
  border: 0.22rem solid var(--line);
  border-top-color: var(--oxblood);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.activity-item,
.contribution-item {
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.activity-item__top,
.contribution-item__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.activity-item p,
.contribution-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.studio-banner {
  padding: 0.8rem 1rem;
  background: #392f29;
  border-radius: var(--radius-sm);
  color: #f2dfbd;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-grid {
  margin-top: 1rem;
}

.studio-panel {
  min-width: 0;
  padding: 1rem;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.studio-panel__header {
  margin-bottom: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.studio-panel__header h2 {
  font-size: 1.45rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}

th,
td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eee5d8;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proposal {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal--accepted {
  border-left: 0.3rem solid var(--sage);
}

.proposal--rejected {
  border-left: 0.3rem solid var(--danger);
}

.proposal__prompt {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.code-box {
  max-height: 18rem;
  padding: 0.8rem;
  overflow: auto;
  background: #26211e;
  border-radius: var(--radius-sm);
  color: #f1e8db;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.warning-line {
  color: var(--danger);
  font-weight: 750;
}

.site-footer {
  min-height: 6rem;
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  background: var(--night);
  border-top: 1px solid var(--line-dark);
  color: rgba(247, 241, 231, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer a {
  color: #d0b98f;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  width: min(100%, 28rem);
  margin-left: auto;
  padding: 0.8rem 1rem;
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: white;
  font-size: 0.84rem;
  font-weight: 700;
  pointer-events: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.noscript-note {
  position: fixed;
  z-index: 2000;
  inset: 1rem;
  padding: 1.5rem;
  background: white;
  border: 0.2rem solid var(--danger);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 36rem) {
  .page-shell,
  .route-bar {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .button-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button-row .button--full {
    width: auto;
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .action-grid,
  .response-type-grid,
  .choice-grid,
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .definition-list div {
    grid-template-columns: minmax(7.5rem, 0.35fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 52rem) {
  .site-header {
    padding-right: max(2rem, env(safe-area-inset-right));
    padding-left: max(2rem, env(safe-area-inset-left));
  }

  .wordmark {
    font-size: 0.75rem;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-panel--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 28rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .private-mark {
    max-width: none;
    justify-content: flex-start;
    font-size: 0.59rem;
    line-height: 1.2;
    text-align: left;
  }

  .route-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-menu {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .notice,
  .surface,
  .work-card,
  .action-card,
  .receipt,
  .proposal {
    border: 1px solid CanvasText;
  }

  .private-dot,
  .step-line::before {
    forced-color-adjust: none;
  }
}
