:root {
  --tcl-grey: #d6d6d6;
  --tcl-grey-dark: #b8b8b8;
  --tcl-grey-soft: #f5f5f5;
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--tcl-grey);
  outline-offset: 4px;
}

/* same minimal language as the existing byline and page links */
.app-nav {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
}

.app-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tcl-grey);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.app-nav a:hover,
.app-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-count {
  font-size: 14px;
}

.nav-count::before { content: "("; }
.nav-count::after { content: ")"; }

.nav-avatar,
.profile-avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tcl-grey);
  text-transform: uppercase;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.nav-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-page {
  overflow: auto;
  padding: 84px 96px 64px 93px;
  color: var(--tcl-grey);
  background: #fff;
}

.feature-shell {
  width: min(1060px, 100%);
}

.feature-kicker {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-page h1,
.page-join .auth-shell h1 {
  margin: 0;
  color: var(--tcl-grey);
  font-size: 64px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -1.28px;
}

.feature-subtitle {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--tcl-grey);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.44px;
}

.feature-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}

.feature-header-actions,
.form-actions,
.dialog-actions,
.collection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.field {
  display: grid;
  gap: 5px;
}

.field > span,
.field-label {
  color: var(--tcl-grey);
  font-size: 16px;
}

.field input,
.field textarea,
.library-search,
.note-area,
.dialog-input {
  box-sizing: border-box;
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--tcl-grey);
  border-radius: 0;
  outline: 0;
  color: var(--tcl-grey-dark);
  background: transparent;
  padding: 5px 2px 7px;
  font-family: "Averia Serif Libre", serif;
  font-size: 22px;
}

