body {
  min-height: 100vh;
  background: #f7f5ef;
}

[hidden] {
  display: none !important;
}

.stewards-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.stewards-shell h1 {
  max-width: 720px;
  margin: 8px 0 36px;
  color: #073847;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
}

.collection-heading,
.signed-in-actions,
.private-profile-heading,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.collection-actions {
  flex: 0 0 auto;
}

.quiet-button,
.quiet-link,
#save-profile,
.sign-in-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #073847;
  border-radius: 999px;
  padding: 10px 17px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.quiet-button,
.quiet-link {
  background: transparent;
  color: #073847;
}

#save-profile,
.sign-in-row button {
  background: #073847;
  color: white;
}

.auth-panel {
  margin-bottom: 34px;
  border: 1px solid rgba(7, 56, 71, 0.18);
  border-radius: 14px;
  background: #fffdf8;
  padding: 24px;
}

.auth-panel h2 {
  margin: 0 0 8px;
  color: #073847;
  font-size: 1.35rem;
}

.auth-panel p {
  color: #526a70;
}

#sign-in-form {
  margin-top: 20px;
}

#sign-in-form label {
  display: block;
  margin-bottom: 8px;
  color: #073847;
  font-weight: 700;
}

.sign-in-row {
  display: flex;
  gap: 10px;
}

.sign-in-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(7, 56, 71, 0.28);
  border-radius: 9px;
  background: white;
  padding: 12px 14px;
  color: #073847;
  font: inherit;
}

.steward-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(7, 56, 71, 0.18);
  list-style: none;
}

.steward-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(7, 56, 71, 0.18);
  color: #073847;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.steward-list a::after {
  content: "→";
  font-weight: 400;
}

.steward-list a:has(.owner-label)::after {
  content: none;
}

.owner-label {
  margin-left: auto;
  border-radius: 999px;
  background: rgba(11, 102, 114, 0.1);
  padding: 5px 10px;
  color: #0b6672;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.back-link,
.edit-link {
  color: #0b6672;
  font-weight: 700;
}

.steward-identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(7, 56, 71, 0.18);
}

.steward-identity h1 {
  margin-bottom: 8px;
}

.steward-identity p {
  margin: 0;
  color: #526a70;
}

.relationships {
  padding-top: 34px;
}

.relationships h2 {
  margin: 0 0 24px;
  color: #073847;
  font-size: 1.5rem;
}

.relationship-group {
  padding: 22px 0;
  border-top: 1px solid rgba(7, 56, 71, 0.14);
}

.relationship-group h3 {
  margin: 0 0 12px;
  color: #073847;
  font-size: 1rem;
}

.relationship-group ul {
  margin: 0;
  padding-left: 20px;
  color: #334f57;
  line-height: 1.7;
}

.private-profile {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 2px solid #073847;
}

.owner-view-tabs {
  display: flex;
  gap: 6px;
  margin-top: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(7, 56, 71, 0.18);
}

.owner-view-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 9px 14px;
  color: #526a70;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.owner-view-tabs button[aria-selected="true"] {
  background: #073847;
  color: white;
}

.owner-view-tabs .owner-sign-out {
  margin-left: auto;
  font-weight: 600;
}

.steward-navigation-panel {
  padding-top: 34px;
}

.navigation-opening-loading,
.navigation-opening-error {
  margin: 0;
  border-radius: 12px;
  background: #fffdf8;
  padding: 18px;
  color: #526a70;
}

.navigation-opening-error p {
  margin: 0 0 14px;
}

.orientation-section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(7, 56, 71, 0.16);
}

.orientation-section:first-child {
  padding-top: 0;
}

.orientation-section h2 {
  margin: 0 0 18px;
  color: #073847;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  line-height: 1.18;
}

.orientation-framing,
.orientation-empty-state,
.connection-framing {
  margin: 0;
  color: #526a70;
  line-height: 1.55;
}

.place-signal {
  padding: 20px 0;
  border-top: 1px solid rgba(7, 56, 71, 0.12);
}

.place-signal:first-child {
  border-top: 0;
  padding-top: 0;
}

.place-signal:last-child {
  padding-bottom: 0;
}

.place-signal summary,
.orientation-work-effort h3 {
  margin: 0 0 8px;
  color: #073847;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.place-signal summary {
  cursor: pointer;
  list-style-position: outside;
}

.place-signal:not([open]) summary {
  margin-bottom: 0;
}

.place-signal > p:not(.place-signal-date, .place-signal-sources) {
  margin: 0;
  color: #334f57;
  line-height: 1.58;
}

.place-signal-date {
  margin: 8px 0 0;
  color: #526a70;
  font-size: 0.88rem;
  line-height: 1.45;
}

.place-signal-sources {
  margin: 8px 0 0;
  color: #6b7d81;
  font-size: 0.78rem;
  line-height: 1.45;
}

.place-signal-sources a {
  color: #0b6672;
}

.orientation-work {
  display: grid;
  gap: 24px;
}

.orientation-work-effort ul,
.profile-attention ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #334f57;
  line-height: 1.55;
}

.orientation-work-effort li + li,
.profile-attention li + li {
  margin-top: 6px;
}

.profile-attention {
  margin-top: 12px;
}

