:root {
  --forest: #163e32;
  --deep: #102f27;
  --green: #2d684e;
  --lime: #d8ebbd;
  --paper: #f5f8f5;
  --white: #fff;
  --ink: #1b342b;
  --muted: #66786e;
  --line: #dce5dd;
  --soft: #edf3ed;
  --danger: #a23e3e;
  --shadow: 0 8px 30px #153c2607;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 16px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
}
svg {
  flex-shrink: 0;
}
button svg,
a svg {
  pointer-events: none;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #97b275;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}
main:focus {
  outline: 0;
}
.site-header {
  height: 82px;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 38px;
  gap: 50px;
  border-bottom: 1px solid #ffffff12;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}
.brand strong {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.brand small {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.015em;
  margin-top: 3px;
  color: #d3e2d5;
}
.main-nav {
  display: flex;
  align-self: stretch;
  gap: 28px;
}
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #b8cfc0;
  text-decoration: none;
  font-size: 0.94rem;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: white;
}
.main-nav a[aria-current]:after {
  content: "";
  position: absolute;
  height: 3px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lime);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.finder-button {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8dacb;
  border: 1px solid #ffffff25;
  background: #ffffff06;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.875rem;
  white-space: nowrap;
}
.finder-icon {
  display: block;
  width: 14px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  position: relative;
  margin: 0 4px 2px 0;
}
.finder-icon:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.8px;
  background: currentColor;
  transform: rotate(45deg);
  right: -5px;
  bottom: -2px;
}
kbd {
  font-family: inherit;
  font-size: 0.75rem;
  opacity: 0.8;
  padding: 2px 5px;
  border: 1px solid #ffffff20;
  border-radius: 4px;
}
.admin-icon {
  color: #b6cdbb;
  display: flex;
  align-items: center;
  padding: 8px;
}
.admin-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.page {
  max-width: 1260px;
  margin: 0 auto;
  padding: 50px 36px 30px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--green);
  margin: 0 0 13px;
}
.page h1 {
  font-size: clamp(2rem, 3.7vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.05em;
  margin: 0 0 15px;
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.page-title-row > .primary {
  margin-top: 0;
}
.primary,
.secondary,
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 19px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.4;
}
.primary {
  background: var(--forest);
  border: 1px solid var(--forest);
  color: white;
}
.primary:hover {
  background: var(--green);
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.secondary:hover {
  background: var(--soft);
}
.quiet-button {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 10px 4px;
}
.compact {
  font-size: 0.85rem;
  padding: 8px 12px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 1.4rem;
}
.subtle {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.page-loading {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  gap: 12px;
}
.spinner {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.notice {
  border: 1px solid #d6ddbd;
  background: #f2f5e9;
  border-radius: 10px;
  padding: 14px 18px;
  color: #53613b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 20px 0;
}
.notice.error {
  color: var(--danger);
  border-color: #e3c7c5;
  background: #fff7f6;
}
.notice p {
  margin: 0;
}
.notice a {
  color: inherit;
}
.footer {
  padding: 30px 0 6px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8rem;
  color: #7b8c81;
}
.footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}
.workspace-intro {
  margin-bottom: 33px;
}

.directory-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 23px;
}
.search-field {
  position: relative;
  width: 320px;
  flex-shrink: 1;
}
.search-field input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-size: 0.94rem;
}
.search-field .icon {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 18px;
  height: 18px;
  color: #7d9182;
}
.division-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 10px 12px;
  white-space: nowrap;
}
.filter-chip[aria-pressed="true"] {
  color: var(--forest);
  background: #e2eddd;
  border-color: #cfdfc8;
}
.filter-chip:hover {
  background: #eaf0e7;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.app-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: #9cbaa0;
}
.card-art {
  height: 136px;
  background: linear-gradient(120deg, #e7efe1, #f2f6ed);
  position: relative;
  padding: 23px;
  overflow: hidden;
}
.app-card.sales .card-art {
  background: linear-gradient(120deg, #e0ece5, #eef6f0);
}
.card-symbol {
  width: 46px;
  height: 46px;
  border: 1px solid #ffffffa0;
  border-radius: 11px;
  background: #ffffff99;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.card-symbol .icon {
  width: 26px;
  height: 26px;
}
.card-art .category {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.095em;
  font-weight: 600;
  color: #607953;
}
.favorite {
  position: absolute;
  right: 17px;
  top: 17px;
  background: #ffffff8a;
  border-color: #9cbaa044;
  font-size: 1rem;
  color: #71896b;
  z-index: 2;
}
.favorite[aria-pressed="true"] {
  background: #f2f5d9;
  color: #6b7522;
  border-color: #b8c37d;
}
.favorite[aria-pressed="true"] svg {
  fill: #dce6a7;
}
.preview-art {
  position: absolute;
  right: 28px;
  top: 33px;
  width: 190px;
  height: 100px;
  transform: rotate(-5deg);
  opacity: 0.8;
}
.card-body {
  padding: 24px;
}
.card-body h2 {
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.card-description {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
  font-size: 0.98rem;
  min-height: 52px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--muted);
}
.division-badge {
  background: #f0f4ed;
  color: #506849;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #edf1eb;
  padding-top: 18px;
}
.card-domain {
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7c8b80;
  min-width: 0;
}

.empty-state {
  padding: 50px 24px;
  text-align: center;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty-state h2 {
  font-size: 1.2rem;
  color: var(--ink);
}
.app-workspace {
  height: calc(100dvh - 82px);
  display: flex;
  flex-direction: column;
  background: white;
}
.app-toolbar {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 25px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.current-app {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.current-app strong {
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.current-app span {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.frame-deck {
  flex: 1;
  position: relative;
  min-height: 0;
}
.app-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f7f8;
}
.frame-wait {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  gap: 16px;
  z-index: 2;
  color: var(--muted);
}
.frame-wait p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.7;
}
.frame-wait strong {
  color: var(--ink);
  font-size: 1.15rem;
}
.form-page {
  max-width: 1060px;
}
.form-intro {
  margin-bottom: 31px;
}
.form-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 45px;
  align-items: start;
}
.steps {
  position: sticky;
  top: 25px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.step-button {
  border: 0;
  background: none;
  text-align: left;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #879588;
  font-size: 0.9rem;
  border-radius: 8px;
}
.step-button[aria-current="step"] {
  background: #e6efdf;
  color: var(--forest);
  font-weight: 600;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid #d5dfcf;
  border-radius: 50%;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.step-button[aria-current="step"] .step-number {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.step-button.complete {
  color: var(--green);
}

.form-card {
  padding: 30px 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}

.field {
  margin-bottom: 23px;
}
.field > label,
.field > legend {
  display: block;
  font-size: 0.94rem;
  font-weight: 550;
  margin-bottom: 8px;
}
.field > legend {
  padding: 0;
}
.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0 0;
}
.required {
  color: #899780;
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 5px;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select,
.filter-select {
  width: 100%;
  border: 1px solid #cfdcce;
  border-radius: 7px;
  background: white;
  padding: 11px 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
}
.field textarea.short {
  min-height: 75px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #98a398;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  font-size: 0.84rem;
  color: var(--danger);
  margin: 7px 0 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-row .field {
  min-width: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 23px;
  min-width: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 7px;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}
.choice:has(input:checked) {
  background: #f0f6e9;
  border-color: #9fba8b;
}
.choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  margin: 2px 0 0;
  flex-shrink: 0;
}
.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-row .choice {
  padding: 10px 15px;
  align-items: center;
}
.radio-row .choice input {
  margin: 0;
}
.conditional {
  margin-top: 12px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 28px;
}
.form-actions .step-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.form-actions > div {
  display: flex;
  gap: 10px;
}
.privacy-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 21px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.review-pair {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 16px;
  margin: 10px 0;
  font-size: 0.875rem;
  line-height: 1.65;
}
.review-pair dt {
  color: var(--muted);
}
.review-pair dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.review-pair a {
  overflow-wrap: anywhere;
}
.success-card {
  max-width: 650px;
  margin: 50px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 45px;
}
.success-symbol {
  width: 50px;
  height: 50px;
  background: #e6f1dc;
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 25px;
}
.success-card h1 {
  font-size: 2.1rem;
}
.success-card p {
  color: var(--muted);
  line-height: 1.8;
}
.success-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.login-page {
  max-width: 520px;
  margin: 55px auto;
  padding: 0 24px;
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 35px;
}
.login-card h1 {
  font-size: 1.9rem;
}
.login-card > .icon {
  color: var(--green);
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
}

.login-card form {
  margin-top: 26px;
}
.login-card .primary {
  width: 100%;
}
.login-card .subtle {
  margin-bottom: 0;
}
.admin-heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 8px;
}

.admin-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.filter-select {
  font-size: 0.85rem;
  width: auto;
  max-width: 230px;
  padding: 10px 35px 10px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%2366786e' stroke-width='1.6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: auto;
}
.inbox-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}
.inbox-table th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: #f8faf6;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.inbox-table td {
  padding: 18px;
  border-bottom: 1px solid #edf1e9;
  vertical-align: middle;
}
.inbox-table tr:last-child td {
  border-bottom: 0;
}
.inbox-table tbody tr:hover {
  background: #f8faf6;
}
.record-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.94rem;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cell-secondary {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 6px;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  background: #edf1e9;
  color: #617158;
  font-size: 0.75rem;
  white-space: nowrap;
}
.badge.listed {
  background: #e3f0dd;
  color: #3e6d32;
}
.badge.received,
.badge.requested {
  background: #f3eedb;
  color: #8a7635;
}
.badge.needs_info {
  background: #f6e7da;
  color: #97643a;
}
.badge.hidden {
  background: #edf0ed;
  color: #7a857b;
}
.text-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--green);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.record-dialog {
  max-width: 950px;
  width: calc(100% - 40px);
  padding: 0;
}
.record-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.record-header h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.record-header p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.record-body {
  padding: 26px 30px;
}
.record-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.record-columns h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin: 0 0 20px;
}
.record-columns details {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.record-columns summary {
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
}
.record-columns dl {
  margin: 12px 0;
}
.record-columns .review-pair {
  grid-template-columns: 1fr;
  gap: 3px;
  font-size: 0.82rem;
  margin: 13px 0;
}
.record-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: #f8faf6;
  position: sticky;
  bottom: 0;
}
.record-footer .subtle {
  margin: 0;
}
.empty-inbox {
  padding: 50px;
  text-align: center;
}
.empty-inbox p {
  color: var(--muted);
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 25px 90px #0b281d40;
  max-height: 88dvh;
}
dialog::backdrop {
  background: #0b281d80;
  backdrop-filter: blur(3px);
}
.finder-dialog {
  padding: 0;
  width: min(580px, calc(100% - 32px));
  margin-top: min(20vh, 150px);
}
.finder-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.finder-input-wrap input {
  border: 0;
  outline: 0 !important;
  width: 100%;
  font-size: 1.03rem;
}
.finder-input-wrap kbd {
  color: var(--muted);
  border-color: var(--line);
}
#finder-results {
  padding: 10px;
  max-height: 350px;
  overflow: auto;
}
.finder-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 14px;
  background: none;
  border: 0;
  border-radius: 8px;
  text-align: left;
}
.finder-item:hover,
.finder-item:focus {
  background: var(--soft);
}
.finder-item strong {
  font-size: 0.93rem;
  font-weight: 550;
  display: block;
}
.finder-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.finder-item .icon {
  color: var(--green);
}

