html {
  background-color: #f6f1e7;
  overflow-y: auto;
}

@supports (scrollbar-gutter: stable) {
  html {
    scrollbar-gutter: stable both-edges;
  }
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  background-color: #f6f1e7;
}

:root {
  --paper: #f6f1e7;
  --cream: #fcf8f0;
  --ink: #1d2327;
  --forest: #163d36;
  --fern: #6e8e81;
  --gold: #bb8c59;
  --rose: #7f4438;
  --line: rgba(22, 61, 54, 0.16);
  --line-strong: rgba(22, 61, 54, 0.3);
  --shadow: 0 28px 80px rgba(18, 28, 30, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background:
    radial-gradient(circle at top left, rgba(187, 140, 89, 0.18), transparent 26rem),
    radial-gradient(circle at top right, rgba(110, 142, 129, 0.18), transparent 22rem),
    linear-gradient(180deg, #fffaf3 0%, var(--paper) 48%, #ebe2d4 100%);
  font-family: var(--sans);
}

a,
button,
input,
select,
textarea {
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(220deg, rgba(22, 61, 54, 0.05), transparent 30%);
}

.app-shell {
  width: min(1200px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.app-header,
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-header {
  padding: 1rem 0 0;
}

.app-main {
  padding: 0.85rem 0 2rem;
}

.app-footer {
  padding: 0 0 2rem;
  color: rgba(29, 35, 39, 0.65);
  font-size: 0.95rem;
}

.brand-lockup {
  display: grid;
  gap: 0.2rem;
}

.brand-mark {
  font: 700 1.35rem/1 var(--serif);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-caption {
  margin: 0;
  color: rgba(29, 35, 39, 0.7);
  font-size: 0.94rem;
}

.app-body-signed-in .app-header {
  padding: 0.55rem 0 0;
  gap: 0.6rem 1rem;
  align-items: start;
}

.app-body-signed-in .app-main {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.app-body-signed-in .brand-lockup {
  gap: 0.1rem;
}

.app-body-signed-in .brand-mark {
  font-size: 1.2rem;
}

.app-body-signed-in .brand-caption {
  max-width: 24rem;
  font-size: 0.85rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.6rem;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nav-group-primary {
  flex: 1 1 auto;
}

.nav-group-utility {
  justify-content: flex-end;
}

.top-nav form {
  margin: 0;
}

.nav-link,
.nav-user,
.button {
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.nav-link {
  padding: 0.54rem 0.82rem;
  color: rgba(29, 35, 39, 0.78);
  font-size: 0.94rem;
}

.nav-link.is-active,
.nav-link:hover {
  background: rgba(22, 61, 54, 0.08);
  color: var(--forest);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.76rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.nav-user-label {
  color: rgba(29, 35, 39, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-user-name {
  color: var(--ink);
}

.system-banner,
.flash,
.panel,
.workspace-hero,
.list-card,
.directory-card,
.option-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.system-banner,
.flash {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.system-banner {
  background: rgba(187, 140, 89, 0.12);
}

.flash-notice {
  background: rgba(22, 61, 54, 0.08);
}

.flash-error {
  background: rgba(127, 68, 56, 0.1);
}

.workspace-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  padding: 1.6rem;
  margin-bottom: 1rem;
  align-items: start;
}

.page-title {
  margin: 0.25rem 0 0.55rem;
  font: 700 clamp(2.15rem, 4vw, 3.6rem)/0.98 var(--serif);
  letter-spacing: -0.03em;
}

.page-subtitle {
  margin: 0;
  max-width: 42rem;
  line-height: 1.65;
  color: rgba(29, 35, 39, 0.78);
}

.workspace-hero-compact {
  grid-template-columns: minmax(0, 1.45fr) auto;
  gap: 0.85rem 1rem;
  padding: 1.15rem 1.25rem;
  align-items: end;
}

.workspace-hero-compact .page-title {
  margin: 0.1rem 0 0.32rem;
  max-width: 18ch;
  font-size: clamp(1.95rem, 3vw, 2.75rem);
}

.workspace-hero-compact .page-subtitle {
  max-width: 46rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}

.hero-stats {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.workspace-hero-compact .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.hero-metric {
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(252, 248, 240, 0.82);
}

.workspace-hero-compact .hero-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  background: rgba(252, 248, 240, 0.94);
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(29, 35, 39, 0.6);
}

.workspace-hero-compact .metric-label {
  font-size: 0.68rem;
  line-height: 1;
}

.metric-value {
  display: block;
  margin-top: 0.4rem;
  font: 700 1.4rem/1.05 var(--serif);
  color: var(--forest);
}

.workspace-hero-compact .metric-value {
  margin-top: 0;
  font: 700 0.96rem/1.25 var(--sans);
}

.metric-value a {
  color: inherit;
  text-decoration: none;
}

.metric-value a:hover,
.metric-value a:focus-visible {
  text-decoration: underline;
}

.workspace-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(29, 35, 39, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease,
      transform 160ms ease, box-shadow 160ms ease;
}

.workspace-tab-label-short {
  display: none;
}

.workspace-tab:hover,
.workspace-tab:focus-visible {
  border-color: rgba(22, 61, 54, 0.32);
  color: var(--forest);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(18, 28, 30, 0.08);
}

.workspace-tab-active,
.workspace-tab-active:hover,
.workspace-tab-active:focus-visible {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.content-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.invite-claim-grid {
  grid-template-columns: 1.2fr 0.9fr;
}

.invite-claim-hero .page-subtitle {
  max-width: 38rem;
}

.auth-grid {
  grid-template-columns: 1fr 0.85fr;
}

.inbox-grid {
  grid-template-columns: 0.85fr 1.35fr;
}

.panel {
  padding: 1.18rem;
}

.panel-soft {
  background: rgba(252, 248, 240, 0.88);
}

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

.section-heading h2,
.panel h2 {
  margin: 0.18rem 0 0;
  font: 700 1.55rem/1.05 var(--serif);
}

.panel-note,
.muted,
.subtle-copy {
  color: rgba(29, 35, 39, 0.68);
}

.panel p,
.list-card p,
.directory-card p,
.option-card span,
.page-subtitle,
.panel-note,
.subtle-copy {
  line-height: 1.5;
}

.stacked-form {
  display: grid;
  gap: 1rem;
}

.compact-form {
  margin-top: 0.7rem;
}

.invite-off-platform-card {
  border-style: dashed;
  background: rgba(22, 61, 54, 0.04);
}

.invite-pending-card {
  background: rgba(252, 248, 240, 0.92);
}

.invite-claim-panel strong {
  color: var(--forest);
}

.invite-claim-footnote {
  margin-top: 0.85rem;
}

.compact-panel {
  margin: 1rem 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.rating-grid .field-span-2 {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.field span {
  font-weight: 700;
  color: rgba(29, 35, 39, 0.82);
}

.field-span-2 {
  grid-column: span 2;
}

.field-grow {
  flex: 1;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 0.82rem 0.92rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(22, 61, 54, 0.42);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(110, 142, 129, 0.24);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(22, 61, 54, 0.48);
  box-shadow: 0 0 0 3px rgba(110, 142, 129, 0.18);
}

textarea {
  resize: vertical;
}

.field-checkbox {
  align-content: center;
}

.field-checkbox input {
  width: 1.1rem;
  height: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.15;
}

.button-primary {
  background: var(--forest);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0f342d;
  transform: translateY(-1px);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line-strong);
  color: var(--forest);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(22, 61, 54, 0.38);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.button:disabled:hover,
.button:disabled:focus-visible {
  transform: none;
  box-shadow: none;
}

.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(22, 61, 54, 0.08);
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-pill-attention {
  background: rgba(187, 140, 89, 0.18);
  color: #7c5635;
}

.status-pill-success {
  background: rgba(22, 61, 54, 0.12);
  color: var(--forest);
}

.status-pill-link {
  text-decoration: none;
}

.status-pill-link:hover,
.status-pill-link:focus-visible {
  background: rgba(22, 61, 54, 0.14);
  color: var(--forest);
}

.status-pill-neutral {
  background: rgba(112, 120, 126, 0.12);
  color: rgba(29, 35, 39, 0.82);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.button-row + .chip-grid {
  margin-top: 0.85rem;
}

.search-strip {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.directory-filter-panel {
  margin-bottom: 1rem;
}

.directory-search-strip {
  margin-bottom: 0;
}

.directory-search-actions {
  margin-top: 0.75rem;
}

.directory-command-bar {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}

.directory-command-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  align-items: start;
}

.directory-command-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.directory-command-copy .page-title {
  margin: 0.14rem 0 0.28rem;
  max-width: none;
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
}

.directory-command-copy .page-subtitle {
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.directory-command-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: flex-start;
}

.directory-command-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.85fr) auto;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 0;
}

.directory-search-input {
  position: relative;
}

.directory-search-input input {
  padding-right: 4.8rem;
}

.directory-search-clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 61, 54, 0.16);
  background: rgba(22, 61, 54, 0.08);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.directory-search-clear:hover,
.directory-search-clear:focus-visible {
  background: rgba(22, 61, 54, 0.14);
  border-color: rgba(22, 61, 54, 0.26);
}

.directory-search-clear[hidden] {
  display: none;
}

.directory-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0;
}

.directory-command-actions .button {
  white-space: nowrap;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
  align-items: center;
}

.director-home-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.hero-action-row {
  margin-top: 0;
  justify-content: flex-end;
}

.director-command-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.director-command-copy h2 {
  margin: 0.18rem 0 0.25rem;
  font: 700 1.45rem/1.08 var(--serif);
}

.director-command-copy p:last-child {
  margin-bottom: 0;
}

.director-command-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.summary-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-row span {
  color: rgba(29, 35, 39, 0.66);
}

.summary-row strong {
  text-align: right;
  color: var(--forest);
}

.profile-disclosure {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.profile-disclosure summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--forest);
}

.profile-disclosure summary::-webkit-details-marker {
  display: none;
}

.profile-disclosure[open] summary {
  margin-bottom: 0.9rem;
}

.director-home-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.8fr);
  align-items: start;
}

.director-home-main,
.director-home-rail {
  display: grid;
  gap: 0.9rem;
}

.director-next-step-card {
  padding: 1.3rem;
}

.director-next-step-card h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.director-next-step-copy {
  max-width: 48rem;
}

.director-next-step-meta {
  margin-top: 0.8rem;
}

.minor-status-card {
  padding: 1rem 1.05rem;
}

.minor-status-card h2 {
  font-size: 1.28rem;
}

.director-home-inline-summary {
  margin: 0;
  line-height: 1.5;
  color: rgba(29, 35, 39, 0.74);
}

.candidate-review-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.candidate-stage-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.stage-focus {
  background: linear-gradient(135deg, rgba(240, 246, 241, 0.98), rgba(252, 248, 240, 0.94));
}

.stage-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.stage-metric {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.stage-metric strong {
  font-size: 1.1rem;
  color: var(--forest);
}

.stage-metric span {
  color: rgba(29, 35, 39, 0.68);
  font-size: 0.88rem;
}

.candidate-stage {
  padding: 0;
  overflow: hidden;
}

.candidate-stage summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.candidate-stage summary::-webkit-details-marker {
  display: none;
}

.candidate-stage[open] summary {
  border-bottom: 1px solid var(--line);
}

.candidate-stage-label {
  font-weight: 700;
  color: var(--forest);
}

.candidate-stage-body {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.directory-grid,
.stack-list,
.option-list {
  display: grid;
  gap: 0.85rem;
}

.directory-workbench {
  display: grid;
  grid-template-columns: minmax(19rem, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: start;
  padding: 0;
  overflow: visible;
}

.directory-results-panel,
.directory-detail-pane {
  display: grid;
  gap: 0.9rem;
}

.directory-results-pane,
.directory-detail-pane {
  min-height: 0;
}

.directory-results-pane {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  position: sticky;
  top: 0.85rem;
}

.directory-results-pane::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 0.8rem;
  bottom: 1rem;
  height: 2.4rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 241, 231, 0), rgba(246, 241, 231, 0.96));
}

.directory-detail-pane {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 248, 240, 0.9) 100%);
}

.directory-results-scroll,
.directory-detail-scroll {
  min-height: 0;
  overflow: visible;
}

.directory-results-scroll {
  max-height: calc(100dvh - 16rem);
  overflow-y: auto;
  padding: 0 0.35rem 2.6rem 0;
}

@supports (scrollbar-gutter: stable) {
  .directory-results-scroll {
    scrollbar-gutter: stable;
  }
}

.directory-detail-scroll {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
}

.directory-detail-summary {
  display: grid;
  gap: 0.6rem;
  position: sticky;
  top: 0.85rem;
  z-index: 1;
  margin: -0.1rem 0 0;
  padding: 0 0 0.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 240, 0.96) 82%, rgba(252, 248, 240, 0) 100%);
}

.directory-pane-heading {
  margin-bottom: 0;
}

.directory-pane-heading h2 {
  font-size: 1.4rem;
}

.directory-results-note {
  margin: -0.1rem 0 0;
  font-size: 0.95rem;
  max-width: 34rem;
}

.directory-result-list {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.2rem;
}

.directory-result-option {
  margin: 0;
}

.directory-result-trigger {
  width: 100%;
  padding: 0.82rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 0.48rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.directory-result-trigger:hover,
.directory-result-trigger:focus-visible {
  border-color: rgba(22, 61, 54, 0.28);
  box-shadow: 0 16px 28px rgba(18, 28, 30, 0.1);
  transform: translateY(-1px);
}

.directory-result-trigger-selected,
.directory-result-trigger-selected:hover,
.directory-result-trigger-selected:focus-visible {
  border-color: var(--forest);
  background: linear-gradient(180deg, rgba(241, 247, 242, 0.96), rgba(252, 248, 240, 0.96));
  box-shadow: 0 22px 44px rgba(18, 28, 30, 0.14);
}

.directory-result-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.directory-result-header strong {
  display: block;
  margin-bottom: 0.16rem;
  font: 700 1.02rem/1.05 var(--serif);
}

.directory-result-header span {
  color: rgba(29, 35, 39, 0.66);
}

.directory-result-summary {
  margin: 0;
  color: rgba(29, 35, 39, 0.84);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.directory-result-header-meta {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.directory-selection-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(22, 61, 54, 0.14);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-result-note {
  margin: 0;
  color: rgba(29, 35, 39, 0.76);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.directory-result-note-label {
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.directory-signal-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(22, 61, 54, 0.08);
  color: rgba(22, 61, 54, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
}

.directory-signal-chip-strong {
  background: rgba(22, 61, 54, 0.14);
  color: var(--forest);
}

.directory-result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.72rem;
  color: rgba(29, 35, 39, 0.62);
  font-size: 0.84rem;
}

.directory-result-footer-empty {
  color: rgba(29, 35, 39, 0.54);
  font-style: italic;
}

.directory-detail-location {
  margin: -0.2rem 0 0;
  color: rgba(29, 35, 39, 0.68);
}

.directory-detail-capability-line {
  margin: -0.15rem 0 0;
  color: rgba(29, 35, 39, 0.84);
  font-weight: 700;
}

.directory-detail-signal-row {
  margin-top: -0.1rem;
}

.directory-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.directory-detail-metric {
  display: grid;
  gap: 0.2rem;
  padding: 0.76rem 0.82rem;
  border-radius: 1rem;
  background: rgba(252, 248, 240, 0.92);
  border: 1px solid var(--line);
}

.directory-detail-metric strong {
  color: var(--forest);
  font-size: 1rem;
}

.directory-detail-section {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.directory-detail-section h3 {
  margin: 0;
  font: 700 1.1rem/1.08 var(--serif);
}

.directory-detail-section p {
  margin: 0;
}

.directory-detail-actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.directory-detail-actions .compact-form {
  margin-top: 0;
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(252, 248, 240, 0.72);
}

.directory-empty-state {
  margin: 0;
  box-shadow: none;
  background: rgba(252, 248, 240, 0.74);
}

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

.directory-card,
.list-card,
.option-card,
.empty-state {
  padding: 1rem;
}

.option-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.list-card-column {
  display: grid;
}

.directory-header,
.directory-footer,
.list-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.directory-header h3,
.list-card h3 {
  margin: 0 0 0.25rem;
  font: 700 1.2rem/1.05 var(--serif);
}

.directory-header p,
.directory-meta,
.list-card p {
  margin: 0.18rem 0 0;
}

.directory-footer {
  margin-top: 0.9rem;
  color: rgba(29, 35, 39, 0.66);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.recommendation-block {
  margin-top: 1rem;
}

.message-stack {
  display: grid;
  gap: 0.8rem;
  margin: 0.9rem 0;
}

.message-bubble {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.message-self {
  background: rgba(22, 61, 54, 0.08);
}

.message-other {
  background: rgba(255, 255, 255, 0.72);
}

.message-system {
  background: rgba(187, 140, 89, 0.12);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: rgba(29, 35, 39, 0.66);
  font-size: 0.9rem;
}

.message-bubble p {
  margin: 0;
  line-height: 1.55;
}

.option-card {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.option-card strong {
  color: var(--forest);
}

.option-card:hover,
.option-card:focus-visible {
  border-color: rgba(22, 61, 54, 0.28);
  box-shadow: 0 22px 50px rgba(18, 28, 30, 0.12);
  transform: translateY(-1px);
}

.option-card-active {
  border-color: rgba(22, 61, 54, 0.34);
  box-shadow: 0 18px 36px rgba(18, 28, 30, 0.1);
  background: rgba(250, 250, 247, 0.96);
}

.inbox-thread-card {
  gap: 0.6rem;
}

.thread-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.thread-card-context {
  display: block;
  margin-top: 0.2rem;
  color: rgba(29, 35, 39, 0.74);
  font-weight: 700;
}

.thread-card-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.thread-card-meta,
.thread-card-preview,
.thread-card-next {
  color: rgba(29, 35, 39, 0.72);
}

.thread-card-next {
  font-weight: 700;
  color: var(--forest);
}

.thread-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  color: rgba(29, 35, 39, 0.62);
  font-size: 0.9rem;
}

.notification-card {
  gap: 0.8rem;
}

.notification-card .thread-card-context {
  margin-top: 0.35rem;
  font-weight: 400;
}

.notification-card .thread-card-footer .button {
  margin-left: auto;
}

.activation-state {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  text-align: left;
}

.activation-state .eyebrow,
.activation-state p,
.activation-state h3 {
  margin: 0;
}

.activation-state h3 {
  font: 700 1.38rem/1.08 var(--serif);
  letter-spacing: -0.02em;
}

.activation-state .button-row {
  margin-top: 0.15rem;
}

.activation-state-compact {
  gap: 0.65rem;
}

.activation-step-list {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.activation-step {
  display: grid;
  gap: 0.32rem;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(22, 61, 54, 0.12);
  background: rgba(252, 248, 240, 0.82);
}

.activation-step strong {
  font-size: 0.97rem;
}

.activation-step span {
  color: rgba(29, 35, 39, 0.7);
}

.activation-step-highlight {
  background: rgba(22, 61, 54, 0.08);
  border-color: rgba(22, 61, 54, 0.18);
}

.thread-focus {
  display: grid;
  gap: 0.85rem;
}

.thread-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.9rem 0 1rem;
}

.thread-fact {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(252, 248, 240, 0.88);
}

.thread-fact strong {
  color: var(--forest);
}

.thread-fact span:last-child {
  color: rgba(29, 35, 39, 0.7);
  line-height: 1.45;
}

.check-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.check-list-ready {
  color: rgba(29, 35, 39, 0.82);
}

.check-list-pending {
  color: var(--forest);
  font-weight: 600;
}

.profile-trust-checklist {
  margin-top: 1rem;
}

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

.musician-roadmap-card {
  gap: 0.4rem;
  align-content: start;
}

.musician-roadmap-card-active {
  border-color: rgba(22, 61, 54, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.musician-roadmap-card-ready {
  background: rgba(240, 246, 241, 0.92);
}

.musician-roadmap-card-locked {
  opacity: 0.72;
}

.roadmap-state,
.roadmap-count {
  color: rgba(29, 35, 39, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
}

.roadmap-state {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.musician-next-step-stack {
  margin-top: 1rem;
}

.section-jump-card {
  background: rgba(255, 255, 255, 0.82);
}

.musician-preview-card {
  margin-bottom: 0.9rem;
}

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

.preview-fact h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(29, 35, 39, 0.62);
}

.musician-gap-chip-grid {
  margin-top: 0.9rem;
}

.invite-progress-panel {
  margin-bottom: 1.5rem;
}

.invite-progress-card h3 {
  margin: 0;
  font-size: 1rem;
}

.invite-progress-card p {
  margin: 0;
  color: rgba(29, 35, 39, 0.72);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .workspace-hero,
  .content-grid,
  .auth-grid,
  .directory-workbench,
  .directory-grid,
  .form-grid,
  .rating-grid,
  .stage-metric-grid,
  .thread-fact-grid,
  .preview-fact-list {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .app-shell {
    width: min(100% - 1rem, 1160px);
  }

  .app-header,
  .app-footer,
  .directory-result-header,
  .directory-header,
  .directory-footer,
  .list-card,
  .message-meta {
    align-items: start;
    flex-direction: column;
  }

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

  .nav-group {
    width: 100%;
  }

  .nav-group-utility {
    justify-content: space-between;
  }

  .nav-link,
  .nav-user,
  .top-nav .button {
    padding: 0.58rem 0.82rem;
    font-size: 0.95rem;
  }

  .workspace-hero-compact {
    gap: 0.75rem;
    padding: 1rem;
    align-items: start;
  }

  .workspace-hero-compact .page-title {
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .workspace-hero-compact .page-subtitle {
    font-size: 0.95rem;
  }

  .workspace-hero-compact .hero-stats {
    justify-content: flex-start;
  }

  .directory-command-header {
    flex-direction: column;
  }

  .directory-command-form {
    grid-template-columns: 1fr;
  }

  .directory-command-summary,
  .directory-command-actions {
    justify-content: flex-start;
  }

  .director-home-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-action-row {
    justify-content: flex-start;
    margin-top: 0.3rem;
  }

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

  .directory-workbench {
    height: auto;
    overflow: visible;
    padding: 1rem;
    gap: 1rem;
  }

  .directory-results-pane {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1rem;
  }

  .directory-results-pane::after {
    display: none;
  }

  .directory-detail-pane {
    position: static;
    background: transparent;
  }

  .directory-results-scroll,
  .directory-detail-scroll {
    overflow: visible;
  }

  .directory-detail-scroll {
    padding: 0;
  }

  .directory-detail-summary {
    position: static;
  }

  .directory-detail-pane {
    gap: 0.75rem;
  }

  .directory-detail-metrics {
    grid-template-columns: 1fr;
  }

  .workspace-tab {
    width: 100%;
  }

  .director-command-strip,
  .summary-row {
    align-items: start;
    flex-direction: column;
  }

  .director-home-grid {
    grid-template-columns: 1fr;
  }

  .director-command-actions {
    justify-content: flex-start;
  }

  .summary-row strong {
    text-align: left;
  }

  .app-body-signed-in .brand-caption {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-body-signed-in .app-shell {
    width: min(100% - 0.75rem, 1160px);
  }

  .app-body-signed-in .app-header {
    padding-top: 0.35rem;
    gap: 0.35rem 0.55rem;
  }

  .app-body-signed-in .app-main {
    padding-top: 0.35rem;
  }

  .app-body-signed-in .brand-mark {
    font-size: 1.05rem;
  }

  .app-body-signed-in .top-nav,
  .app-body-signed-in .nav-group {
    gap: 0.35rem;
  }

  .app-body-signed-in .nav-group-primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-body-signed-in .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.44rem 0.42rem;
    font-size: 0.83rem;
    text-align: center;
  }

  .app-body-signed-in .nav-group-utility {
    align-items: center;
    gap: 0.4rem;
  }

  .app-body-signed-in .nav-user {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.4rem 0.6rem;
  }

  .app-body-signed-in .nav-user-label {
    display: none;
  }

  .app-body-signed-in .nav-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .app-body-signed-in .top-nav .button {
    padding: 0.44rem 0.72rem;
    font-size: 0.84rem;
  }

  .workspace-subnav {
    display: flex;
    position: sticky;
    top: 0.25rem;
    z-index: 6;
    margin-bottom: 0.7rem;
    padding: 0.22rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(246, 241, 231, 0.94);
    box-shadow: 0 12px 26px rgba(18, 28, 30, 0.08);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .workspace-subnav::-webkit-scrollbar {
    display: none;
  }

  .workspace-hero .page-title {
    font-size: clamp(1.95rem, 11vw, 2.7rem);
  }

  .workspace-hero .page-subtitle {
    font-size: 0.92rem;
  }

  .workspace-hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .workspace-hero .hero-metric {
    padding: 0.8rem 0.85rem;
  }

  .workspace-hero .metric-value {
    font-size: 1.16rem;
  }

  .workspace-tab {
    width: auto;
    flex: 0 0 auto;
    padding: 0.54rem 0.74rem;
    font-size: 0.84rem;
  }

  .workspace-tab-label-full {
    display: none;
  }

  .workspace-tab-label-short {
    display: inline;
  }

  .workspace-hero-compact {
    gap: 0.6rem;
    padding: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .workspace-hero-compact .hero-stats {
    gap: 0.4rem;
  }

  .workspace-hero-compact .hero-metric {
    padding: 0.46rem 0.62rem;
  }

  .workspace-hero-compact .metric-label {
    font-size: 0.63rem;
  }

  .workspace-hero-compact .metric-value {
    font-size: 0.88rem;
  }
}
