@charset "UTF-8";
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #272923;
  background: #f9f8f4;
  font-synthesis: none;
  line-height: 1.6;
  --paper: #f9f8f4;
  --surface: #fffefa;
  --ink: #272923;
  --muted: #62665e;
  --gold: #82682f;
  --line: #dbddd2;
  --wa-primary: #2b302a;
  --text-primary: #272923;
  --text-secondary: #43473e;
  --text-muted: #62665e;
  --border-card: #bdc2b3;
  --border-glass-strong: #bdc2b3;
  --bg-surface: #f0f0e8;
  --accent-primary: #71613d;
  --accent-secondary: #71613d;
  --accent-spark: #82682f;
  --shadow-focus-ring: #82682f55;
  --space-xs: 4px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 22px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --text-sm: 12px;
  --text-base: 12px;
  --text-lg: 14px;
  --radius-md: 2px;
  --target-size: 44px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
rynko-app {
  display: block;
  min-height: 100dvh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 17px;
  border: 1px solid #bdc2b3;
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
button:hover,
.button:hover {
  background: #edeee5;
  border-color: #8d9482;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button.primary,
.button.primary {
  background: #2b302a;
  color: #fffdf6;
  border-color: #2b302a;
}
button.primary:hover {
  background: #424a3c;
}
a {
  color: #645129;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid #8b7139;
  outline-offset: 3px;
}
.text-button {
  border: 0;
  padding: 8px;
  background: none;
}
.wide {
  width: 100%;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #bec3b7;
  border-radius: 2px;
  color: var(--ink);
  background: #fffefa;
  font-size: 16px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #515b46;
  flex-shrink: 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 7px;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.8;
}
h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}
h1,
h2 {
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
h4 {
  font-size: 14px;
}
h5 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
p {
  font-size: 16px;
  line-height: 1.75;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: 0.22em;
  line-height: 1;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.accent {
  color: var(--gold);
}
.fine {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.mono,
code {
  font-family: "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.break-text {
  overflow-wrap: anywhere;
}
.preserve-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #555e4c;
  line-height: 1.4;
}
.tag.open {
  background: #e9ecdf;
  border-color: #d1d9c3;
}
.error,
.notice {
  padding: 14px 16px;
  font-size: 13px;
  border-left: 3px solid;
  overflow-wrap: anywhere;
}
.error {
  background: #fbede7;
  border-color: #9c4b33;
  color: #6e3525;
}
.notice {
  background: #ecf0e6;
  border-color: #64714b;
  color: #3c492f;
}
.app-message {
  margin: 18px 0;
}
.sr-only {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 10px;
  background: var(--surface);
  z-index: 20;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.startup {
  margin: 0 auto;
  padding-block: 12vh;
  text-align: center;
}

.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f4f3ec;
}
.login-header {
  padding: 42px 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 9vw;
  align-items: center;
  width: min(1200px, 89vw);
  margin: auto;
  padding: 90px 0 110px;
}
.login-intro .eyebrow {
  display: block;
  margin-bottom: 30px;
}
.login-intro h1 {
  font-size: clamp(38px, 4.1vw, 64px);
  line-height: 1.14;
  margin-bottom: 28px;
}
.login-intro p {
  max-width: 375px;
  font-size: 16px;
  color: var(--muted);
}
.login-rule {
  height: 1px;
  width: 62px;
  background: #968455;
  margin: 44px 0 28px;
}
.login-card {
  background: #fffefa;
  padding: 40px 38px;
  border: 1px solid #dedfd4;
}
.login-card h2 {
  font-size: 35px;
  margin: 18px 0 12px;
}
.login-card > p {
  color: var(--muted);
  font-size: 16px;
}
.login-card form {
  margin-top: 29px;
}
.login-card form .primary {
  margin: 27px 0 19px;
  min-height: 48px;
}
.login-card .fine {
  margin-bottom: 0;
}
.login-footer {
  padding: 25px 5.5vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.topbar {
  padding: 0 38px;
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand-lockup,
.account-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-lockup {
  flex-wrap: wrap;
  max-width: 100%;
}
.header-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
}
.header-monogram {
  display: block;
  flex: none;
  width: 96px;
  height: 64px;
  max-width: none;
  object-fit: contain;
}
.header-monogram[hidden] {
  display: none;
}
.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}
.brand-lockup .eyebrow {
  color: var(--muted);
  letter-spacing: 0.12em;
}
.account-actions {
  gap: 17px;
  flex-wrap: wrap;
}
.agreements-link,
.branding-link {
  white-space: nowrap;
}
.account-actions .text-button {
  font-weight: 400;
}
.mode-pill {
  color: #5a654e;
  background: #eff1e8;
  font-size: 12px;
  border-radius: 20px;
  padding: 6px 12px;
  white-space: nowrap;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: calc(100dvh - 150px);
}
.sidebar {
  padding: 33px 23px;
  background: #f1f2eb;
  border-right: 1px solid var(--line);
}
.sidebar-title {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  align-items: center;
}
.sidebar-title > span:last-child {
  font-size: 12px;
}
.sidebar h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 11px 0 24px;
}
.catalogue-items {
  margin-left: -9px;
  margin-right: -9px;
}
.catalogue-item {
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px 10px;
  border: 1px solid transparent;
  gap: 10px;
}
.catalogue-item.active {
  border-color: #ccd2bf;
  background: #e5e9dc;
}
.catalogue-number {
  color: #576245;
  font-size: 12px;
  padding-top: 3px;
}
.catalogue-item strong {
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}
.catalogue-item small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  margin-top: 7px;
  white-space: normal;
}
.catalogue-item > span:last-child {
  margin-left: auto;
  color: #687554;
}
.filters {
  border-top: 1px solid #d4d8c9;
  margin-top: 28px;
  padding-top: 16px;
}
summary {
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.filters > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filters > summary::-webkit-details-marker {
  display: none;
}
.filter-group {
  margin: 21px 0 23px;
}
.filter-group legend {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filter-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  padding-right: 7px;
}
.filters .fine {
  margin: 18px 0 0;
  font-size: 12px;
}
.sidebar-note {
  margin-top: 36px;
  border-top: 1px solid #d4d8c9;
  padding-top: 24px;
}
.sidebar-note p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 12px;
  line-height: 1.9;
}
.main-content {
  padding: 32px 42px 0;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.private-label {
  margin-left: auto;
  color: #65764e;
  font-size: 12px;
}
.dossier-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  margin-top: 33px;
}
.dossier-heading h1 {
  font-size: clamp(32px, 3.3vw, 46px);
  margin: 13px 0 11px;
}
.small-dot {
  padding: 0 7px;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.export-button {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
  margin-top: 25px;
}
.metadata-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 23px 0 26px;
  font-size: 12px;
  color: var(--muted);
}
.metadata-line strong {
  font-weight: 500;
  color: var(--ink);
  margin-left: 5px;
}
.classification-note {
  margin-bottom: 20px;
}
.evidence-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr 1.35fr;
  background: #eeeee6;
  border: 1px solid #dedfd3;
}
.evidence-strip > div {
  padding: 15px 17px;
  border-right: 1px solid #dedfd3;
}
.evidence-strip > div:last-child {
  border-right: 0;
}
.evidence-strip span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.09em;
  display: block;
  margin-bottom: 7px;
}
.evidence-strip strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  line-height: 1.6;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
  margin-bottom: 26px;
}

