:root {
  --ink: #17231d;
  --muted: #647069;
  --paper: #f3f1ea;
  --panel: #fffdf8;
  --line: #d8d8cf;
  --forest: #153f35;
  --forest-2: #245e50;
  --mint: #dcece3;
  --amber: #dca447;
  --rose: #b9584f;
  --shadow: 0 18px 55px rgb(23 35 29 / 8%);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 83% 8%, rgb(220 236 227 / 65%), transparent 28rem), var(--paper);
}

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

button,
a,
input,
textarea,
select {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(220 164 71 / 55%);
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: -4rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--forest);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(34rem, 100%);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--forest-2);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

.login-card h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.98;
}

.lede {
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.72rem 0.82rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

.button {
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  cursor: pointer;
  background: white;
  color: var(--ink);
  font-weight: 720;
}

.button:hover {
  border-color: var(--forest-2);
}

.button.primary {
  color: white;
  border-color: var(--forest);
  background: var(--forest);
}

.button.danger {
  color: var(--rose);
  border-color: rgb(185 88 79 / 45%);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.archivist-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-block: 1rem;
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}
.ai-layout .card {
  grid-column: 1 / -1;
}
.ai-layout > * {
  grid-column: 1 / -1;
}
.ai-layout .card,
.ai-layout form,
.ai-layout select {
  min-width: 0;
  max-width: 100%;
}
.ai-layout p + p {
  margin-top: 0.6rem;
}
.ai-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.ai-checkbox {
  display: flex;
  align-items: start;
  gap: 0.65rem;
  margin-block: 1rem;
}
.ai-checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  margin-top: 0.15rem;
}
.ai-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}
.ai-tabs .button {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
}
.ai-tabs .button:hover {
  color: var(--ink);
  background: var(--mint);
}
.ai-tabs .button.primary:hover {
  color: white;
  background: var(--forest);
}
.ai-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-block: 1rem;
  line-height: 1.65;
}
.ai-layout details {
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
}
.ai-layout details summary {
  cursor: pointer;
  font-weight: 650;
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}
.ai-layout small {
  display: block;
  line-height: 1.45;
}
.ai-layout .field {
  margin-block: 1rem;
}

.archivist-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  max-width: 100%;
  text-align: left;
}

.archivist-switch-track {
  position: relative;
  flex: 0 0 2.75rem;
  height: 1.5rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: var(--line);
}

.archivist-switch-track::after {
  content: '';
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgb(23 35 29 / 25%);
}

.archivist-switch[aria-checked='true'] .archivist-switch-track {
  background: var(--forest);
  border-color: var(--forest);
}

.archivist-switch[aria-checked='true'] .archivist-switch-track::after {
  left: auto;
  right: 0.1875rem;
}

.archivist-quote {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--forest-2);
  border-radius: 0.75rem;
}

.archivist-quote .toolbar {
  margin-top: 0.75rem;
}

.form-error {
  min-height: 1.2rem;
  color: var(--rose);
  font-size: 0.85rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1.4rem;
  color: white;
  background: var(--forest);
}

.sidebar h1 {
  max-width: 12rem;
  margin-bottom: 0.7rem;
  font-size: 1.7rem;
  line-height: 1.05;
}

.sidebar .eyebrow,
.sidebar small {
  color: #b9d1c8;
}

.stage-mark {
  color: #b9d1c8;
  font-size: 0.75rem;
}

nav {
  display: grid;
  gap: 0.35rem;
}

nav button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.75rem;
  color: #d9e6e1;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0.65rem;
}

nav button span {
  color: #83aa9d;
  font-size: 0.7rem;
}

nav button:hover,
nav button[aria-current='page'] {
  color: white;
  background: rgb(255 255 255 / 10%);
}

.session-card {
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.text-button {
  justify-self: start;
  padding: 0.4rem 0;
  color: #b9d1c8;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.workspace {
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 3.5rem);
}

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

.topbar h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.guardrail,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  color: var(--forest);
  background: var(--mint);
  border-radius: 99rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--forest-2);
}

.notice {
  margin: -0.5rem 0 1.25rem;
  padding: 0.8rem 1rem;
  color: var(--forest);
  background: var(--mint);
  border-left: 4px solid var(--forest-2);
  border-radius: 0.35rem;
}

.notice.error {
  color: #732b26;
  background: #f7dfdc;
  border-left-color: var(--rose);
}

