* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--n-0);
  color: var(--text-1);
  font: 400 15px/1.7 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}
button,
input,
select,
textarea {
  transition:
    background var(--dur-hover) var(--ease-settle),
    border-color var(--dur-hover) var(--ease-settle);
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.svg-defs {
  display: none;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: calc(100% - var(--section-x) * 2);
  max-width: 1280px;
  margin-inline: auto;
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rm-mark {
  font-family: var(--font-brand);
  font-weight: 700;
}
.muted {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.85;
}
.fine {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.85;
}
.eyebrow {
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 450;
  white-space: nowrap;
}
.pill.primary {
  background: var(--text-1);
  color: var(--n-0);
}
.pill.primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.pill.ghost {
  background: var(--glass-bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-1);
  min-height: 44px;
  padding-inline: 18px;
  font-size: 13px;
}
.pill.ghost:hover {
  background: var(--n-4);
}
.pill:active {
  transform: scale(0.98);
  transition-duration: var(--dur-press);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 13px;
}
.text-button:hover {
  color: var(--text-1);
}
.text-button svg {
  width: 16px;
  height: 16px;
} /* Same .contact-close rules as PR 34 website/assets/styles.css; preview layout remains isolated. */
.contact-close {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  transition:
    background var(--dur-hover) var(--ease-settle),
    color var(--dur-hover) var(--ease-settle);
}
.contact-close:hover {
  transform: none;
  background: var(--line-1);
  color: var(--text-1);
}
.contact-close:active {
  background: var(--line-2);
}
.contact-close svg {
  width: 20px;
  height: 20px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line-1);
}
.logo-link {
  display: inline-flex;
  flex: none;
}
.logo-link img {
  width: 124px;
  display: block;
}

dialog {
  color: var(--text-1);
  background: var(--n-3);
  border: 1px solid var(--line-3);
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.contact-dialog {
  position: fixed;
  inset: auto 24px 24px auto;
  margin: 0;
  padding: 24px;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.contact-dialog::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3), transparent);
}
.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.contact-top h2 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.contact-rows {
  margin-top: 24px;
  display: grid;
}
.contact-rows a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 6px 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line-2);
}
.contact-rows a:last-child {
  padding-bottom: 0;
}
.contact-rows span {
  color: var(--text-2);
  font-size: 13px;
}
.contact-rows strong {
  grid-column: 1;
  font-size: 17px;
  font-weight: 400;
  justify-self: start;
  overflow-wrap: anywhere;
  background: var(--link-line) 0 100%/0 1px no-repeat;
  transition: background-size var(--dur-panel) var(--ease-reveal);
}
.contact-rows svg {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  color: var(--text-3);
  width: 18px;
  height: 18px;
  transition: transform var(--dur-hover) var(--ease-settle);
}
.contact-rows a:hover strong {
  background-size: 100% 1px;
}
.contact-rows a:hover svg {
  transform: translate(2px, -2px);
}
.large-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1360px, calc(100vw - 48px));
  max-width: none;
  height: calc(100dvh - 48px);
  max-height: none;
  overflow: hidden;
}
.large-dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-2);
  flex: none;
}
.dialog-top img {
  width: 110px;
}
.dialog-top > span {
  font-size: 12px;
  color: var(--text-3);
  margin-left: auto;
}
.dialog-top h2 {
  font-size: 18px;
  font-weight: 500;
}
.dialog-top .contact-close {
  margin-left: 4px;
}
.application-content {
  display: block;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.application-content > form {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 36px 48px 40px;
  min-width: 0;
}
.form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.form-title h2 {
  font-size: 20px;
}
.form-title > span {
  font-size: 11px;
  color: var(--text-3);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 20px;
}
.span-2 {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > span {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.field em {
  font-style: normal;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 48px;
  background: var(--n-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text-1);
  padding: 0 14px;
  font-size: 14px;
}
.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23b6bcc4' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field textarea {
  height: auto;
  min-height: 88px;
  padding-block: 12px;
  resize: vertical;
  line-height: 1.8;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-3);
}
.field small {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-3);
}
.email-help {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-2);
  margin-top: -8px;
  padding-left: 14px;
  border-left: 1px solid var(--sapphire-300);
}
.email-help strong {
  font-weight: 500;
  color: var(--text-1);
}
.input-unit {
  position: relative;
}
.input-unit input {
  padding-right: 44px;
}
.input-unit > span {
  position: absolute;
  right: 16px;
  top: 11px;
  font-size: 13px;
  color: var(--text-3);
}
.submit-application {
  width: auto;
  margin-top: 24px;
  min-width: 260px;
  display: flex;
  margin-left: auto;
}
.application-privacy {
  font-size: 11px;
  line-height: 1.85;
  color: var(--text-3);
  margin-top: 16px;
}
.inline-message {
  padding: 12px 14px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  font-size: 13px;
  margin-top: 16px;
}
.application-success {
  overflow: auto;
  padding: 64px 32px;
  max-width: 620px;
  width: 100%;
  margin: auto;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  margin: 0 auto 24px;
}
.success-icon svg {
  width: 24px;
  height: 24px;
}
.application-success h1 {
  font-size: 32px;
  letter-spacing: -0.03em;
}
.application-success > p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
}
.application-success dl {
  margin: 32px 0;
  padding: 24px 0;
  border-block: 1px solid var(--line-2);
  text-align: left;
}
.application-success dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 8px 0;
  font-size: 13px;
}
.application-success dt {
  color: var(--text-3);
}
.application-success dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.application-success > .pill {
  margin-top: 24px;
}

