:root {
  color-scheme: light;
  --page: #f8f5f2;
  --paper: #fffaf7;
  --white: #ffffff;
  --ink: #281d19;
  --ink-soft: #4d403b;
  --muted: #766963;
  --faint: #9a8981;
  --line: #eadbd4;
  --line-dark: #d9c4ba;
  --forest: #cf4228;
  --forest-deep: #aa3321;
  --forest-soft: #ffebe5;
  --apricot: #e56c3d;
  --apricot-soft: #fff0e8;
  --danger: #a93422;
  --font: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --display: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --ease: cubic-bezier(.22, .72, .24, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  color: #6d2419;
  background: #ffe1d5;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(122, 78, 59, .18);
  border: 3px solid transparent;
  border-radius: 20px;
  background-clip: content-box;
}

:focus-visible {
  outline: 3px solid rgba(207, 66, 40, .23);
  outline-offset: 2px;
}

.publish-top {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  gap: clamp(18px, 2.4vw, 38px);
  align-items: center;
  min-height: 96px;
  padding: 14px clamp(20px, 3.2vw, 46px);
  background:
    linear-gradient(90deg, rgba(207, 66, 40, .04), transparent 30%),
    rgba(255, 250, 247, .94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(77, 44, 31, .035);
  backdrop-filter: blur(16px);
}

.publish-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.publish-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.publish-brand b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.035em;
}

.publish-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.publish-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  background: var(--forest);
  border-radius: 4px 13px 4px 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.top-title {
  min-width: 0;
  padding-left: clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--line);
}

.top-title p {
  margin: 0 0 3px;
  color: var(--forest-deep);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
}

.top-title h1 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 4px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.top-nav a {
  padding: 7px 11px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
}

.top-nav a.active {
  color: #fff;
  background: var(--forest);
}

.model-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--forest);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.model-indicator i {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .13);
}

.model-indicator.is-checking i {
  background: #c9a257;
  box-shadow: 0 0 0 3px rgba(201, 162, 87, .13);
  animation: modelPulse 1.4s ease-in-out infinite;
}

.model-indicator.is-offline {
  color: var(--danger);
}

.model-indicator.is-offline i {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(183, 75, 61, .12);
}

.publish-layout {
  display: grid;
  grid-template-columns: clamp(332px, 27vw, 402px) minmax(0, 1fr);
  align-items: start;
}

.brief-column {
  position: sticky;
  top: 96px;
  min-width: 0;
  max-height: calc(100dvh - 96px);
  padding: 28px clamp(24px, 2.5vw, 38px) 44px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 24%),
    var(--paper);
  border-right: 1px solid var(--line);
}

.brief-heading,
.proof-bar,
.recent-heading,
.delivery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.brief-heading {
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brief-heading > div,
.proof-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brief-title-group > div {
  min-width: 0;
}

.brief-title-group {
  flex: 1;
}

.brief-title-group p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.45;
}

.section-index {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brief-heading h2,
.proof-title h2,
.delivery-heading h2,
.recent-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.text-action {
  flex: none;
  padding: 4px 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(207, 66, 40, .28);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.text-action:hover {
  border-bottom-color: var(--forest);
}

.brief-heading-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 13px;
}

.text-action.is-secondary {
  color: var(--muted);
  border-bottom-color: rgba(118, 105, 99, .22);
}

.text-action.is-secondary:hover {
  color: var(--ink);
  border-bottom-color: rgba(40, 29, 25, .4);
}

.text-action:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 19px 0 18px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.stage-list li {
  min-width: 0;
}

.stage-list button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 60px;
  padding: 9px 9px;
  grid-template-columns: 29px minmax(0, 1fr) 13px;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, .54);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s var(--ease);
}

.stage-list button:hover {
  background: #fff;
  border-color: var(--line-dark);
  transform: translateY(-1px);
}

.stage-icon {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
}

.stage-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stage-copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-state {
  color: var(--faint);
  font-size: 0;
}

.stage-state::before {
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  content: "";
}

.stage-list button[data-state="active"] {
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .34);
}

.stage-list button[data-state="active"] .stage-state::before {
  border: 2px solid rgba(207, 66, 40, .2);
  border-top-color: var(--forest);
  animation: spin .9s linear infinite;
}

.stage-list button[data-state="done"] .stage-state::before {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
  content: "✓";
  font-size: 8px;
}

.stage-list button[data-state="warn"] .stage-state::before {
  color: #7b5528;
  background: #f8e8c9;
  border-color: #e4c384;
  content: "!";
  font-size: 8px;
  font-weight: 800;
}

.stage-list button[data-state="error"] .stage-state::before {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
  content: "×";
  font-size: 9px;
}

.workshop-mode {
  display: flex;
  margin: 12px 0 -3px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 8.5px;
}

.workshop-mode span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.workshop-mode span:last-child {
  color: var(--forest);
  font-weight: 650;
}

.workshop-mode span:last-child.is-muted {
  color: var(--faint);
}

.workshop-mode i {
  width: 6px;
  height: 6px;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .1);
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}

.research-setting {
  padding: 15px;
  background:
    radial-gradient(140px 80px at 100% 0%, rgba(229, 108, 61, .1), transparent 75%),
    rgba(255, 255, 255, .58);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.research-setting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.research-kicker {
  display: block;
  color: var(--forest);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .1em;
}

.research-setting h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.research-setting > p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.search-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  cursor: pointer;
}

.search-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.search-switch > span {
  position: relative;
  display: block;
  width: 38px;
  height: 21px;
  background: #d7c8c0;
  border-radius: 999px;
  transition: background .16s;
}

.search-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(77, 44, 31, .22);
  content: "";
  transition: transform .18s var(--ease);
}

.search-switch input:checked + span {
  background: var(--forest);
}

.search-switch input:checked + span::after {
  transform: translateX(17px);
}

.search-switch input:focus-visible + span {
  outline: 3px solid rgba(207, 66, 40, .2);
  outline-offset: 2px;
}

.search-query-field {
  display: block;
}

.search-query-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

.search-query-field > span em {
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}

.search-query-field input {
  display: block;
  width: 100%;
  height: 37px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
}

.search-query-field input:disabled {
  color: var(--faint);
  background: rgba(246, 239, 235, .7);
}

.research-setting > small {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.55;
}

.field {
  display: block;
  min-width: 0;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .015em;
}

.field-label em {
  color: var(--apricot);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.field input,
.field textarea,
.source-field textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.field input {
  height: 44px;
  padding: 0 13px;
}

.field textarea {
  min-height: 88px;
  padding: 11px 13px;
  resize: vertical;
  line-height: 1.72;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aa9a92;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-dark);
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  background: #fff;
  border-color: rgba(207, 66, 40, .56);
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .07);
  outline: 0;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.55;
}

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  width: 100%;
}

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

.tone-grid label,
.segment-control label,
.theme-grid label {
  position: relative;
  cursor: pointer;
}

.tone-grid input,
.segment-control input,
.theme-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tone-grid label > span {
  display: flex;
  min-height: 62px;
  padding: 9px 10px;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .54);
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: background .16s, border-color .16s, transform .16s var(--ease);
}

.tone-grid b {
  font-size: 11.5px;
  font-weight: 700;
}

.tone-grid small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.45;
}

.tone-grid label:hover > span {
  background: #fff;
  border-color: var(--line-dark);
}

.tone-grid input:checked + span {
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .4);
  box-shadow: inset 3px 0 0 var(--forest);
}

.tone-grid input:focus-visible + span,
.segment-control input:focus-visible + span,
.theme-grid input:focus-visible + span {
  outline: 3px solid rgba(207, 66, 40, .2);
  outline-offset: 2px;
}

.segment-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment-control label > span {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  transition: background .16s, color .16s;
}

.segment-control small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 8.5px;
  font-weight: 500;
}

.segment-control input:checked + span {
  color: #fff;
  background: var(--forest);
}