.view {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  grid-column: span 12;
  padding: 1.2rem;
  background: rgb(255 253 248 / 88%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgb(23 35 29 / 4%);
}

.card.half {
  grid-column: span 6;
}

.card.third {
  grid-column: span 4;
}

.card.two-thirds {
  grid-column: span 8;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.7rem;
}

.toolbar > label,
.toolbar > input {
  flex: 1 1 14rem;
}

.item-list,
.feed,
.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-card,
.feed-item {
  width: 100%;
  padding: 0.9rem;
  overflow-wrap: anywhere;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

button.item-card {
  cursor: pointer;
}

.item-card:hover,
.item-card.active {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 2px rgb(36 94 80 / 9%);
}

.item-card strong,
.feed-item strong {
  display: block;
  margin-bottom: 0.3rem;
}

.meta,
.muted {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.local-link {
  display: inline-block;
  margin: 0.35rem 0.75rem 0.15rem 0;
  color: var(--forest-2);
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.tag {
  padding: 0.25rem 0.45rem;
  color: var(--muted);
  background: #eeeee8;
  border-radius: 0.35rem;
  font-size: 0.68rem;
}

.tag.accepted,
.tag.released,
.tag.acknowledged {
  color: var(--forest);
  background: var(--mint);
}

.tag.candidate,
.tag.review,
.tag.prepared,
.tag.sent {
  color: #745018;
  background: #f6e9cf;
}

.tag.rejected,
.tag.unsafe,
.tag.failed {
  color: #732b26;
  background: #f7dfdc;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: 1rem;
}

.detail {
  white-space: pre-wrap;
  line-height: 1.6;
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
  font-size: 0.86rem;
}

.definition-list dt {
  color: var(--muted);
}

.definition-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(6rem, 1fr));
  gap: 0.65rem;
}

.empty {
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
}

.code {
  padding: 0.8rem;
  overflow: auto;
  color: #d8eee6;
  background: #102e27;
  border-radius: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  #nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  #nav button {
    min-width: 0;
    white-space: normal;
  }
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    min-width: 0;
    height: auto;
    gap: 1rem;
    padding: 1rem;
  }

  .sidebar h1,
  .stage-mark {
    display: none;
  }

  nav {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  nav button {
    width: auto;
    min-width: max-content;
  }

  .session-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: 0.7rem;
    padding-top: 0.7rem;
  }

  .session-card small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .workspace {
    padding: 1.2rem;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: grid;
  }

  .guardrail {
    justify-self: start;
  }

  .card.half,
  .card.third,
  .card.two-thirds {
    grid-column: span 12;
  }

  .split,
  .form-grid,
  .metrics,
  .definition-list {
    grid-template-columns: 1fr;
  }

  .definition-list dd {
    margin-bottom: 0.45rem;
  }
}
#password-fields,
#token-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#research-nav {
  margin: 0 0 1.5rem;
  display: block;
  color: #203d35;
}
#research-nav[hidden] {
  display: none;
}
#research-nav .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#research-nav button {
  color: #203d35;
  background: #fff;
  width: auto;
  border: 1px solid #b9c9bf;
}
#research-nav button[aria-current='page'] {
  background: #203d35;
  color: #fff;
}
.research-path {
  font-weight: 600;
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid #d9dfd8;
  padding: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  line-height: 1.5;
}
details[open] > summary {
  margin-bottom: 1rem;
}
.reading {
  max-width: 58rem;
}