.discussion-section {
  max-width: 100%;
  min-width: 0;
}
.discussion-heading,
.discussion-thread-heading,
.discussion-message-meta,
.discussion-message-actions,
.discussion-pagination,
.discussion-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.discussion-heading {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.discussion-heading > div {
  flex: 1 1 260px;
}
.discussion-composer,
.discussion-thread,
.discussion-recovery {
  border: 1px solid var(--line);
  padding: clamp(16px, 3vw, 24px);
  margin-block: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.discussion-composer fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.discussion-composer legend {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}
.discussion-composer label,
.discussion-filters label {
  display: block;
  font-size: 14px;
  margin-top: 12px;
}
.discussion-composer textarea,
.discussion-composer select,
.discussion-filters select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  font-size: 16px;
  margin-block: 8px 12px;
}
.discussion-composer textarea {
  resize: vertical;
}
.discussion-filters > label {
  flex: 1 1 180px;
}
.discussion-message {
  padding-block: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
  scroll-margin-block: 20px;
}
.discussion-message-meta {
  font-size: 14px;
  color: var(--muted);
}
.discussion-message-meta strong {
  color: var(--ink);
}
.discussion-version {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.discussion-version a {
  display: inline-block;
  margin-inline-start: 8px;
  padding-block: 10px;
}
.discussion-parent {
  display: inline-block;
  font-size: 14px;
  padding-block: 12px;
}
.discussion-replies {
  margin-top: 16px;
  padding-inline-start: min(16px, 3vw);
  border-inline-start: 2px solid var(--line);
}
.discussion-replies .discussion-message + .discussion-message {
  border-top: 1px solid var(--line);
}
.discussion-section button {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.discussion-section .button-row {
  flex-wrap: wrap;
}
.discussion-pagination {
  justify-content: space-between;
  margin-block: 16px;
}
.discussion-edit {
  background: var(--paper);
}
.section-nav button {
  padding: 12px;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  gap: 7px;
  background: none;
}
.section-nav button.selected {
  color: var(--ink);
  border-bottom-color: #777449;
}
.count {
  color: var(--muted);
  background: #eeeee5;
  font-size: 12px;
  padding: 0 5px;
  border-radius: 2px;
}
.review-dot {
  color: #546742;
}
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 29px;
}
.gallery-primary {
  min-width: 0;
}
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 44px;
  padding: 0 14px;
  background: #eaece3;
  border: 1px solid #dfe2d5;
  border-bottom: 0;
}
.gallery-toolbar > span:nth-child(2) {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}
.gallery-toolbar .text-button {
  flex-shrink: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 12px;
  font-weight: 400;
}
.image-stage {
  min-height: 360px;
  height: min(54vw, 580px);
  max-height: 650px;
  background: #e7e8df;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.reference-image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  inset: 0;
}
.image-loading {
  font-size: 12px;
  color: var(--muted);
}
.image-failure {
  padding: 30px;
  max-width: 400px;
  text-align: center;
}
.image-failure p {
  font-size: 16px;
}
.gallery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dfe2d5;
  background: #eeeee6;
}
.gallery-bottom button {
  border: 0;
  min-width: 49px;
  border-radius: 0;
  font-size: 18px;
  font-weight: 400;
}
.gallery-bottom > span {
  font-size: 12px;
  color: var(--muted);
}
.reference-index {
  display: grid;
  font-size: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr));
  gap: 4px;
  margin-top: 10px;
}
.reference-index button {
  min-width: 44px;
  padding: 8px;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-color: #d9decf;
  min-height: 55px;
  font-size: 12px;
  font-weight: 500;
}
.reference-index button.selected {
  border-color: #76835e;
  background: #e6ebdc;
}
.reference-index small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.image-choice-groups {
  margin-top: 16px;
}
.image-choice-current {
  margin: 0 0 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.image-choice-group {
  border-top: 1px solid var(--line);
}
.image-choice-group > summary {
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.image-choice-group > .reference-index {
  margin: 0 0 16px;
}
.image-group-current {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  color: var(--ink);
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 400;
}
.reference-notes {
  padding-top: 10px;
}
.reference-notes h2 {
  font-size: 29px;
  margin: 16px 0;
}
.reference-notes > p {
  font-size: 16px;
  color: var(--muted);
  margin: 18px 0 21px;
}
.reference-details {
  border-top: 1px solid var(--line);
  margin: 0 0 22px;
  padding-top: 5px;
}
.reference-details dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 14px;
}
.reference-details dd {
  font-size: 12px;
  margin: 4px 0 0;
}
.hash-details {
  margin-top: 16px;
}
.hash-details summary {
  font-size: 12px;
  min-height: 44px;
  padding-top: 7px;
  color: var(--muted);
}
.hash-details code {
  display: block;
  font-size: 12px;
}
.source-note {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 17px;
}
.source-note p {
  margin: 9px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.gallery-footnote {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 24px 0;
}
.gallery-footnote p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
}
.gallery-footnote wa-button {
  --text-base: 12px;
  --space-lg: 12px;
}
.dossier-footer {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}
.dossier-footer > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.dossier-footer .fine {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dossier-footer p {
  font-size: 12px;
  text-align: right;
  color: var(--muted);
  margin: 0;
  flex-shrink: 0;
}
.dossier-footer strong {
  color: #6c623f;
  font-weight: 500;
}
.feedback-locked > span {
  font-size: 28px;
  color: #899270;
  line-height: 1;
}
.submitted-scores > span {
  font-size: 12px;
  color: var(--muted);
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 20px 38px;
  font-size: 12px;
  color: var(--muted);
}
.empty-state {
  padding: 80px 20px;
  max-width: 700px;
}
.empty-state h1 {
  font-size: 39px;
  margin-top: 20px;
}
.empty-state h2 {
  font-size: 32px;
  margin-top: 20px;
}
.empty-state p {
  color: var(--muted);
}
.empty-state.compact {
  padding: 30px 0;
  max-width: 650px;
}

.document-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 29px;
  padding-top: 5px;
}
.document-list {
  display: flex;
  flex-direction: column;
  align-self: start;
}
.document-list > .eyebrow {
  padding: 0 10px 15px;
  color: var(--muted);
}
.document-list button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  font-size: 12px;
  font-weight: 400;
  border: 0;
  border-radius: 0;
  padding: 11px 10px;
  gap: 12px;
}
.document-list button span {
  font-size: 12px;
  color: var(--muted);
}
.document-list button.selected {
  background: #e9ecdf;
  color: #3d4930;
}
.document-pane {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 25px;
}
.document-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.document-heading > div {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.document-heading h2 {
  font-size: 28px;
  margin: 12px 0 0;
}
.document-heading .button {
  flex-shrink: 0;
  font-size: 12px;
  white-space: nowrap;
}
.standalone-document {
  max-width: 1040px;
  min-width: 0;
  margin-inline: auto;
  padding: 24px clamp(16px, 4vw, 48px) 64px;
  overflow-wrap: anywhere;
}
.standalone-document-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.markdown {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 16px;
}
.markdown h1 {
  font-size: 29px;
  margin-bottom: 25px;
}
.markdown h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 32px 0 16px;
  letter-spacing: -0.03em;
}
.markdown h3 {
  margin: 26px 0 12px;
  font-size: 16px;
}
.markdown p,
.markdown li {
  font-size: 16px;
}
.markdown ul,
.markdown ol {
  padding-left: 20px;
}
.markdown li {
  margin: 5px 0;
  line-height: 1.8;
}
.markdown table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 22px 0;
}
.markdown th,
.markdown td {
  padding: 12px 10px;
  text-align: left;
  border: 1px solid var(--line);
  vertical-align: top;
  min-width: 130px;
}
.markdown th {
  background: #eeeee6;
}
.markdown blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: #f1f1e9;
  border-left: 2px solid #aaa77e;
}
.markdown blockquote p:last-child {
  margin-bottom: 0;
}
.markdown pre {
  background: #f0f0e8;
  overflow-x: auto;
  padding: 15px;
  white-space: pre;
}
.markdown img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.markdown hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.markdown .unavailable-reference {
  color: #80672e;
  font-style: italic;
}
.attachments {
  margin: 32px 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.attachments h2 {
  font-size: 30px;
  margin-bottom: 16px;
}
.attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.attachment-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.attachment-details {
  flex: 1 1 260px;
  min-width: 0;
}
.attachment-list h3 {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.attachment-list p {
  margin-bottom: 4px;
}
.attachment-list .button {
  flex-shrink: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.review-intro {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  margin: 33px 0 24px;
}
.review-intro > div {
  max-width: 570px;
}
.review-intro h2 {
  font-size: 34px;
  margin: 12px 0 18px;
}
.review-intro p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
}
.round-selector {
  width: 285px;
  max-width: 35%;
  flex-shrink: 0;
  margin-top: 0;
  font-size: 12px;
}
.round-selector select {
  margin-top: 10px;
  font-size: 12px;
}
.round-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 25px;
  font-size: 12px;
}
.round-status code {
  max-width: 100%;
  font-size: 12px;
}
.reviewed {
  color: #4e653c;
  margin-left: auto;
}
.review-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
}
.panel {
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 15px;
}
.panel-heading h3,
.panel-heading h4 {
  margin-bottom: 0;
}
.panel-heading .fine {
  font-size: 12px;
  text-align: right;
}
.scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.score-field {
  margin-top: 8px;
}
.score-field select {
  margin-top: 8px;
  font-size: 12px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-left: 7px;
}
.field-help {
  font-size: 12px;
  margin: -2px 0 9px;
  color: var(--muted);
}
.review-form textarea {
  margin-bottom: 23px;
  font-size: 16px;
}
.review-form select {
  font-size: 12px;
}
.review-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 25px 0 17px;
}
.review-form > .fine {
  margin-bottom: 0;
  font-size: 12px;
}
.round-aside {
  padding-top: 6px;
}
.round-aside h3 {
  font-size: 14px;
}
.participants {
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}
.participants li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.participants li > span:last-child {
  font-size: 12px;
  color: #657452;
}
.round-aside > .fine {
  font-size: 12px;
}
.owner-controls {
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 22px;
}
.owner-controls form button {
  margin-top: 20px;
}
.owner-controls textarea,
.owner-controls select {
  font-size: 16px;
}
.owner-controls > p {
  max-width: 480px;
}
.reviewer-options {
  margin: 16px 0 23px;
}
.reviewer-options legend {
  font-size: 12px;
}
.reviewer-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  min-height: 44px;
  min-width: 44px;
  margin: 3px 0;
}
.owner-controls > .wide {
  max-width: 360px;
}
.feedback-locked {
  display: flex;
  gap: 18px;
  padding: 25px;
  background: #eeeee6;
  border: 1px solid #e0e2d5;
  margin: 24px 0;
}
.feedback-locked h3 {
  font-size: 13px;
  margin-bottom: 9px;
}
.feedback-locked p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 36px 0 17px;
}
.section-heading h3 {
  margin: 0;
}
.submitted-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 25px 0;
}
button.primary span {
  margin-left: auto;
}
.workspace-footer span span {
  padding: 0 13px;
  color: #969c8b;
}
.submitted-scores strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-top: 7px;
  font-weight: 500;
}
.submitted-review .preserve-text {
  font-size: 16px;
}
.outcome {
  padding: 22px 18px;
  background: #e9ecdf;
  margin-top: 26px;
}
.outcome h3 {
  margin-top: 10px;
  font-size: 24px;
  font-family: Georgia, serif;
  font-weight: 400;
}
.outcome p {
  font-size: 16px;
}
.outcome .fine {
  font-size: 12px;
  margin-bottom: 0;
}