.segment-control input:checked + span small {
  color: rgba(255, 255, 255, .7);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.theme-grid label > span {
  display: flex;
  min-height: 50px;
  padding: 7px;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.theme-grid label > span b {
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
}

.theme-grid input:checked + span {
  background: #fff;
  border-color: var(--forest);
  box-shadow: 0 0 0 1px var(--forest);
}

.theme-swatch {
  position: relative;
  display: block;
  width: 27px;
  height: 31px;
  flex: none;
  overflow: hidden;
  border-radius: 3px;
}

.theme-swatch::after {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  content: "";
}

.theme-swatch.forest {
  background: #fff0e9;
}

.theme-swatch.forest::after {
  background: #aa3321;
}

.theme-swatch.ocean {
  background: #fbe8e2;
}

.theme-swatch.ocean::after {
  background: #bd4934;
}

.theme-swatch.clay {
  background: #fff2eb;
}

.theme-swatch.clay::after {
  background: #cf4228;
}

.theme-swatch.auto {
  background:
    conic-gradient(from 45deg, #aa3321 0 25%, #ef7b46 0 50%, #cf4228 0 75%, #ffe6db 0);
}

.theme-swatch.auto::after {
  display: none;
}

.source-details {
  margin: -4px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 650;
  list-style: none;
}

.source-details summary::-webkit-details-marker {
  display: none;
}

.source-details summary::after {
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  content: "";
  transition: transform .16s;
}

.source-details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.source-details summary span {
  margin-left: auto;
  margin-right: 12px;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 500;
}

.source-field {
  padding: 0 0 14px;
}

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

.privacy-note {
  margin: -5px 0 -4px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.6;
}

.generate-button {
  display: flex;
  min-height: 66px;
  padding: 11px 17px;
  align-items: center;
  gap: 14px;
  color: #fff;
  background:
    radial-gradient(140px 70px at 100% 0%, rgba(255, 255, 255, .1), transparent 75%),
    var(--forest);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(77, 44, 31, .16);
  cursor: pointer;
  text-align: left;
  transition: background .17s, transform .17s var(--ease), box-shadow .17s;
}

.generate-button:hover {
  background-color: var(--forest-deep);
  box-shadow: 0 11px 24px rgba(77, 44, 31, .21);
  transform: translateY(-1px);
}

.generate-button:active {
  transform: translateY(0);
}

.generate-button:disabled {
  cursor: wait;
  opacity: .78;
  transform: none;
}

.generate-label {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.generate-label b {
  font-size: 14px;
  font-weight: 700;
}

.generate-label small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .67);
  font-size: 9.5px;
}

.generate-button > svg {
  width: 21px;
  height: 21px;
  flex: none;
  transition: transform .18s var(--ease);
}

.generate-button:hover > svg {
  transform: translateX(3px);
}

.generate-button.is-busy > svg {
  border: 2px solid rgba(255, 255, 255, .26);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.generate-button.is-busy > svg path {
  display: none;
}

.generation-status {
  min-height: 32px;
  margin: -7px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.55;
}

.generation-status.is-working {
  color: var(--forest);
}

.generation-status.is-success {
  color: var(--forest-deep);
}

.generation-status.is-error {
  color: var(--danger);
}

.recent-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.recent-heading {
  align-items: center;
  margin-bottom: 12px;
}

.recent-heading h2 {
  font-size: 12px;
}

.recent-heading span {
  color: var(--faint);
  font-size: 9.5px;
}

.recent-filters {
  display: flex;
  gap: 5px;
  margin: -2px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.recent-filters::-webkit-scrollbar {
  display: none;
}

.recent-filters button {
  display: inline-flex;
  min-height: 25px;
  padding: 3px 7px;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--muted);
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 650;
}

.recent-filters button span {
  color: var(--faint);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 7.5px;
}

.recent-filters button:hover,
.recent-filters button.is-active {
  color: var(--forest-deep);
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .28);
}

.recent-filters button.is-active span {
  color: var(--forest-deep);
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-empty {
  margin: 0;
  padding: 7px 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
}

.recent-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px 0;
  color: var(--ink-soft);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(217, 223, 217, .7);
  cursor: pointer;
}

.recent-item:hover {
  color: var(--forest);
}

.recent-thumb {
  width: 35px;
  height: 27px;
  overflow: hidden;
  background: var(--forest-soft);
  border-radius: 3px;
}

.recent-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-copy {
  display: block;
  min-width: 0;
}

.recent-copy b,
.recent-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy b {
  font-size: 10.5px;
  font-weight: 650;
}

.recent-copy small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 8.5px;
}

.recent-meta {
  display: flex;
  min-width: 0;
  margin-top: 2px;
  align-items: center;
  gap: 5px;
}

.recent-meta > span:first-child {
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-review-badge {
  padding: 1px 5px;
  flex: none;
  color: var(--muted);
  background: var(--page);
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 650;
  line-height: 1.5;
}

.recent-review-badge.is-pending {
  color: #7b5528;
  background: #fbf0d9;
}

.recent-review-badge.is-approved {
  color: var(--forest-deep);
  background: var(--forest-soft);
}

.recent-review-badge.is-changes_requested {
  color: var(--danger);
  background: #f8e7e3;
}

.recent-item > svg {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

.proof-column {
  min-width: 0;
  min-height: calc(100dvh - 96px);
  background:
    linear-gradient(rgba(122, 78, 59, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 78, 59, .035) 1px, transparent 1px),
    #f5eee9;
  background-size: 28px 28px;
}

.proof-bar {
  position: sticky;
  z-index: 15;
  top: 96px;
  align-items: center;
  min-height: 80px;
  padding: 13px clamp(22px, 2.7vw, 40px);
  background: rgba(246, 247, 243, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(13px);
}

.result-tabs {
  position: sticky;
  z-index: 14;
  top: 176px;
  display: flex;
  gap: 6px;
  padding: 9px clamp(20px, 2.8vw, 42px);
  overflow-x: auto;
  background: rgba(245, 238, 233, .94);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  backdrop-filter: blur(13px);
}

.result-tabs button {
  display: grid;
  min-width: 142px;
  padding: 8px 10px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  text-align: left;
  background: rgba(255, 255, 255, .45);
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}

.result-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
}

.result-tabs button.is-active {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(77, 44, 31, .06);
}

.result-tab-index {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 50%;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 7.5px;
  font-weight: 800;
}

.result-tabs button > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.result-tabs b,
.result-tabs small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-tabs b {
  font-size: 9.5px;
  font-weight: 700;
}

.result-tabs small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 7.5px;
}

.proof-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.proof-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiet-button,
.primary-action,
.download-action {
  display: inline-flex;
  min-height: 36px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.quiet-button {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.quiet-button:hover:not(:disabled) {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-dark);
}

.quiet-button:disabled,
.primary-action:disabled,
.download-action[aria-disabled="true"],
.delivery-files a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .38;
  pointer-events: none;
}

.primary-action {
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  cursor: pointer;
}

.primary-action:hover:not(:disabled) {
  background: var(--forest-deep);
}

.primary-action svg,
.download-action svg {
  width: 14px;
  height: 14px;
}

.download-action {
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(207, 66, 40, .24);
}

.download-action:hover {
  border-color: var(--forest);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(20px, 2.4vw, 34px);
  align-items: start;
  max-width: 1260px;
  margin: 0 auto;
  padding: 32px clamp(20px, 2.8vw, 42px) 70px;
}

.workspace-stage {
  min-width: 0;
}

.result-panel {
  min-width: 0;
  scroll-margin-top: 230px;
  animation: panelReveal .3s var(--ease) both;
}

.image-studio-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(90deg, rgba(207, 66, 40, .035), transparent 26%),
    rgba(255, 252, 249, .98);
  border: 1px solid rgba(195, 204, 197, .7);
  box-shadow: 0 18px 44px rgba(77, 44, 31, .08);
}

.image-studio-heading {
  margin-bottom: 24px;
}

.image-studio-empty {
  display: grid;
  min-height: 290px;
  padding: 42px;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 23px;
  align-items: center;
  background:
    linear-gradient(rgba(122, 78, 59, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 78, 59, .045) 1px, transparent 1px),
    #fff;
  background-size: 22px 22px;
  border: 1px solid var(--line);
}

.image-empty-mark {
  display: inline-flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
}

.image-studio-empty h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.45;
}