.rich-text {
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.rich-text > * + * {
  margin-top: 0.9rem;
}
.rich-text ul,
.rich-text ol,
.trajectory-steps {
  padding-left: 1.7rem;
}
.rich-text li {
  padding-left: 0.25rem;
  margin: 0.55rem 0;
}
.rich-text li::marker,
.trajectory-steps > li::marker {
  color: #31594c;
  font-weight: 700;
}
.rich-text li > ul,
.rich-text li > ol {
  margin-top: 0.35rem;
}
.rich-text strong {
  font-weight: 750;
}
.rich-text a {
  color: #285748;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.rich-text blockquote {
  border-left: 3px solid #9ab3a8;
  padding: 0.4rem 1rem;
  margin-left: 0;
  background: #eef3ef;
}
.rich-text code {
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  background: #eef1ed;
}
.article-section {
  padding-top: 1.6rem;
  margin-top: 1.8rem;
  border-top: 1px solid #dfe5df;
}
.article-section > h3 {
  font-size: 1.32rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.trajectory-steps {
  line-height: 1.7;
}
.trajectory-steps > li {
  padding: 0.8rem 0 1.1rem 0.5rem;
  border-bottom: 1px solid #e1e7e1;
}
.trajectory-steps > li > strong {
  display: block;
  color: #31594c;
  margin-top: 0.5rem;
}
.trajectory-entry h3 {
  margin-top: 1rem;
}
#nav button[hidden] {
  display: none;
}
.menu-settings {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0;
}
.menu-setting-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid #e1e7e1;
  padding-bottom: 0.8rem;
}
.menu-setting-row label {
  flex: 1 1 15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.menu-setting-row input {
  width: auto;
}
.reading p {
  line-height: 1.75;
}
.reading h3 {
  margin-top: 2rem;
}
.toc {
  display: grid;
  gap: 0.6rem;
}
.comparison {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.ai-indicator {
  display: grid;
  gap: 0.4rem;
  margin: 1.2rem 0;
  padding: 0.9rem;
  width: 100%;
  border: 1px solid #a8c4b7;
  border-radius: 0.8rem;
  background: #f4faf6;
  color: #174637;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.5;
}
.ai-indicator[data-state='low'] {
  background: #fff6e2;
  border-color: #b27828;
  color: #725015;
}
.ai-indicator[data-state='stopped'] {
  background: #fff1ee;
  border-color: #bf8176;
  color: #862f21;
}
.ai-action-status {
  padding: 0.8rem 1rem;
  background: #edf4ef;
  border-radius: 0.6rem;
  margin: 1rem 0 0.5rem;
}
.ai-action-status.form-error {
  color: #862f21;
  background: #fff1ee;
}
.ai-result {
  padding: 1rem 0;
  border-top: 1px solid #d8e0d9;
  overflow-wrap: anywhere;
}
.ai-result summary {
  font-weight: 700;
  cursor: pointer;
}
.ai-research select {
  max-width: 100%;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #b27828;
  outline-offset: 3px;
}
@media (max-width: 960px) {
  #research-nav {
    overflow: visible;
  }
  #research-nav .toolbar {
    flex-wrap: wrap;
  }
}

.contribution-count {
  margin-left: auto;
  min-width: 1.5rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  background: #fff;
  color: #163e33;
  font-weight: 700;
  text-align: center;
}

