@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/spectral-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/spectral-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/spectral-500-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/work-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/work-sans-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #fbfaf6;
  --panel: #ffffff;
  --ink: #25291f;
  --ink-2: #565b4e;
  --ink-3: #878c7d;
  --line: #e2e1d6;
  --line-2: #eeede4;
  --spruce: #28513c;
  --spruce-deep: #1d3c2d;
  --spruce-soft: #e6efe9;
  --cream: #f2ecdd;
  --cream-line: #dcd5c2;
  --clay: #a85a32;
  --ok: #3f7050;
  --amber: #8f6b1d;
  --wait-bg: #f4ecd7;
  --hot-bg: #f6e5da;
  --zebra: #f6f4ea;
  --side-text: #cfd8c9;
  --side-muted: #9fb0a0;
  --side-label: #8ba08c;
  --side-name: #e6ebe0;
  --side-rule: rgba(255, 255, 255, 0.12);
  --side-hover: rgba(255, 255, 255, 0.06);
  --side-active: rgba(255, 255, 255, 0.1);
  --side-active-compact: rgba(255, 255, 255, 0.16);
  --side-count: rgba(255, 255, 255, 0.14);
  --transparent: transparent;

  --font-body: "Work Sans", system-ui, sans-serif;
  --font-display: "Spectral", serif;
  --radius-box: 3px;
  --radius-control: 5px;
  --radius-row: 6px;
  --radius-tag: 9px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.5 var(--font-body);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

a {
  color: var(--spruce);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  background: var(--panel);
  color: var(--spruce-deep);
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* Canonical public header, ported from the accepted Fieldhouse reference. */
.public-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.runway {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--spruce);
}

.runway::after {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  width: 3px;
  border-radius: 2px;
  background: var(--cream);
  content: "";
  transform: translateX(-50%) rotate(38deg);
}

.wordmark-logo {
  width: 32px;
  height: 32px;
  flex: none;
  object-fit: contain;
}

.wordmark b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}

.wordmark small {
  display: block;
  color: var(--ink-3);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-head nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
}

.public-head nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.nav-label {
  display: inline-block;
  vertical-align: top;
}

.nav-label::after {
  display: block;
  height: 0;
  overflow: hidden;
  content: attr(data-label);
  font-weight: 600;
  pointer-events: none;
  visibility: hidden;
}

.public-head nav a:hover,
.public-head nav a[aria-current="page"] {
  color: var(--spruce);
  font-weight: 600;
}

/* Canonical public split and form vocabulary. */
.apply-split {
  display: grid;
  max-width: 1320px;
  min-height: 60vh;
  grid-template-columns: 5fr 7fr;
  margin-right: auto;
  margin-left: auto;
}

.apply-intro {
  padding: 2.4rem 2.4rem 2rem;
  border-right: 1px solid var(--line);
  background: var(--cream);
}

.apply-intro h1 {
  max-width: 16ch;
  margin-bottom: 0.8rem;
  font-size: 1.7rem;
  line-height: 1.25;
}

.apply-intro h1 em {
  color: var(--spruce);
  font-style: italic;
}

.apply-intro p {
  max-width: 38ch;
  margin-bottom: 1rem;
  color: var(--ink-2);
}

.apply-intro .facts {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-line);
  font-size: 0.88rem;
}

.apply-intro .facts div b {
  display: block;
  color: var(--spruce-deep);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.apply-form {
  container-name: fieldhouse-form;
  container-type: inline-size;
  padding: 2rem 2.4rem 3rem;
  background: var(--panel);
}

.apply-form > form {
  display: contents;
}

.step-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: var(--ink-3);
  font-size: 0.8rem;
}