.image-studio-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.image-studio-workspace {
  display: grid;
  grid-template-columns: minmax(225px, .78fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: start;
}

.image-target-panel {
  min-width: 0;
}

.image-section-head {
  display: flex;
  min-height: 44px;
  margin-bottom: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.image-section-title {
  min-width: 0;
}

.image-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.image-section-head p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
}

.image-target-head-actions {
  display: flex;
  flex: none;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.image-target-head-actions > span {
  flex: none;
  color: var(--forest);
  font-size: 9px;
  font-weight: 700;
}

.image-batch-toggle {
  display: inline-flex;
  min-height: 27px;
  padding: 0 9px;
  align-items: center;
  gap: 5px;
  color: var(--forest-deep);
  background: #fff;
  border: 1px solid rgba(207, 66, 40, .28);
  border-radius: 4px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.image-batch-toggle:hover:not(:disabled) {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.image-batch-toggle i {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.image-batch-toggle i::before,
.image-batch-toggle i::after {
  position: absolute;
  width: 1px;
  height: 7px;
  content: "";
  background: currentColor;
  opacity: .55;
}

.image-batch-toggle i::before {
  top: 1px;
  left: 3px;
}

.image-batch-toggle i::after {
  top: 1px;
  right: 3px;
}

.image-batch-toggle.is-active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.image-batch-toggle:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.image-batch-toolbar {
  display: flex;
  min-height: 31px;
  margin: -2px 0 9px;
  padding: 5px 7px 5px 9px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  background: var(--forest-soft);
  border: 1px solid rgba(207, 66, 40, .15);
  border-radius: 4px;
}

.image-batch-toolbar p {
  margin: 0;
  font-size: 8px;
}

.image-batch-toolbar p b {
  color: var(--forest-deep);
  font-size: 10px;
}

.image-batch-toolbar > div {
  display: flex;
  gap: 4px;
}

.image-batch-toolbar button {
  min-height: 21px;
  padding: 0 6px;
  color: var(--forest-deep);
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(207, 66, 40, .16);
  border-radius: 3px;
  cursor: pointer;
  font-size: 7.5px;
}

.image-batch-toolbar button:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(207, 66, 40, .38);
}

.image-batch-toolbar button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.image-target-list {
  display: grid;
  max-height: 650px;
  gap: 7px;
  overflow-y: auto;
  padding-right: 3px;
}

.image-target-card {
  display: grid;
  min-width: 0;
  padding: 7px;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}

.image-target-card:hover {
  background: #fff;
  border-color: var(--line-dark);
}

.image-target-card.is-active {
  background: #fff;
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(207, 66, 40, .08);
}

.image-target-card.is-selected {
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .58);
}

.image-target-card.is-selected.is-active {
  background: #fff;
  border-color: var(--forest);
}

.image-target-card:disabled {
  cursor: wait;
  opacity: .72;
}

.image-target-thumb {
  position: relative;
  display: block;
  width: 74px;
  aspect-ratio: 2.1;
  overflow: hidden;
  background: var(--forest-soft);
  border-radius: 3px;
}

.image-target-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-target-check {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(34, 25, 22, .68);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
  box-shadow: 0 2px 7px rgba(34, 25, 22, .22);
}

.image-target-card.is-selected .image-target-check {
  background: var(--forest);
  border-color: #fff;
}

.image-target-thumb.is-empty::after {
  position: absolute;
  inset: 0;
  display: grid;
  color: var(--forest);
  background:
    linear-gradient(135deg, transparent 47%, rgba(207, 66, 40, .18) 48%, rgba(207, 66, 40, .18) 52%, transparent 53%),
    var(--forest-soft);
  place-items: center;
  content: "＋";
  font-size: 17px;
  font-weight: 500;
}

.image-target-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.image-target-copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-target-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 7.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-target-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 1px 5px;
  color: var(--muted);
  background: var(--page);
  border-radius: 2px;
  font-size: 7px;
  font-weight: 650;
}

.image-target-card.is-active .image-target-state {
  color: var(--forest-deep);
  background: var(--forest-soft);
}

.image-composer {
  min-width: 0;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 14px 35px rgba(77, 44, 31, .07);
}

.image-preview-shell {
  margin-bottom: 18px;
}

.image-preview-frame {
  position: relative;
  aspect-ratio: 2.05;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), transparent 46%),
    #221916;
  border: 8px solid #221916;
}

.image-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s;
}

.image-preview-frame img.is-ready {
  opacity: 1;
}

.image-preview-corner {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border-color: rgba(255, 255, 255, .72);
  border-style: solid;
  pointer-events: none;
}

.image-preview-corner.top-left {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.image-preview-corner.top-right {
  top: 8px;
  right: 8px;
  border-width: 1px 1px 0 0;
}

.image-preview-corner.bottom-left {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 1px 1px;
}

.image-preview-corner.bottom-right {
  right: 8px;
  bottom: 8px;
  border-width: 0 1px 1px 0;
}

.image-preview-meta {
  display: flex;
  min-height: 54px;
  padding: 11px 2px 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.image-preview-meta > div {
  min-width: 0;
}

.image-preview-meta span:not(.image-source-badge) {
  color: var(--forest);
  font-size: 8px;
  font-weight: 700;
}

.image-preview-meta h3 {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-source-badge {
  flex: none;
  padding: 3px 7px;
  color: var(--muted);
  background: var(--page);
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 650;
}

.image-source-badge.is-custom {
  color: var(--forest-deep);
  background: var(--forest-soft);
}

.image-form {
  display: grid;
  gap: 14px;
}

.image-prompt-field,
.image-model-row label,
.image-model-row > div {
  display: flex;
  flex-direction: column;
}

.image-prompt-field > span,
.image-preset-field legend,
.image-model-row span {
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.image-prompt-field em {
  margin-left: 4px;
  color: var(--faint);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 500;
}

.image-prompt-field textarea {
  width: 100%;
  min-height: 94px;
  margin-top: 6px;
  padding: 10px 11px;
  resize: vertical;
  color: var(--ink);
  background:
    linear-gradient(transparent 27px, rgba(122, 78, 59, .06) 28px),
    #fffdfb;
  background-size: 100% 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 28px;
}

.image-prompt-field textarea:focus,
.image-model-row select:focus {
  border-color: var(--forest);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .09);
}

.image-prompt-field small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 7.5px;
  line-height: 1.65;
}

.image-batch-queue {
  padding: 9px 10px;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.image-batch-queue-head {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-batch-queue-head b {
  color: var(--ink-soft);
  font-size: 8.5px;
}

.image-batch-queue-head span {
  color: var(--faint);
  font-size: 7.5px;
}

.image-batch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.image-batch-chip {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 6px 3px 3px;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  background: var(--page);
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 7.5px;
}

.image-batch-chip i {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--muted);
  background: #fff;
  border-radius: 50%;
  font-size: 6.5px;
  font-style: normal;
  font-weight: 750;
}

.image-batch-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-batch-chip.is-current {
  color: var(--forest-deep);
  background: #fff;
  border-color: rgba(207, 66, 40, .34);
}

.image-batch-chip.is-current i {
  color: #fff;
  background: var(--forest);
}

.image-batch-chip.is-complete {
  color: #536f4b;
  background: #f2f7ef;
}

.image-batch-chip.is-complete i {
  color: #fff;
  background: #69845d;
}

.image-batch-chip.is-failed {
  color: var(--danger);
  background: #fff4f1;
}

.image-batch-chip.is-failed i {
  color: #fff;
  background: var(--danger);
}

.image-batch-empty {
  color: var(--danger);
  font-size: 8px;
}

.image-preset-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.image-preset-field legend {
  margin-bottom: 7px;
  padding: 0;
}

.image-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.image-preset-grid label {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 48px;
  padding: 8px 9px;
  flex-direction: column;
  cursor: pointer;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .15s, background .15s;
}

.image-preset-grid label:hover {
  border-color: var(--line-dark);
}

.image-preset-grid label:has(input:checked) {
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .48);
}

.image-preset-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.image-preset-grid b {
  color: var(--ink);
  font-size: 9px;
}

.image-preset-grid small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 7px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
}

.image-model-row select {
  height: 34px;
  margin-top: 5px;
  padding: 0 27px 0 9px;
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 9px;
}

.image-model-row > div {
  justify-content: flex-start;
}

.image-model-row > div b {
  margin-top: 10px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
}

.image-config-hint,
.image-studio-status {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
}

.image-config-hint.is-ready {
  color: #6d4a22;
}

.image-config-hint.is-missing {
  color: var(--danger);
}

.image-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 7px;
}

.image-generate-button,
.image-upload-button,
.image-reset-button {
  display: flex;
  min-height: 43px;
  padding: 8px 11px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 4px;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
}

.image-generate-button {
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
}