.admin-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
}
.admin-identity .mono {
  color: var(--text-1);
}
.admin-main {
  padding-block: 48px 72px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.admin-main h1 {
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.list-heading .muted {
  margin-top: 12px;
}
.list-total {
  font-size: 12px;
  color: var(--text-3);
}
.list-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 36px 0 24px;
}
.filter-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: none;
  border-radius: 999px;
}
.filter-tabs button {
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  padding: 0 16px;
  min-height: 40px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.filter-tabs button:hover {
  color: var(--text-1);
}
.filter-tabs button[aria-pressed="true"] {
  background: var(--n-3);
  color: var(--text-1);
}
.filter-tabs button span {
  font: 400 11px var(--font-mono);
  color: var(--text-2);
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
  flex: none;
}
.search svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
}
.search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-1);
  padding: 0 16px 0 40px;
  font-size: 12px;
}
.search input::placeholder {
  color: var(--text-3);
}
.request-table {
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: var(--n-2);
  overflow: hidden;
}
.table-head {
  display: grid;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  font-size: 12px;
  color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
}
.table-head > span:last-child {
  text-align: center;
}
.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-top: 1px solid var(--line-1);
  min-height: 104px;
}
.request-row:first-child {
  border-top: 0;
}
.request-row:hover {
  background: var(--n-3);
}
.request-open {
  display: grid;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 13px;
}
.request-open > span {
  min-width: 0;
}
.request-open strong {
  display: block;
  font-size: 15px;
  font-weight: 450;
  color: var(--text-1);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.request-row .sub {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.row-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text-3);
}
.row-arrow svg {
  width: 16px;
  height: 16px;
}
.complete-request {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
}
.complete-request:hover {
  background: var(--text-1);
  color: var(--n-0);
}
.sort-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  min-height: 44px;
  background: none;
  color: var(--text-2);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.sort-time:hover {
  color: var(--text-1);
}
.sort-time [data-sort-direction] {
  font-size: 16px;
}
.sort-mobile {
  display: none;
}
.completion-note {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 1px solid var(--sapphire-300);
  background: var(--n-2);
  font-size: 14px;
}
.completion-note p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.toast button {
  margin-left: 16px;
  border: 0;
  background: none;
  color: var(--text-1);
  text-decoration: underline;
  min-height: 44px;
  padding: 0 8px;
}
.request-model span {
  font-size: 12px;
  color: var(--text-2);
  display: block;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-2);
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.status[data-status="pending"]::before {
  background: var(--sapphire-300);
}
.status[data-status="rejected"]::before {
  background: transparent;
  box-shadow: 0 0 0 1px var(--text-3);
}
.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
.request-table + .fine {
  margin-top: 20px;
}
.back {
  margin-bottom: 24px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
}
.detail-kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.detail-heading h1 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.detail-heading .muted {
  margin-top: 8px;
}
.result-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  margin-top: 28px;
  background: var(--n-2);
}
.result-strip strong {
  font-size: 17px;
  font-weight: 500;
}
.result-strip p {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.approval-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 48px;
}
.section-nav {
  align-self: start;
  position: sticky;
  top: 92px;
  margin-top: 40px;
  display: grid;
  gap: 8px;
}
.section-nav a {
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--text-3);
}
.section-nav a:hover {
  border-color: var(--sapphire-300);
  color: var(--text-1);
}
.form-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-2);
  scroll-margin-top: 100px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.section-heading p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.85;
  margin-top: 6px;
}
.section-index {
  font: 400 12px var(--font-mono);
  color: var(--text-3);
}
.requested-note {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: var(--n-2);
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--text-3);
}
.requested-note strong {
  color: var(--text-1);
  font-weight: 400;
}
.requested-note strong b {
  font: 400 18px var(--font-mono);
}
.schedule-summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}
.schedule-summary strong {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-1);
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 112px;
  position: relative;
  border: 1px dashed var(--line-3);
  border-radius: 8px;
  background: var(--n-2);
  cursor: pointer;
}
.upload-zone:focus-within {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}
.upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-zone strong {
  font-size: 14px;
  font-weight: 400;
}
.upload-zone span {
  font-size: 12px;
  color: var(--text-3);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.photo-item {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--n-2);
  min-width: 0;
}
.photo-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--n-1);
}
.photo-caption {
  padding: 12px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.photo-caption span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.photo-caption button {
  background: none;
  border: 0;
  padding: 0;
  width: 32px;
  min-height: 36px;
  display: grid;
  place-items: center;
  flex: none;
}
.photo-caption svg {
  width: 16px;
  height: 16px;
}
.photo-caption button:hover {
  color: var(--sapphire-300);
}
.attachment-notes {
  margin-top: 24px;
}
.audit-facts {
  display: grid;
  gap: 0;
  margin: 0;
  font-size: 13px;
}
.audit-facts > div {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-1);
}
.audit-facts dt {
  color: var(--text-3);
}
.audit-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.audit-facts dd small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.original-details {
  margin-top: 24px;
  font-size: 13px;
}
.original-details summary {
  cursor: pointer;
  color: var(--text-2);
  min-height: 44px;
  padding: 8px 0;
}
.original-details p {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.events {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 16px;
}
.events li {
  font-size: 12px;
  border-left: 1px solid var(--line-3);
  padding-left: 16px;
}
.events small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.approval-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0 20px 238px;
  background: var(--n-0);
  border-top: 1px solid var(--line-2);
}
.approval-footer > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
  max-width: 280px;
}
.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.footer-actions > .text-button {
  margin-right: 8px;
}
.small-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.small-dialog .contact-top h2 {
  font-size: 24px;
}
.small-dialog .muted {
  margin: 16px 0 24px;
}
.small-dialog .footer-actions {
  margin-top: 24px;
}
.role-options {
  display: grid;
  margin-top: 24px;
}
.role-options button {
  border: 0;
  border-top: 1px solid var(--line-2);
  background: none;
  text-align: left;
  padding: 20px 0;
  font-size: 15px;
}
.role-options button span {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}
.role-options button:hover {
  color: var(--sapphire-300);
}
#admin-denied {
  padding: 72px 0;
}
#admin-denied > .muted {
  margin: 20px 0 32px;
}