.account-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 90px;
  border-bottom: 1px solid var(--line);
  background: #eeeee6;
}
.account-panel h2 {
  font-size: 32px;
  margin: 15px 0;
}
.account-panel p {
  color: var(--muted);
  max-width: 420px;
  font-size: 16px;
}
.account-panel form {
  max-width: 480px;
}
.account-panel form button {
  margin-top: 10px;
}
.close-account {
  position: absolute;
  top: 15px;
  right: 25px;
}
dialog {
  color: var(--ink);
  border: 1px solid #c7ccbc;
  border-radius: 3px;
  background: var(--paper);
  padding: 30px;
  max-height: 94dvh;
}
dialog::backdrop {
  background: #20251fba;
}
.confirmation-dialog {
  width: min(560px, calc(100vw - 30px));
}
.confirmation-dialog h2 {
  font-size: 33px;
  margin: 18px 0;
}
.confirmation-dialog > p {
  font-size: 16px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.confirmation-dialog .dialog-actions {
  flex-wrap: wrap;
}
.image-dialog {
  width: min(1300px, calc(100vw - 30px));
  padding: 22px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 26px;
  margin: 8px 0 16px;
}
.enlarged-stage {
  height: 70dvh;
  position: relative;
  display: grid;
  place-items: center;
  background: #e5e7dc;
}
.enlarged-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.image-dialog .dialog-actions {
  justify-content: space-between;
  margin-top: 13px;
}
.image-dialog .dialog-actions > span {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Task-focused dossier navigation; secondary source details remain available. */
[role="tabpanel"][hidden] {
  display: none;
}
.maker-notice {
  padding-block: 12px;
}
.maker-guidance > summary,
.design-details > summary,
.catalogue-disclosure > summary {
  padding-block: 10px;
  font-weight: 600;
}
.maker-guidance > p {
  margin-block: 12px;
  max-width: 85ch;
}
.design-state {
  border-block: 1px solid var(--line);
  padding-block: 12px 0;
}
.design-state-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.design-state-summary p {
  margin: 0;
  font-size: 14px;
}
.design-details[open] {
  padding-bottom: 16px;
}
.section-nav {
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-nav button.selected {
  background: #eeeee6;
}
.catalogue-disclosure > summary {
  font-size: 14px;
}
.catalogue-count {
  display: block;
  padding-left: 16px;
}
.catalogue-chevron {
  display: none;
}
.document-layout > .document-select {
  display: none;
}
.document-group > summary {
  overflow-wrap: anywhere;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid var(--line);
}
.measurement-heading h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.measurement-heading p {
  max-width: 70ch;
}
.measurement-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.measurement-section > .document-select {
  margin-bottom: 20px;
}
.reference-provenance {
  margin-block: 16px;
}

@media (min-width: 1700px) {
  .workspace-grid {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .gallery-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}
@media (max-width: 1180px) {
  .topbar {
    padding: 0 24px;
  }
  .workspace-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 17px;
  }
  .main-content {
    padding: 28px 28px 0;
  }
  .gallery-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 22px;
  }
  .reference-notes h2 {
    font-size: 25px;
  }
  .dossier-heading {
    align-items: flex-start;
  }
  .dossier-heading h1 {
    font-size: 35px;
  }
  .evidence-strip > div {
    padding: 12px 10px;
  }
  .gallery-footnote {
    grid-template-columns: 1fr auto;
  }
  .gallery-footnote > .eyebrow {
    grid-column: 1 / -1;
  }
  .review-columns {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 20px;
  }
  .document-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }
  .panel {
    padding: 20px;
  }
}
@media (max-width: 950px) {
  .brand-lockup .eyebrow,
  .brand-divider {
    display: none;
  }
  .workspace-grid {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .catalogue-item {
    flex-wrap: wrap;
    gap: 5px 10px;
  }
  .catalogue-item > span:nth-child(2) {
    width: 100%;
    order: 3;
  }
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .reference-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .reference-notes > .eyebrow,
  .reference-notes h2,
  .reference-notes > .tag,
  .reference-notes > p {
    grid-column: 1 / -1;
  }
  .reference-notes > .tag {
    justify-self: start;
  }
  .reference-details {
    grid-row: span 3;
  }
  .reference-notes > .wide {
    min-height: 44px;
    height: auto;
  }
  .reference-notes .source-note {
    margin-top: 10px;
  }
  .dossier-heading {
    display: block;
  }
  .export-button {
    margin-top: 20px;
  }
  .evidence-strip {
    grid-template-columns: 1fr 1fr;
  }
  .evidence-strip > div {
    border-bottom: 1px solid #dedfd3;
  }
  .evidence-strip > div:nth-child(2) {
    border-right: 0;
  }
  .evidence-strip > div:nth-child(n + 3) {
    border-bottom: 0;
  }
  .section-nav {
    gap: 17px;
  }
  .section-nav button {
    font-size: 12px;
  }
  .review-columns {
    grid-template-columns: 1fr;
  }
  .review-intro {
    display: block;
  }
  .round-selector {
    width: 100%;
    max-width: none;
    margin-top: 20px;
  }
  .document-layout {
    display: block;
  }
  .document-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .dossier-footer {
    display: block;
  }
  .dossier-footer p {
    text-align: left;
    margin-top: 15px;
  }
}
@media (max-width: 700px) {
  .login-header {
    padding: 28px 24px;
  }
  .login-header .wordmark {
    font-size: 25px;
  }
  .login-header .eyebrow {
    font-size: 12px;
  }
  .login-main {
    display: block;
    padding: 43px 0;
    width: auto;
    margin: 0 24px;
  }
  .login-intro h1 {
    font-size: 37px;
  }
  .login-intro .eyebrow {
    margin-bottom: 22px;
    font-size: 12px;
  }
  .login-intro p {
    font-size: 16px;
  }
  .login-rule,
  .login-intro > .eyebrow:last-child {
    display: none;
  }
  .login-card {
    padding: 27px 24px;
    margin-top: 30px;
  }
  .login-card h2 {
    font-size: 31px;
  }
  .login-footer {
    display: block;
    padding: 23px 24px;
  }
  .login-footer > span {
    display: block;
    margin: 4px 0;
  }
  .topbar {
    min-height: 105px;
    padding: 22px 20px 13px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .topbar .wordmark {
    font-size: 27px;
  }
  .account-actions {
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
  }
  .account-actions .mode-pill {
    margin-right: auto;
    font-size: 12px;
  }
  .account-actions .text-button {
    font-size: 12px;
    min-height: 44px;
    padding: 6px 2px;
  }
  .workspace-grid {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 20px 10px;
  }
  .sidebar-title .eyebrow {
    font-size: 12px;
  }
  .sidebar h2 {
    display: none;
  }
  .catalogue-items {
    margin: 12px 0 0;
  }
  .catalogue-item {
    flex-wrap: nowrap;
    padding: 11px 13px;
  }
  .catalogue-item > span:nth-child(2) {
    order: initial;
    width: auto;
  }
  .catalogue-item small {
    margin-top: 4px;
  }
  .catalogue-number {
    padding-right: 7px;
  }
  .filters {
    margin-top: 14px;
    padding-top: 2px;
  }
  .filters[open] {
    padding-bottom: 12px;
  }
  .filter-group {
    margin: 10px 0;
  }
  .filter-group legend {
    margin-bottom: 3px;
  }
  .filter-options label {
    min-height: 44px;
    margin-right: 10px;
  }
  .filters .fine {
    max-width: 500px;
    margin-top: 10px;
  }
  .sidebar-note {
    display: none;
  }
  .main-content {
    padding: 25px 20px 0;
  }
  .dossier-heading {
    margin-top: 26px;
  }
  .dossier-heading h1 {
    font-size: 36px;
    margin-top: 16px;
  }
  .dossier-heading .eyebrow {
    font-size: 12px;
  }
  .subtitle {
    font-size: 12px;
  }
  .export-button {
    font-size: 12px;
    min-height: 44px;
  }
  .metadata-line {
    gap: 8px 18px;
    margin: 22px 0;
  }
  .evidence-strip > div {
    padding: 13px 11px;
  }
  .evidence-strip strong {
    font-size: 12px;
  }
  .section-nav {
    gap: 0;
    justify-content: space-between;
    margin-top: 16px;
    margin-bottom: 23px;
  }
  .section-nav button {
    font-size: 12px;
    gap: 4px;
    padding: 15px 0;
  }
  .section-nav .count {
    font-size: 12px;
    padding: 0 3px;
  }
  .image-stage {
    height: 450px;
    min-height: 280px;
    max-height: 70dvh;
  }
  .reference-index {
    gap: 4px;
  }
  .reference-index button {
    font-size: 12px;
  }
  .reference-index small {
    font-size: 12px;
  }
  .reference-notes {
    display: block;
    padding-top: 10px;
  }
  .reference-notes h2 {
    font-size: 31px;
  }
  .reference-details {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 13px 15px;
    padding-top: 18px;
  }
  .reference-details dt,
  .reference-details dd {
    margin: 0;
  }
  .reference-notes .source-note {
    margin-top: 18px;
  }
  .gallery-footnote {
    display: block;
    padding-top: 24px;
  }
  .gallery-footnote p {
    margin: 13px 0 19px;
  }
  .gallery-footnote wa-button {
    --text-base: 12px;
  }
  .workspace-footer {
    display: block;
    padding: 20px;
  }
  .workspace-footer > span {
    display: block;
    margin: 6px 0;
  }
  .document-list {
    max-height: 220px;
  }
  .document-list button {
    min-height: 44px;
  }
  .document-pane {
    padding: 18px;
  }
  .document-heading {
    gap: 12px;
  }
  .document-heading h2 {
    font-size: 25px;
  }
  .document-heading .button {
    padding: 8px 10px;
  }
  .markdown th,
  .markdown td {
    min-width: 120px;
  }
  .review-intro {
    margin-top: 28px;
  }
  .review-intro h2 {
    font-size: 32px;
  }
  .reviewed {
    margin-left: 0;
  }
  .panel {
    padding: 19px 16px;
  }
  .panel-heading {
    display: block;
  }
  .panel-heading .fine {
    display: block;
    text-align: left;
    margin-top: 9px;
  }
  .scores {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .score-field {
    margin-top: 6px;
  }
  .review-actions button {
    padding: 10px 13px;
    font-size: 12px;
  }
  .submitted-scores {
    grid-template-columns: 1fr 1fr;
  }
  .section-heading {
    display: block;
  }
  .section-heading .fine {
    display: block;
    margin-top: 8px;
  }
  .account-panel {
    display: block;
    padding: 42px 22px 30px;
  }
  .account-panel form {
    border-top: 1px solid var(--line);
    margin-top: 25px;
    padding-top: 25px;
  }
  .close-account {
    right: 18px;
    top: 6px;
  }
  .image-dialog {
    padding: 14px;
    width: calc(100vw - 18px);
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  .dialog-heading button {
    padding: 10px;
    font-size: 12px;
  }
  .enlarged-stage {
    height: 64dvh;
  }
  .image-dialog .dialog-actions {
    flex-wrap: wrap;
  }
  .image-dialog .dialog-actions > span {
    width: 100%;
    order: 3;
  }
  .confirmation-dialog {
    padding: 25px;
  }
  .confirmation-dialog .dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .confirmation-dialog h2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  button,
  .button {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}
@media print {
  .topbar,
  .sidebar,
  .section-nav,
  button,
  .button,
  .workspace-footer {
    display: none;
  }
  .workspace-grid {
    display: block;
  }
  .main-content {
    padding: 0;
  }
}
/* Deployment status stays visible outside the signed-in component. */
.trial-notice {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
}

.maker-notice {
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  background: #f3ead3;
}
.maker-notice-content {
  max-width: 1280px;
  margin-inline: auto;
}
.maker-notice h2 {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.4;
}
.maker-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.maker-notice :where(p + p) {
  margin-top: 10px;
}

.branding-page {
  max-width: 1200px;
  margin-inline: auto;
  padding: 24px clamp(16px, 4vw, 48px) 64px;
  overflow-wrap: anywhere;
}
.branding-page h1 {
  font-size: clamp(36px, 5vw, 56px);
}
.branding-page-header,
.branding-nav,
.branding-asset-heading,
.branding-asset-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.branding-page-header {
  margin-bottom: 48px;
}
.branding-page-header > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.branding-nav {
  margin-block: 24px 40px;
}
.branding-asset {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.branding-asset-heading,
.branding-asset-meta {
  justify-content: space-between;
}
.branding-asset h2 {
  margin: 8px 0;
}
.branding-description {
  max-width: 70ch;
  line-height: 1.6;
}
.branding-image-link {
  display: block;
  margin-block: 24px 16px;
}
.branding-image-link img {
  display: block;
  width: 100%;
  height: auto;
}
.branding-asset-meta,
.branding-provenance {
  color: var(--muted);
  font-size: 14px;
}
.branding-provenance {
  margin-top: 16px;
}
.branding-provenance summary {
  min-height: 44px;
  padding-block: 12px;
  cursor: pointer;
}
.branding-guidance {
  padding: clamp(20px, 4vw, 32px);
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.agreements-page {
  max-width: 1040px;
  padding: 24px clamp(16px, 4vw, 48px) 64px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.agreement-page-header,
.agreement-nav,
.agreement-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.agreements-page h1 {
  font-size: clamp(36px, 5vw, 56px);
}
.agreement-draft-notice {
  padding: 20px;
  margin-block: 24px;
  background: #f3ead3;
  font-size: 16px;
}
.agreement-draft-notice p {
  margin: 8px 0 0;
}
.agreement-document {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.agreement-document .markdown h2 {
  font-size: 32px;
}
.agreement-tools > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.agreement-provenance {
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
}
@media print {
  .agreements-page {
    max-width: none;
    padding: 0;
  }
  .agreement-page-header,
  .agreement-nav,
  .agreement-tools a,
  .agreements-page > .fine,
  .skip-link {
    display: none;
  }
  .agreement-document {
    break-before: page;
  }
}

.agreement-confirmation {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.agreement-confirmation fieldset {
  margin: 1.5rem 0;
  padding: 1rem;
  min-width: 0;
}
.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.75rem 0;
  cursor: pointer;
}
.agreement-check input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}
.agreement-gate .agreement-provenance {
  overflow-wrap: anywhere;
}
@media print {
  .agreement-gate .topbar,
  .agreement-confirmation {
    display: none;
  }
}

@media (max-width: 700px) {
  .sidebar {
    padding: 8px 20px;
  }
  .catalogue-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 12px 16px;
    border: 1px solid #2b302a;
    border-radius: 2px;
    color: #fffdf6;
    background: #2b302a;
    font-size: 16px;
    line-height: 1.4;
    list-style: none;
  }
  .catalogue-disclosure > summary::-webkit-details-marker {
    display: none;
  }
  .catalogue-disclosure > summary:hover {
    background: #424a3c;
    border-color: #424a3c;
  }
  .catalogue-disclosure > summary:active {
    background: #20251f;
  }
  .catalogue-disclosure[open] > summary {
    margin-bottom: 16px;
  }
  .catalogue-count {
    padding: 4px 0 0;
    color: inherit;
    font-weight: 400;
  }
  .catalogue-chevron {
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-right: 3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
  }
  .catalogue-disclosure[open] > summary .catalogue-chevron {
    transform: translateY(3px) rotate(225deg);
  }
  .main-content {
    padding-top: 16px;
  }
  .dossier-heading {
    margin-top: 16px;
  }
  .dossier-heading h1 {
    font-size: 30px;
    margin-top: 12px;
  }
  .section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .section-nav button {
    flex: 1 0 auto;
    min-width: calc((100% - 8px) / 3);
  }
  .section-nav button {
    padding: 12px 8px;
    font-size: 12px;
  }
  .document-layout {
    display: block;
  }
  .document-layout > .document-select {
    display: block;
    margin: 0 0 20px;
  }
  .document-list {
    display: none;
  }
}

@media (forced-colors: active) {
  .section-nav button.selected {
    color: CanvasText;
    background: Canvas;
    border-bottom-color: CanvasText;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
  }
}