.image-generate-button:hover:not(:disabled) {
  background: var(--forest-deep);
}

.image-generate-button small {
  margin-top: 1px;
  color: rgba(255, 255, 255, .72);
  font-size: 7px;
  font-weight: 500;
}

.image-upload-button,
.image-reset-button {
  color: var(--ink-soft);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-dark);
}

.image-upload-button:hover {
  color: var(--forest-deep);
  border-color: rgba(207, 66, 40, .5);
}

.image-reset-button {
  grid-column: 1 / -1;
  min-height: 33px;
  color: var(--muted);
  background: transparent;
}

.image-generate-button:disabled,
.image-upload-button[aria-disabled="true"],
.image-reset-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  pointer-events: none;
}

.image-generate-button.is-busy {
  color: transparent;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent),
    var(--forest);
  background-size: 220% 100%, auto;
  animation: imageButtonSweep 1.2s linear infinite;
}

.image-generate-button.is-busy small {
  display: none;
}

.image-studio-status {
  min-height: 14px;
  padding-left: 9px;
  border-left: 2px solid var(--line-dark);
}

.image-studio-status.is-working {
  color: var(--forest-deep);
  border-color: var(--forest);
}

.image-studio-status.is-success {
  color: #536f4b;
  border-color: #7d9c70;
}

.image-studio-status.is-error {
  color: var(--danger);
  border-color: var(--danger);
}

.process-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(90deg, rgba(207, 66, 40, .025), transparent 30%),
    rgba(255, 252, 249, .97);
  border: 1px solid rgba(195, 204, 197, .7);
  box-shadow: 0 18px 44px rgba(77, 44, 31, .08);
}

.process-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.process-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.process-heading p {
  margin: 0 0 3px;
  color: var(--forest);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
}

.process-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.process-state {
  display: inline-flex;
  min-height: 25px;
  padding: 0 9px;
  align-items: center;
  flex: none;
  color: var(--muted);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 650;
}

.process-state.is-ready {
  color: var(--forest);
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .2);
}

.process-state.is-warning {
  color: #7b5528;
  background: #fbf0d9;
  border-color: #ebd4a8;
}

.review-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.version-compare-trigger {
  display: inline-flex;
  min-height: 30px;
  padding: 4px 10px;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.version-compare-trigger:hover:not(:disabled) {
  color: var(--forest-deep);
  border-color: rgba(207, 66, 40, .4);
}

.version-compare-trigger small {
  padding-left: 7px;
  color: var(--faint);
  border-left: 1px solid var(--line);
  font-size: 7.5px;
  font-weight: 500;
}

.version-compare-trigger:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.process-intro {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.process-section {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.process-section-title {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.process-section-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.process-section-title p,
.process-section-title > span {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 8px;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.topic-option {
  display: flex;
  min-height: 150px;
  padding: 14px;
  flex-direction: column;
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.topic-option-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.topic-number {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 50%;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 7px;
  font-weight: 800;
}

.topic-option h4 {
  margin: 0;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}

.topic-option > p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.topic-option > small {
  margin-top: auto;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.55;
}

.topic-use-button,
.title-copy-button {
  min-height: 30px;
  margin-top: 11px;
  color: var(--forest);
  background: transparent;
  border: 1px solid rgba(207, 66, 40, .26);
  border-radius: 5px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 650;
}

.topic-use-button:hover,
.title-copy-button:hover {
  background: var(--forest-soft);
  border-color: var(--forest);
}

.material-points,
.source-list,
.title-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-point {
  padding: 12px 13px;
  color: var(--ink-soft);
  background: rgba(255, 246, 240, .72);
  border-left: 2px solid var(--apricot);
}

.material-point p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.75;
}

.source-chips {
  display: flex;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 5px;
}

.source-chip {
  display: inline-flex;
  min-height: 18px;
  padding: 0 6px;
  align-items: center;
  color: var(--forest);
  background: var(--forest-soft);
  border: 1px solid rgba(207, 66, 40, .17);
  border-radius: 3px;
  cursor: pointer;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 7px;
  font-weight: 800;
}

.source-chip.is-muted {
  color: var(--faint);
  background: var(--page);
  border-color: var(--line);
}

.source-card {
  padding: 13px 14px;
  background: rgba(255, 255, 255, .64);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.source-card.is-highlighted {
  background: #fff;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .07);
}

.source-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.source-id,
.outline-index {
  display: inline-flex;
  width: 24px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 3px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 7px;
  font-weight: 800;
}

.source-card-head a {
  color: var(--ink);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.55;
}

.source-card-head a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-meta {
  margin: 5px 0 0 32px;
  color: var(--faint);
  font-size: 7.5px;
}

.source-snippet {
  margin: 8px 0 0 32px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.source-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #7b5528;
  background: #fbf0d9;
  border-left: 2px solid #dba64e;
  font-size: 8px;
  line-height: 1.65;
}

.process-empty {
  margin: 0;
  padding: 14px;
  color: var(--faint);
  background: rgba(255, 255, 255, .38);
  border: 1px dashed var(--line-dark);
  font-size: 9px;
  line-height: 1.7;
}

.outline-list {
  display: flex;
  margin: 25px 0 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.outline-item {
  display: grid;
  padding: 14px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.outline-index {
  width: 30px;
  height: 26px;
  margin-top: 1px;
}

.outline-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.outline-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.55;
}

.outline-heading > span {
  flex: none;
  color: var(--faint);
  font-size: 7.5px;
}

.outline-copy > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.selected-title-card {
  margin-top: 24px;
  padding: 23px;
  color: #fff;
  background:
    radial-gradient(240px 110px at 100% 0%, rgba(255, 255, 255, .14), transparent 70%),
    var(--forest);
  border-radius: 8px;
}

.selected-title-card > span {
  color: rgba(255, 255, 255, .66);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

.selected-title-card h3 {
  max-width: 760px;
  margin: 9px 0 7px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: -.025em;
}

.selected-title-card > p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  line-height: 1.7;
}

.selected-title-actions {
  display: flex;
  margin-top: 19px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.selected-title-actions button {
  min-height: 32px;
  padding: 0 11px;
  color: #fff;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 5px;
  cursor: pointer;
  font-size: 8.5px;
}

.selected-title-actions button:hover:not(:disabled) {
  background: rgba(255, 255, 255, .18);
}

.selected-title-actions button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.selected-tags span {
  color: rgba(255, 255, 255, .72);
  font-size: 7.5px;
}

.title-option {
  display: flex;
  padding: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.title-option > div {
  min-width: 0;
}

.title-option-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-option h4 {
  margin: 0;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}

.selected-badge {
  padding: 2px 5px;
  flex: none;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 3px;
  font-size: 7px;
  font-weight: 650;
}

.title-option p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.title-option small {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 8px;
}

.title-copy-button {
  min-width: 104px;
  margin: 0;
  flex: none;
}

.review-overview {
  display: grid;
  margin-top: 24px;
  padding: 19px;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: rgba(255, 255, 255, .64);
  border: 1px solid var(--line);
}

.review-score {
  --score: 84%;
  display: flex;
  width: 94px;
  height: 94px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--forest);
  background:
    radial-gradient(circle at center, #fff 54%, transparent 55%),
    conic-gradient(var(--forest) 0 var(--score), var(--line) var(--score));
  border-radius: 50%;
}

.review-score strong {
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 29px;
  line-height: 1;
}

.review-score span {
  margin-top: 4px;
  color: var(--faint);
  font-size: 7.5px;
}

.review-overview h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.review-overview p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}

.review-list {
  display: flex;
  margin-top: 16px;
  flex-direction: column;
  gap: 7px;
}

.review-check {
  display: grid;
  padding: 12px 13px;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  background: rgba(255, 255, 255, .54);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.review-check-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--page);
  border-radius: 50%;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.review-check.is-pass .review-check-mark {
  color: #fff;
  background: var(--forest);
}

.review-check.is-warn .review-check-mark {
  color: #fff;
  background: #b27b2e;
}

.review-check h3 {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 700;
}

.review-check p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.65;
}

.review-status {
  padding: 2px 6px;
  color: var(--muted);
  background: var(--page);
  border-radius: 3px;
  font-size: 7px;
}

.review-check.is-pass .review-status {
  color: var(--forest);
  background: var(--forest-soft);
}

.review-check.is-warn .review-status {
  color: #7b5528;
  background: #fbf0d9;
}

.human-review-card {
  margin-top: 21px;
  padding: 15px 17px;
  background: var(--apricot-soft);
  border-left: 3px solid var(--apricot);
}

.human-review-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 9.5px;
}

.human-review-card ul {
  margin: 7px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}

.review-workflow-card {
  margin-top: 18px;
  padding: 20px;
  background:
    radial-gradient(180px 120px at 100% 0%, rgba(229, 108, 61, .09), transparent 78%),
    rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
}

.review-workflow-card.is-approved {
  border-top-color: #3e745f;
}

.review-workflow-card.is-changes_requested {
  border-top-color: var(--danger);
}

.review-workflow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-workflow-head > div > span {
  display: block;
  color: var(--forest);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .12em;
}

.review-workflow-head h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.review-workflow-status {
  padding: 3px 8px;
  flex: none;
  color: #7b5528;
  background: #fbf0d9;
  border: 1px solid #ead3a9;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.55;
}

.review-workflow-status.is-approved {
  color: #285a48;
  background: #e6f2ec;
  border-color: #bbd8c9;
}

.review-workflow-status.is-changes_requested {
  color: var(--danger);
  background: #f8e7e3;
  border-color: #eac7bf;
}

.review-workflow-meta {
  margin: 9px 0 15px;
  color: var(--muted);
  font-size: 8.8px;
  line-height: 1.7;
}

.review-confirm-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-confirm-group legend {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.review-confirm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.review-confirm-item {
  display: grid;
  min-height: 60px;
  padding: 9px 10px;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .16s, border-color .16s;
}

.review-confirm-item:hover {
  background: #fff;
  border-color: var(--line-dark);
}

.review-confirm-item:has(input:checked) {
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .3);
}

.review-confirm-item:has(input:focus-visible) {
  outline: 3px solid rgba(207, 66, 40, .2);
  outline-offset: 2px;
}

.review-confirm-item input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--forest);
}

.review-confirm-item span {
  display: block;
  min-width: 0;
}

.review-confirm-item b,
.review-confirm-item small {
  display: block;
}

.review-confirm-item b {
  color: var(--ink);
  font-size: 8.8px;
  font-weight: 700;
}

.review-confirm-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7.8px;
  line-height: 1.55;
}

.review-form-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr);
  gap: 10px;
}

.review-form-field {
  display: block;
  min-width: 0;
}

.review-form-field > span {
  display: flex;
  margin-bottom: 6px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 700;
}

.review-form-field em {
  color: var(--faint);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 500;
}

.review-form-field input,
.review-form-field textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 9px;
  transition: border-color .16s, box-shadow .16s;
}