.attention-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.attention-options button {
  border: 1px solid rgba(7, 56, 71, 0.24);
  border-radius: 999px;
  background: transparent;
  padding: 9px 13px;
  color: #334f57;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.attention-options button[aria-pressed="true"] {
  border-color: #0b6672;
  background: rgba(11, 102, 114, 0.11);
  color: #073847;
}

.navigation-conversation {
  padding-top: 24px;
}

.navigation-messages {
  display: grid;
  gap: 14px;
  margin: 30px 0 20px;
}

.navigation-messages:empty {
  margin: 0;
}

.navigation-message {
  max-width: 88%;
  border-radius: 14px;
  background: #fffdf8;
  padding: 16px 18px;
  color: #334f57;
  line-height: 1.6;
}

.navigation-message-user {
  justify-self: end;
  background: rgba(11, 102, 114, 0.1);
}

.navigation-message p {
  margin: 0;
  white-space: pre-wrap;
}

.navigation-message-label {
  margin-bottom: 5px !important;
  color: #073847;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.navigation-composer {
  border: 1px solid rgba(7, 56, 71, 0.2);
  border-radius: 14px;
  background: #fffdf8;
  padding: 16px;
}

.navigation-composer label {
  display: block;
  margin-bottom: 8px;
  color: #073847;
  font-weight: 700;
}

.navigation-composer textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(7, 56, 71, 0.25);
  border-radius: 10px;
  background: white;
  padding: 12px 14px;
  color: #073847;
  font: inherit;
  line-height: 1.55;
}

.navigation-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.navigation-form-actions button {
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid #073847;
  border-radius: 999px;
  background: #073847;
  padding: 10px 18px;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.navigation-status {
  max-width: 88%;
  margin: 0 0 20px;
  border-radius: 14px;
  background: #fffdf8;
  padding: 16px 18px;
  color: #526a70;
  font-size: 0.92rem;
  line-height: 1.6;
}

.navigation-status[data-error="true"] {
  color: #8c312c;
}

.private-profile-heading {
  align-items: flex-start;
  padding-bottom: 20px;
}

.private-profile-heading h2 {
  max-width: 580px;
  margin: 7px 0 0;
  color: #073847;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.profile-section,
.profile-field {
  padding: 24px 0;
  border-top: 1px solid rgba(7, 56, 71, 0.14);
}

.profile-section h3,
.profile-field > span {
  display: block;
  margin: 0 0 12px;
  color: #073847;
  font-size: 1.18rem;
  font-weight: 700;
}

.profile-section p {
  margin: 0;
  white-space: pre-wrap;
  color: #334f57;
  line-height: 1.65;
}

.profile-section-entries ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #334f57;
  line-height: 1.55;
}

.profile-empty-state {
  margin: 0;
  color: #526a70;
}

.profile-editor {
  border: 1px solid rgba(7, 56, 71, 0.18);
  border-radius: 18px;
  background: #fffdf8;
  padding: clamp(24px, 5vw, 48px);
}

.form-heading {
  padding: 24px 0 10px;
}

.form-heading h1 {
  margin-bottom: 10px;
}

.profile-ordering-note {
  margin: 0 0 8px;
  color: #526a70;
  line-height: 1.55;
}

.profile-field {
  display: block;
}

.profile-field small {
  display: block;
  margin: -5px 0 12px;
  color: #526a70;
  line-height: 1.5;
}

.structured-profile-field h2 {
  margin: 0 0 8px;
  color: #073847;
  font-size: 1.18rem;
}

.profile-field-description,
.profile-field-examples {
  margin: 0;
  color: #334f57;
  line-height: 1.5;
}

.profile-field-examples {
  margin-top: 7px;
  color: #526a70;
  font-size: 0.9rem;
}

.profile-entry-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.profile-entry-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-entry-row > input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
}

.profile-entry-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.entry-action,
.add-profile-entry {
  border: 1px solid rgba(7, 56, 71, 0.24);
  border-radius: 999px;
  background: transparent;
  padding: 7px 10px;
  color: #073847;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.add-profile-entry {
  margin-top: 12px;
  padding: 8px 13px;
}

.profile-field input,
.profile-field textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(7, 56, 71, 0.28);
  border-radius: 10px;
  background: white;
  padding: 14px;
  color: #073847;
  font: inherit;
  line-height: 1.55;
}

.profile-field textarea {
  resize: vertical;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.entry-action:disabled,
#edit-profile:disabled {
  cursor: default;
}

.status-message {
  min-height: 1.5em;
  margin-top: 24px;
  color: #526a70;
}

.status-message[data-error="true"] {
  color: #8c312c;
}

@media (max-width: 620px) {
  .stewards-shell {
    width: min(100% - 24px, 820px);
    padding: 42px 0 64px;
  }

  .steward-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-heading,
  .signed-in-actions,
  .private-profile-heading,
  .sign-in-row {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-actions,
  .quiet-button,
  .quiet-link,
  .sign-in-row button {
    width: 100%;
  }

  .navigation-message {
    max-width: 100%;
  }

  .navigation-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .navigation-form-actions button {
    width: 100%;
  }

  .profile-entry-row {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-entry-actions {
    justify-content: flex-end;
  }
}
