.section-copy { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
input,textarea,select { font-weight: 400; }
.queue-groups { display: grid; gap: 20px; }
.queue-room { border: 1px solid #cfdcd7; border-radius: 18px; background: #eaf1ee; padding: 14px; }
.queue-room-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 3px 5px 13px; }
.room-pending { flex: none; border-radius: 100px; padding: 6px 10px; background: #fff; color: var(--brand-dark); font-size: .78rem; font-weight: 800; box-shadow: 0 1px 5px rgba(17,47,38,.08); }
.queue-list { display: grid; gap: 10px; }
.queue-card { margin: 0; border-left: 4px solid var(--brand); }
.attachment-meta { margin: 0 0 15px; color: var(--muted); font-size: .88rem; }
.queue-meta time { margin-left: auto; font-size: .8rem; }
.alias-targets { display: grid; gap: 10px; margin: 12px 0 16px; }
.alias-target { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1.2fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid #d8e2de; border-radius: 13px; background: #f7faf9; }
.alias-target span,.alias-target small { display: block; }
.alias-target small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.alias-target input { margin: 0; min-width: 0; }
.review-dialog { width: min(820px,calc(100% - 24px)); }
.review-head { display: grid; gap: 18px; margin-bottom: 24px; }
.review-head .subtle { margin: 5px 0 0; }
.review-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.review-step { position: relative; display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 750; text-align: center; }
.review-step::before { content: ""; position: absolute; z-index: 0; top: 14px; right: 50%; width: calc(100% + 6px); height: 2px; background: #d9e3df; }
.review-step:first-child::before { display: none; }
.review-step span { z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #cbd8d3; border-radius: 50%; background: #fff; color: #596b64; }
.review-step.current { color: var(--brand-dark); }
.review-step.current span { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px #e5f3ed; }
.review-step.complete span { border-color: var(--brand); background: #e5f3ed; color: var(--brand-dark); }
.review-step.complete::before,.review-step.current::before { background: var(--brand); }
.review-error,.modal-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #e2aeb2; border-radius: 12px; background: #fff0f1; color: #7f2028; line-height: 1.4; }
.modal-notice { position: sticky; z-index: 4; top: 0; margin: 0; border-radius: 0; }
.review-error[hidden],.modal-notice[hidden] { display: none; }
.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.stage-copy { margin: 6px 0 18px; line-height: 1.45; }
.review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-fields label { min-width: 0; }
.attachment-review { margin: 20px 0; padding: 16px; border: 1px solid #cbdad4; border-radius: 15px; background: #f7faf9; }
.attachment-review>header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.attachment-review>header p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.attachment-symbol { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #e1f1ea; color: var(--brand-dark); font-size: 1.3rem; font-weight: 900; }
.attachment-facts { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) auto; gap: 10px; margin: 0 0 14px; }
.attachment-facts div { min-width: 0; padding: 10px; border-radius: 10px; background: #fff; }
.attachment-facts dt { color: var(--muted); font-size: .69rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.attachment-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .82rem; font-weight: 700; }
.attachment-download { display: flex; width: 100%; gap: 2px; flex-direction: column; }
.attachment-download small { font-size: .68rem; font-weight: 550; opacity: .75; }
.attachment-privacy { margin: 8px 2px 16px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: .73rem; font-weight: 500; }
.metadata-ack { display: flex; align-items: flex-start; gap: 11px; margin: 2px 0 0; padding: 13px; border: 1px solid #dfc57f; border-radius: 12px; background: #fff8e7; }
.metadata-ack input { flex: none; width: 22px; min-height: 22px; margin: 1px 0 0; }
.metadata-ack small { display: block; margin-top: 4px; color: #705a27; font-weight: 500; line-height: 1.4; }
.confirmation-attachment { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 13px; border: 1px solid #cbdad4; border-radius: 13px; background: #f7faf9; }
.confirmation-attachment small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
fieldset { margin: 4px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
legend { padding: 0 6px; font-size: .9rem; font-weight: 800; }
.recipient-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; }
.reference-list { display: grid; gap: 10px; }
.reference-row { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(0,1.3fr); align-items: center; gap: 12px; margin: 0; padding: 13px; border: 1px solid #d8e2de; border-radius: 13px; background: #f7faf9; }
.reference-row>span { overflow-wrap: anywhere; font-weight: 800; color: var(--brand-dark); }
.reference-row small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.reference-row select { margin: 0; min-width: 0; }
.safe-state,.warning-state { padding: 12px; border-radius: 12px; font-size: .9rem; }
.safe-state { background: #e8f6ef; color: #175b42; }
.warning-state { background: #fff4dc; color: #704c00; }
.safe-state.compact { margin: 12px 0 0; }
.stage-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.review-count { flex: none; padding: 5px 9px; border-radius: 100px; background: #edf3f0; color: #52655e; font-size: .75rem; font-weight: 800; }
.recipient-versions { display: grid; gap: 10px; }
.recipient-card { overflow: hidden; border: 1px solid #cfddd7; border-radius: 14px; background: #f9fbfa; }
.recipient-card.has-warning { border-color: #e5c272; }
.recipient-card-toggle { width: 100%; min-height: 64px; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.recipient-card-toggle>span:first-child { min-width: 0; }
.recipient-card-toggle strong,.recipient-card-toggle small { display: block; overflow-wrap: anywhere; }
.recipient-card-toggle small { margin-top: 3px; color: var(--muted); font-size: .78rem; font-weight: 550; }
.recipient-badges { display: flex; flex: none; align-items: center; gap: 7px; }
.recipient-badges b { width: 18px; color: var(--brand); font-size: 1.25rem; text-align: center; }
.ready-badge,.edited-badge,.warning-badge { display: inline-flex; padding: 4px 7px; border-radius: 100px; font-size: .7rem; font-style: normal; font-weight: 800; }
.ready-badge { background: #e4f3ec; color: #176247; }
.edited-badge { background: #e9eff8; color: #33567f; }
.warning-badge { background: #fff0c9; color: #6e4900; }
.recipient-card-body { padding: 4px 14px 14px; border-top: 1px solid #e0e8e5; background: #fff; }
.recipient-card-body label { margin: 13px 0 8px; }
.recipient-card-body textarea { min-height: 138px; }
.version-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: .76rem; }
.text-button { min-height: 36px; padding: 5px 7px; background: transparent; color: var(--brand); font-size: .78rem; }
.text-button:disabled { opacity: .45; cursor: default; }
.warning-state strong { display: block; line-height: 1.35; }
.warning-state p { max-height: 118px; margin: 8px 0 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #57451c; line-height: 1.5; }
.warning-state mark { border-radius: 3px; padding: 1px 2px; background: #ffd56f; color: #352400; font-weight: 800; }
.confirmation-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.confirmation-summary div { padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf9; text-align: center; }
.confirmation-summary strong,.confirmation-summary span { display: block; }
.confirmation-summary strong { color: var(--brand-dark); font-size: 1.45rem; }
.confirmation-summary span { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.confirmation-list { margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 13px; list-style: none; }
.confirmation-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; }
.confirmation-list li+li { border-top: 1px solid var(--line); }
.confirmation-list small { display: block; margin-top: 3px; color: var(--muted); }
.warning-ack { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 14px; border: 1px solid #e5c272; border-radius: 13px; background: #fff8e8; }
.warning-ack input { flex: none; width: 22px; min-height: 22px; margin: 1px 0 0; }
.warning-ack small { display: block; margin-top: 4px; color: #705a27; font-weight: 500; line-height: 1.4; }
.dialog-footer.review-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; }
.review-footer .review-next { min-width: 190px; }
@media (max-width: 700px) {
  .review-dialog { width: 100%; }
  .queue-room { padding: 10px; border-radius: 15px; }
  .queue-room-head { padding: 3px 3px 10px; }
  .queue-meta time { width: 100%; margin-left: 0; }
  .queue-card .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .queue-card .actions button { width: 100%; }
  .alias-target { grid-template-columns: 1fr; gap: 8px; }
  .review-head { gap: 16px; margin-bottom: 20px; }
  .review-step { font-size: .64rem; }
  .review-step span { width: 28px; height: 28px; }
  .review-step::before { top: 13px; }
  .review-fields,.recipient-checks { grid-template-columns: 1fr; }
  .attachment-review { margin: 18px -2px; padding: 13px; }
  .attachment-facts { grid-template-columns: 1fr 1fr; }
  .attachment-facts div:first-child { grid-column: 1/-1; }
  .reference-row { grid-template-columns: 1fr; gap: 8px; }
  .stage-title { align-items: center; }
  .recipient-card-toggle { padding: 11px 12px; }
  .recipient-card-body { padding: 3px 12px 12px; }
  .recipient-badges .edited-badge { display: none; }
  .confirmation-summary div { padding: 11px 4px; }
  .confirmation-summary strong { font-size: 1.25rem; }
  .dialog-footer.review-footer { grid-template-columns: 1fr 1fr; padding-top: 10px; }
  .review-footer button { width: 100%; }
  .review-footer .review-next { grid-column: 1/-1; grid-row: 1; min-width: 0; }
  .review-footer .review-reject { grid-column: 1; grid-row: 2; }
  .review-footer .ghost { grid-column: 2; grid-row: 2; }
}
