@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/inter.woff2") format("woff2"); }
:root {
  /* Firmary family base (ink & parchment) with this product's plum accent. */
  --bg: #faf8f3; --surface: #fff; --surface-2: #f8f5ef; --parchment: #f3efe7; --text: #171715; --text-2: #46423b; --text-3: #6f695e;
  --border: #e6e0d6; --border-strong: #d8d2c8; --ink: #171715; --ink-hover: #2e2c28; --bronze: #9a603a; --bronze-deep: #754328;
  --accent: #6a4565; --accent-strong: #5a3a56; --accent-soft: #f2ebf0;
  --good: #2e6a45; --good-soft: #e9f1ea; --info: #2f5276; --info-soft: #eaeff5; --warn: #754328; --warn-soft: #f8efe0; --warn-border: #ead9bb;
  --danger: #9b2f1e; --danger-soft: #fbece8; --danger-border: #efc8bf;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgb(120 105 85 / 8%), 2px 6px 18px rgb(120 105 85 / 9%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss01";
  font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.022em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; clip-path: inset(100%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { clip-path: none; }
.small { font-size: 0.875rem; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Header & footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1120px; margin: auto; padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand-mark { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-group { display: inline-flex; align-items: center; }
.by-firmary { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--border-strong); font-size: 0.8125rem; font-weight: 500; color: var(--text-3); text-decoration: none; }
.by-firmary:hover { color: var(--text); }
.firmary-mark { display: block; flex-shrink: 0; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; }
.site-header nav a:hover { background: var(--surface-2); color: var(--text); }
.site-header nav a[aria-current="page"] { background: var(--parchment); color: var(--text); }
.header-note { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text-3); }
.page { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 28px 88px; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1120px; margin: auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; color: var(--text-3); }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--text-2); text-decoration: none; }
.footer-inner a:hover { color: var(--text); text-decoration: underline; }
.footer-inner .made-by { display: inline-flex; align-items: center; gap: 8px; }
.made-by strong { font-weight: 600; color: var(--text); }
.firmary-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 32px; padding: 16px 18px; border-radius: var(--radius); background: var(--parchment); border: 1px solid var(--border); color: var(--text-2); font-size: 0.9375rem; }
.firmary-note .firmary-mark { color: var(--ink); }
.firmary-note strong { color: var(--text); font-weight: 600; }
.firmary-note a { font-weight: 600; color: var(--bronze-deep); text-decoration: none; white-space: nowrap; }
.firmary-note a:hover { text-decoration: underline; }

