/* Local Operate surface: measured typography, document-like forms, task-first order room. */
:root {
  color-scheme:dark;
  --bg: #221d18;
  --surface: #1b1713;
  --paper: #1b1713;
  --ink: #f2ebe3;
  --muted: #aba095;
  --paper-muted: #aba095;
  --accent-ink: #f2ebe3;
  --accent: #2a241e;
  --brand: #a86a36;
  --field: #221d18;
  --soft: #221d18;
  --line: #3a322a;
  --radius: 6px;
  --space-section: 32px;
  --text-body: 15px;
  --text-label: 13px;
  --text-meta: 12px;
}
body { color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { border-radius: var(--radius); }
p { text-wrap: pretty; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline-color: #a86a36; outline-offset: 3px; }
button, a { transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out; }
.primary { background: var(--brand); color: #1a120b; font-size: 14px; min-height: 44px; padding: 10px 20px; }
.primary:hover { background: #a86a36; opacity: 1; }
.site-nav { height: 60px; border-bottom: 1px solid var(--line); }
.brand { font-size: 20px; font-weight: 600; letter-spacing: -.02em; gap: 9px; }
.brand svg { width: 25px; height: 25px; color: var(--iuu-brand-text,var(--brand)); stroke-width: 1.6; }
.nav-right { font-size: 13px; gap: 28px; }
.nav-right > a { color: var(--ink); }
.account { color: var(--muted); }

/* One document header, one 60/40 work area. */
.document-head { padding: 16px 0; align-items: center; }
.order-title { font-size: 25px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.parties { margin-top: 7px; font-size: 13px; color: var(--muted); }
.document-meta { font-size: 12px; line-height: 1.7; gap: 2px; }
.split-workspace { gap: 28px; }
.workbench { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.progress-pane { border: 0; border-radius: 0; background: transparent; scrollbar-color: #3a322a transparent; }
.order-preview .task h1, .order-preview .receipt,
.order-preview .workbench, .order-preview .journey li { animation: none; }
.workbench-head { background: #1b1713; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; padding-inline: 24px; min-height: 58px; gap: 12px; }
.workbench > .reading, .composer, .closed-note { border-radius: 0 0 11px 11px; }
.tabs { gap: 22px; }
.tabs button { font-size: 14px; min-height: 57px; padding-block: 16px; border-radius: 0; }
.tabs button[aria-selected=true] { color: var(--iuu-brand-text,var(--brand)); }
.tabs button[aria-selected=true]::after { height: 2px; bottom: -1px; background: var(--brand); }
.care-status { gap: 6px; color: var(--muted); }
#care-label { font-size: 11px; }
#care-clock { font-size: 13px; font-weight: 600; color: var(--iuu-brand-text,var(--brand)); letter-spacing: -.01em; }
.care-info { border: 1px solid #4d4238; background: transparent; color: #aba095; width: 18px; min-height: 18px; height: 18px; line-height: 16px; font-size: 11px; border-radius: 50%; }
.care-note { background: #1b1713; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,0.234); }
.arbitration-button { color: var(--muted); font-size: 12px; }
.arbitration-button:hover { color: var(--iuu-brand-text,var(--brand)); }

/* A quiet money line leads directly to the task; the full history sits below it. */
.progress-pane > .receipt { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 20px; min-height: 0; padding: 4px 0 16px; border-bottom: 1px solid var(--line); background: transparent; }
.receipt-top { grid-column: 1; min-width: 0; gap: 8px; padding-top: 4px; }
.receipt h2 { font-size: 13px; font-weight: 400; color: var(--muted); }
.receipt-link { width: 30px; min-height: 28px; margin: -5px 0; color: var(--iuu-brand-text,var(--brand)); }
.receipt-link svg { width: 18px; height: 18px; }
.receipt-link:hover { transform: none; }
.balance { grid-column: 2; grid-row: 1; gap: 6px; margin: 0; white-space: nowrap; }
.balance > span:first-child { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.balance .unit { color: var(--muted); font-size: 12px; }
.money-destination { grid-column: 1 / -1; display: block; min-width: 0; font-size: 12px; line-height: 1.8; margin: 0; }
.money-destination > span { max-width: none; }
.money-destination .receipt-contract { display: flex; gap: 12px; margin-top: 4px; color: var(--muted); align-items: baseline; }
.receipt-contract > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-contract button { color: var(--iuu-brand-text,var(--brand)); flex: none; min-height: 28px; font-size: 12px; white-space: nowrap; }
.current-task{ padding:20px 0; border-bottom: 1px solid var(--line); }
.current-task .task { padding: 0; }
.task h1 { max-width: 15em; font-size: 28px; line-height: 1.45; letter-spacing: -.025em; font-weight: 600; }
.task > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 8px; max-width: 36em; }
.task-controls { margin-top: 16px; gap: 20px; }
.task-controls .primary { min-height: 46px; font-size: 14px; padding: 11px 22px; }
.task-controls .primary.is-reference { padding-inline: 0; min-height: 36px; background: transparent; color: var(--iuu-brand-text,var(--brand)); font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.task-controls .primary.is-reference:hover { color: #d8cec3; background: transparent; }
.task-controls .text-link { color: var(--muted); font-size: 13px; }
.task .deadline { font-size: 12px; color: var(--iuu-brand-text,var(--brand)); margin-top: 14px; }
.process{ padding:20px 0 12px; flex: none; }
.process-head { margin-bottom: 12px; }
.process-head h2, .process-head > span { color: var(--muted); font-size: 12px; font-weight: 400; }
.journey li { padding-left: 28px; min-height: 38px; }
.journey li::before { background: var(--line); }
.journey li:not(:last-child)::before { top: 24px; bottom: -4px; }
.stage-label { min-height: 38px; font-size: 13px; line-height: 22px; }
.stage-label > svg { top: 11px; width: 15px; height: 15px; background: var(--bg); }
.stage-label small { font-size: 11px; }
.journey .is-complete .stage-label > svg { color: #aba095; }
.journey .is-complete .stage-label > span { color: #aba095; }
.is-complete > .stage-label small { display: none; }
.is-future > .stage-label { opacity: .6; }
.journey .is-current .stage-label > span,
.journey .is-current .stage-label > small { color: var(--iuu-brand-text,var(--brand)); font-weight: 600; }
.journey .is-current:not(.is-complete) .stage-label > svg { color: var(--iuu-brand-text,var(--brand)); fill: var(--iuu-brand-text,var(--brand)); }
.stage-label .stage-chevron { color: #aba095; }
.stage-label > svg.stage-chevron { margin-left: auto; }
.stage-label:hover:not(:disabled) > span { color: var(--iuu-brand-text,var(--brand)); }
.stage-record { background: #1b1713; border-radius: 8px; padding: 16px; margin-block: 4px 12px; }
.stage-record .address-record { background: var(--soft); }
.stage-record .sample-marker { color: var(--muted); }

/* Conversation text has a generous reading measure, metadata remains secondary. */
.messages { padding: 20px; }
.system-record { display: block; background: transparent; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.system-record > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 7px; }
.system-record h3 { font-size: 14px; font-weight: 600; line-height: 1.7; }
.system-record p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.record-origin, .record-status { font-size: 11px; }
.bubble { padding: 12px 16px; font-size: var(--text-body); line-height: 1.85; background: #221d18; border-radius: 2px 10px 10px; max-width: 88%; }
.message.own .bubble { background: #2a241e; border-radius: 10px 2px 10px 10px; }
.message{ margin-bottom:20px; }
.message-meta { font-size: 12px; margin-bottom: 7px; gap: 7px; }
.delivery-file { border: 1px solid var(--line); background: #1b1713; margin-top: 12px; padding: 12px; gap: 12px; }
.delivery-file:hover { transform: none; }
.delivery-file > svg { width: 22px; height: 22px; }
.delivery-file strong { font-size: 13px; }
.delivery-file small { font-size: 12px; }
.composer { background: #1b1713; border-top: 1px solid var(--line); padding: 16px 20px; gap: 12px; }
.composer textarea { font-size: var(--text-body); padding: 9px 0; line-height: 1.75; }
.send { background: var(--brand); color: #1a120b; border-radius: 8px; width: 42px; height: 42px; }
.send svg { width: 21px; height: 21px; }
.attach { width: 32px; color: #aba095; }
.conversation-action{ background: #221d18; border: 1px solid #3a322a; border-radius: 12px; padding:20px; }
.conversation-action h3 { font-size: 22px; font-weight: 600; }
.conversation-action > p, .conversation-action form > p { font-size: 14px; line-height: 1.85; }
.conversation-action form > .primary, .record-actions .primary { background: var(--brand); color: #1a120b; }
.conversation-action input[type=text], .conversation-action textarea { border: 1px solid #4d4238; background: #1b1713; }
.refund-record { background: #221d18; border: 1px solid #3a322a; border-radius: 12px; }
.payment-record{ background: #221d18; border: 1px solid var(--line); border-radius: 12px; padding:20px; }
.payment-record h3 { font-size: 18px; }
.payment-record .record-fields { gap: 18px; margin-block: 20px; }
.payment-record .record-fields dd { font-size: 15px; overflow-wrap: anywhere; }
.payment-record .sample-marker { color: var(--muted); font-size: 12px; }
.payment-record .payment-warning { color: #e59a86; }
.reading{ padding:24px; }
.reading h2{ font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom:16px; }
.reading p, .reading dd { font-size: var(--text-body); line-height: 1.85; }
.reading .terms-prose, .inline-rules .terms-prose { font-size: var(--text-body); line-height: 1.95; }
.inline-rules { background: #1b1713; border: 0; border-radius: 0; padding: 0; }
.inline-rules h2 { font-size: 24px; font-weight: 600; }
.inline-rules-actions .primary { background: var(--brand); color: #1a120b; }
.execution-rules { background: transparent; border-top: 1px solid var(--line); padding-top: 20px; border-radius: 0; }
.protocol-consent { font-size: 13px; line-height: 1.85; }
.funds-panel .funds-ledger > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.funds-panel .funds-ledger > .funds-amount { display: flex; padding: 0 0 22px; }
.funds-ledger .funds-amount dd { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.funds-ledger dd { font-size: var(--text-body); margin: 0; }
.funds-ledger dt, .funds-ledger dd > small { font-size: 12px; line-height: 1.85; }
.funds-address-line { gap: 16px; }
.funds-address-line > span { color: #d8cec3; font-size: 12px; line-height: 1.85; letter-spacing: .005em; }
.funds-panel .funds-settlement { background: #221d18; padding: 22px 24px; margin-top: 24px; border-radius: 8px; }
.funds-settlement .funds-countdown { font-size: 27px; letter-spacing: -.025em; color: var(--iuu-brand-text,var(--brand)); }
.funds-settlement p { font-size: 12px; }
.funds-panel .funds-demo-note { font-size: 11px; }
.preview-controls { font-size: 11px; color: #aba095; padding-block: 12px; }
.preview-controls > div { gap: 16px; }
.preview-controls select { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.preview-controls #simulation-event { background: var(--brand); color: #1a120b; border-radius: 8px; font-size: 12px; }
#toast { background: #a86a36; color: #1a120b; }
dialog { border: 1px solid var(--line); border-radius: 12px; background: #1b1713; box-shadow: 0 18px 70px rgba(0,0,0,0.417); }
dialog::backdrop { background: rgba(168,106,54,0.196); }

/* Creation: a document with a label rail, not a stack of unrelated cards. */
.create-preview .create-nav, .create-preview .create-main, .create-preview .create-footer { max-width: 1200px; }
.create-preview .create-nav { min-height: 68px; border-bottom: 1px solid var(--line); }
.create-preview .create-preview-badge { font-size: 12px; color: var(--muted); }
.create-preview .create-preview-badge > span { width: 5px; height: 5px; background: var(--brand); }
.create-preview .create-heading{ max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 32px; padding:20px 0 16px; }
.create-preview .create-heading h1 { font-size: 36px; font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.create-preview .create-intro { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.create-preview .create-participants { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 5px 16px; align-items: center; margin: 0 0 2px; font-size: 12px; color: var(--muted); }
.create-preview .create-participants > span { display: grid; gap: 5px; }
.create-preview .create-participants strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.create-preview .create-participants svg { width: 18px; height: 18px; }
.create-preview .create-participants small { grid-column: 1 / -1; text-align: right; font-size: 11px; margin-top: 3px; }
.create-preview .create-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.create-preview .create-form { padding: 0; background: transparent; border: 0; border-radius: 0; }
.create-preview .create-section{ display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 28px; padding-block:16px; border-top: 1px solid var(--line); }
.create-preview .create-section + .create-section{ margin: 0; padding-top:16px; }
.create-preview .create-section-heading { display: block; margin: 0; padding-top: 2px; }
.create-preview .create-section-heading h2 { font-size: 15px; font-weight: 600; line-height: 1.6; letter-spacing: 0; }
.create-preview .create-section-body { min-width: 0; }
.create-preview .create-basics{ display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: start; margin-bottom:12px; }
.create-preview .create-basics > .create-field + .create-field { margin-top: 0; }
.create-preview .create-field > label, .create-preview .create-mode-field legend { font-size: 13px; font-weight: 400; margin-bottom: 9px; color: #d8cec3; }
.create-preview .create-mode-field legend > span, .create-preview .create-optional { color: var(--muted); font-size: 11px; }
.create-preview input:not([type=radio]), .create-preview textarea { min-height: 46px; font-size: 15px; line-height: 1.8; border: 1px solid #4d4238; border-radius: 8px; background: #1b1713; padding: 10px 13px; }
.create-preview input:not([type=radio]):hover, .create-preview textarea:hover { border-color: #5d5146; }
.create-preview input:focus-visible, .create-preview textarea:focus-visible { outline: 2px solid #5d5146; outline-offset: 2px; }
.create-preview textarea { min-height: 128px; }
.create-preview .create-input-unit { max-width: none; }
.create-preview .create-input-unit > span { top: 14px; font-size: 12px; color: var(--muted); }
.create-preview #amount { font-size: 20px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.create-preview .create-mode-options { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.create-preview .create-mode-option { min-height: 108px; padding: 16px 14px; border-radius: 8px; border-color: #4d4238; background: #1b1713; gap: 10px; }
.create-preview .create-mode-option:hover { background: #221d18; border-color: #5d5146; }
.create-preview .create-mode-option:has(input:checked) { background: #221d18; border-color: #5d5146; }
.create-preview .create-mode-option strong { font-size: 14px; line-height: 1.5; }
.create-preview .create-mode-option > span > span { font-size: 12px; line-height: 1.8; margin-top: 7px; }
.create-preview .create-mode-option input { accent-color: var(--iuu-brand-text,var(--brand)); width: 15px; height: 15px; margin-top: 3px; }
.create-preview .create-hint { color: var(--paper-muted); font-size: 12px; line-height: 1.75; margin-top: 8px; }
.create-preview .create-secondary-fields{ margin-top:16px; grid-template-columns: 128px minmax(0, 1fr); column-gap: 24px; }
.create-preview #plannedShipmentAt { max-width: none; }
.create-preview #sellerAddress { font-size: 13px; letter-spacing: 0; line-height: 2; }
.create-preview .create-address-help { display: block; }
.create-preview .create-address-help > button { color: var(--iuu-brand-text,var(--brand)); font-size: 12px; padding-block: 6px; min-height: 32px; }
.create-preview .create-submit-area { display: flex; flex-direction: column; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 0; padding-left: 140px; }
.create-preview .create-submit { background: var(--brand); color: #1a120b; min-height: 48px; width: auto; min-width: 216px; font-size: 14px; gap: 28px; }
.create-preview .create-submit-note { font-size: 12px; line-height: 1.8; text-align: right; max-width: 48em; margin-top: 12px; }
.create-preview .create-review{ --paper-muted: #aba095; position: sticky; top: 20px; padding: 20px 0 0 24px; background: transparent; border: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); border-radius: 0; }
.create-preview .create-review-top { margin: 0 0 16px; }
.create-preview .create-review-top h2 { font-size: 13px; font-weight: 400; color: var(--muted); }
.create-preview .create-review-top svg { width: 20px; height: 20px; color: #aba095; }
.create-preview #review-summary { font-size: 20px; font-weight: 600; line-height: 1.6; letter-spacing: -.015em; overflow-wrap: anywhere; }
.create-preview .create-review-amount { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 0; gap: 12px; flex-wrap: wrap; }
.create-preview .create-review-amount > span.review-amount-label:first-child { font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted); }
.create-preview .create-review-amount p { display: flex; align-items: baseline; gap: 6px; }
.create-preview #review-amount { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.create-preview .create-review-amount p > span:last-child { font-size: 11px; color: var(--muted); }
.create-preview .create-example-fee { margin-top: 10px; font-size: 12px; line-height: 1.8; }
.create-preview .create-review-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding-top: 16px; border-color: var(--line); }
.create-preview .create-review-facts > div { display: block; }
.create-preview .create-review-facts dt { font-size: 12px; margin-bottom: 6px; }
.create-preview .create-review-facts dd { font-size: 14px; line-height: 1.6; text-align: left; }
.create-preview .create-review-facts .review-address-row { grid-column: 1 / -1; }
.create-preview #review-address { display: inline-block; min-height: 32px; padding-block: 4px; font-size: 13px; color: var(--iuu-brand-text,var(--brand)); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.create-preview .create-start-note { background: transparent; border: 0; padding: 0; margin-top: 12px; }
.create-preview .create-start-note > span { font-size: 12px; color: var(--muted); }
.create-preview .create-start-note > p { font-size: 13px; line-height: 1.9; margin-top: 8px; color: var(--iuu-brand-text,var(--brand)); }
.create-preview .create-review-note { margin-top: 18px; font-size: 12px; line-height: 1.9; }
.create-preview .create-review .create-submit-area { grid-column: 1 / -1; padding-left: 0; margin-top: 16px; padding-top: 16px; }
.create-preview .create-review .create-submit { width: 100%; min-width: 0; justify-content: space-between; }
.create-preview .create-review .create-submit-note { text-align: left; }
.create-preview .create-back { border-color: var(--line); font-size: 12px; color: var(--iuu-brand-text,var(--brand)); margin-top: 24px; }
.create-preview .create-footer{ font-size: 11px; padding-block:16px; }

@media (min-width: 901px) and (max-width: 1200px) {
  .workbench-head { display: flex; padding-inline: 18px; gap: 8px; }
  .tabs { gap: 14px; }
  .tabs button { font-size: 13px; }
  #care-label { display: none; }
  .arbitration-label { display: none; }
  .arbitration-compact { display: inline; }
  .arbitration-button { min-width: 44px; }
  .split-workspace { gap: 24px; }
  .task h1 { font-size: 24px; }
  .create-preview .create-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
  .create-preview .create-section{ grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; }
  .create-preview .create-basics{ grid-template-columns: minmax(0, 1fr) 142px; gap: 16px; }
  .create-preview .create-submit-area { padding-left: 116px; }
  .create-preview .create-mode-option { padding: 14px 10px; gap: 8px; }
  .create-preview .create-secondary-fields{ grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .order-preview { height: auto; min-height: 100dvh; }
  .order-preview .transaction, .order-preview .split-workspace { flex: none; }
  .order-preview .workbench { flex: none; height: 64dvh; min-height: 440px; }
  .split-workspace { gap: 24px; }
  .progress-pane { display: contents; }
  .progress-pane > .receipt{ order: 0; }
  .order-preview .workbench { order: 2; }
  .current-task{ order: 1; }
  .process{ order: 3; }
  .workbench, .progress-pane { border-radius: 12px; }
  .workbench-head { border-radius: 9px 9px 0 0; }
  .progress-pane > .receipt{ grid-template-columns: minmax(0, 1fr) auto; padding:8px 0 16px; }
  .receipt-top, .money-destination { min-width: 0; }
  .current-task{ padding:20px 0; }
  .process{ padding:20px 0 12px; }
  .journey ol { display: block; }
  .journey li { display: block; min-height: 38px; padding-left: 28px; }
  .journey li::before { display: block; }
  .stage-label { font-size: 13px; width: 100%; }
  .stage-label > svg { display: block; position: absolute; }
  .stage-label > svg.stage-chevron { display: block; position: static; }
  .process-head { display: flex; }
  .stage-label > small { display: block; }
  .is-complete > .stage-label small { display: none; }
  .task h1 { font-size: 24px; }
  .create-preview .create-layout { grid-template-columns: minmax(0, 1fr); }
  .create-preview .create-review{ position: static; border-left: 0; padding: 24px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; }
  .create-preview .create-review-top { grid-column: 1 / -1; margin-bottom: 20px; }
  .create-preview #review-summary { grid-column: 1; }
  .create-preview .create-review-amount { grid-column: 1; }
  .create-preview .create-example-fee { grid-column: 1; }
  .create-preview .create-review-facts { grid-column: 2; grid-row: 2 / 5; padding: 0; margin: 0; border: 0; align-content: start; }
  .create-preview .create-start-note, .create-preview .create-review-note, .create-preview .create-back { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-nav { height: 56px; padding-inline: 20px; }
  .brand { font-size: 18px; }
  .brand svg { width: 23px; height: 23px; }
  .nav-right { gap: 16px; }
  .document-head{ padding:12px 20px 8px; align-items: start; }
  .order-title { font-size: 22px; }
  .document-head > div:first-child { min-width: 0; }
  .document-meta, .parties { font-size: 11px; }
  .document-meta { max-width: 114px; }
  .order-preview .split-workspace { padding-inline: 16px; gap: 12px; }
  .progress-pane > .receipt{ padding-block:4px 8px; }
  .order-preview .workbench { height: 66dvh; min-height: 440px; }
  .workbench-head { padding-inline: 12px; gap: 6px; min-height: 52px; }
  .tabs { gap: 10px; }
  .tabs button { font-size: 12px; min-height: 51px; padding-block: 16px; }
  #care-clock { font-size: 12px; }
  .care-status { gap: 4px; }
  .arbitration-button { font-size: 11px; }
  .messages, .reading { padding: 16px 18px; }
  .message{ margin-bottom:20px; }
  .system-record { padding-bottom: 16px; }
  .bubble { font-size: 15px; max-width: 94%; }
  .system-record { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .system-record > header { grid-row: auto; display: flex; flex-wrap: wrap; gap: 8px; }
  .system-record h3 { font-size: 14px; }
  .conversation-action{ padding:20px; }
  .payment-record{ padding:20px; }
  .payment-record .record-fields > div { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .conversation-action h3 { font-size: 20px; }
  .inline-rules { padding: 0; }
  .inline-rules h2 { font-size: 22px; }
  .composer { padding: 12px; gap: 10px; }
  .composer textarea { font-size: 16px; }
  .reading h2{ font-size: 22px; }
  .funds-panel .funds-ledger > div { grid-template-columns: 66px minmax(0, 1fr); gap: 14px; padding-block: 14px; }
  .funds-ledger .funds-amount dd { font-size: 24px; }
  .funds-panel .funds-settlement { padding: 16px; margin-top: 16px; }
  .funds-address-line { display: block; }
  .funds-address-line > span { display: block; font-size: 12px; }
  .funds-address-line > button, .funds-address-line > a { margin-top: 2px; }
  .receipt h2 { font-size: 13px; }
  .balance > span:first-child { font-size: 28px; }
  .current-task{ padding:20px 0; }
  .task h1 { font-size: 24px; }
  .task-controls { gap: 16px; margin-top: 12px; }
  .task > p { font-size: 14px; margin-top: 6px; }
  .process{ padding-block:12px 8px; }
  .process { padding-inline: 2px; }
  .transaction[data-state=aftercare] .current-task,
  .transaction[data-state=invited] .current-task { padding-block: 0 12px; }
  .transaction[data-state=aftercare] .task h1,
  .transaction[data-state=invited] .task h1 { font-size: 18px; }
  .transaction[data-state=invited] #task-description,
  .transaction[data-state=invited] #deadline { display: none; }
  .transaction[data-state=aftercare] .task-controls,
  .transaction[data-state=invited] .task-controls { margin-top: 10px; }
  .preview-controls { padding-inline: 18px; }
  .create-preview .create-nav { min-height: 56px; }
  .create-preview .create-heading{ display: block; padding:20px 0 16px; }
  .create-preview .create-heading h1 { font-size: 30px; }
  .create-preview .create-intro { margin-top: 8px; font-size: 13px; }
  .create-preview .create-participants { display: flex; gap: 10px; margin-top: 12px; font-size: 11px; }
  .create-preview .create-participants > span { display: inline; }
  .create-preview .create-participants strong { font-size: 12px; margin-left: 3px; }
  .create-preview .create-participants small { margin: 0 0 0 auto; }
  .create-preview .create-participants svg { width: 14px; height: 14px; }
  .create-preview .create-layout { gap: 24px; }
  .create-preview .create-section{ display: block; padding-block:16px; }
  .create-preview .create-section + .create-section{ padding-top:16px; }
  .create-preview .create-section-heading { margin-bottom: 12px; padding: 0; }
  .create-preview .create-section-heading h2 { font-size: 17px; }
  .create-preview .create-basics{ grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom:12px; }
  .create-preview input:not([type=radio]), .create-preview textarea,
  .create-preview #sellerAddress { font-size: 16px; line-height: 1.5; }
  .create-preview .create-field > label { margin-bottom: 6px; }
  .create-preview .create-field + .create-field{ margin-top:12px; }
  .create-preview .create-mode-options { grid-template-columns: minmax(0, 1fr); }
  .create-preview .create-mode-options { gap: 8px; }
  .create-preview .create-mode-option { min-height: 80px; padding: 12px 16px; }
  .create-preview .create-mode-option > span > span { font-size: 12px; }
  .create-preview .create-secondary-fields{ grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top:16px; }
  .create-preview .create-secondary-fields > .create-field:first-child { max-width: 160px; }
  .create-preview .create-hint { font-size: 12px; margin-top: 6px; }
  .create-preview .create-submit-area { padding-left: 0; }
  .create-preview .create-submit { width: 100%; justify-content: space-between; }
  .create-preview .create-submit-note { text-align: left; font-size: 12px; }
  .create-preview .create-review{ display: block; padding-top:16px; }
  .create-preview .create-review-top { margin-bottom: 12px; }
  .create-preview .create-review-amount { margin-top: 16px; }
  .create-preview .create-review .create-submit-area { margin-top: 16px; padding-top: 16px; }
  .create-preview .create-review-note, .create-preview .create-back { margin-top: 16px; }
  .create-preview .create-review-facts { margin-top: 16px; padding-top: 16px; gap: 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 360px) {
  .document-head{ display: block; }
  .document-meta { display: flex; margin-top: 12px; gap: 12px; max-width: none; }
  .order-preview .split-workspace { padding-inline: 10px; }
  .workbench-head { padding-inline: 8px; gap: 3px; }
  .tabs { gap: 6px; }
  .tabs button { min-width: 36px; }
  .care-status { gap: 2px; }
  .arbitration-button { min-width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Local companion page navigation. */
.create-entry-links{display:flex;align-items:center;gap:24px;font-size:13px}.create-entry-links>a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted)}.create-entry-links>a:hover{color:var(--iuu-brand-text,var(--brand))}
@media(max-width:600px){.create-entry-links{gap:16px;font-size:12px}.create-entry-links .create-preview-badge{display:none}}

@media(max-width:600px){
 .current-task{padding:12px 2px}
 .conversation-action,.payment-record{padding:16px}
 .reading{padding:16px 18px}
 .create-preview .create-heading{padding:16px 0 12px}
}

/* Keep the conversation and composer reachable in landscape and short viewports. */
@media(max-width:900px) and (max-height:600px){
 .order-preview .workbench{height:min(440px,calc(100dvh - var(--portal-bottom-space,0px) - 24px));min-height:0}
 .order-preview .messages,.order-preview .reading{overscroll-behavior-y:auto}
}

/* The vertical timeline icon belongs to the list item, outside the label text. */
@media(max-width:900px){
 .journey>ol>li{min-height:44px}
 .journey>ol>li>.stage-label{position:static;min-height:44px}
 .journey>ol>li>.stage-label>svg:first-child{top:14px}
 .journey>ol>li:not(:last-child)::before{top:29px;bottom:0}
}
.stage-record .execution-rules li{display:list-item;padding:0;min-height:0}
.stage-record .execution-rules li::before{display:none}
.stage-record .record-fields dd{min-width:0;overflow-wrap:anywhere}