.step-line .seg {
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.step-line .seg.on {
  background: var(--spruce);
}

.step-line b {
  margin-left: 0.5rem;
  color: var(--ink-2);
  font-weight: 500;
}

.apply-form h2,
.gsec h2 {
  margin-bottom: 0.15rem;
  font-size: 1.15rem;
}

.apply-form h2::after,
.gsec h2::after {
  display: block;
  width: 2.2rem;
  margin-top: 0.35rem;
  border-bottom: 2px solid var(--clay);
  content: "";
}

.gsec {
  margin-bottom: 1.5rem;
}

.main .gsec {
  max-width: 41.25rem;
}

.gsec p.note {
  margin: 0.2rem 0 0.6rem;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.prose {
  max-width: 70ch;
}

.prose.gsec {
  margin-bottom: 2.4rem;
}

.prose > h2 + * {
  margin-top: 0.85rem;
}

.prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.prose .f > h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 0.75rem;
}

.prose ul,
.prose ol {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  list-style-position: outside;
}

.prose ol {
  padding-left: 2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  padding-left: 1.35rem;
}

.prose ol > li::marker {
  font-variant-numeric: tabular-nums;
}

.prose > :last-child {
  margin-bottom: 0;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  margin-top: 0.7rem;
}

.frow.thirds {
  grid-template-columns: 2fr 0.6fr 0.8fr;
}

.f {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.f.wide {
  grid-column: 1 / -1;
}

.f label,
.f legend {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.f input,
.f select,
.f textarea {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  padding: 0.45rem 0.6rem;
}

.f textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.f input:focus,
.f select:focus,
.f textarea:focus {
  outline: 2px solid var(--spruce);
  outline-offset: -1px;
}

.f input::placeholder,
.f textarea::placeholder {
  color: var(--ink-3);
  font-weight: 400;
  opacity: 0.65;
}

.f input[aria-invalid="true"],
.f select[aria-invalid="true"],
.f textarea[aria-invalid="true"] {
  border-color: var(--clay);
}

.doc-list {
  margin-top: 0.5rem;
}

.doc {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-row);
  background: var(--bg);
  font-size: 0.89rem;
}

.doc .box {
  display: grid;
  width: 15px;
  height: 15px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: var(--radius-box);
  background: var(--line);
  color: var(--panel);
  font-size: 0.7rem;
}

.doc.have {
  border-color: var(--spruce-soft);
  background: var(--spruce-soft);
}

.doc.have .box {
  background: var(--ok);
}

.doc.have .box::before {
  content: "\2713";
}

.doc .grow {
  flex: 1;
  min-width: 0;
}

.doc .grow label {
  display: inline;
  color: inherit;
  cursor: pointer;
}

.doc .req {
  color: var(--clay);
  font-weight: 600;
}

.doc input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.doc .attach {
  display: inline-block;
  border-radius: var(--radius-control);
  background: var(--spruce);
  color: var(--panel);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.42rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.doc .attach:hover {
  background: var(--spruce-deep);
  color: var(--panel);
  text-decoration: none;
}

.doc .have-note {
  max-width: 45%;
  overflow: hidden;
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submit {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.auth-secondary-links {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.65rem;
  font-size: 0.86rem;
}

.auth-secondary-links p {
  margin: 0;
}

.btn,
.act-btn,
button {
  border: 0;
  border-radius: var(--radius-row);
  background: var(--spruce);
  color: var(--panel);
  cursor: pointer;
  font: 600 0.92rem var(--font-body);
  text-decoration: none;
}

.btn,
button {
  padding: 0.62rem 1.5rem;
}

.btn {
  white-space: nowrap;
}

.btn:hover,
.act-btn:hover,
button:hover {
  background: var(--spruce-deep);
  color: var(--panel);
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.pager-status {
  color: var(--ink-2);
  font-weight: 600;
}

.act-btn.is-muted {
  background: var(--line-2);
  color: var(--ink-3);
  cursor: not-allowed;
  pointer-events: none;
}

.submit .hint {
  color: var(--ink-3);
  font-size: 0.82rem;
}

.action-confirmation > summary {
  display: inline-block;
  list-style: none;
}

.action-confirmation > summary::-webkit-details-marker {
  display: none;
}

.action-confirmation[open] > summary {
  display: none;
}

.action-confirmation .feedback {
  margin-top: 0.8rem;
}

.action-confirmation .feedback p:first-child {
  margin-top: 0;
}

.action-confirmation .feedback p:last-child {
  margin-bottom: 0;
}

.action-confirmation .submit {
  flex-wrap: wrap;
  margin-top: 1rem;
}

.main-head + .submit {
  margin-top: 0;
  margin-bottom: 1.7rem;
  padding-top: 0;
  border-top: 0;
}

/* Canonical signed-in shell, ported from the accepted reference. */
.shell {
  display: grid;
  max-width: 1320px;
  min-height: 70vh;
  grid-template-columns: 212px minmax(0, 1fr);
  margin-right: auto;
  margin-left: auto;
  border-top: 1px solid var(--line);
}

.side {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  background: var(--spruce-deep);
  color: var(--side-text);
}

.side .wordmark {
  margin-bottom: 0.7rem;
  padding: 0 1.1rem 0.9rem;
  border-bottom: 1px solid var(--side-rule);
}

.side .wordmark b {
  color: var(--panel);
  font-size: 0.95rem;
}

.side .wordmark small {
  color: var(--side-muted);
}

.side .runway {
  background: var(--cream);
}

.side .runway::after {
  background: var(--spruce-deep);
}

.side .wordmark-logo {
  width: 30px;
  height: 30px;
}

.side nav {
  display: flex;
  flex-direction: column;
  font-size: 0.89rem;
}

.side nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--side-text);
  padding: 0.42rem 1.1rem;
  text-decoration: none;
}

.side nav a:hover {
  background: var(--side-hover);
  color: var(--panel);
  font-weight: 600;
}

.side nav a.here {
  background: var(--side-active);
  box-shadow: inset 3px 0 0 var(--cream);
  color: var(--panel);
  font-weight: 600;
}

.side nav .n {
  border-radius: var(--radius-tag);
  background: var(--side-count);
  font-size: 0.72rem;
  padding: 0.05rem 0.45rem;
}

.side .group {
  color: var(--side-label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  padding: 1rem 1.1rem 0.3rem;
  text-transform: uppercase;
}

.side .me {
  margin-top: auto;
  padding: 1rem 1.1rem 0;
  border-top: 1px solid var(--side-rule);
  color: var(--side-muted);
  font-size: 0.8rem;
}

.side .me b {
  display: block;
  color: var(--side-name);
  font-weight: 500;
}

.side .me a,
.side .me button {
  color: inherit;
}

.side .me > a {
  display: block;
}

.side .me .role {
  display: block;
}

.nav-sign-out-form {
  display: inline;
  margin: 0;
}

.nav-sign-out-btn {
  border: 0;
  border-radius: 0;
  background: var(--transparent);
  color: inherit;
  font: inherit;
  padding: 0;
  white-space: nowrap;
}

.nav-sign-out-btn:hover {
  background: var(--transparent);
  color: var(--panel);
  text-decoration: underline;
}

.main {
  container-name: fieldhouse-form;
  container-type: inline-size;
  min-width: 0;
  padding: 1.6rem 2.2rem 3rem;
}

.main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
}

.main-head h1 {
  min-width: 0;
  flex: 1 1 16rem;
  font-size: 1.45rem;
}

.main-head-meta {
  max-width: 34rem;
  flex: 0 1 auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.main-head .date {
  color: var(--ink-3);
  font-size: 0.84rem;
}

.page-status {
  display: block;
  line-height: 1;
}

.queue {
  container-name: fieldhouse-rows;
  container-type: inline-size;
  margin-bottom: 1.7rem;
}

.queue > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.queue > h2 .n {
  color: var(--clay);
  font: 600 0.78rem var(--font-body);
}

.queue > h2 .rule {
  flex: 1;
  border-bottom: 1px solid var(--line);
}

table.rows {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-collapse: collapse;
  border-radius: var(--radius-row);
  background: var(--panel);
  font-size: 0.89rem;
}

table.rows th {
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink-3);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  padding: 0.45rem 0.85rem;
  text-align: left;
  text-transform: uppercase;
}

table.rows td {
  padding: 0.48rem 0.85rem;
  border-bottom: 1px solid var(--line-2);
  overflow-wrap: anywhere;
}

table.rows tr:last-child td {
  border-bottom: 0;
}

table.rows td.num,
table.rows th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.rows a {
  color: var(--spruce);
  font-weight: 600;
  text-decoration: none;
}

table.rows a:hover {
  text-decoration: underline;
}

table.rows .act-h {
  text-align: left;
}

a.act-btn,
button.act-btn,
span.act-btn,
table.rows a.act-btn,
table.rows button.act-btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--spruce);
  color: var(--panel);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.42rem 0.8rem;
  text-decoration: none;
}

a.act-btn:hover,
button.act-btn:hover,
table.rows a.act-btn:hover,
table.rows button.act-btn:hover {
  background: var(--spruce-deep);
  color: var(--panel);
  text-decoration: none;
}

/*
 * The 212px sidebar plus desktop main padding leaves 485px for page content
 * at a 768px viewport. Content-dense records cannot remain honest tables in
 * that container, so only the five explicit dense tables use the canonical
 * label/value cards before the shell itself reaches 760px.
 */
@container fieldhouse-rows (max-width: 700px) {
  table.rows.dense thead,
  table.rows.dense th {
    display: none;
  }

  table.rows.dense,
  table.rows.dense tbody {
    display: block;
    width: 100%;
  }

  table.rows.dense {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: var(--transparent);
  }

  table.rows.dense tr {
    display: block;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-row);
    background: var(--panel);
  }

  table.rows.dense tr:last-child {
    margin-bottom: 0;
  }

  table.rows.dense td {
    display: grid;
    min-height: 1.72rem;
    grid-template-columns: 7.6rem 1fr;
    align-items: center;
    gap: 0.7rem;
    padding: 0.14rem 0.75rem;
    border: 0;
  }

  table.rows.dense td:nth-child(even) {
    background: var(--zebra);
  }

  table.rows.dense td::before {
    color: var(--ink-3);
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1.12;
    text-transform: uppercase;
  }

  table.rows.dense td.num,
  table.rows.dense th.num {
    text-align: left;
    font-variant-numeric: tabular-nums;
  }

  table.rows.dense td:has(> .v:empty) {
    display: none;
  }
}

/*
 * The mockup's intrinsic form-control widths fit its full desktop panels but
 * exceed the real split and sidebar content tracks near the desktop boundary.
 * Contain only those measured form containers, leaving the literal 1440px
 * grid metrics unchanged.
 */
@container fieldhouse-form (max-width: 500px) {
  .f {
    min-width: 0;
  }

  .f input,
  .f select,
  .f textarea {
    width: 100%;
    min-width: 0;
  }
}

.tag {
  display: inline-block;
  border-radius: var(--radius-tag);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
}

.act-btn {
  white-space: nowrap;
}

.no-break {
  white-space: nowrap;
}

.tag.ok {
  background: var(--spruce-soft);
  color: var(--ok);
}

.tag.wait {
  background: var(--wait-bg);
  color: var(--amber);
}

.tag.hot {
  background: var(--hot-bg);
  color: var(--clay);
}

.empty {
  color: var(--ink-3);
}

/* The only behavior-forced addition approved for this round. */
.feedback {
  margin-bottom: 1rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-row);
  background: var(--bg);
}