.review-form-field input {
  height: 39px;
  padding: 0 10px;
}

.review-form-field textarea {
  min-height: 75px;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.65;
}

.review-form-field input:focus,
.review-form-field textarea:focus {
  border-color: rgba(207, 66, 40, .56);
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .07);
  outline: 0;
}

.review-form-field input:disabled,
.review-form-field textarea:disabled,
.review-confirm-item:has(input:disabled) {
  cursor: not-allowed;
  opacity: .74;
}

.review-workflow-actions {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 7px;
}

.review-workflow-actions button {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 8.8px;
  font-weight: 700;
  transition: background .16s, border-color .16s, transform .16s;
}

.review-workflow-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.review-workflow-actions button:disabled {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.review-approve-button {
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
}

.review-approve-button:hover:not(:disabled) {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.review-reject-button,
.review-reopen-button {
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line-dark);
}

.review-revise-button {
  color: #fff;
  background: var(--forest-deep);
  border: 1px solid var(--forest-deep);
}

.review-revise-button:hover:not(:disabled) {
  background: var(--forest);
  border-color: var(--forest);
}

.review-reject-button:hover:not(:disabled),
.review-reopen-button:hover:not(:disabled) {
  color: var(--danger);
  border-color: rgba(169, 52, 34, .38);
}

.review-workflow-progress {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: var(--forest-deep);
  background: var(--forest-soft);
  border-left: 3px solid var(--forest);
  font-size: 8.8px;
  font-weight: 650;
  line-height: 1.65;
}

.review-workflow-progress::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid rgba(207, 66, 40, .18);
  border-top-color: var(--forest);
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .9s linear infinite;
  content: "";
}

.review-workflow-hint {
  margin: 9px 0 0;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.65;
}

.review-history {
  display: flex;
  margin: 15px 0 0;
  padding: 13px 0 0 0;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.review-history li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
}

.review-history li::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 6px;
  height: 6px;
  background: var(--line-dark);
  border-radius: 50%;
  content: "";
}

.review-history li:first-child::before {
  background: var(--forest);
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .1);
}

.review-history li b {
  color: var(--ink);
  font-weight: 700;
}

.review-history li span {
  display: block;
  margin-top: 1px;
  color: var(--faint);
}

.review-history-empty {
  padding-left: 0 !important;
}

.review-history-empty::before {
  display: none;
}

.paper-stage {
  min-width: 0;
}

.registration-line {
  position: relative;
  display: flex;
  width: min(680px, calc(100% - 14px));
  margin: 0 auto 9px;
  justify-content: space-between;
  color: var(--faint);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.registration-line::before,
.registration-line::after {
  position: absolute;
  top: 15px;
  width: 1px;
  height: 8px;
  background: var(--line-dark);
  content: "";
}

.registration-line::before {
  left: 0;
}

.registration-line::after {
  right: 0;
}

.paper {
  position: relative;
  width: min(680px, calc(100% - 14px));
  min-height: 760px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(25px, 4.4vw, 52px) 54px;
  background: #fff;
  border: 1px solid rgba(195, 204, 197, .7);
  box-shadow:
    0 28px 60px rgba(77, 44, 31, .11),
    0 2px 7px rgba(77, 44, 31, .04);
  scroll-margin-top: 196px;
}

.paper::before,
.paper::after {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--line-dark);
  border-style: solid;
  content: "";
  pointer-events: none;
}