.agreement-dialog {
  width: min(1100px, calc(100vw - 48px));
}
.agreement-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  background: var(--n-2);
  padding: 24px 40px;
  overscroll-behavior: contain;
}
.document-notice {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 20px;
}
.agreement-document {
  background: #fff;
  color: #20252b;
  padding: 64px;
  max-width: 820px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.95;
  border-radius: 2px;
  color-scheme: light;
  overflow-wrap: anywhere;
}
.agreement-document h1 {
  font-size: 26px;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.agreement-document h2 {
  font-size: 16px;
  margin: 32px 0 14px;
}
.agreement-document h3 {
  font-size: 14px;
  margin: 24px 0 12px;
}
.agreement-document p {
  margin: 10px 0;
}
.agreement-document strong {
  font-weight: 600;
}
.agreement-document ul,
.agreement-document ol {
  padding-left: 22px;
}
.agreement-document li {
  margin: 8px 0;
}
.agreement-document blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 2px solid #858c95;
  background: #f4f5f6;
}
.agreement-document table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 12px;
}
.agreement-document th,
.agreement-document td {
  border: 1px solid #d7dadd;
  padding: 9px 12px;
  text-align: left;
}
.agreement-document .document-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d7dadd;
  font-size: 11px;
  color: #585f69;
}
.agreement-document .document-value {
  color: #20252b;
}
.agreement-document .placeholder {
  color: #6f7782;
}
.agreement-document .document-photo {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  margin: 20px auto;
}
.agreement-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line-2);
  flex: none;
}
.agreement-footer > p {
  font-size: 11px;
  color: var(--text-3);
  margin-right: auto;
  max-width: 400px;
  line-height: 1.8;
}
.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  background: var(--n-3);
  color: var(--text-1);
  padding: 14px 20px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  max-width: calc(100vw - 48px);
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#print-root {
  display: none;
}
@media (max-width: 1120px) {
  .table-head {
    gap: 16px;
    padding-inline: 20px;
  }
  .request-row {
    gap: 16px;
    padding-inline: 20px;
  }
  .request-open {
    gap: 16px;
  }
  .approval-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 32px;
  }
  .approval-footer {
    padding-left: 192px;
  }
  .detail-heading h1 {
    font-size: 28px;
  }
}
@media (max-width: 900px) {
  .list-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .table-head {
    display: none;
  }
  .request-table {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .request-row {
    padding: 24px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--n-2);
    gap: 18px;
    min-height: 0;
    align-items: start;
  }
  .request-row:first-child {
    border-top: 1px solid var(--line-2);
  }
  .request-open {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }
  .request-open > span:first-child {
    grid-column: 1/-1;
  }
  .request-open > .status {
    grid-column: 2;
    grid-row: 2;
  }
  .request-model {
    grid-column: 1;
  }
  .request-time {
    grid-column: 1;
    grid-row: 3;
  }
  .row-arrow {
    padding-top: 14px;
  }
  .sort-mobile {
    display: flex;
    margin: -4px 0 12px;
    gap: 10px;
  }
  .sort-mobile [data-sort-label] {
    margin-left: auto;
    color: var(--text-3);
  }
  .application-content {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .field-grid {
    gap: 20px 16px;
  }
  .approval-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .section-nav {
    display: none;
  }
  .approval-footer {
    padding-left: 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .approval-footer > .footer-actions {
    margin-left: auto;
  }
  .approval-footer > p {
    max-width: none;
    width: 100%;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-heading {
    align-items: flex-start;
  }
  .detail-kicker {
    gap: 12px;
    flex-wrap: wrap;
  }
  .agreement-document {
    padding: 40px;
  }
}
@media (max-width: 600px) {
  .admin-header {
    padding-block: 20px;
  }
  .logo-link img {
    width: 110px;
  }
  .contact-dialog {
    right: 16px;
    bottom: 16px;
    padding: 20px;
  }
  .contact-top h2 {
    font-size: 22px;
  }
  .contact-rows strong {
    font-size: 16px;
  }
  .large-dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    inset: 0;
    border: 0;
  }
  .dialog-top {
    padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
    gap: 12px;
  }
  .dialog-top img {
    width: 100px;
  }
  .dialog-top .contact-close {
    width: 44px;
    height: 44px;
  }
  .application-content {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .application-content > form {
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  }
  .form-title {
    margin-bottom: 24px;
  }
  .form-title h2 {
    font-size: 18px;
  }
  .form-title > span {
    font-size: 11px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .span-2 {
    grid-column: 1;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .field > span {
    font-size: 12px;
  }
  .field small,
  .email-help {
    font-size: 12px;
  }
  .application-privacy {
    font-size: 11px;
  }
  .application-success {
    padding: 36px 24px;
  }
  .application-success h1 {
    font-size: 28px;
  }
  .application-success dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .admin-identity {
    gap: 8px;
  }
  .admin-identity > span:not(.mono) {
    display: none;
  }
  .admin-identity > .pill {
    padding-inline: 12px;
    font-size: 11px;
  }
  .admin-main {
    padding-top: 32px;
  }
  .admin-main h1 {
    font-size: 32px;
  }
  .list-heading {
    align-items: flex-start;
    gap: 16px;
  }
  .list-total {
    font-size: 11px;
    white-space: nowrap;
    margin-top: 8px;
  }
  .list-heading .muted {
    font-size: 13px;
  }
  .list-tools {
    margin: 28px 0 20px;
  }
  .filter-tabs {
    align-self: stretch;
    gap: 0;
    justify-content: space-between;
  }
  .filter-tabs button {
    font-size: 12px;
    padding-inline: 10px;
    gap: 6px;
  }
  .request-row {
    padding: 20px;
    gap: 16px;
  }
  .request-open strong {
    font-size: 14px;
  }
  .request-model span {
    font-size: 11px;
  }
  .request-row .mono {
    font-size: 11px;
  }
  .detail-heading {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
  }
  .detail-heading h1 {
    font-size: 26px;
  }
  .detail-kicker > .mono {
    font-size: 11px;
  }
  .detail-heading .muted {
    font-size: 12px;
  }
  .detail-heading > .pill {
    align-self: flex-start;
  }
  .form-section {
    padding-block: 28px;
    scroll-margin-top: 112px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .requested-note {
    padding: 14px;
    gap: 12px;
  }
  .requested-note > #original-model {
    width: 100%;
  }
  .schedule-summary {
    gap: 6px;
  }
  .schedule-summary span {
    width: 100%;
  }
  .result-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .result-strip .pill {
    align-self: flex-start;
  }
  .audit-facts > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 12px;
  }
  .audit-facts {
    font-size: 12px;
  }
  .approval-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .footer-actions {
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .footer-actions .pill {
    padding-inline: 16px;
    font-size: 12px;
  }
  .footer-actions .text-button {
    font-size: 12px;
    margin-right: 0;
  }
  .approval-footer > .footer-actions .pill {
    min-height: 44px;
  }
  .upload-zone {
    flex-wrap: wrap;
    padding: 24px;
    gap: 8px;
  }
  .upload-zone span {
    width: 100%;
    text-align: center;
  }
  .photo-grid {
    gap: 12px;
  }
  .photo-item img {
    height: 120px;
  }
  .agreement-scroll {
    padding: 16px 12px;
  }
  .agreement-document {
    padding: 28px 20px;
    font-size: 12px;
  }
  .agreement-document h1 {
    font-size: 20px;
  }
  .agreement-document h2 {
    font-size: 15px;
  }
  .agreement-document .document-meta {
    grid-template-columns: 1fr;
  }
  .agreement-document table {
    font-size: 11px;
  }
  .agreement-document td,
  .agreement-document th {
    padding: 8px;
  }
  .agreement-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
    gap: 12px;
  }
  .agreement-footer > p {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .agreement-footer > .pill {
    flex: 1;
    font-size: 12px;
    padding-inline: 12px;
    min-height: 44px;
  }
  .agreement-footer .pill svg {
    width: 16px;
    height: 16px;
  }
  .small-dialog {
    padding: 24px;
  }
  .small-dialog .footer-actions {
    justify-content: flex-end;
  }
  .toast {
    left: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 350px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .filter-tabs button {
    font-size: 11px;
    padding-inline: 8px;
    gap: 4px;
  }
  .request-row {
    padding: 16px;
  }
  .admin-identity > .mono {
    display: none;
  }
  .application-content > form {
    padding-inline: 20px;
  }
  .field select {
    font-size: 13px;
  }
  .footer-actions .pill {
    padding-inline: 12px;
  }
  .footer-actions .pill svg {
    display: none;
  }
  .request-open > .status {
    font-size: 11px;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .pill.primary:hover,
  .pill:active,
  .contact-rows a:hover svg {
    transform: none;
  }
}
@media print {
  html,
  body {
    background: #fff !important;
    color: #20252b !important;
    overflow: visible !important;
  }
  body > * {
    display: none !important;
  }
  #print-root {
    display: block !important;
  }
  #print-root .agreement-document {
    max-width: none;
    border: 0;
    padding: 0;
    font-size: 10pt;
    line-height: 1.8;
  }
  #print-root h1 {
    font-size: 18pt;
  }
  #print-root h2 {
    font-size: 12pt;
    break-after: avoid;
  }
  #print-root .agreement-document table,
  #print-root figure {
    break-inside: avoid;
  }
  #print-root p,
  #print-root li {
    orphans: 3;
    widows: 3;
  }
  .print-layout {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    break-inside: auto;
  }
  .print-layout > tbody > tr,
  .print-layout > tbody > tr > td {
    break-inside: auto;
  }
  .print-layout > tbody > tr > td {
    padding: 0;
    vertical-align: top;
  }
  .print-header {
    display: table-header-group;
    break-inside: avoid;
  }
  .print-header > tr > td {
    padding: 0 0 7mm;
    vertical-align: top;
  }
  .print-header img {
    display: block;
    width: 30mm;
    height: auto;
  }
  .print-watermark {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 145mm;
    transform: translate(-50%, -50%) rotate(-30deg);
    opacity: 0.045;
    pointer-events: none;
    z-index: 2;
  }
  .print-watermark img {
    display: block;
    width: 100%;
    height: auto;
  }
  @page {
    size: A4;
    margin: 12mm 17mm 18mm;
  }
}
.application-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.application-heading h1 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.application-heading p {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 10px;
}
.application-heading > span {
  font-size: 12px;
  color: var(--text-3);
  padding-top: 10px;
}
.application-group {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.application-group + .application-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.application-group legend {
  padding: 0;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 500;
}
.days-help {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-3);
}
.entity-personal .email-field,
.entity-personal .contact-address-field {
  grid-column: 1/-1;
}
.application-submit {
  border-top: 1px solid var(--line-2);
  margin-top: 28px;
  padding-top: 16px;
}

.application-submit .application-privacy {
  font-size: 11px;
  line-height: 1.85;
  margin-top: 20px;
  color: var(--text-3);
}
.select-control {
  position: relative;
  min-width: 0;
  width: 100%;
}
.field-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.field [aria-invalid="true"] {
  border-color: var(--line-3);
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  text-align: left;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--n-2);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.65;
}
.select-trigger > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.select-trigger > svg {
  width: 16px;
  height: 16px;
  color: var(--text-2);
  transition: transform var(--dur-hover) var(--ease-settle);
}
.select-trigger[aria-expanded="true"] {
  border-color: var(--line-3);
}
.select-trigger[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}
.select-trigger[data-empty="true"] > span {
  color: var(--text-3);
}
.select-options {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  z-index: 8;
  min-width: 100%;
  padding: 4px;
  overflow: auto;
  max-height: 280px;
  border: 1px solid var(--line-3);
  border-radius: 8px;
  background: var(--n-3);
}
.select-control[data-direction="up"] > .select-options {
  top: auto;
  bottom: calc(100% + 8px);
}
.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  text-align: left;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}
.select-option:hover,
.select-option:focus-visible {
  background: var(--line-1);
  color: var(--text-1);
}
.select-option[aria-selected="true"] {
  color: var(--text-1);
}
.select-option > svg {
  width: 16px;
  height: 16px;
  color: var(--sapphire-300);
}
.select-option:focus-visible {
  outline-offset: -2px;
}
@media (max-width: 600px) {
  .application-heading {
    margin-bottom: 28px;
    gap: 12px;
  }
  .application-heading h1 {
    font-size: 28px;
  }
  .application-heading p {
    font-size: 12px;
  }
  .application-heading > span {
    font-size: 11px;
    padding-top: 8px;
    white-space: nowrap;
  }
  .application-group legend {
    font-size: 17px;
  }
  .application-submit .submit-application {
    width: 100%;
    min-width: 0;
  }
  .select-trigger {
    font-size: 16px;
  }
  .select-option {
    font-size: 14px;
  }
  .application-group + .application-group {
    margin-top: 24px;
  }
}

