.memory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.panel p,
.source-card p {
  overflow-wrap: anywhere;
}
.memory-search {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.memory-search .field {
  flex: 1;
  min-width: 0;
}
.memory-search > button {
  margin-bottom: 1.5rem;
}
.memory-result {
  border-left: 4px solid var(--blue);
}
.memory-result blockquote {
  margin: 1.25rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 1.1rem;
  max-width: 85ch;
}
.memory-count {
  font-weight: 600;
}
.document-upload {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.document-upload input[type='file'] {
  max-width: 100%;
  min-height: 4rem;
  padding: 1rem;
  border: 1px dashed var(--blue);
  background: var(--tint);
}
.document-list article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.document-list article > div {
  flex: 1;
  min-width: min(100%, 15rem);
  overflow-wrap: anywhere;
}
.document-list h3 {
  margin: 0;
}
.document-format {
  color: var(--blue);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.8rem 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.document-proof {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  margin-bottom: 1.5rem;
}
.document-proof code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.document-proof p {
  margin: 0.5rem 0 0;
}
.document-review {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.document-review > * {
  min-width: 0;
}
.document-passage {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 0.25rem;
}
.document-passage pre {
  max-height: 24rem;
  overflow: auto;
  line-height: 1.7;
  background: var(--canvas);
  padding: 1rem;
  border-radius: 0.4rem;
}
.document-decision {
  position: sticky;
  top: 1rem;
}
@media (max-width: 1100px) {
  .document-upload,
  .document-review,
  .document-proof {
    grid-template-columns: minmax(0, 1fr);
  }
  .document-decision {
    position: static;
  }
}
@media (max-width: 600px) {
  .memory-search {
    display: block;
  }
  .memory-search > button {
    margin-bottom: 1rem;
  }
  .document-proof {
    padding: 1rem;
  }
}
@font-face {
  font-family: Outfit;
  src: url('/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url('/outfit-550.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url('/outfit-650.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}
:root {
  font-family: Outfit, system-ui, sans-serif;
  color: #1e1d1b;
  background: #f6f5f1;
  --surface: #fff;
  --canvas: #f6f5f1;
  --text: #1e1d1b;
  --muted: #65655d;
  --field-border: #76786f;
  --line: #d8d9d0;
  --blue: #1040c0;
  --tint: #edf2ff;
  --success: #256046;
  --success-bg: #edf6ef;
  --warning: #775500;
  --warning-bg: #fff5d8;
  --error: #b01818;
  --error-bg: #fff0ef;
  color-scheme: light;
  font-size: 16px;
}
:root[data-theme='dark'] {
  color: #f3f1eb;
  background: #171a1b;
  --surface: #202425;
  --canvas: #171a1b;
  --text: #f3f1eb;
  --muted: #b3bab9;
  --field-border: #8f9b96;
  --line: #454d4d;
  --blue: #abc4ff;
  --tint: #26334e;
  --success: #9fdfb8;
  --success-bg: #24392e;
  --warning: #f1d076;
  --warning-bg: #3c3420;
  --error: #ffb4ab;
  --error-bg: #442a29;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
a {
  color: var(--blue);
  text-underline-offset: 0.22em;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
}
button:hover,
.button:hover {
  background: var(--tint);
  border-color: var(--blue);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: #1040c0;
  color: #fff;
  border-color: #1040c0;
}
.primary:hover {
  background: #153591;
  color: #fff;
}
.danger {
  color: var(--error);
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.small {
  min-height: 36px;
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
}
.text-button {
  border: 0;
  padding: 0;
  min-height: 32px;
  display: inline;
  text-align: left;
  color: var(--blue);
  background: transparent;
}
.icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  min-width: 0;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  left: 1rem;
  background: var(--surface);
  padding: 1rem;
  z-index: 30;
}
.skip:focus {
  top: 1rem;
  transform: translateY(0);
}
.layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  min-width: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
}
.brand {
  display: block;
  margin: 0 0.25rem 1.8rem;
}
.brand img {
  width: 198px;
  max-width: 100%;
  height: auto;
}
.org-switch {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem;
  margin: 0 0 1.5rem;
}
.org-switch p {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.org-switch select {
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  min-height: 32px;
  font-weight: 500;
}
.nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0.65rem 0.5rem;
}
nav {
  display: grid;
  gap: 3px;
}
nav a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
  padding: 0.65rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}
.sidebar nav a > span:not(.icon) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sidebar nav .icon,
.sidebar nav .nav-count {
  flex-shrink: 0;
}
.sidebar nav a:has(.nav-count) {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  row-gap: 0.15rem;
}
.sidebar nav .nav-count {
  grid-column: 2;
  justify-self: start;
  margin-left: 0;
}
.sidebar-footer {
  overflow-wrap: anywhere;
}
nav a:hover {
  background: var(--canvas);
  color: var(--text);
}
nav a[aria-current='page'] {
  background: var(--tint);
  color: var(--blue);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 0.75rem;
  background: var(--surface);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 1.5rem 0.65rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.sidebar-footer strong {
  color: var(--text);
  display: block;
  font-weight: 500;
}
.workspace {
  min-width: 0;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 3vw, 3rem);
}
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.preferences {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.environment {
  font-size: 0.8rem;
  background: var(--warning-bg);
  color: var(--warning);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem clamp(1rem, 3vw, 3rem);
  line-height: 1.5;
}
.environment strong {
  font-weight: 500;
}
main {
  container-type: inline-size;
  padding: 2rem clamp(1rem, 3vw, 3rem) 4rem;
  max-width: 1920px;
  margin: auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 1.7rem;
}
.page-heading > div:first-child {
  min-width: 0;
  max-width: min(100%, 70ch);
  overflow-wrap: anywhere;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
h1 {
  font-size: clamp(1.75rem, 2.1vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 0.5rem;
}
p,
li {
  line-height: 1.6;
}
p {
  margin: 0.5rem 0 1rem;
}
.lead {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
  max-width: 72ch;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 0.85rem;
  margin: 0.5rem 0;
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.actions + .hint {
  margin-top: 1.5rem;
}
.panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  min-width: 0;
}
.panel > :last-child {
  margin-bottom: 0;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-header h2 {
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
  gap: 1.25rem;
  align-items: start;
}
.split > *,
.grid > * {
  min-width: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(var(--stats-columns, 3), minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stats-pair {
  --stats-columns: 2;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.2rem 1.4rem;
  border-radius: 8px;
}
.stat strong {
  font-size: 2rem;
  font-weight: 500;
  display: block;
  font-variant-numeric: tabular-nums;
  margin: 0.5rem 0;
}
.stat p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.stat a {
  font-size: 0.85rem;
}
.task {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.task:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.task:first-of-type {
  padding-top: 0;
}
.task-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--tint);
  color: var(--blue);
  border-radius: 50%;
  font-size: 0.85rem;
}
.task p {
  margin: 0.3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.task .button {
  margin-top: 0.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  line-height: 1.3;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--canvas);
  color: var(--muted);
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge:before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge.success {
  background: var(--success-bg);
  color: var(--success);
}
.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge.blue {
  background: var(--tint);
  color: var(--blue);
}
.badge.error {
  background: var(--error-bg);
  color: var(--error);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 1rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  text-align: left;
  line-height: 1.4;
  font-size: 0.9rem;
}
caption {
  text-align: left;
  padding: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--canvas);
  padding: 0.8rem 1rem;
  white-space: nowrap;
}
td {
  padding: 1rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  max-width: 40ch;
  overflow-wrap: anywhere;
}
td:first-child {
  min-width: 190px;
}
td .sub {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}
tbody tr:hover {
  background: var(--canvas);
}
.toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.toolbar .field {
  margin: 0;
  flex: 1;
  min-width: 160px;
}
.toolbar input {
  min-width: 0;
}
.toolbar select {
  max-width: 320px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
.pagination p {
  font-size: 0.85rem;
  margin: 0;
}
.field {
  margin: 0 0 1.1rem;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}
label .muted {
  font-weight: 400;
  font-size: 0.8rem;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: var(--surface);
  line-height: 1.45;
}
input[type='checkbox'] {
  min-height: 20px;
  width: 20px;
  height: 20px;
  display: inline-block;
  accent-color: #1040c0;
  margin: 0;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
input:disabled,
select:disabled {
  opacity: 0.65;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem;
  margin: 0 0 1.2rem;
  min-width: 0;
}
legend {
  padding: 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
  font-weight: 400;
  padding: 0.45rem 0;
}
.check input {
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.notice {
  overflow-wrap: anywhere;
  border-left: 3px solid var(--blue);
  background: var(--tint);
  padding: 1rem 1.2rem;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.notice.warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning);
}
.notice.error {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}
.notice ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.empty p {
  max-width: 52ch;
  margin: 0.75rem auto 1.5rem;
  color: var(--muted);
}
.empty-mark {
  font-size: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--blue);
}
.tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0.1rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  color: var(--muted);
}
.tabs button[aria-current='page'] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.document-preview {
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--surface);
  border-radius: 5px;
  max-width: 82ch;
}
.document-preview h3 {
  font-size: 1.25rem;
}
.document-preview pre {
  font: inherit;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 1rem 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.65;
}
.detail-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem 1rem;
  font-size: 0.88rem;
  margin: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}
.source-list {
  padding-left: 1.2rem;
}
.source-list li {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child {
  border-bottom: 0;
}
.timeline p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
}
.timeline small {
  color: var(--muted);
}
.source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.source-card:last-child {
  border: 0;
}
.source-card h3 {
  margin: 0;
}
.source-card p {
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
}
details {
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}
details[open] > summary {
  margin-bottom: 0.75rem;
}
progress {
  width: 100%;
  height: 9px;
  accent-color: #1040c0;
  margin: 0.8rem 0;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
}
.login-story {
  background: #1040c0;
  color: #fff;
  padding: clamp(2rem, 6vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story img {
  width: 280px;
  max-width: 100%;
  margin-bottom: 4rem;
}
.login-story h1 {
  font-size: clamp(2rem, 3.5vw, 4rem);
  max-width: 12ch;
}
.login-story p {
  max-width: 45ch;
  color: #dce5ff;
}
.login-form {
  width: 100%;
  margin: 0;
  max-width: none;
  container-type: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--surface);
}
.login-form > div {
  width: 100%;
  max-width: 420px;
}
.login-form h1 {
  font-size: 2rem;
}
.login-form .preferences {
  justify-content: flex-end;
  margin-bottom: 3rem;
}
.login-form .primary {
  width: 100%;
  margin: 0.5rem 0 1rem;
}
.login-form details {
  font-size: 0.85rem;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--text);
  color: var(--surface);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  max-width: min(90vw, 650px);
  box-shadow: 0 4px 24px #0002;
  font-size: 0.9rem;
  line-height: 1.45;
}
#toast:empty {
  display: none;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
  max-width: min(90vw, 520px);
}
dialog::backdrop {
  background: #15191f80;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.mobile-menu,
.mobile-close {
  display: none;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.activity-list span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.activity-list time {
  color: var(--muted);
  font-size: 0.85rem;
}
.save-state {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: auto;
}
.row-end {
  justify-content: space-between;
}
.nowrap {
  white-space: nowrap;
}
.wrap {
  overflow-wrap: anywhere;
}
.changed {
  border-left: 3px solid var(--warning);
  padding-left: 1rem;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.help-grid .panel {
  margin: 0;
}
.hero-note {
  padding: 1.6rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.hero-note h2 {
  color: var(--blue);
  font-size: 1.35rem;
}
.step-list {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.step-list li {
  font-size: 0.8rem;
  color: var(--muted);
}
.step-list .current {
  color: var(--blue);
  font-weight: 600;
}
@media (min-width: 2200px) {
  main {
    padding-top: 3rem;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
  .layout {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .split {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-direction: column;
  }
  .stats {
    gap: 0.6rem;
  }
  .stat {
    padding: 1rem;
  }
  .sidebar {
    padding: 1.3rem 0.75rem;
  }
  .layout {
    grid-template-columns: clamp(212px, 34vw, 14.5rem) minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .workspace:has([data-audit-status]) main {
    padding-inline: min(1rem, 4vw);
  }
  [data-audit-status],
  .activity-panel {
    padding: min(1.5rem, 5vw);
  }
  [data-audit-status] .notice {
    padding: min(1rem, 4vw);
  }
  .activity-list li {
    flex-direction: column;
  }
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
  }
  .layout.menu-open .sidebar {
    display: flex;
  }
  .sidebar nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  }
  .sidebar .brand {
    max-width: 210px;
  }
  .sidebar-footer {
    padding-top: 1rem;
  }
  .mobile-menu,
  .mobile-close {
    display: inline-flex;
  }
  .mobile-close {
    align-self: flex-start;
    margin-bottom: 1rem;
  }
  .topbar {
    min-height: 64px;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  .breadcrumb {
    display: none;
  }
  .preferences {
    gap: 0.2rem;
  }
  .preferences button {
    padding: 0.5rem;
    min-height: 40px;
    font-size: 0.85rem;
  }
  main {
    padding: 1.5rem 1rem 5rem;
  }
  .environment {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
  }
  .grid,
  .help-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1rem;
    align-items: center;
  }
  .stat strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.6rem;
    margin: 0;
  }
  .stat a {
    grid-column: 1;
  }
  .page-heading {
    gap: 1rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  .panel {
    padding: 1.1rem;
  }
  .panel-header {
    flex-wrap: wrap;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    padding: 2rem;
  }
  .login-story img {
    width: 220px;
    margin-bottom: 2rem;
  }
  .login-story h1 {
    font-size: 2rem;
    max-width: 20ch;
  }
  .login-story p {
    margin: 0;
  }
  .login-form {
    padding: 2rem 1.2rem;
  }
  .login-form .preferences {
    margin-bottom: 1.5rem;
  }
  .tabs {
    gap: 1rem;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-list {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .detail-list dd {
    margin-bottom: 0.65rem;
  }
  .source-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar .field {
    min-width: 100%;
  }
  td,
  th {
    padding: 0.8rem;
  }
  .source-card .actions {
    width: 100%;
  }
  .save-state {
    margin-left: 0;
  }
  .page-heading .actions {
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      border-color 0.12s;
  }
}
@container (max-width: 58rem) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width: 36rem) {
  .grid,
  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading {
    flex-direction: column;
  }
}
@media print {
  .sidebar,
  .topbar,
  .environment,
  .actions,
  #toast,
  .tabs,
  .eyebrow,
  .skip {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  .split {
    display: block;
  }
  :root {
    color: #111;
    background: white;
  }
  .document-preview {
    border: 0;
    padding: 0;
  }
}
.review-editor {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  padding: 1rem;
  min-width: 0;
}
.review-editor fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  margin: 1rem 0 0;
  min-width: 0;
}
.review-editor legend {
  font-weight: 600;
  padding: 0 0.4rem;
}
.review-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.review-steps li {
  border-left: 3px solid var(--line);
  padding: 1rem;
  margin-bottom: 0.7rem;
}
.review-steps li.next {
  border-color: var(--blue);
  background: var(--tint);
}
.review-steps li.completed {
  border-color: var(--success);
}
.review-steps h3,
.review-steps p {
  margin: 0;
}
.review-steps p {
  margin-top: 0.5rem;
}
.comparison-field {
  border-top: 1px solid var(--line);
  margin-top: 1.6rem;
  padding-top: 1.1rem;
}
.comparison-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.comparison-columns > div {
  border: 1px solid var(--line);
  padding: 1rem;
  min-width: 0;
}
.comparison-columns h4 {
  margin: 0 0 0.8rem;
  color: var(--muted);
}
.comparison-columns pre {
  overflow-wrap: anywhere;
}
.comparison-columns del,
.source-diff del,
.diff-legend del {
  color: var(--error);
  background: var(--error-bg);
  text-decoration: line-through;
}
.comparison-columns ins,
.source-diff ins,
.diff-legend ins {
  color: var(--success);
  background: var(--success-bg);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.diff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
#comparison-form button {
  margin-top: 0.8rem;
}
#comparison-form + .notice {
  margin-top: 1.5rem;
}

.delivery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: start;
}
.delivery-layout > * {
  min-width: 0;
}
.delivery-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  margin: 24px 0;
}
.delivery-formats legend {
  margin-bottom: 12px;
  font-weight: 650;
}
.delivery-format {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.delivery-format:has(input:checked) {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.delivery-format input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  margin-top: 4px;
}
.delivery-format > span {
  min-width: 0;
}
.delivery-format strong,
.delivery-format small {
  display: block;
}
.delivery-format small {
  font-weight: 400;
  margin-top: 8px;
  line-height: 1.5;
}
.delivery-contents {
  padding-left: 22px;
}
.delivery-contents li {
  padding: 0 0 18px 6px;
}
.delivery-contents p {
  margin: 6px 0 0;
}
.delivery-hash {
  display: block;
  max-width: 220px;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
@container (max-width: 62.5rem) {
  .delivery-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width: 36.25rem) {
  .delivery-formats {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width: 42rem) {
  .comparison-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
.password-control {
  position: relative;
}
.password-control input {
  padding-right: 100px;
}
.password-control > button {
  position: absolute;
  bottom: 0;
  right: 4px;
  min-height: 46px;
  padding: 8px 12px;
}
.account-ticket {
  overflow-wrap: anywhere;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}
.empty,
.panel h2,
.panel h3,
.panel label {
  overflow-wrap: anywhere;
}
.empty .button {
  max-width: 100%;
}
.fact-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.fact-intro {
  margin: 0 0 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--blue);
  background: var(--tint);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.fact-step {
  font-weight: 600;
}
.fact-intro > span {
  margin-right: 0.5rem;
}
.fact-value {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--blue);
  overflow-wrap: anywhere;
  margin: 1rem 0;
}
.fact-quote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--blue);
  background: var(--tint);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fact-chip,
.badge.established {
  color: var(--blue);
  background: var(--tint);
}
.fact-chip {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  box-decoration-break: clone;
  overflow-wrap: anywhere;
}
.unlinked-number {
  color: var(--warning);
  background: var(--warning-bg);
}
.fact-decision {
  color: #fff;
  background: #d02020;
  border-color: #d02020;
}
.fact-decision:hover {
  color: #fff;
  background: #a71919;
  border-color: #a71919;
}
.fact-proof,
.fact-insert,
.impact-card {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fact-card h2,
.impact-card h3 {
  overflow-wrap: anywhere;
}
.impact-card {
  overflow-wrap: anywhere;
  padding: 0.6rem;
}
.impact-card .badge {
  white-space: normal;
}
.impact-card .button {
  max-width: 100%;
}
.claim-summary {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--blue);
  background: var(--tint);
  overflow-wrap: anywhere;
}
.proof-gate {
  overflow-wrap: anywhere;
}
.proof-heading,
.proof-overview {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.proof-heading h2 {
  margin-block: 0.35rem 0;
}
.proof-heading .eyebrow {
  margin: 0;
}
.proof-gate .badge {
  white-space: normal;
  max-width: 100%;
}
.proof-overview {
  margin-block: 1.5rem;
  align-items: center;
}
.proof-overview > div {
  flex: 1 1 15rem;
  min-width: 0;
}
.proof-overview > p {
  flex: 2 1 24rem;
  margin: 0;
}
.proof-overview strong {
  font-size: 1.6rem;
}
.proof-overview progress {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: 0.6rem;
  accent-color: var(--blue);
  background: var(--tint);
  border: 0;
  border-radius: 1rem;
}
.proof-overview progress::-webkit-progress-bar {
  background: var(--tint);
  border-radius: 1rem;
}
.proof-overview progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 1rem;
}
.proof-overview progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 1rem;
}
.proof-outputs {
  padding: 0;
  margin: 0;
  list-style: none;
}
.proof-outputs > li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
}
.proof-outputs > li > div {
  min-width: 0;
}
.proof-outputs h3 {
  margin: 0;
  font-size: 1.05rem;
}
.proof-outputs p {
  margin: 0.5rem 0 0;
}
.proof-annotation,
.proof-fact-suggestions {
  margin-top: 1rem;
}
.proof-annotation mark {
  background: var(--tint);
  color: var(--text);
  border-bottom: 2px solid var(--blue);
  border-radius: 0.15rem;
}
.proof-output-action .button {
  max-width: 100%;
  white-space: normal;
}
.proof-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.proof-footer button + p {
  margin-top: 1.5rem;
}
.claim-dossier-return {
  margin-block: 0 1.5rem;
}
@media (max-width: 75rem) {
  .proof-outputs > li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .proof-output-action {
    grid-column: 1 / -1;
  }
}
@media (max-width: 44rem) {
  .proof-gate + .split .notice {
    padding-inline: min(1.2rem, 3vw);
  }
  .proof-gate + .split .notice ul {
    padding-inline-start: min(1.2rem, 4vw);
  }
  .proof-outputs > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-footer button,
  .claim-dossier-return .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
.claim-summary strong {
  font-size: 1.5rem;
}
.claim-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 1.5rem;
}
.claim-index,
.claim-detail {
  min-width: 0;
}
.claim-list {
  list-style: none;
  padding: 0.25rem;
  margin: 1rem 0 0;
  max-height: 40rem;
  overflow-y: auto;
}
.claim-list li + li {
  margin-top: 0.65rem;
}
.claim-list button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.6rem;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 1rem;
}
.claim-list button[aria-current='true'] {
  border: 2px solid var(--blue);
  background: var(--tint);
}
.claim-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.claim-excerpt {
  font-weight: 500;
}
.claim-quote {
  font-size: 1.2rem;
  padding: 1.25rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--blue);
  background: var(--tint);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.claim-record {
  margin-bottom: 1.5rem;
}
.claim-evidence {
  margin: 1.5rem 0;
  min-width: 0;
}
#claim-draft {
  max-height: 32rem;
  overflow: auto;
}
#claim-draft mark {
  color: var(--text);
  background: var(--warning-bg);
  outline: 1px solid var(--warning);
}
@media (max-width: 1100px) {
  .claim-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .claim-list {
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.25rem;
  }
}
@media (max-width: 1100px) {
  .fact-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Campaign preparation: shared information, editorial comparison and clear ownership. */
.planning-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.planning-plan {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  min-width: 0;
}
.planning-plan.selected {
  border: 2px solid var(--blue);
  background: var(--tint);
}
.planning-plan ol {
  padding-inline-start: 1.2rem;
}
.planning-plan li {
  margin-block: 0.5rem;
}
.planning-amount {
  font-size: 1.4rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.planning-milestone {
  margin-block: 1rem;
}
.planning-source {
  align-items: flex-start;
}
.planning-source span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.planning-details {
  display: grid;
  gap: 1.25rem;
}
.planning-details dt {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.planning-details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.planning-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.planning-questions li {
  margin-block: 0.75rem;
}
.planning-timeline {
  list-style: none;
  padding: 0;
}
.planning-timeline li {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.planning-timeline p {
  margin-block: 0.35rem;
}
.planning-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.65;
  max-height: 36rem;
  overflow: auto;
  padding: 1rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
#planning-save fieldset {
  min-width: 0;
}
#planning-save legend {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 75rem) {
  .planning-plans {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 32rem) {
  .planning-timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
.planning-plan input[type='radio'] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 0.25rem;
  accent-color: var(--blue);
}
.planning-plan .check strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
#planning-save label {
  overflow-wrap: anywhere;
}
@media (max-width: 48rem) {
  #planning-plan {
    padding: 0;
    border: 0;
  }
  #planning-save fieldset {
    padding: 0.65rem;
  }
  #planning-save #planning-plan {
    padding: 0;
  }
  .planning-plan {
    padding: 0.75rem;
  }
}

.portfolio-filter {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin-block: 1.5rem;
}
.portfolio-filter .field {
  flex: 1;
  min-width: min(100%, 16rem);
  margin: 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  min-width: 0;
}
.portfolio-card h2 {
  overflow-wrap: anywhere;
}
.portfolio-card h3 {
  margin-top: 1.5rem;
}
.portfolio-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}
.portfolio-counts div {
  min-width: 0;
}
.portfolio-counts dt {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.portfolio-counts dd {
  margin: 0.25rem 0 0;
  font-size: 1.75rem;
  font-weight: 650;
}
.portfolio-work {
  background: var(--tint);
  padding: 1rem;
  border-left: 3px solid var(--blue);
}
.portfolio-work h3 {
  margin-top: 0;
}
.portfolio-notices {
  list-style: none;
  padding: 0;
}
.portfolio-notices li {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}
.portfolio-notices p {
  margin-block: 0.5rem;
}
@media (max-width: 80rem) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 30rem) {
  .portfolio-counts {
    grid-template-columns: 1fr;
  }
}
.portfolio-card .badge {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.portfolio-grid {
  align-items: start;
}
.portfolio-card:only-child {
  grid-column: 1 / -1;
}
.portfolio-card:only-child .portfolio-counts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.portfolio-card:only-child .portfolio-notices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 64rem) {
  .portfolio-card:only-child .portfolio-notices {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 48rem) {
  .portfolio-card:only-child .portfolio-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 30rem) {
  .portfolio-card:only-child .portfolio-counts {
    grid-template-columns: 1fr;
  }
}

/* Campaign coordination, shared content and editorial guidance. */
.block-card,
.block-reference,
.task-card,
.task-column {
  min-width: 0;
  overflow-wrap: anywhere;
}
.block-card .badge,
.task-card .badge {
  white-space: normal;
}
.block-excerpt,
.task-detail-text {
  white-space: pre-wrap;
}
.block-insert {
  padding: 1rem;
  margin-block: 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0.5rem;
}
.block-reference {
  margin-block: 0.75rem;
}
.block-inline {
  text-decoration-style: dotted;
  background: var(--tint);
  color: var(--text);
  border-bottom: 2px solid var(--blue);
}
.task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}
.task-column {
  background: var(--tint);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}
.task-column > h2 {
  font-size: 1.05rem;
  margin-block: 0 1rem;
}
.task-card {
  margin-bottom: 1rem;
}
.task-card h3 {
  margin-top: 0.75rem;
}
.task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.task-list .task-card {
  margin: 0;
}
.task-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 1rem;
}
.task-filter .form-grid,
#task-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.task-checklist-edit {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.task-checklist-read {
  list-style: none;
  padding: 0;
}
.task-checklist-read li {
  margin-block: 0.5rem;
}
.task-checklist-read button {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  text-align: start;
  width: 100%;
}
.task-checklist-read button[aria-pressed='true'] {
  background: var(--tint);
}
@media (max-width: 100rem) {
  .task-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 55rem) {
  .task-board,
  .task-list,
  .task-filter .form-grid,
  #task-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.editorial-diagnostics .badge {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#task-form .field,
.task-filter .field {
  min-width: 0;
}
#task-form input,
#task-form select {
  min-width: 0;
}
.task-checklist-read button > span {
  min-width: 0;
}
@media (max-width: 40rem) {
  #task-form .task-checklist {
    padding: 0.65rem;
  }
}

#task-form button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.task-checklist-read button {
  overflow-wrap: anywhere;
}

/* Shared reading projection: content wraps at mobile widths and 200% text. */
.reading-sheet {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2.5rem);
  margin: 1.5rem 0;
  max-width: 80ch;
  overflow-wrap: anywhere;
}
.reading-sheet p {
  white-space: pre-wrap;
}
.reading-sheet .reading-body {
  line-height: 1.7;
}
.reading-sheet .reading-note {
  font-size: 0.9rem;
}
.reading-sheet h3 {
  font-size: 1.7rem;
}
.reading-sheet h4 {
  font-size: 1.3rem;
  margin-top: 2rem;
}
.reading-sheet h5 {
  font-size: 1.1rem;
}
.reading-break {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.reading-history {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.reading-history form {
  margin: 1rem 0;
}
#reading-preview {
  grid-column: 1 / -1;
  min-width: 0;
}

.reading-sheet > .brand-logo {
  width: 195px;
  height: auto;
  max-width: 100%;
  margin: 0 0 1.5rem;
}
.reading-history details {
  margin: 1rem 0;
}
/* The handover centre keeps long immutable references readable at text enlargement. */
.delivery-reference {
  overflow-wrap: anywhere;
}
.delivery-artifact-list {
  padding-inline-start: 1.25rem;
}
.delivery-artifact-list li {
  margin-block: 1.5rem;
  min-width: 0;
}
.delivery-center-list {
  min-width: 0;
}
#delivery-storage-meter {
  display: block;
  width: 100%;
  height: 1.5rem;
  margin-block: 0.75rem;
}
#delivery-center-filter {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
.source-revision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  align-items: end;
}
.source-revision-list {
  padding-left: 1.5rem;
}
.source-revision-list li {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.source-diff {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.source-diff ins {
  text-decoration: underline;
  font-weight: 700;
}
.source-diff del {
  text-decoration: line-through;
}
/* Recovery remains part of the working document, with native form choices. */
.split[hidden] {
  display: none;
}
.draft-recovery {
  margin-block: 1.5rem;
}
.draft-recovery h2 {
  margin-top: 0;
}
.draft-recovery-group {
  border-block-start: 1px solid var(--line);
  padding-block: 1rem;
}
.draft-recovery-group > summary {
  overflow-wrap: anywhere;
}
.draft-recovery-group > summary .badge {
  margin-inline-start: 0.75rem;
}
.draft-recovery-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.draft-recovery-version {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}
.draft-recovery-version h3 {
  font-size: 1rem;
  margin-block: 0 0.75rem;
}
.draft-recovery-version pre {
  margin: 0;
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.draft-recovery-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-block: 1rem;
}
.draft-recovery-options .check {
  flex: 1 1 16rem;
  min-width: 0;
}
.draft-recovery-options input[type='radio'] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--blue);
}
.draft-recovery-options span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 950px) {
  .draft-recovery-values {
    grid-template-columns: minmax(0, 1fr);
  }
  .draft-recovery-options {
    padding: 0.75rem 0.5rem;
  }
}