.feedback.ok {
  border-color: var(--spruce-soft);
  background: var(--spruce-soft);
  color: var(--ok);
}

.feedback.wait {
  border-color: var(--wait-bg);
  background: var(--wait-bg);
  color: var(--amber);
}

.feedback.hot {
  border-color: var(--hot-bg);
  background: var(--hot-bg);
  color: var(--clay);
}

.feedback ul {
  margin-left: 1.2rem;
}

.required-mark {
  color: var(--clay);
  font-weight: 600;
}

.field-help {
  color: var(--ink-3);
  font-size: 0.78rem;
}

.field-help p {
  margin: 0.2rem 0;
}

.validation-requirements {
  margin-left: 1.1rem;
}

.validation-requirements li[data-state="valid"] {
  color: var(--ok);
}

.validation-requirements li[data-state="invalid"],
.validation-policy-status[data-state="error"] {
  color: var(--clay);
}

.validation-state {
  margin-left: 0.3rem;
  font-weight: 600;
}

.parent-section,
.parent-doc-slot {
  display: none;
}

.parent-section.visible,
.parent-doc-slot.visible {
  display: block;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.checkbox-row {
  display: inline-flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.45rem;
}

.checkbox-row span {
  min-width: 0;
}

.choice-row input,
.checkbox-row input {
  flex: none;
  width: auto;
}

.checkbox-row input {
  margin-top: 0.15rem;
}

.f .checkbox-row input {
  width: auto;
  min-width: auto;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
}

.template-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.template-heading h2 {
  margin-bottom: 0.2rem;
}

.template-placeholders {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-row);
  background: var(--bg);
  font-size: 0.82rem;
}

.placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.placeholder-list code {
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: var(--panel);
  color: var(--spruce-deep);
  padding: 0.15rem 0.4rem;
}

.template-preview {
  border-left: 4px solid var(--spruce);
}

.preview-subject,
.preview-body {
  margin-top: 0.8rem;
}

.preview-subject p {
  margin: 0.2rem 0 0;
}

.preview-body pre,
table.rows details pre {
  max-width: 100%;
  margin: 0.3rem 0 0;
  padding: 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-row);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

table.rows details {
  margin-top: 0.35rem;
}

table.rows details summary {
  color: var(--spruce);
  cursor: pointer;
  font-weight: 600;
}

@media (min-width: 1360px) {
  .apply-split,
  .shell {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .public-head {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .public-head nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .apply-split {
    grid-template-columns: 1fr;
  }

  .apply-intro {
    padding: 1.6rem 1.4rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .apply-form {
    padding: 1.5rem 1.4rem 2.2rem;
  }

  .frow,
  .frow.thirds {
    grid-template-columns: 1fr;
  }

  .f {
    min-width: 0;
  }

  .f input,
  .f select,
  .f textarea {
    width: 100%;
    min-width: 0;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    flex-flow: row wrap;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.6rem;
  }

  .side .wordmark {
    margin: 0;
    padding: 0.2rem 0.5rem;
    border: 0;
  }

  .side nav {
    flex-direction: row;
    flex-wrap: wrap;
    order: 3;
  }

  .side nav a {
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
  }

  .side nav a.here {
    background: var(--side-active-compact);
    box-shadow: none;
  }

  .side .group {
    display: none;
  }

  .side .me {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    order: 2;
    margin: 0 0 0 auto;
    padding: 0.2rem 0.5rem;
    border: 0;
  }

  .side .me > a {
    display: inline;
  }

  .side .me .role {
    display: none;
  }

  .main {
    padding: 1.2rem 1rem 2.4rem;
  }

  table.rows thead,
  table.rows th {
    display: none;
  }

  table.rows,
  table.rows tbody {
    display: block;
    width: 100%;
  }

  table.rows {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: var(--transparent);
  }

  table.rows tr {
    display: block;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-row);
    background: var(--panel);
  }

  table.rows tr:last-child {
    margin-bottom: 0;
  }

  table.rows td {
    display: grid;
    min-height: 1.72rem;
    grid-template-columns: 7.6rem 1fr;
    align-items: center;
    gap: 0.7rem;
    padding: 0.14rem 0.75rem;
    border: 0;
  }

  table.rows td:nth-child(even) {
    background: var(--zebra);
  }

  table.rows td::before {
    color: var(--ink-3);
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  table.rows td .v {
    min-width: 0;
    justify-self: start;
    overflow-wrap: anywhere;
  }

  table.rows td:first-child .v {
    font-weight: 600;
  }

  table.rows td.num {
    text-align: left;
    font-variant-numeric: tabular-nums;
  }

  table.rows td:has(> .v:empty) {
    display: none;
  }

  table.rows.key-value tbody {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-row);
    background: var(--panel);
  }

  table.rows.key-value tr {
    display: grid;
    grid-template-columns: 45% minmax(0, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    border-radius: 0;
    background: var(--panel);
  }

  table.rows.key-value tr:last-child {
    border-bottom: 0;
  }

  table.rows.key-value td {
    display: flex;
    min-height: 1.72rem;
    align-items: center;
    padding: 0.28rem 0.75rem;
    background: var(--panel);
  }

  table.rows.key-value td:first-child {
    background: var(--zebra);
    color: var(--ink-3);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  table.rows.key-value td:first-child .v {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  table.rows.key-value td::before {
    display: none;
  }
}
