@font-face {
  font-family: Poppins;
  src: url("./poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("./poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  color: #2b2b2b;
  background: #e7d8c9;
  --ink: #2b2b2b;
  --line: #b5a694;
  --muted: #514b45;
  --paper: #e7d8c9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 14px;
  color: inherit;
  background: transparent;
}
button {
  font-weight: 600;
  cursor: pointer;
}
button:hover,
a:hover {
  background: #2b2b2b0a;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
input,
select,
textarea {
  width: 100%;
}
textarea {
  min-height: 128px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
  accent-color: var(--ink);
}
label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  margin: 0 0 8px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.55px;
  margin: 0 0 12px;
}
h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
p {
  line-height: 1.55;
  margin: 10px 0;
}
small {
  font-size: 13px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #2b2b2b;
  outline-offset: 4px;
}
h1:focus {
  outline: none;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: var(--paper);
  z-index: 10;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  min-height: 70px;
  border-bottom: 1px solid #9c7553;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(16px, calc((100% - 1120px) / 2));
  gap: 16px;
}
.brand {
  display: flex;
  flex-shrink: 0;
}
.brand img {
  object-fit: contain;
  max-width: 100%;
  height: 44px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-help {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}
.header-help img {
  width: 20px;
  height: 20px;
}
#account {
  position: relative;
}
#account > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
}
#account > summary::-webkit-details-marker {
  display: none;
}
.account-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 52px;
  min-width: 250px;
  background: var(--paper);
  padding: 16px;
  border: 1px solid var(--ink);
}
.account-menu button,
.account-menu a {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.section-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 0 max(8px, calc((100% - 1120px) / 2));
  min-height: 70px;
}
.section-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 12px;
  font-weight: 400;
  min-width: 0;
  max-width: 250px;
}
.section-nav button[aria-current="page"] {
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.section-nav img {
  width: 23px;
  height: 23px;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 24px 24px 0;
}
.detail-heading {
  margin: 0 0 24px;
}
.detail-heading > p {
  margin: 0;
  font-size: 16px;
}
#status {
  font-size: 14px;
  line-height: 1.6;
}
#status[data-tone="quiet"] {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
#status[data-tone="error"],
.recovery {
  border: 2px solid var(--ink);
  padding: 16px;
  margin-bottom: 20px;
}
.recovery button {
  margin: 8px 12px 0 0;
}
#relationship-picker {
  max-width: 560px;
  margin-bottom: 24px;
}
.partnership-progress {
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
  margin: 0 0 26px;
}
.partnership-progress > summary {
  font-size: 17px;
  font-weight: 600;
  padding: 0 0 12px;
  min-height: 40px;
  border: 0;
}
.sequence {
  padding: 0;
  margin: 0;
  list-style: none;
}
.sequence li {
  position: relative;
}
.sequence li:not(:last-child):after {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--line);
  left: 11px;
  top: 38px;
  bottom: -8px;
}
.sequence button {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  text-align: left;
  border: 0;
  width: 100%;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  min-height: 56px;
}
.sequence img {
  grid-row: span 2;
  align-self: start;
  margin-top: 1px;
}
.sequence small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}
.sequence [data-state="current"] button {
  font-weight: 600;
}
.sequence [data-state="pending"] button {
  color: var(--muted);
}
.content-lead {
  padding: 0 0 18px;
}
.content-lead p {
  margin: 10px 0 14px;
}
.content-lead > button {
  width: 100%;
  margin: 6px 0 0;
}
.content-lead .record-meta,
.record-meta,
.field-help,
.notice {
  font-size: 13px;
  color: var(--muted);
}
.content-lead .due-date {
  margin: 9px 0 0;
  font-size: 13px;
}
.brief-details,
.composer,
.submission-history {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  min-height: 48px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
}
.content-record {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.content-record p,
dd {
  white-space: pre-wrap;
}
.content-record > button {
  margin: 8px 12px 0 0;
}
.content-record:last-child {
  border-bottom: 0;
}
dt {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}
dd {
  margin: 4px 0 16px;
  overflow-wrap: anywhere;
}
.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.content-form {
  margin: 12px 0 20px;
}
.content-form fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
.content-form legend {
  font-weight: 600;
}
.check-label {
  display: flex;
  gap: 12px;
  align-items: start;
  font-weight: 400;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.media-item img,
.media-item video {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.media-item p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.media-item label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.fee-amount {
  font-size: 23px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.state-label {
  font-size: 14px;
  font-weight: 600;
}
.attention-list {
  padding: 14px 0 14px 20px;
  border-block: 1px solid var(--line);
  font-size: 14px;
}
.queue {
  padding: 0;
  list-style: none;
}
.queue-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.queue-name {
  font-weight: 600;
}
.queue-work {
  margin: 8px 0;
}
.queue-item button {
  margin-top: 8px;
}
.empty-state {
  padding: 20px 0;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 24px 0;
  font-size: 12px;
  color: var(--muted);
}
.preview-controls {
  max-width: 1120px;
  padding: 16px 24px;
  margin: auto;
  font:
    12px/1.6 Poppins,
    Arial,
    sans-serif;
  border-top: 1px solid var(--line);
}
.preview-controls a {
  display: inline-block;
  margin: 8px 16px 0 0;
  min-height: 44px;
  padding: 12px 0;
}
@media (min-width: 700px) {
  main {
    padding-top: 40px;
  }
  .detail-heading {
    margin-bottom: 32px;
  }
  .section-nav button {
    flex-direction: row;
    gap: 10px;
    font-size: 15px;
  }
  .content-lead > button {
    max-width: 360px;
  }
  .partnership-progress {
    max-width: 740px;
  }
  .content-actions button {
    min-width: 150px;
  }
}
@media (max-width: 420px) {
  main {
    padding: 22px 16px 0;
  }
  .site-header {
    gap: 8px;
  }
  .brand img {
    width: 166px;
  }
  .header-tools {
    gap: 8px;
  }
  .content-actions {
    flex-direction: column;
  }
  .content-actions button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.partnership-progress {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.sequence button {
  font-weight: 600;
}
.sequence small {
  font-weight: 400;
}
.content-lead .due-date {
  text-align: center;
}
.draft-tools {
  margin-top: 16px;
}
.draft-tools button {
  font-size: 13px;
  font-weight: 400;
}
.help-answers {
  margin-top: 16px;
}
.help-answers details {
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .content-lead .due-date {
    max-width: 360px;
  }
}
.progress-current {
  display: block;
  margin: 7px 0 0 16px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.form-error {
  border: 2px solid var(--ink);
  padding: 12px;
  margin: 0 0 20px;
  scroll-margin-block: 24px;
}
.form-error a {
  display: block;
  padding: 8px 0;
  min-height: 44px;
}
.form-error:focus {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
[aria-invalid="true"] {
  border: 2px solid var(--ink);
}
.revision-notes {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.revision-notes h3 {
  font-size: 16px;
}
.revision-notes p {
  font-size: 14px;
}
.help-group > summary {
  font-size: 17px;
}
.help-group > details {
  margin-left: 16px;
}
.media-item label {
  font-size: 13px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

/* Combined design: action-first creator home, queue-first staff home and
   media-first content review. Flat parchment, charcoal primary actions,
   bronze kept to thin rules. */
:root {
  --bronze: #9c7553;
  --selected: #dccbb9;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#panel button:not(.quiet),
#recover {
  background: var(--ink);
  color: var(--paper);
}
#panel button:not(.quiet):hover,
#recover:hover {
  background: #45403a;
}
#panel p,
#panel dd,
#panel li {
  max-width: 70ch;
}
summary {
  font-size: 16px;
}
.sequence button {
  font-size: 16px;
}
#record-title:focus {
  outline: none;
}
.record-heading {
  margin: 0 0 24px;
}
.record-heading h2 {
  font-size: 26px;
  margin: 0 0 4px;
}
.record-heading p {
  margin: 0;
  color: var(--muted);
}

/* Shared pieces of the overview. */
.next-step h2,
.next-step h3 {
  margin-top: 0;
}
.next-step .content-actions {
  margin: 20px 0 0;
}
.latest-feedback {
  border-top: 1px solid var(--bronze);
  border-bottom: 1px solid var(--line);
  padding: 16px 0 12px;
  margin: 20px 0 0;
}
.latest-feedback h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.latest-feedback p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.latest-draft {
  margin-top: 36px;
}
.latest-draft h3 {
  margin-bottom: 4px;
}
.latest-draft .record-meta {
  margin: 0;
}
.latest-draft .media-grid {
  grid-template-columns: minmax(0, 280px);
}
.overview-links {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.deadlines {
  margin: 28px 0 0;
}
.deadlines h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.deadlines .attention-list {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.overview-aside .partnership-progress,
.record-detail .partnership-progress {
  margin: 0;
  max-width: none;
}
.record-detail .partnership-progress {
  margin-top: 32px;
}
.staff-notes {
  margin-top: 20px;
  border-block: 1px solid var(--line);
  padding-bottom: 12px;
}
.staff-notes p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Staff queue. */
.queue-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: end;
  justify-content: space-between;
}
.queue-filter {
  display: flex;
  flex-wrap: wrap;
}
.queue-filter button + button {
  margin-left: -1px;
}
.queue-filter button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.queue-search {
  flex: 1 1 240px;
  max-width: 360px;
}
.queue-search label {
  margin: 0 0 6px;
  font-size: 14px;
}
#queue-count {
  margin: 16px 0 0;
}
.queue {
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
}
.queue-item {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.queue-item.empty-state {
  padding: 20px 0;
}
.queue-item .queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 16px 12px;
  border: 2px solid transparent;
  text-align: left;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.queue-row[aria-current="true"] {
  background: var(--selected);
  border-color: var(--ink);
}
.queue-row .queue-name {
  font-weight: 600;
}
.queue-row .queue-work {
  margin: 0;
}
.queue-row .queue-due {
  color: var(--muted);
  font-size: 14px;
}
.back-link {
  margin: 0 0 20px;
}

/* Content review: the latest draft's package beside its feedback and
   decision. Media, caption, decision in that order when stacked. */
.review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.review-media h2 {
  margin-bottom: 4px;
}
.review-media > .record-meta {
  margin: 0 0 12px;
}
.review-media .media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.review-media .media-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}
.review-media .media-item img,
.review-media .media-item video {
  max-height: 520px;
  object-position: left top;
}
.review-media dd,
.review-side dd {
  font-size: 16px;
  line-height: 1.55;
}
.review-side {
  padding: 0;
}
.review-side > details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.content-lead .due-date {
  text-align: left;
  font-size: 14px;
}
.earlier-drafts {
  border-block: 1px solid var(--line);
  margin: 32px 0 12px;
}
.earlier-drafts .submission-history {
  margin-left: 16px;
}
.earlier-drafts .submission-history:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

@media (min-width: 700px) {
  #panel > :not(.overview):not(.review):not(.record-detail):not(.progress-strip) {
    max-width: 740px;
  }
  .queue-item .queue-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.9fr);
    gap: 20px;
    align-items: start;
  }
}
@media (min-width: 900px) {
  .home[data-layout="desk"] {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .home[data-layout="desk"] #work {
    border-left: 1px solid var(--line);
    padding-left: 40px;
  }
  .back-link {
    display: none;
  }
  .overview {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .overview-aside {
    border-left: 1px solid var(--line);
    padding-left: 32px;
  }
  .overview-aside .partnership-progress {
    border-top: 0;
    padding-top: 0;
  }
  .review {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}
@media (max-width: 899px) {
  /* One view at a time on small screens: the queue, or the selected record. */
  .home[data-layout="desk"][data-view="queue"] #work,
  .home[data-layout="desk"][data-view="detail"] #queue-section {
    display: none;
  }
  .overview-aside {
    margin-top: 36px;
  }
}
@media (max-width: 699px) {
  /* Both filters share one row; the label wraps inside its button if needed. */
  .queue-filter {
    width: 100%;
    flex-wrap: nowrap;
  }
  .queue-filter button {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px;
    line-height: 1.3;
  }
  .queue-search {
    max-width: none;
  }
}

/* Corrections after the independent assessments. */
.media-open {
  display: block;
  min-height: 48px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.review-media .media-grid,
.review-media .media-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}
.draft-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  margin: 0 0 8px;
}
.jump-link {
  display: inline-block;
  min-height: 48px;
  padding: 12px 0;
}
#draft-package:focus,
#draft-review:focus,
#draft-feedback:focus {
  outline: none;
}
#draft-package,
#draft-review,
#draft-feedback {
  scroll-margin-top: 16px;
}
.queue .empty-state p {
  margin: 0 0 12px;
}
/* Selected record not in the current queue list: say so, offer the way back. */
.record-outside {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.record-heading .record-outside p {
  margin: 0 0 10px;
  color: var(--ink);
}
/* Unsent text put back after a reload: marked on the form it belongs to. */
.restored-cue {
  margin: 0 0 12px;
  padding: 10px 0;
  border-block: 1px solid var(--bronze);
  font-weight: 600;
}
/* Review scope, stated once above the decision. */
.review-scope {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.review-side h2 {
  margin-bottom: 8px;
}
.draft-feedback dl,
.draft-feedback dd {
  margin-bottom: 8px;
}
.queue-head {
  display: none;
}

/* Content progress: always visible, two columns when narrow, one row when
   wide. Same steps and controls as the full sequence. */
.progress-strip {
  padding: 12px 0;
  margin: 0 0 24px;
}
.progress-strip .progress-current {
  margin: 0 0 4px;
  font-size: 14px;
}
.progress-strip .sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.progress-strip .sequence li:after {
  display: none;
}
.progress-strip .sequence button {
  min-height: 48px;
  padding: 4px 0;
}

/* Staff record column: tighter rhythm, same type sizes. */
.record-heading {
  margin-bottom: 16px;
}
.next-step .record-meta {
  margin: 12px 0 0;
}
.record-detail .partnership-progress {
  margin-top: 20px;
  padding: 12px 0;
}
.record-detail .partnership-progress h2 {
  font-size: 20px;
  margin-bottom: 4px;
}
.record-detail .sequence button {
  min-height: 48px;
  padding: 4px 0;
}
.record-detail .sequence li:not(:last-child):after {
  top: 32px;
  bottom: -4px;
}
.record-detail .deadlines {
  margin-top: 16px;
}
.record-detail .overview-links {
  margin-top: 16px;
  padding-top: 16px;
}
.record-detail .staff-notes {
  margin-top: 16px;
}
.overview > .overview-links {
  margin-top: 28px;
}

@media (min-width: 700px) {
  .review-media .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .queue-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.9fr);
    gap: 20px;
    margin: 12px 0 0;
    padding: 0 14px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
  }
  .queue-head + .queue {
    margin-top: 0;
  }
}
@media (min-width: 900px) {
  .overview-aside {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .overview > .overview-links {
    grid-column: 1;
    grid-row: 2;
  }
  #panel > .progress-strip {
    max-width: none;
  }
  .progress-strip .sequence {
    display: flex;
    gap: 24px;
  }
  .progress-strip .sequence li {
    flex: 1 1 0;
    min-width: 0;
  }
}
/* Workflow follow-up uses the existing type, parchment and square controls. */
.open-items, .fee-status, .payment-schedule { margin-block: 24px; min-width: 0; }
.open-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.open-list button { display: grid; gap: 4px; width: 100%; text-align: start; white-space: normal; overflow-wrap: anywhere; }
.open-list small { font-size: 14px; font-weight: 400; color: var(--muted); }
.fee-status li { margin-block: 8px; overflow-wrap: anywhere; }