.key-terms-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.key-terms-heading h2 {
  font-size: 18px;
  line-height: 1.5;
}
.agreement-acceptance {
  font-size: 12px;
  color: var(--text-3);
  margin: 8px 0 20px;
}
.key-terms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.key-terms li {
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
}
.key-terms li > strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}
.key-terms b {
  font-weight: 500;
  color: var(--text-1);
}
.key-terms .shipping-emphasis {
  padding-left: 14px;
  border-left: 1px solid var(--sapphire-300);
}
.confirmation-dialog {
  width: min(760px, calc(100vw - 48px));
  height: min(900px, calc(100dvh - 48px));
}
.application-dialog .dialog-top .contact-close,
.confirmation-dialog .dialog-top .contact-close {
  margin-left: auto;
}
.confirmation-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px 32px;
}
.confirmation-scroll > .muted {
  font-size: 13px;
  margin-bottom: 20px;
}
.confirmation-scroll .audit-facts {
  margin-bottom: 28px;
}
.confirmation-scroll .audit-facts > div {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
}
.confirmation-scroll .fine {
  margin-top: 20px;
}
.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--line-2);
  flex: none;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
  cursor: pointer;
}
.check-field input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-3);
  border-radius: 4px;
  background: var(--n-2);
  margin: 0;
}
.check-field input:checked {
  background: var(--text-1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230d0f12' stroke-width='1.8'%3E%3Cpath d='m4 10 4 4 8-8'/%3E%3C/svg%3E")
    center/18px no-repeat;
  border-color: var(--text-1);
}
@media (max-width: 600px) {
  .key-terms-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .key-terms-heading h2 {
    font-size: 17px;
  }
  .key-terms {
    gap: 16px;
  }
  .confirmation-dialog {
    width: 100%;
    height: 100dvh;
  }
  .confirmation-scroll {
    padding: 24px 20px;
  }
  .confirmation-scroll .audit-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .confirmation-actions {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    flex-direction: column;
  }
  .confirmation-actions .pill {
    width: 100%;
    white-space: normal;
  }
  .confirmation-dialog .dialog-top h2 {
    font-size: 18px;
  }
  .check-field {
    align-items: flex-start;
    padding-block: 10px;
  }
  .check-field input {
    margin-top: 2px;
  }
}

/* No focus ring on links and buttons while the last input was a pointer (assets/input-mode.js sets data-input="pointer"; any key clears it).
   Safari does not focus a clicked button, so a dialog that moves focus to its close button by script otherwise gets a ring round the round
   close button that stays until the next click elsewhere. Text fields keep theirs. */
html[data-input="pointer"]
  :is(a, button, summary, [role="button"]):focus-visible {
  outline: none;
}
@media (max-width: 600px) {
  .approval-footer > p {
    display: none;
  }
  .approval-footer {
    padding-left: 0;
  }
}
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="time"] {
  color-scheme: dark;
  font: inherit;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.field input::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}
.field input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
dialog[data-nested]::backdrop {
  background: transparent;
}
@media (max-width: 600px) {
  .filter-tabs button {
    min-height: 44px;
  }
}

.finance-panel {
  padding: 20px 0;
  border-block: 1px solid var(--line-1);
  margin-top: 20px;
}
.finance-panel h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
#finance-summary {
  white-space: pre-line;
}
.admin-identity {
  flex-wrap: wrap;
}
.section-nav {
  max-height: calc(100dvh - 200px);
  overflow: auto;
}
.dialog-fields {
  gap: 16px;
}
#special-fields {
  margin-block: 20px;
}
#grant-list {
  margin-top: 24px;
}

#progress-facts {
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