.help-dialog {
  width: min(580px, calc(100% - 32px));
  padding: 28px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
}
.help-dialog p,
.help-dialog li {
  line-height: 1.8;
  color: var(--muted);
  font-size: 0.94rem;
}
.help-dialog li {
  margin: 12px 0;
}
.help-dialog ol {
  padding-left: 20px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: #fff;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px #17372d30;
  z-index: 200;
  max-width: calc(100% - 32px);
  text-align: center;
}
.inline-error {
  color: var(--danger);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 14px 0;
}
.service-error {
  max-width: 650px;
  margin: 60px auto;
  padding: 30px;
}
.service-error h1 {
  font-size: 2rem;
}
.service-error p {
  line-height: 1.8;
  color: var(--muted);
}
.turnstile-place {
  margin: 18px 0;
}
@media (min-width: 1450px) {
  .page {
    padding-top: 62px;
  }
  .card-art {
    height: 158px;
  }
  .preview-art {
    top: 45px;
    right: 38px;
    width: 210px;
  }
  .card-body {
    padding: 28px;
  }
}
@media (max-width: 1050px) {
  .site-header {
    padding: 0 25px;
    gap: 32px;
  }
  .header-actions {
    gap: 10px;
  }
  .finder-button span:not(.finder-icon) {
    display: none;
  }
  .finder-button kbd {
    display: none;
  }
  .finder-button {
    height: 38px;
    width: 38px;
    justify-content: center;
    padding: 8px;
  }
  .directory-tools {
    flex-wrap: wrap;
  }

  .form-layout {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 25px;
  }
  .current-app span {
    display: none;
  }
  .admin-filters {
    flex-wrap: wrap;
  }
}
@media (max-width: 750px) {
  .site-header {
    height: 72px;
    padding: 0 17px;
    gap: 22px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand strong {
    font-size: 1.05rem;
  }
  .brand small {
    font-size: 0.95rem;
    letter-spacing: -0.015em;
    margin-top: 2px;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 0.82rem;
  }
  .header-actions {
    gap: 5px;
  }
  .admin-icon {
    display: none;
  }
  .page {
    padding: 33px 20px 22px;
  }
  .page-title-row {
    gap: 15px;
  }
  .page-title-row > .primary {
    margin-top: 4px;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }

  .directory-tools {
    gap: 15px;
  }
  .search-field {
    width: 100%;
  }
  .division-filters {
    gap: 4px;
  }
  .filter-chip {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .card-art {
    height: 140px;
  }
  .card-description {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
  }
  .app-workspace {
    height: calc(100dvh - 72px);
  }
  .app-toolbar {
    padding: 9px 12px;
    gap: 8px;
  }
  .current-app strong {
    font-size: 0.82rem;
    max-width: 145px;
  }
  .toolbar-actions {
    gap: 6px;
  }
  .toolbar-actions button {
    padding: 8px;
    font-size: 0.75rem;
  }
  .toolbar-actions button:first-child {
    display: none;
  }
  .toolbar-actions a {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .form-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .steps {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .step-button {
    flex-direction: column;
    padding: 10px 4px;
    text-align: center;
    gap: 7px;
    font-size: 0.73rem;
  }

  .form-card {
    padding: 25px 22px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    gap: 10px;
  }
  .form-actions .step-label {
    display: none;
  }
  .form-actions > div {
    width: 100%;
    justify-content: space-between;
  }
  .review-pair {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .success-card {
    padding: 30px;
    margin: 15px 0;
  }
  .admin-heading-actions {
    gap: 8px;
  }
  .admin-heading-actions .secondary {
    font-size: 0.78rem;
    padding: 9px 10px;
  }

  .admin-filters .filter-select {
    max-width: 100%;
    flex: 1;
    min-width: 150px;
  }
  .record-dialog {
    width: calc(100% - 20px);
    max-height: 94dvh;
  }
  .record-header {
    padding: 20px;
  }
  .record-body {
    padding: 20px;
  }
  .record-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .record-footer {
    padding: 15px 20px;
  }
  .record-footer .subtle {
    font-size: 0.75rem;
  }
  .login-page {
    margin-top: 35px;
  }
  .login-card {
    padding: 28px;
  }
  .empty-inbox {
    padding: 30px 20px;
  }
}
@media (max-width: 420px) {
  .site-header {
    gap: 15px;
    padding: 0 13px;
  }
  .brand {
    gap: 8px;
  }
  .brand strong {
    font-size: 0.95rem;
  }
  .brand small {
    display: none;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .main-nav {
    gap: 14px;
  }
  .main-nav a {
    font-size: 0.75rem;
  }
  .header-actions {
    margin-left: auto;
  }
  .finder-button {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
  }
  .page-title-row {
    display: block;
  }
  .page-title-row > .primary {
    margin-top: 20px;
  }
  .current-app strong {
    max-width: 110px;
  }
  .form-card {
    padding: 23px 18px;
  }
  .card-bottom {
    gap: 10px;
  }
  .card-domain {
    font-size: 0.7rem;
  }
  .card-bottom .primary {
    padding: 10px 14px;
  }
  .record-footer {
    flex-wrap: wrap;
  }
  .record-footer .subtle {
    width: 100%;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* A modest hierarchy keeps both parts of the product name prominent. */
.page .workspace-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0;
}
.workspace-title span {
  display: block;
}
.workspace-title span:first-child {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.workspace-title span:last-child {
  color: var(--green);
  margin-top: 5px;
}
.other-answer {
  margin-top: 16px;
}
.other-answer .field {
  margin-bottom: 0;
}