.paper::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.paper::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.empty-proof {
  display: flex;
  min-height: 660px;
  padding: 64px 20px 50px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.empty-art {
  position: relative;
  width: 188px;
  height: 122px;
  margin-bottom: 37px;
  overflow: hidden;
  background: var(--surface-2, #fffaf7);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.empty-art::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 61px;
  height: 100%;
  background: var(--forest);
  content: "";
}

.empty-art span {
  position: absolute;
  left: 19px;
  height: 5px;
  background: var(--surface-strong, #ffe7dc);
  border-radius: 2px;
}

.empty-art span:nth-child(1) {
  top: 27px;
  width: 72px;
  height: 10px;
  background: var(--ink);
}

.empty-art span:nth-child(2) {
  top: 49px;
  width: 89px;
}

.empty-art span:nth-child(3) {
  top: 64px;
  width: 67px;
}

.empty-art i {
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  background: var(--apricot);
  border-radius: 50%;
}

.empty-kicker {
  margin: 0 0 7px !important;
  color: var(--forest) !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .08em;
}

.empty-proof h3 {
  max-width: 390px;
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.empty-proof > p:not(.empty-kicker) {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.empty-proof button {
  min-height: 38px;
  margin-top: 24px;
  padding: 0 16px;
  color: var(--forest);
  background: transparent;
  border: 1px solid rgba(207, 66, 40, .3);
  border-radius: 5px;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 650;
}

.empty-proof button:hover {
  background: var(--forest-soft);
}

.article-preview {
  counter-reset: article-section;
  animation: articleReveal .55s var(--ease) both;
}

.paper[data-article-font="sans"] .article-title,
.paper[data-article-font="sans"] .article-lead,
.paper[data-article-font="sans"] .article-paragraph,
.paper[data-article-font="sans"] .article-quote,
.paper[data-article-font="sans"] .article-closing,
.paper[data-article-font="sans"] .article-cta {
  font-family: var(--display);
}

.paper[data-title-align="center"] .article-eyebrow,
.paper[data-title-align="center"] .article-title,
.paper[data-title-align="center"] .article-subtitle {
  text-align: center;
}

.article-cover {
  display: block;
  width: calc(100% + 2px);
  height: auto;
  margin: -1px -1px 27px;
  border-radius: 3px;
}

.article-media-wrap {
  position: relative;
}

.article-image-edit {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 29px;
  padding: 0 10px;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: rgba(34, 25, 22, .78);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 4px;
  box-shadow: 0 5px 16px rgba(34, 25, 22, .18);
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 650;
  backdrop-filter: blur(7px);
  transition: background .16s, border-color .16s;
}

.article-image-edit:hover {
  background: rgba(34, 25, 22, .92);
  border-color: rgba(255, 255, 255, .6);
}

.article-image-edit svg {
  width: 12px;
  height: 12px;
}

.article-media-wrap.is-section-visual .article-image-edit {
  top: 40px;
}

.article-eyebrow {
  margin: 0 0 12px;
  color: var(--article-accent, var(--forest));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.article-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(29px, 4.4vw, 39px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.article-subtitle {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.article-lead {
  margin: 0 0 31px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.95;
}

.article-section {
  counter-increment: article-section;
  margin-top: 40px;
}

.article-section-title {
  position: relative;
  margin: 0 0 17px;
  padding-left: 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.52;
  letter-spacing: -.02em;
}

.article-section-title::before {
  position: absolute;
  top: 4px;
  bottom: 3px;
  left: 0;
  width: 4px;
  background: var(--article-highlight, var(--apricot));
  border-radius: 3px;
  content: "";
}

.paper[data-heading-style="marker"] .article-section-title {
  padding-left: 18px;
}

.paper[data-heading-style="marker"] .article-section-title::before {
  top: 10px;
  bottom: auto;
  width: 8px;
  height: 8px;
  border-radius: 1px;
}

.paper[data-heading-style="number"] .article-section-title {
  padding-left: 0;
}

.paper[data-heading-style="number"] .article-section-title::before {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  margin-right: 10px;
  color: var(--article-highlight, var(--apricot));
  background: transparent;
  content: counter(article-section, decimal-leading-zero);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  vertical-align: 3px;
}

.paper[data-heading-style="number"] .article-section-title::after {
  display: none;
}

.paper[data-heading-style="underline"] .article-section-title {
  padding: 0 0 10px;
  border-bottom: 2px solid var(--article-highlight, var(--apricot));
}

.paper[data-heading-style="underline"] .article-section-title::before {
  display: none;
}

.article-paragraph {
  margin: 0 0 17px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.98;
  letter-spacing: .012em;
}

.article-quote {
  margin: 25px 0;
  padding: 2px 0 2px 16px;
  color: var(--article-accent, var(--forest));
  border-left: 3px solid var(--article-accent, var(--forest));
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.82;
}

.article-visual {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0 8px;
  border-radius: 3px;
}

.article-caption {
  margin: 0 0 28px;
  color: var(--faint);
  font-size: 9.5px;
  text-align: center;
}

.article-closing {
  margin: 35px 0 16px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.98;
}

.article-cta {
  margin: 29px 0 18px;
  padding-top: 20px;
  color: var(--article-accent, var(--forest));
  border-top: 1px solid var(--article-accent-soft, var(--forest-soft));
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.85;
}

.article-end {
  margin: 21px 0 0;
  color: var(--faint);
  font-size: 9.5px;
  text-align: center;
}

.paper-caption {
  display: flex;
  width: min(680px, calc(100% - 14px));
  margin: 10px auto 0;
  justify-content: space-between;
  color: var(--faint);
  font-size: 8.5px;
}

.delivery-panel {
  position: sticky;
  top: 192px;
  min-width: 0;
  padding: 20px;
  background: rgba(251, 250, 246, .82);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(77, 44, 31, .05);
  backdrop-filter: blur(10px);
}

.delivery-heading {
  align-items: center;
  margin-bottom: 17px;
}

.delivery-heading h2 {
  font-size: 13px;
}

.delivery-heading p {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 9px;
}

.package-state {
  padding: 3px 7px;
  color: var(--muted);
  background: var(--page);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.package-state.is-ready {
  color: var(--forest);
  background: var(--forest-soft);
}

.package-state.is-pending {
  color: #7b5528;
  background: #fbf0d9;
}

.package-state.is-changes_requested {
  color: var(--danger);
  background: #f8e7e3;
}

.cover-slot {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 900 / 383;
  padding: 12px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(100px 90px at 87% 12%, rgba(255, 255, 255, .15), transparent 75%),
    var(--forest);
  border-radius: 4px;
}

.cover-slot::before {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 35px;
  height: 8px;
  border-top: 1px solid rgba(255, 255, 255, .55);
  border-left: 1px solid rgba(255, 255, 255, .55);
  content: "";
}

.cover-slot::after {
  position: absolute;
  right: -12px;
  bottom: -20px;
  width: 76px;
  height: 76px;
  background: var(--apricot);
  border-radius: 50%;
  content: "";
}

.cover-slot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-slot span,
.cover-slot strong,
.cover-slot i {
  position: relative;
  z-index: 1;
}

.cover-slot span {
  font-size: 8px;
  opacity: .66;
}

.cover-slot strong {
  margin-top: -1px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.cover-slot i {
  margin-top: 3px;
  font-size: 8px;
  font-style: normal;
  opacity: .66;
}

.cover-slot.is-ready span,
.cover-slot.is-ready strong,
.cover-slot.is-ready i {
  display: none;
}

.delivery-files {
  display: flex;
  margin: 18px 0;
  flex-direction: column;
}

.delivery-files a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.delivery-files a:hover {
  color: var(--forest);
}

.delivery-files a > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.delivery-files b,
.delivery-files small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-files b {
  font-size: 9.5px;
  font-weight: 650;
}

.delivery-files small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 8px;
}

.delivery-files svg {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

.file-mark {
  display: inline-flex;
  width: 34px;
  height: 29px;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 3px;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .02em;
}

.file-mark.doc {
  color: var(--forest-deep);
  background: var(--forest-soft);
}

.file-mark.img {
  color: #9b5e3e;
  background: var(--apricot-soft);
}

.file-mark.md {
  color: #6b5c35;
  background: #f5edda;
}

.publish-checklist {
  padding: 16px 0 5px;
  border-top: 1px solid var(--line);
}

.publish-checklist h3 {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
}

.publish-checklist ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.publish-checklist li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.55;
}

.publish-checklist li i {
  display: inline-flex;
  width: 11px;
  height: 11px;
  margin-top: 1px;
  align-items: center;
  justify-content: center;
  flex: none;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.publish-checklist li.is-ready {
  color: var(--forest-deep);
}

.publish-checklist li.is-ready i {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.publish-checklist li.is-warning {
  color: #7b5528;
}

.publish-checklist li.is-warning i {
  color: #7b5528;
  background: #fbf0d9;
  border-color: #e1c183;
}

.paste-note {
  margin-top: 14px;
  padding: 13px;
  background: var(--apricot-soft);
  border-left: 2px solid var(--apricot);
}

.paste-note b {
  font-size: 9px;
}

.paste-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
}

.direct-publish-card {
  margin-top: 14px;
  padding: 13px;
  color: #f7f3ec;
  background:
    radial-gradient(circle at 92% 7%, rgba(230, 138, 84, .2), transparent 32%),
    linear-gradient(145deg, #23362e, #18271f);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 5px;
  box-shadow: 0 12px 26px rgba(20, 39, 30, .14);
}

.direct-publish-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.direct-publish-head span {
  color: #92b5a4;
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .14em;
}

.direct-publish-head h3 {
  margin: 3px 0 0;
  color: #fffaf2;
  font-size: 12px;
  font-weight: 700;
}

.publish-config-state {
  padding: 4px 7px;
  color: #f0d7ab;
  background: rgba(238, 201, 128, .11);
  border: 1px solid rgba(238, 201, 128, .18);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 7.5px;
  font-weight: 650;
  white-space: nowrap;
}

.publish-config-state:disabled {
  cursor: wait;
  opacity: .7;
}

.publish-config-state.is-ready {
  color: #bce6cc;
  background: rgba(112, 188, 141, .12);
  border-color: rgba(112, 188, 141, .2);
}

.publish-config-state.is-error {
  color: #ffc7ba;
  background: rgba(225, 103, 77, .13);
  border-color: rgba(225, 103, 77, .2);
}

.direct-publish-account {
  margin: 10px 0;
  color: #aac2b5;
  font-size: 8.5px;
  line-height: 1.55;
}

.direct-publish-login {
  display: block;
  width: fit-content;
  margin: -3px 0 10px;
  color: #f0d7ab;
  font-size: 8.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.direct-publish-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #21362b;
  background: #e8d7b6;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 760;
  transition: background .16s, transform .16s, opacity .16s;
}

.direct-publish-button:hover:not(:disabled) {
  background: #fff0d5;
}

.direct-publish-button:active:not(:disabled) {
  transform: translateY(1px);
}

.direct-publish-button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.direct-publish-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.direct-publish-note {
  margin: 8px 0 0;
  color: #8da99b;
  font-size: 7.5px;
  line-height: 1.6;
}

.direct-publish-status {
  margin-top: 10px;
  padding: 8px 9px;
  color: #dceade;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  font-size: 8px;
  line-height: 1.55;
}

.direct-publish-status.is-success {
  color: #c7efd4;
  background: rgba(79, 164, 111, .12);
}

.direct-publish-status.is-error {
  color: #ffd0c5;
  background: rgba(191, 76, 53, .13);
}

.direct-publish-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.publish-confirm-dialog {
  width: min(500px, calc(100vw - 28px));
  max-width: none;
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: #fffaf7;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(34, 22, 18, .32);
}

.publish-confirm-dialog::backdrop {
  background: rgba(28, 22, 18, .56);
  backdrop-filter: blur(4px);
}

.publish-confirm-shell {
  padding: 24px;
}

.publish-confirm-shell header > span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .12em;
}

.publish-confirm-shell h2 {
  margin: 5px 0 7px;
  font-size: 19px;
  line-height: 1.35;
}

.publish-confirm-shell header p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.publish-confirm-warning {
  margin: 18px 0 14px;
  padding: 12px;
  color: #712d20;
  background: #f9eae5;
  border-left: 3px solid var(--danger);
}

.publish-confirm-warning b {
  font-size: 10px;
}

.publish-confirm-warning p {
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.65;
}

.publish-confirm-check {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 9px;
  line-height: 1.65;
}

.publish-confirm-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.publish-confirm-shell footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.publish-confirm-shell footer button {
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 9.5px;
  font-weight: 680;
}

.publish-cancel {
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line) !important;
}

.publish-confirm {
  color: #fffaf5;
  background: var(--danger);
}

.publish-confirm:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.auto-publish-card {
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.auto-publish-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.auto-publish-card > summary::-webkit-details-marker {
  display: none;
}

.auto-publish-card > summary span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.auto-publish-card > summary b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.auto-publish-card > summary small {
  color: var(--muted);
  font-size: 8px;
}

.auto-publish-card > summary i {
  padding: 4px 7px;
  color: var(--muted);
  background: var(--page);
  border-radius: 999px;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 680;
  white-space: nowrap;
}

.auto-publish-card > summary i.is-active {
  color: var(--forest);
  background: var(--forest-soft);
}

.auto-publish-card > summary i.is-error {
  color: var(--danger);
  background: #f8e7e3;
}

.auto-publish-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.auto-publish-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auto-publish-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.auto-publish-field > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
}

.auto-publish-field input,
.auto-publish-field textarea {
  width: 100%;
  min-height: 32px;
  padding: 7px 8px;
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: 9px;
  line-height: 1.55;
  resize: vertical;
}

.auto-publish-field input:focus,
.auto-publish-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.auto-publish-check {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px;
  background: #fffaf7;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.auto-publish-check input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.auto-publish-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-publish-check b {
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 680;
}

.auto-publish-check small {
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.55;
}

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

.auto-publish-actions button {
  min-height: 32px;
  color: #fffaf7;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 8.5px;
  font-weight: 680;
}

.auto-publish-actions button.secondary {
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
}

.auto-publish-actions button:disabled {
  cursor: wait;
  opacity: .48;
}

.auto-publish-status {
  padding: 8px;
  color: var(--muted);
  background: var(--page);
  border-radius: 4px;
  font-size: 8px;
  line-height: 1.55;
}

.auto-publish-status.is-success {
  color: var(--forest);
  background: var(--forest-soft);
}

.auto-publish-status.is-error {
  color: var(--danger);
  background: #f8e7e3;
}

.auto-publish-history {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-publish-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  padding: 7px;
  color: var(--muted);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 7.5px;
  line-height: 1.45;
}

.auto-publish-history b {
  overflow: hidden;
  color: var(--ink);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auto-publish-history time {
  white-space: nowrap;
}

.version-compare-dialog {
  width: min(1120px, calc(100vw - 36px));
  height: min(88dvh, 920px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #fffaf7;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  box-shadow: 0 36px 100px rgba(31, 19, 14, .28);
}

.version-compare-dialog::backdrop {
  background: rgba(34, 22, 18, .5);
  backdrop-filter: blur(4px);
}

body:has(.version-compare-dialog[open]) {
  overflow: hidden;
}

.version-compare-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.version-compare-head {
  display: flex;
  padding: 22px 26px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(260px 120px at 0% 0%, rgba(229, 108, 61, .13), transparent 72%),
    #fffaf7;
  border-bottom: 1px solid var(--line);
}

.version-compare-head > div > span {
  display: block;
  color: var(--forest);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.version-compare-head h2 {
  margin: 3px 0 4px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.version-compare-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.version-compare-close {
  display: inline-flex;
  width: 33px;
  height: 33px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 21px;
  line-height: 1;
}

.version-compare-close:hover {
  color: var(--forest);
  border-color: var(--line-dark);
}

.version-compare-toolbar {
  display: flex;
  padding: 12px 26px;
  align-items: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  background: #f8f3ef;
  border-bottom: 1px solid var(--line);
}

.version-compare-toolbar > label {
  display: block;
  min-width: 150px;
}

.version-compare-toolbar > label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 7.5px;
  font-weight: 650;
}

.version-compare-toolbar select {
  width: 100%;
  height: 34px;
  padding: 0 28px 0 9px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 9px;
}

.version-compare-arrow {
  display: inline-flex;
  height: 34px;
  align-items: center;
  color: var(--forest);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 17px;
}

.version-compare-toolbar > label.version-compare-only {
  display: inline-flex;
  min-width: 0;
  height: 34px;
  margin-left: auto;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 650;
}

.version-compare-only input {
  width: 14px;
  height: 14px;
  accent-color: var(--forest);
}

.version-compare-run {
  height: 34px;
  padding: 0 15px;
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 5px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 700;
}

.version-compare-run:hover:not(:disabled) {
  background: var(--forest-deep);
}

.version-compare-run:disabled {
  cursor: wait;
  opacity: .6;
}

.version-compare-summary {
  padding: 13px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.version-compare-summary > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.compare-summary-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-version-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-version-pill {
  display: inline-flex;
  min-height: 25px;
  padding: 3px 8px;
  align-items: center;
  color: var(--ink-soft);
  background: #f8f1ed;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
}

.compare-version-pill.is-target {
  color: var(--forest-deep);
  background: var(--forest-soft);
  border-color: rgba(207, 66, 40, .24);
}

.compare-summary-stat {
  padding: 3px 8px;
  color: var(--muted);
  background: var(--page);
  border-radius: 999px;
  font-size: 7.8px;
}

.compare-feedback {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: var(--ink-soft);
  background: var(--apricot-soft);
  border-left: 3px solid var(--apricot);
  font-size: 8.5px;
  line-height: 1.65;
}

.version-compare-content {
  min-height: 0;
  padding: 20px 26px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(122, 78, 59, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 78, 59, .025) 1px, transparent 1px),
    #f8f3ef;
  background-size: 28px 28px;
}

.compare-section {
  margin-bottom: 22px;
}

.compare-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.compare-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.compare-section-head span {
  color: var(--faint);
  font-size: 8px;
}

.compare-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.compare-metric {
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.compare-metric.is-changed {
  border-color: rgba(207, 66, 40, .3);
  box-shadow: inset 3px 0 0 var(--forest);
}

.compare-metric > span {
  display: block;
  color: var(--faint);
  font-size: 7.5px;
}

.compare-metric strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.compare-metric strong em {
  margin: 0 5px;
  color: var(--faint);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.compare-row {
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.compare-row.is-changed {
  border-color: rgba(207, 66, 40, .3);
}

.compare-row-head {
  display: flex;
  min-height: 35px;
  padding: 7px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(248, 243, 239, .7);
  border-bottom: 1px solid var(--line);
}

.compare-row-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.compare-row-head span {
  padding: 2px 6px;
  color: var(--faint);
  background: #fff;
  border-radius: 999px;
  font-size: 7px;
}

.compare-row.is-changed .compare-row-head span {
  color: var(--forest-deep);
  background: var(--forest-soft);
}

.compare-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-cell {
  min-width: 0;
  padding: 13px 14px 15px;
}

.compare-cell + .compare-cell {
  border-left: 1px solid var(--line);
}

.compare-cell.is-before {
  background: #fbf8f5;
}

.compare-cell.is-after {
  background: #fff;
}

.compare-row.is-changed .compare-cell.is-after {
  box-shadow: inset 0 3px 0 rgba(207, 66, 40, .48);
}

.compare-cell-label {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.compare-text > * {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.compare-text > *:last-child {
  margin-bottom: 0;
}

.compare-text h5 {
  color: var(--ink);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
}

.compare-text blockquote {
  padding-left: 10px;
  color: var(--forest-deep);
  border-left: 2px solid var(--apricot);
  font-weight: 600;
}

.compare-empty-value {
  color: var(--faint) !important;
  font-family: var(--font) !important;
  font-size: 8.5px !important;
  font-style: normal;
}

.compare-empty {
  display: grid;
  min-height: 180px;
  padding: 24px;
  place-items: center;
  text-align: center;
  background: rgba(255, 255, 255, .7);
  border: 1px dashed var(--line-dark);
}

.compare-empty strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.compare-empty p {
  max-width: 380px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 11px 15px;
  color: #fff;
  background: var(--forest-deep);
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(77, 44, 31, .24);
  font-size: 11px;
  line-height: 1.56;
  animation: toastIn .22s var(--ease);
}

.toast.is-error {
  background: var(--danger);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes modelPulse {
  50% { opacity: .45; }
}

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

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

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

@keyframes imageButtonSweep {
  to { background-position: -220% 0, 0 0; }
}

@media (max-width: 1320px) {
  .publish-top {
    grid-template-columns: auto minmax(160px, 1fr) auto auto;
    gap: 15px;
  }

  .top-nav a {
    padding: 7px 9px;
  }

  .proof-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }

  .image-studio-panel {
    padding: 27px 24px;
  }

  .image-studio-heading h2 {
    font-size: clamp(20px, 2.2vw, 25px);
    line-height: 1.5;
  }

  .image-studio-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-target-list {
    max-height: 360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .publish-top {
    grid-template-columns: auto 1fr auto;
  }

  .top-title {
    display: none;
  }

  .model-indicator {
    justify-self: end;
  }

  .proof-actions .quiet-button {
    display: none;
  }

  .publish-layout {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .delivery-panel {
    position: static;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0 24px;
  }

  .delivery-heading {
    grid-column: 1 / -1;
  }

  .cover-slot {
    grid-row: span 2;
  }

  .delivery-files {
    margin-top: 0;
  }

  .publish-checklist,
  .paste-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .publish-top {
    position: relative;
    min-height: 0;
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-top: 3px;
  }

  .model-indicator {
    grid-column: 2;
    grid-row: 1;
  }

  .publish-layout {
    display: block;
  }

  .brief-column {
    position: static;
    max-height: none;
    padding: 24px 20px 31px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-column {
    min-height: 0;
  }

  .proof-bar {
    position: relative;
    top: 0;
    flex-wrap: wrap;
    padding: 15px 18px;
  }

  .result-tabs {
    position: relative;
    top: auto;
    padding: 8px 14px;
  }

  .result-panel {
    scroll-margin-top: 20px;
  }

  .result-tabs button {
    min-width: 132px;
  }

  .proof-actions {
    width: 100%;
  }

  .proof-actions .quiet-button {
    display: inline-flex;
  }

  .proof-actions .download-action {
    margin-left: auto;
  }

  .proof-grid {
    padding: 24px 14px 48px;
  }

  .process-panel {
    padding: 23px 20px;
  }

  .version-compare-dialog {
    width: calc(100vw - 20px);
    height: 92dvh;
  }

  .version-compare-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .paper {
    min-height: 630px;
  }
}

@media (max-width: 720px) {
  .image-studio-panel {
    padding: 23px 18px;
  }

  .image-section-head {
    display: block;
  }

  .image-target-head-actions {
    margin-top: 8px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .image-studio-workspace {
    grid-template-columns: 1fr;
  }

  .image-target-list {
    max-height: 310px;
    grid-template-columns: minmax(0, 1fr);
  }

  .image-studio-empty {
    min-height: 230px;
    padding: 29px 22px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
  }

  .image-empty-mark {
    width: 54px;
    height: 54px;
    font-size: 23px;
  }

  .image-studio-empty h3 {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .publish-brand small {
    display: none;
  }

  .publish-mark {
    width: 37px;
    height: 37px;
    font-size: 18px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .top-nav a {
    flex: 1;
    text-align: center;
  }

  .model-indicator span {
    display: none;
  }

  .model-indicator {
    width: 31px;
    height: 31px;
    padding: 0;
    justify-content: center;
  }

  .tone-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-grid label > span {
    align-items: flex-start;
    flex-direction: column;
  }

  .brief-heading {
    align-items: flex-start;
  }

  .brief-title-group {
    align-items: flex-start !important;
  }

  .stage-list {
    grid-template-columns: 1fr;
  }

  .stage-list button {
    min-height: 54px;
  }

  .result-tabs {
    padding: 7px 10px;
  }

  .result-tabs button {
    min-width: 122px;
  }

  .process-heading {
    display: block;
  }

  .process-state {
    margin-top: 11px;
  }

  .review-heading-actions {
    margin-top: 11px;
    justify-content: flex-start;
  }

  .review-heading-actions .process-state {
    margin-top: 0;
  }

  .version-compare-head {
    padding: 18px 17px 15px;
  }

  .version-compare-head h2 {
    font-size: 22px;
  }

  .version-compare-toolbar {
    display: grid;
    padding: 11px 16px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .version-compare-toolbar > label {
    min-width: 0;
  }

  .version-compare-toolbar > label.version-compare-only {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-self: start;
  }

  .version-compare-run {
    grid-column: 1 / -1;
    width: 100%;
  }

  .version-compare-summary {
    padding: 12px 17px;
  }

  .version-compare-content {
    padding: 17px 13px 28px;
  }

  .compare-metrics {
    grid-template-columns: 1fr;
  }

  .image-preset-grid,
  .image-actions {
    grid-template-columns: 1fr;
  }

  .image-model-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .image-target-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .image-target-thumb {
    width: 82px;
  }

  .article-image-edit {
    top: 8px;
    right: 8px;
    min-height: 27px;
    padding: 0 8px;
  }

  .article-media-wrap.is-section-visual .article-image-edit {
    top: 35px;
  }

  .compare-row-grid {
    grid-template-columns: 1fr;
  }

  .compare-cell + .compare-cell {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .topic-options {
    grid-template-columns: 1fr;
  }

  .topic-option {
    min-height: 0;
  }

  .selected-title-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-tags {
    justify-content: flex-start;
  }

  .title-option {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .title-copy-button {
    width: 100%;
  }

  .review-overview {
    grid-template-columns: 1fr;
  }

  .review-score {
    width: 82px;
    height: 82px;
  }

  .review-confirm-list,
  .review-form-grid {
    grid-template-columns: 1fr;
  }

  .review-workflow-card {
    padding: 17px 14px;
  }

  .review-workflow-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .review-workflow-actions button {
    width: 100%;
  }

  .review-reopen-button {
    grid-column: 1 / -1;
  }

  .source-snippet,
  .source-meta {
    margin-left: 0;
  }

  .proof-title {
    width: 100%;
  }

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

  .proof-actions #openCopyPage {
    display: none !important;
  }

  .proof-actions #copyTitle {
    display: inline-flex;
  }

  .proof-actions .primary-action,
  .proof-actions .download-action {
    margin: 0;
  }

  .paper {
    width: calc(100% - 6px);
    padding: 25px 20px 39px;
  }

  .registration-line,
  .paper-caption {
    width: calc(100% - 6px);
  }

  .empty-proof {
    min-height: 520px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .delivery-panel {
    display: block;
    padding: 17px;
  }

  .cover-slot {
    max-width: 240px;
  }

  .delivery-files {
    margin-top: 18px;
  }

  .publish-checklist,
  .paste-note {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