/* Buttons & form controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--ink); color: #faf8f3; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s; }
.button:hover:not(:disabled) { background: var(--ink-hover); }
.button.secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.button.secondary:hover:not(:disabled) { background: var(--surface-2); }
.button.danger { background: var(--surface); border-color: var(--danger-border); color: var(--danger); }
.button.danger:hover:not(:disabled) { background: var(--danger-soft); }
dialog .button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button.full { width: 100%; min-height: 48px; font-size: 1rem; }
.small-button { min-height: 34px; padding: 0 12px; font-size: 0.875rem; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-size: 1.375rem; line-height: 1; }
.icon-button:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--text-3); text-decoration: none; font-size: 0.875rem; font-weight: 550; }
.back-link:hover { color: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 12px; }
label { display: block; font-size: 0.875rem; font-weight: 550; color: var(--text-2); margin: 16px 0 6px; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(106 69 101 / 16%); }
input[readonly] { background: var(--surface-2); font-variant-numeric: tabular-nums; }
.field-help { font-size: 0.8125rem; color: var(--text-3); margin-top: 6px; }
.form-error { color: var(--danger); font-size: 0.9375rem; margin: 12px 0 0; }
.form-error:empty { display: none; }

/* Badges & notices */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text-2); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.badge.open, .badge.delivered { background: var(--good-soft); border-color: transparent; color: var(--good); }
.badge.selected, .badge.uploading, .badge.received, .badge.ready, .badge.delivering { background: var(--info-soft); border-color: transparent; color: var(--info); }
.badge.pending, .badge.blocked { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.badge.failed, .badge.rejected, .badge.expired { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.badge.closed { color: var(--text-3); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 0.9375rem; color: var(--text-2); margin: 16px 0 0; }
.notice strong { display: block; color: var(--text); font-weight: 600; }
.notice p { margin-top: 2px; }
.gate-notice { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); }
.gate-notice strong { color: var(--warn); }
.error-notice { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.error-notice strong { color: var(--danger); }
.page-status { padding: 12px 14px; margin-bottom: 20px; border-radius: var(--radius-sm); background: var(--good-soft); color: var(--good); font-size: 0.9375rem; font-weight: 500; }
.page-status.error { background: var(--danger-soft); color: var(--danger); }
.page-status a { color: inherit; font-weight: 650; }

/* Layout */
.page-heading { margin-bottom: 28px; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-heading h1 { overflow-wrap: anywhere; }
.lede { font-size: 1.0625rem; color: var(--text-2); margin-top: 8px; max-width: 40rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(120 105 85 / 3%); padding: 24px; }
.panel > p { color: var(--text-2); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.loading { text-align: center; color: var(--text-3); padding: 40px; }

/* Demo */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 24px 0 40px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; margin-top: 16px; }
.hero .lede { font-size: 1.125rem; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.journey-panel { padding: 28px; }
.journey { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.journey li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.journey li:last-child { padding-bottom: 0; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: var(--border); }
.journey-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; font-size: 0.875rem; }
.journey li:last-child .journey-dot { background: var(--good-soft); color: var(--good); }
.journey strong { font-weight: 600; }
.journey p { color: var(--text-3); font-size: 0.9375rem; }

/* Setup */
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setup-step { display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8125rem; font-weight: 650; }
.account-summary { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 0.9375rem; color: var(--text-3); }
.account-summary strong { color: var(--text); font-weight: 600; }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.step-actions:not(:has(:not([hidden]))) { display: none; }
.destination-list:empty { display: none; }
.destination-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 550; }
.folder-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.setup-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }

/* Request list */
.request-list { display: grid; gap: 10px; }
.request-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; color: inherit; padding: 18px 20px; transition: border-color 0.15s, box-shadow 0.15s; }
.request-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.request-card h2 { font-size: 1rem; overflow-wrap: anywhere; }
.request-card p { color: var(--text-3); font-size: 0.875rem; margin-top: 2px; overflow-wrap: anywhere; }
.card-side { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state p { color: var(--text-3); margin: 6px auto 20px; max-width: 26rem; }
#load-more { margin-top: 12px; }

/* Dialogs */
dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 24px; box-shadow: 0 24px 64px rgb(120 105 85 / 25%); color: var(--text); }
dialog::backdrop { background: rgb(120 105 85 / 45%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog form label:first-of-type { margin-top: 12px; }
dialog .notice { margin-bottom: 4px; }
dialog .button.full { margin-top: 16px; }
dialog > p { color: var(--text-2); margin-top: 8px; }
dialog .center { margin-top: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

/* Request detail */
.detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start; }
.share-panel h2, .delivery-panel h2 { margin-bottom: 6px; }
.copy-group { display: flex; gap: 8px; margin-top: 16px; }
.copy-group input { flex: 1; min-width: 0; }
#copy-feedback { color: var(--good); margin-top: 6px; min-height: 1em; }
.details { margin: 12px 0 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.9375rem; }
.details dt { color: var(--text-3); }
.details dd { margin: 0; text-align: right; font-weight: 550; overflow-wrap: anywhere; }
.instructions:not(:empty) { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.counts div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.counts strong { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.counts div:first-child strong { color: var(--good); }
.counts span { font-size: 0.8125rem; color: var(--text-3); }
#owner-notices .notice { margin-top: 10px; }
.files-panel { margin-top: 16px; }
.file-list { display: grid; }
.file-row, .selected-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.file-list .file-row:first-child { border-top: 0; }
.file-type { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; }
.file-info { min-width: 0; }
.file-info strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.file-info p { font-size: 0.875rem; color: var(--text-3); }
.file-info a { font-size: 0.875rem; font-weight: 600; }
.request-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.request-actions + .request-actions { margin-top: 0; }
.request-actions h2 { font-size: 1rem; }
.request-actions p { color: var(--text-3); font-size: 0.9375rem; margin-top: 2px; max-width: 36rem; }
.delete-action h2 { color: var(--danger); }

/* Upload */
.upload-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: start; }
.requester-line { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 0.9375rem; margin-bottom: 16px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); }
.avatar svg { width: 16px; height: 16px; }
.upload-intro h1 { overflow-wrap: anywhere; }
.upload-facts { margin: 24px 0 0; }
.upload-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 0.9375rem; }
.upload-facts dt { color: var(--text-3); }
.upload-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.privacy-note { display: flex; gap: 12px; margin-top: 24px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.note-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--good-soft); color: var(--good); flex-shrink: 0; }
.note-icon svg { width: 18px; height: 18px; }
.privacy-note strong { font-weight: 600; }
.privacy-note p { color: var(--text-3); font-size: 0.9375rem; margin-top: 2px; }
.upload-card { padding: 24px; box-shadow: var(--shadow); }
.upload-card .notice { margin: 0 0 16px; }
.drop-zone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 0; padding: 36px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; font-weight: 400; transition: border-color 0.15s, background-color 0.15s; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone.disabled { cursor: not-allowed; opacity: 0.6; }
.drop-zone.disabled:hover { border-color: var(--border-strong); background: var(--surface-2); }
.drop-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); color: var(--accent-strong); margin-bottom: 6px; }
.drop-icon svg { width: 24px; height: 24px; }
.drop-zone strong { font-size: 1rem; font-weight: 600; color: var(--text); }
.link-text { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.drop-zone > span:not(.drop-icon) { font-size: 0.875rem; color: var(--text-3); }
#selection-help { margin-top: 10px; }
.selected-files { list-style: none; margin: 12px 0 0; padding: 0; }
.selected-files:empty { display: none; }
.selected-file:first-child { border-top: 0; }
.file-action { display: flex; align-items: center; gap: 6px; }
.progress-track { height: 4px; border-radius: 999px; background: var(--bg); margin-top: 8px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 0.4s; }
.progress-bar[data-phase="uploading"] { width: 35%; }
.progress-bar[data-phase="validating"] { width: 60%; background: var(--info); }
.progress-bar[data-phase="delivering"] { width: 85%; background: var(--info); }
.progress-bar[data-phase="pending"], .progress-bar[data-phase="blocked"] { width: 60%; background: #d89b2b; }
.progress-bar[data-phase="delivered"] { width: 100%; background: var(--good); }
.progress-bar[data-phase="failed"], .progress-bar[data-phase="rejected"], .progress-bar[data-phase="expired"] { width: 100%; background: var(--danger); }
#send-files { margin-top: 16px; }
#send-help { margin-top: 12px; }
#batch-link { margin-top: 16px; }
#batch-link .center { margin-top: 8px; }
.footnote { margin-top: 32px; }

/* Receipt */
.receipt-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.receipt-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--good-soft); color: var(--good); margin-bottom: 16px; }
.receipt-wrap .lede { margin: 8px auto 24px; }
.receipt-panel { text-align: left; margin-bottom: 16px; }
#receipt-summary { margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* Legal */
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { margin: 32px 0 8px; }
.legal p { color: var(--text-2); margin-bottom: 10px; }
.legal .lede { margin: 12px 0 0; }