.contribution-workspace {
  align-items: start;
}
.contribution-section {
  border-top: 1px solid var(--line, #d3d5cb);
  padding-top: 1rem;
  margin-top: 1rem;
}
.contribution-messages {
  display: grid;
  gap: 0.5rem;
}

.article-media img,
.article-media video,
.article-media audio {
  max-width: 100%;
  height: auto;
}
.article-media iframe,
.article-media model-viewer {
  width: 100%;
  height: 420px;
  border: 1px solid #bbb;
}
.article-media figcaption {
  white-space: pre-line;
  margin: 0.7rem 0;
}
.article-media__static {
  display: block;
  max-height: 420px;
  object-fit: contain;
}
.article-media-preview {
  margin: 2rem 0;
}
fieldset {
  margin: 1rem 0;
  padding: 1rem;
}
fieldset label {
  display: block;
  margin: 0.5rem 0;
}
fieldset input,
fieldset select,
textarea {
  max-width: 100%;
}
@media (max-width: 600px) {
  .article-media iframe,
  .article-media model-viewer {
    height: 300px;
  }
}
@media print {
  .article-media__live {
    display: none !important;
  }
  .article-media {
    break-inside: avoid;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-media * {
    transition: none !important;
    animation: none !important;
  }
}

.article-media__label {
  display: block;
  max-width: 160px;
  padding: 0.3rem;
  font-size: 0.7rem;
  background: white;
  border: 1px solid #999;
  color: #111;
}

.article-media__label {
  pointer-events: none;
}

.collection-workbench {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.collection-plan-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.collection-plan-node {
  min-width: 0;
  border: 1px solid var(--line);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  overflow-wrap: anywhere;
}
.collection-workbench .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0.75rem 0;
}
.collection-workbench .card > .text-button {
  display: block;
  text-align: left;
  margin: 0.5rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.collection-plan-node > label {
  margin: 0.7rem 0;
}

.collection-history-outline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.collection-plan-node details {
  margin-block: 0.5rem;
}

.collection-workbench .text-button {
  color: #1e493e;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.collection-workbench .text-button:disabled {
  color: #69736e;
  opacity: 0.65;
  cursor: default;
  text-decoration: none;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .article-media--ready > .article-media__static {
    display: none;
  }
}
@media print, (prefers-reduced-motion: reduce) {
  .article-media__live {
    display: none !important;
  }
  .article-media__static {
    display: block !important;
  }
}
.collection-workbench pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.collection-workbench > div,
.collection-workbench .card {
  min-width: 0;
}

.collection-publication-history {
  display: grid;
  gap: 0.6rem;
}
.collection-publication-history > button {
  text-align: left;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.collection-publication p {
  margin-block: 0.5rem;
}

.scoped-contributions {
  margin-top: 1rem;
}
.scoped-contributions > div,
.scoped-review,
.scoped-correspondence {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.scoped-contributions label {
  display: grid;
  gap: 0.4rem;
}
.scoped-contributions textarea,
.scoped-contributions select {
  width: 100%;
  max-width: 100%;
}
.scoped-contributions textarea[readonly] {
  font: inherit;
  line-height: 1.6;
  min-height: 10rem;
}
.scoped-contributions .text-button {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.scoped-contributions small {
  display: block;
  font-weight: normal;
}
.scoped-review,
.scoped-correspondence {
  border-top: 1px solid var(--border, #d7d7d7);
  padding-top: 1rem;
  margin-top: 1rem;
}
.thread-message {
  border-left: 2px solid var(--border, #d7d7d7);
  padding-left: 0.75rem;
}
.thread-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contribution-plan-change,
.contribution-content-outcome {
  margin-block: 1rem;
  border-block: 1px solid var(--border, #d7d7d7);
  padding-block: 1rem;
}
.contribution-plan-change > div,
.contribution-content-outcome > div {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.contribution-plan-change fieldset {
  min-width: 0;
  border: 1px solid var(--border, #d7d7d7);
  padding: 0.75rem;
}
.contribution-plan-change legend {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.scope-path-choice {
  display: flex !important;
  align-items: start;
  gap: 0.5rem;
}
.scope-path-choice input {
  width: auto;
  flex: none;
  margin-top: 0.2rem;
}
.plan-change-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.collection-access {
  min-width: 0;
  overflow-wrap: anywhere;
}
.collection-access select,
.collection-access textarea {
  max-width: 100%;
  min-width: 0;
}
.collection-access .text-button {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.collection-access input[type='checkbox'] {
  width: auto;
  margin-right: 0.5rem;
}

.collection-access .text-button {
  color: var(--forest);
}
.collection-access .access-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  color: var(--ink);
}
.collection-access .access-check input[type='checkbox'] {
  flex: none;
  margin: 0.15rem 0 0;
}

.collection-management,
.collection-management :is(div, form, label, select, textarea, input) {
  min-width: 0;
  max-width: 100%;
}
.collection-management {
  overflow-wrap: anywhere;
}
.collection-management .permission-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}
.collection-management input[type='checkbox'] {
  width: auto;
  flex: none;
  margin-top: 0.2rem;
}
.collection-management :is(p, h4) {
  margin-block: 0.3rem;
}
.collection-management button {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}

.collection-management .text-button {
  color: var(--forest);
}
.collection-management .text-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.collection-access .public-read-address {
  overflow-wrap: anywhere;
  margin-block: 0.65rem;
}
.collection-access .public-read-address small {
  display: block;
}
.collection-access .access-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}
.collection-access .access-controls > label {
  flex: 0 0 100%;
}

.participation-public-candidate {
  overflow-wrap: anywhere;
}
.public-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-block: 0.75rem;
}
.public-candidate-text {
  line-height: 1.6;
  max-width: 72ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.public-candidate-preview {
  margin-block: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
}
.participation-public-candidate fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.participation-public-candidate textarea[rows='2'] {
  min-height: 4.75rem;
}

.public-quote-picker {
  margin-block: 0.75rem;
}
.public-quote-source-text {
  max-height: 18rem;
  overflow: auto;
  user-select: text;
  padding: 0.75rem;
  border: 1px solid var(--line);
}

.task-workbench {
  max-width: 76rem;
  margin-inline: auto;
}
.task-form,
.task-fields {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}
.task-fields {
  border: 0;
  padding: 0;
  margin: 0;
}
.task-fields legend {
  font-weight: 600;
  padding-block: 1rem;
}
.task-section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.task-row {
  border-left: 2px solid var(--line);
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.task-prose,
.task-acceptance {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-acceptance {
  border-left: 3px solid var(--forest);
  padding: 1rem;
  background: var(--mint);
}
.task-state {
  font-weight: 600;
}
.task-fields input:disabled,
.task-fields textarea:disabled,
.task-fields select:disabled {
  opacity: 1;
  color: var(--ink);
}
.task-workbench textarea {
  width: 100%;
  resize: vertical;
  min-height: 5rem;
}
.task-workbench label {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.task-workbench label:has(input[type='checkbox']) {
  display: flex;
  align-items: start;
  gap: 0.7rem;
}
.task-workbench input[type='checkbox'] {
  width: auto;
  margin-top: 0.25rem;
}
@media (max-width: 680px) {
  .task-row {
    padding-inline: 0.65rem;
  }
  .task-workbench .toolbar {
    align-items: stretch;
  }
}