.field input::placeholder,
.field textarea::placeholder,
.library-search::placeholder,
.note-area::placeholder,
.dialog-input::placeholder {
  color: var(--tcl-grey);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

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

.field-wide { grid-column: 1 / -1; }
.form-actions { margin-top: 30px; }

.plain-btn,
.text-action,
.icon-action,
.auth-tab,
.collection-row,
.bookmark-btn,
.collection-chip {
  appearance: none;
  border: 0;
  color: var(--tcl-grey);
  background: transparent;
  cursor: pointer;
}

.plain-btn,
.text-action {
  padding: 0;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plain-btn:hover,
.text-action:hover {
  color: var(--tcl-grey-dark);
}

.plain-btn--danger {
  color: var(--tcl-grey-dark);
}

.status-copy {
  min-height: 23px;
  margin: 18px 0 0;
  color: var(--tcl-grey);
  font-size: 17px;
}

.status-copy[data-state="error"] {
  color: var(--tcl-grey-dark);
  text-decoration: underline;
}

/* account access mirrors the existing one-question-at-a-time project intake */
.page-join {
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #191919;
  background: #fff;
}

.auth-progress {
  position: fixed;
  z-index: 2;
  top: 94px;
  left: 36px;
  width: 220px;
  font-size: 16px;
  line-height: 1.25;
}

.auth-progress ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-progress li {
  margin: 0 0 12px;
  color: #dedede;
  transition: color .2s ease;
}

.auth-progress-step {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.auth-progress-step:focus-visible {
  outline: 2px solid var(--tcl-grey);
  outline-offset: 4px;
}

.auth-progress-marker {
  width: 8px;
  height: 21px;
  flex: none;
  display: grid;
  align-items: center;
  justify-items: start;
  color: inherit;
}

.auth-progress-number {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.auth-progress-check {
  display: none;
  width: 12px;
  height: 12px;
}

.auth-progress li.is-done .auth-progress-marker { width: 12px; }
.auth-progress li.is-done .auth-progress-number { display: none; }
.auth-progress li.is-done .auth-progress-check { display: block; }
.auth-progress li.is-active { color: #a9a9a9; }
.auth-progress li.is-done { color: #c4c4c4; }

.auth-mode-switch,
.auth-close {
  position: fixed;
  z-index: 2;
  top: 25px;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  color: var(--tcl-grey);
  background: #f8f8f8;
  line-height: 1;
}

.auth-mode-switch {
  left: 33px;
  padding: 0;
  appearance: none;
  font-size: 21px;
  cursor: pointer;
}

.auth-mode-switch:focus-visible,
.auth-close:focus-visible {
  outline: 2px solid var(--tcl-grey);
  outline-offset: 3px;
}

.auth-title {
  position: fixed;
  z-index: 2;
  top: 27px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--tcl-grey);
  font-size: 27px;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.auth-close {
  right: 33px;
  font-size: 34px;
  text-decoration: none;
}

.auth-stage {
  min-height: 100vh;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 96px clamp(48px, 9vw, 140px) 80px clamp(260px, 26vw, 360px);
}

.page-join .auth-type-form {
  display: block;
  width: min(960px, 100%);
  margin: 0;
}

.auth-step[hidden] { display: none; }

.auth-step > label {
  display: block;
  margin: 0 0 46px;
  color: var(--tcl-grey);
  font-size: clamp(36px, 3.6vw, 60px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .auth-step > label { white-space: nowrap; }
}

.auth-step-optional {
  color: var(--tcl-grey);
  font-size: .3em;
  letter-spacing: 0;
  vertical-align: middle;
}

.auth-step > input,
.auth-step > textarea,
.auth-password-line > input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 0;
  border-bottom: 2px solid var(--tcl-grey);
  border-radius: 0;
  outline: 0;
  color: var(--tcl-grey);
  background: transparent;
  padding: 5px 0 10px;
  font-family: "Averia Serif Libre", serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -.02em;
  caret-color: var(--tcl-grey-dark);
  transition: border-color .2s ease, color .2s ease;
}

.auth-step > textarea {
  min-height: 150px;
  resize: none;
}

.auth-step > input { text-overflow: ellipsis; }

.auth-step > input::placeholder,
.auth-step > textarea::placeholder,
.auth-password-line > input::placeholder {
  color: #e2e2e2;
}

.auth-step > input:focus-visible,
.auth-step > textarea:focus-visible,
.auth-password-line > input:focus-visible {
  border-color: var(--tcl-grey);
  color: var(--tcl-grey);
}

.auth-password-line {
  position: relative;
  display: block;
}

.auth-password-line > input { padding-right: 48px; }

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 41px;
  height: 41px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--tcl-grey);
  background: transparent;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.password-toggle:hover { background: #f8f8f8; }

.password-toggle:focus-visible {
  outline: 2px solid var(--tcl-grey);
  outline-offset: 2px;
}

.auth-step-actions {
  min-height: 44px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.auth-step-actions--split { justify-content: space-between; }

.page-join .status-copy {
  min-height: 20px;
  margin: 18px 0 0;
  color: #9a6f6f;
  font-size: 14px;
}

/* a quiet tool, not another hero button */
.project-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.project-heading-row h1 { flex: 1; }

.bookmark-btn {
  position: relative;
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-top: 0;
  border: 0;
  border-radius: 10px;
  color: #b8b8b8;
  background: transparent;
  box-shadow: none;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.bookmark-btn:hover {
  color: #777;
  background: rgba(214, 214, 214, .14);
}
.bookmark-btn:active { transform: scale(.92); }
.bookmark-btn[aria-pressed="false"] { opacity: 1; }
.bookmark-btn[aria-pressed="true"] {
  color: #191919;
  background: rgba(214, 214, 214, .2);
}
.bookmark-btn[aria-pressed="true"] svg path { fill: currentColor; }
.bookmark-btn:focus-visible { outline: 1px solid #b8b8b8; outline-offset: 2px; }
.bookmark-btn svg { width: 16px; height: 19px; }

.project-private {
  max-width: 22em;
  margin-top: 28px;
}

.project-private label {
  font-size: 16px;
}

.project-private textarea {
  min-height: 66px;
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.4;
  resize: vertical;
}

.autosave-state {
  min-height: 17px;
  margin: 5px 0 0;
  font-size: 13px;
}

/* private curator archive — the same spatial grammar as founder intake */
.page-library,
.page-account {
  --archive-paper: #fbfbf8;
  --archive-fog: #e5e5e1;
  --archive-line: #d2d2cd;
  --archive-pencil: #a4a49e;
  --archive-graphite: #777771;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--archive-pencil);
  background: var(--archive-paper);
}

.feature-mode-switch,
.feature-close {
  position: fixed;
  z-index: 22;
  top: 25px;
  height: 41px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  color: #9a9a95;
  background: #f0f0ec;
  border: 1px solid #dfdfda;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
  text-decoration: none;
}

.feature-mode-switch {
  left: 33px;
  min-width: 76px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 15px;
}

.feature-close {
  right: 33px;
  width: 41px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.feature-fixed-title {
  position: fixed;
  z-index: 20;
  top: 27px;
  left: 50%;
  transform: translateX(-50%);
  color: #b7b7b1;
  font-size: 27px;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.archive-rail {
  position: fixed;
  z-index: 3;
  top: 94px;
  left: 36px;
  width: 220px;
  font-size: 16px;
  line-height: 1.25;
}

.archive-rail-label {
  margin: 0 0 16px 13px;
  color: #c5c5c0;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.collection-list,
.settings-index {
  display: grid;
  gap: 2px;
}

.collection-row-wrap { min-width: 0; }

.collection-row,
.settings-index > button:not(.archive-rail-action),
.archive-rail-action {
  width: 100%;
  padding: 7px 0;
  appearance: none;
  border: 0;
  color: #c6c6c1;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color .2s ease, transform .2s ease;
}

.collection-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
}

.settings-index > button:not(.archive-rail-action) {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
}

.archive-rail-marker,
.settings-index > button > span:first-child,
.collection-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.collection-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-row:hover,
.settings-index > button:hover { color: var(--archive-graphite); }

.collection-row[aria-current="true"],
.settings-index > button[aria-selected="true"] {
  color: var(--archive-graphite);
  transform: translateX(5px);
}

.archive-rail-action {
  width: fit-content;
  margin: 17px 0 0 26px;
  color: #b8b8b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archive-stage {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 124px clamp(48px, 8vw, 120px) 96px clamp(260px, 24vw, 340px);
}

.archive-content,
.account-content {
  width: min(960px, 100%);
  margin: 0 auto;
}

.archive-stage-header { margin-bottom: 46px; }

.archive-eyebrow {
  margin: 0 0 13px;
  color: #b9b9b3;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.library-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.library-heading-row h1,
.settings-panel-heading h1 {
  margin: 0;
  color: var(--archive-pencil);
  font-size: clamp(50px, 5.2vw, 72px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.collection-actions {
  display: flex;
  flex: none;
  gap: 14px;
  padding-bottom: 7px;
}

.collection-actions .text-action {
  color: #a8a8a2;
  font-size: 15px;
}

.search-wrap {
  position: relative;
  display: block;
  width: min(620px, 100%);
  margin-top: 35px;
}

.search-wrap svg {
  position: absolute;
  left: 0;
  top: 12px;
  width: 19px;
  color: #b4b4ae;
}

.library-search {
  padding: 8px 2px 11px 31px;
  border-bottom-color: var(--archive-line);
  color: var(--archive-graphite);
  font-size: 24px;
}

.library-search::placeholder { color: #cecec9; }

.project-list { border-top: 2px solid var(--archive-line); }

.archive-entry {
  border-bottom: 1px solid var(--archive-line);
  transition: opacity .24s ease, transform .24s ease;
}

.project-list:has(.archive-entry:hover) .archive-entry:not(:hover) { opacity: .42; }
.archive-entry:hover { transform: translateX(7px); }

.archive-entry-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 30px 0 25px;
}

.project-index {
  padding-top: 24px;
  color: #bcbcb6;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.project-meta {
  margin: 0 0 8px;
  color: #b3b3ad;
  font-size: 13px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.archive-entry h3 {
  margin: 0;
  color: var(--archive-pencil);
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.archive-entry h3 a {
  color: inherit;
  text-decoration: none;
}

.archive-entry h3 a:hover { color: var(--archive-graphite); }

.project-abstract {
  max-width: 42em;
  margin: 13px 0 0;
  color: #a7a7a1;
  font-size: 16px;
  line-height: 1.42;
}

.archive-remove {
  align-self: start;
  margin-top: 21px;
  padding: 0;
  border: 0;
  color: #c3c3bd;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archive-entry-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 24px 56px;
  align-items: start;
}

.library-note summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  border-top: 1px solid var(--archive-fog);
  color: #aaa9a3;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}

.library-note summary::-webkit-details-marker { display: none; }
.library-note summary span:last-child { color: #c3c3be; }

.note-sheet {
  padding: 12px 16px 13px;
  background: #f1f1ed;
  border-left: 2px solid #c7c7c1;
  animation: archiveReveal .28s cubic-bezier(.22, .8, .24, 1) both;
}

.library-note .note-area {
  min-height: 76px;
  border: 0;
  color: #898983;
  font-size: 17px;
  line-height: 1.45;
  resize: vertical;
}

.collection-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 13px;
  padding-top: 9px;
  color: #bbbcb5;
  font-size: 14px;
}

.collection-picker > span { color: #c3c3be; }

.collection-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #b4b4ae;
  background: transparent;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.collection-chip[aria-pressed="true"] {
  color: var(--archive-graphite);
  background: transparent;
}

.empty-dossier {
  position: relative;
  min-height: 320px;
  box-sizing: border-box;
  margin-top: 34px;
  padding: 52px 58px;
  border: 1px solid var(--archive-line);
  background: #f7f7f3;
  box-shadow: 0 18px 45px rgba(80, 80, 70, .035);
}

.empty-dossier-clip {
  position: absolute;
  top: -17px;
  right: 42px;
  width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #aaa9a3;
  background: #efefeb;
  border: 1px solid #d3d3ce;
  border-radius: 14px 14px 3px 3px;
}

.empty-dossier-clip svg { width: 14px; }
.empty-dossier > p { margin: 0 0 45px; font-size: 13px; }
.empty-dossier h2 { margin: 0 0 10px; color: #999993; font-size: 42px; font-weight: 400; }
.empty-dossier > span:not(.empty-dossier-clip) { display: block; max-width: 30em; font-size: 17px; line-height: 1.4; }
.empty-dossier a { display: inline-block; margin-top: 28px; color: #92928c; text-underline-offset: 4px; }

/* outgoing identity dossier */
.account-content { width: min(1000px, 100%); }

.settings-panel:not([hidden]) { animation: archiveReveal .32s cubic-bezier(.22, .8, .24, 1) both; }

@keyframes archiveReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.settings-panel-heading { margin-bottom: 49px; }

.settings-panel-heading > p:last-child {
  max-width: 34em;
  margin: 18px 0 0;
  color: #aaa9a3;
  font-size: 18px;
  line-height: 1.4;
}

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: clamp(44px, 6vw, 76px);
  align-items: start;
}

.profile-editor { padding-top: 8px; }
.identity-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 25px; }

.page-account .field > span {
  color: #b1b1ab;
  font-size: 13px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.page-account .field input,
.page-account .field textarea {
  border-bottom-color: var(--archive-line);
  color: var(--archive-graphite);
  font-size: 20px;
}

.page-account .field textarea { min-height: 103px; }

.intro-pass {
  position: sticky;
  top: 112px;
  min-height: 500px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 27px 28px 25px;
  color: #8c8c86;
  background: #ecece7;
  border: 1px solid #d0d0ca;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(86, 86, 74, .08), inset 0 1px rgba(255, 255, 255, .9);
}

.intro-pass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.36), transparent 36%, rgba(255,255,255,.14) 68%, transparent);
}

.intro-pass > * { position: relative; }

.intro-pass-top,
.intro-pass-footer,
.membership-pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro-pass-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
}

.intro-pass-avatar-row > span:last-child {
  color: #aaa9a3;
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
}

.intro-pass .profile-avatar {
  width: 88px;
  height: 88px;
  font-size: 28px;
  background: #aaa9a3;
}

.intro-pass-name {
  margin: 34px 0 3px;
  color: #777771;
  font-size: clamp(38px, 3.5vw, 48px);
  line-height: .95;
  letter-spacing: -.045em;
}

.intro-pass-role {
  margin: 0;
  color: #91918b;
  font-size: 18px;
}

.intro-pass-at { color: #b3b3ad; }

.intro-pass-bio {
  min-height: 80px;
  margin: 32px 0 20px;
  color: #85857f;
  font-size: 18px;
  line-height: 1.38;
}

.intro-pass-social {
  color: #9a9a94;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-pass-footer {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid #d0d0ca;
}

.avatar-controls {
  display: grid;
  gap: 4px;
  margin-top: 19px;
}

.avatar-controls input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.avatar-controls label {
  width: fit-content;
  color: #8d8d87;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.avatar-controls small { color: #adada7; font-size: 11px; }

.folio-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
}

.settings-block {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 25px 0 0;
  border-top: 2px solid var(--archive-line);
}

.settings-block:first-of-type {
  margin: 0;
  padding-top: 25px;
  border-top: 2px solid var(--archive-line);
}

.folio-number {
  color: #c2c2bc;
  font-size: 13px;
  text-transform: uppercase;
}

.settings-block h3 {
  margin: 0 0 9px;
  color: #8f8f89;
  font-size: 26px;
  font-weight: 400;
}

.settings-block p {
  max-width: 31em;
  margin: 0 0 23px;
  color: #aaa9a3;
  font-size: 16px;
  line-height: 1.42;
}

.settings-block .form-grid { grid-template-columns: 1fr; }
.settings-block .field-wide { grid-column: auto; }

.membership-pass {
  position: relative;
  width: min(650px, 100%);
  min-height: 270px;
  box-sizing: border-box;
  padding: 30px 34px;
  color: #92928c;
  background: #ecece7;
  border: 1px solid #d0d0ca;
  border-radius: 24px;
  box-shadow: 0 24px 68px rgba(86, 86, 74, .07), inset 0 1px rgba(255,255,255,.9);
}

.membership-pass .field-label {
  display: block;
  margin-top: 65px;
  color: #aaa9a3;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.plan-name {
  margin-top: 3px;
  color: #7f7f79;
  font-size: 48px;
  letter-spacing: -.04em;
}

.membership-pass-actions { margin-top: 34px; }

.data-folio .danger-zone { opacity: .72; }

/* read-only shared collection */
.shared-owner {
  margin: 10px 0 0;
  font-size: 19px;
}

.shared-projects {
  width: min(760px, 100%);
  margin-top: 45px;
  border-top: 2px solid var(--tcl-grey);
}

.shared-project {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 21px 0;
  border-bottom: 1px solid var(--tcl-grey);
}

.shared-project a {
  color: var(--tcl-grey);
  font-size: 28px;
  text-decoration: none;
}

.shared-project a:hover { text-decoration: underline; }
.shared-project span { font-size: 16px; }

/* dialogs stay white, borderless and typographic like the rest of the site */
.feature-dialog {
  width: min(500px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid var(--tcl-grey);
  border-radius: 0;
  color: var(--tcl-grey);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .08);
}

.feature-dialog::backdrop {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
}

.dialog-inner { padding: 32px; }

.dialog-inner h2 {
  margin: 0 0 8px;
  color: var(--tcl-grey);
  font-size: 32px;
  font-weight: 400;
}

.dialog-inner > p {
  margin: 0 0 25px;
  font-size: 17px;
  line-height: 1.4;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 25px;
}

.intro-profile-preview {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 22px;
}

.intro-profile-preview .profile-avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.intro-profile-preview strong,
.intro-profile-preview span { display: block; }
.intro-profile-preview span { margin-top: 3px; font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 50;
  padding: 9px 14px;
  color: var(--tcl-grey-dark);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--tcl-grey);
  font-size: 16px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast[data-open="true"] {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 800px) {
  .app-nav {
    top: auto;
    right: 18px;
    bottom: 18px;
    left: 18px;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--tcl-grey);
  }

  .app-nav a { font-size: 15px; }
  .nav-profile-name { display: none; }

  .feature-page:not(.page-library):not(.page-account) {
    padding: 58px 25px 96px;
  }

  .feature-page:not(.page-library):not(.page-account) h1 {
    font-size: 52px;
    letter-spacing: -1px;
  }

  .feature-header {
    display: grid;
    margin-bottom: 42px;
  }

  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }

  .page.overlay-panel {
    width: min(92vw, 560px);
    padding: 70px 28px 100px;
  }
}

@media (max-width: 760px) {
  .page-join { padding: 0; }

  .auth-progress {
    position: absolute;
    top: 78px;
    left: 18px;
    width: calc(100% - 36px);
    overflow-x: auto;
  }

  .auth-progress ol {
    display: flex;
    gap: 12px;
  }

  .auth-progress li {
    flex: none;
    margin: 0;
  }

  .auth-progress-step { width: auto; }
  .auth-progress-step > span:last-child { display: none; }

  .auth-mode-switch {
    position: absolute;
    top: 18px;
    left: 18px;
  }

  .auth-title {
    position: absolute;
    top: 22px;
    font-size: 23px;
  }

  .auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 41px;
    height: 41px;
    font-size: 34px;
  }

  .auth-stage {
    padding: 138px 22px 52px;
    place-items: start center;
    align-content: center;
  }

  .auth-step > label {
    margin-bottom: 38px;
    font-size: clamp(38px, 12vw, 58px);
  }

  .auth-step > textarea { min-height: 130px; }

  .auth-step > input,
  .auth-step > textarea,
  .auth-password-line > input {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .auth-title { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
  .auth-step-actions--split { align-items: flex-end; }

  .shared-project {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .shared-project > :last-child { grid-column: 2; }
  .dialog-inner { padding: 25px; }
}

@media (max-width: 920px) {
  .profile-workspace { grid-template-columns: 1fr; }

  .intro-pass {
    position: relative;
    top: auto;
    width: min(540px, 100%);
  }

  .folio-actions { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-library,
  .page-account { padding: 0; }

  .feature-mode-switch,
  .feature-close {
    position: absolute;
    top: 18px;
  }

  .feature-mode-switch { left: 18px; }
  .feature-close { right: 18px; }

  .feature-fixed-title {
    position: absolute;
    top: 22px;
    max-width: 42vw;
    overflow: hidden;
    font-size: 23px;
    text-overflow: ellipsis;
  }

  .archive-rail {
    position: absolute;
    top: 78px;
    left: 18px;
    width: calc(100% - 36px);
    display: flex;
    align-items: center;
    gap: 13px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .archive-rail-label { display: none; }

  .collection-list,
  .settings-index {
    display: flex;
    gap: 12px;
  }

  .collection-row-wrap { flex: none; }

  .collection-row,
  .settings-index > button:not(.archive-rail-action) {
    width: auto;
    display: grid;
    grid-template-columns: 18px;
    padding: 0;
  }

  .collection-name,
  .collection-count,
  .settings-index > button:not(.archive-rail-action) > span:last-child { display: none; }

  .collection-row[aria-current="true"],
  .settings-index > button[aria-selected="true"] { transform: none; color: var(--archive-graphite); }

  .collection-row[aria-current="true"],
  .settings-index > button[aria-selected="true"] {
    grid-template-columns: 18px auto;
  }

  .collection-row[aria-current="true"] .collection-name,
  .settings-index > button[aria-selected="true"] > span:last-child {
    display: inline;
    white-space: nowrap;
  }

  .archive-rail-action {
    flex: none;
    width: auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .archive-stage { padding: 138px 22px 110px; }
  .archive-stage-header { margin-bottom: 38px; }

  .library-heading-row {
    display: grid;
    gap: 17px;
  }

  .library-heading-row h1,
  .settings-panel-heading h1 {
    font-size: clamp(43px, 12vw, 58px);
  }

  .collection-actions { padding: 0; }
  .search-wrap { margin-top: 29px; }
  .library-search { font-size: 20px; }

  .archive-entry-main {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 26px 0 21px;
  }

  .project-index { padding-top: 19px; }
  .archive-entry h3 { font-size: clamp(34px, 10vw, 43px); }
  .project-abstract { font-size: 15px; }

  .archive-remove {
    grid-column: 2;
    justify-self: start;
    margin: 2px 0 0;
  }

  .archive-entry-tools {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 0 0 23px 40px;
  }

  .collection-picker { justify-content: flex-start; }

  .library-note .note-area {
    min-height: 112px;
    resize: none;
  }

  .empty-dossier {
    min-height: 300px;
    padding: 42px 30px;
  }

  .empty-dossier h2 { font-size: 36px; }

  .settings-panel-heading { margin-bottom: 38px; }
  .profile-workspace { gap: 38px; }
  .identity-form-grid { grid-template-columns: 1fr; }
  .identity-form-grid .field-wide { grid-column: auto; }

  .intro-pass {
    min-height: 470px;
    padding: 25px 24px;
    border-radius: 20px;
  }

  .intro-pass-name { font-size: 40px; }
  .folio-actions { gap: 38px; }
  .settings-block { grid-template-columns: 23px minmax(0, 1fr); }
  .membership-pass { padding: 27px 25px; border-radius: 20px; }
  .plan-name { font-size: 42px; }
}