@media (max-width: 860px) {
  .hero, .upload-layout, .detail-grid, .setup-grid { grid-template-columns: 1fr; }
  .upload-layout { gap: 24px; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; height: 58px; }
  .by-firmary { display: none; }
  .firmary-note { grid-template-columns: auto 1fr; }
  .firmary-note a { grid-column: 2; }
  .site-header nav a { padding: 8px; }
  .page { padding: 24px 16px 64px; }
  .panel { padding: 18px 16px; }
  .request-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .copy-group { flex-direction: column; }
  .counts strong { font-size: 1.375rem; }
  .request-actions .button { width: 100%; }
  .upload-facts div { grid-template-columns: 96px 1fr; }
  .footer-inner { padding: 18px 16px; }
}

/* Upstream setup, composer, selection and recovery states, in the same system. */
.eyebrow { display: block; margin: 0 0 4px; font-size: 0.8125rem; font-weight: 550; color: var(--text-3); }
.notice.subtle { background: var(--parchment); }
.badge.pale { background: var(--parchment); }
.tiny-dot, .loading-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.empty-icon { display: none; }
.how-it-works { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.how-it-works li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--text-2); font-weight: 500; }
.how-it-works li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #faf8f3; font-size: 0.8125rem; font-weight: 650; }
.folder-symbol { font-size: 0.75rem; font-weight: 600; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
.demo-heading h1 { max-width: 46rem; font-size: clamp(2.2rem, 4.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.demo-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start; margin-top: 28px; }
.create-dialog { width: min(900px, calc(100vw - 32px)); padding: 28px; }
.create-dialog fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.create-dialog .dialog-heading { align-items: flex-start; margin-bottom: 8px; }
.create-dialog .dialog-heading h2 { font-size: 1.5rem; }
.create-dialog .dialog-heading p:last-child { margin-top: 6px; color: var(--text-3); max-width: 38rem; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin: 20px 0; }
.composer-fields { min-width: 0; }
.composer-fields textarea { margin-bottom: 4px; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 6px; }
.label-row label { margin: 0; }
.label-row output { font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.request-preview { min-width: 0; align-self: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--parchment); }
.request-preview h3 { margin: 12px 0; font-size: 1.375rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.request-preview > p { font-size: 0.9375rem; color: var(--text-2); overflow-wrap: anywhere; }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-weight: 500; margin-top: 16px; }
.checkbox-label input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; accent-color: var(--ink); }
.expiry-choice { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.publish-confirmation { margin: 20px 0 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--parchment); }
.publish-confirmation .details { margin: 0; }
.publish-confirmation .details > div { padding: 8px 0; font-size: 0.875rem; }
.publish-confirmation > p { margin-top: 12px; font-size: 0.875rem; color: var(--text-3); }
.composer-footer { position: sticky; bottom: -28px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 0; background: var(--surface); border-top: 1px solid var(--border); }
.composer-footer p { margin: 0; max-width: 26rem; }
.collection-boundary { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--text-3); }
.selection-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 14px 0; }
.selection-toolbar output { font-size: 0.875rem; color: var(--text-3); max-width: 22rem; }
.text-button { border: 0; background: none; padding: 0 4px; min-height: 40px; color: var(--accent); font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.remove-file { min-height: 32px; }
.selection-errors { margin: 12px 0; padding: 12px 14px 12px 30px; border-radius: var(--radius-sm); background: var(--danger-soft); border: 1px solid var(--danger-border); color: var(--danger); font-size: 0.875rem; overflow-wrap: anywhere; }
.selection-errors li + li { margin-top: 6px; }
.batch-summary { margin: 0 0 8px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; color: var(--text-2); }
.success-summary { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--good-soft); border: 1px solid #cfe3d4; color: var(--good); }
.file-info .file-detail { margin-top: 6px; font-size: 0.875rem; color: var(--text-3); }
@media (max-width: 860px) {
  .demo-grid, .composer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .how-it-works { flex-direction: column; gap: 10px; }
  .create-dialog { padding: 22px 18px; }
  .composer-footer { flex-direction: column; align-items: stretch; }
  .composer-footer .button, .demo-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
