/* The intake uses the bureau's type, orange accent and controls from order.css. */
:root {
  --muted: #565656;
  --rule: #ddd;
  --tint: #f5f5f5;
}
.frame { width: min(1120px, calc(100% - clamp(40px, 8vw, 140px))); margin-inline: auto; }
.bureau-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.head-inner { min-height: 64px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; text-decoration: none; }
.wordmark img { width: 119px; height: auto; }
.wordmark span { font-size: .78rem; color: var(--muted); }
.head-links { display: flex; align-items: center; justify-content: space-evenly; flex: 1; gap: 12px; }
.head-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; text-decoration: none; }
.head-links a:hover { text-decoration: underline; }
.service-name { display: inline-flex; gap: 8px; align-items: center; font-size: .81rem; color: var(--muted); }
.service-name::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.desk { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(38px, 5vw, 72px); align-items: start; padding-block: clamp(27px, 3vw, 39px) clamp(42px, 5vw, 80px); }
.desk-main, .desk-side, .contacts { min-width: 0; }
.desk noscript { grid-column: 1 / -1; }
.case-heading { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.context-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 24px; font-size: .82rem; line-height: 1.3; color: var(--muted); }
.case-heading h1, body[data-screen] #receiptTitle { font-weight: 400; letter-spacing: -.067em; line-height: 1; color: var(--ink); }
.case-heading h1 { display: grid; font-size: clamp(2.15rem, 4vw, 3.72rem); margin: 0 0 16px; }
.case-heading #subject { font: inherit; letter-spacing: inherit; }
body[data-screen="upload"] .case-heading #object { color: inherit; -webkit-text-stroke: 0; }
#lead, .receipt-desc { max-width: 58ch; font-size: 1rem; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
#contactForm { display: grid; gap: 19px; margin: 21px 0 0; }
.field-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 8px; }
.field-heading h2, .field-heading label, .contacts legend { margin: 0; font-size: 1.12rem; font-weight: 630; letter-spacing: -.035em; line-height: 1.28; }
.field-heading > span { color: var(--muted); font-size: .79rem; }
#choose { display: flex; align-items: center; gap: 17px; width: 100%; padding: 16px 20px; min-height: 88px; border: 1px dashed #858585; background: var(--tint); text-align: left; }
#uploadView:not(.has-files) #choose { border-color: var(--rust); border-style: solid; background: #fff5ef; }
#uploadView:not(.has-files) .pick-plus { border-color: transparent; background: var(--orange); }
#choose:hover:enabled, #choose.over { background: #fcf0e6; border-color: var(--rust); }
#uploadView:not(.has-files) #choose:is(:hover:enabled, .over) { background: #ffeadc; }
.doc-symbol { display: grid; place-items: center; flex: none; color: var(--ink); }
.doc-symbol svg { width: 39px; height: 45px; }
.pick-copy { display: grid; gap: 2px; line-height: 1.35; }
.pick-copy strong { font-size: 1.07rem; letter-spacing: -.025em; font-weight: 625; }
.pick-copy > span { font-size: .87rem; color: var(--muted); }
.pick-plus { width: 32px; height: 32px; flex: none; margin-left: auto; border: 1px solid #999; border-radius: 50%; line-height: 27px; text-align: center; font-size: 1.4rem; }
#limits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 7px; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.files-section .package-hint { font-size: .87rem; }
.batch { margin-top: 13px; }
.batch strong { font-size: 1rem; }
.task-section { position: relative; }
.objective-help { margin: -2px 0 9px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
#objective, .contacts input { width: 100%; min-width: 0; border: 1px solid #8a8a8a; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
#objective { display: block; resize: vertical; min-height: 96px; padding: 10px 13px; line-height: 1.4; }
#objective::placeholder, .contacts input::placeholder { opacity: 1; color: var(--muted); }
#objective[aria-invalid="true"] { border-color: var(--rust); }
.counter { margin-top: 3px; color: var(--muted); text-align: right; font-size: .75rem; font-variant-numeric: tabular-nums; }
.task-section .error:not(:empty) { margin-top: 5px; }
.contacts { margin: 0; padding: 0; border: 0; }
.contacts legend { padding: 0; }
.contact-help { color: var(--muted); font-size: .88rem; margin: 3px 0 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-grid label { min-width: 0; display: grid; gap: 5px; font-size: .87rem; font-weight: 600; }
.contacts input { padding: 9px 12px; min-height: 45px; line-height: 1.35; font-weight: 400; }
.submission { border-top: 1px solid var(--rule); padding-top: 14px; }
.submission-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.submission .error:not(:empty) { margin: 0 0 10px; }
.demo-checkout-note { margin: 0 0 12px; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.primary, .secondary { border-radius: 100px; }
.demo-checkout-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 28px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.demo-checkout-dialog::backdrop { background: rgb(20 20 20 / .5); }
.demo-checkout-dialog h2 { margin: 0 0 15px; font-size: 1.6rem; line-height: 1.2; }
.demo-checkout-dialog p { line-height: 1.5; }
.demo-checkout-price { margin: 0 0 10px; font-size: 2rem; font-variant-numeric: tabular-nums; }
.demo-checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.demo-checkout-actions button { min-height: 44px; }
.send { margin: 0; min-height: 48px; padding-inline: 23px; }
#uploadView:not(.has-files) .send { border: 1px solid #858585; background: var(--paper); }
#uploadView:not(.has-files) .send:hover { background: var(--tint); }
#intakeHint { max-width: 30ch; font-size: .88rem; color: var(--muted); }
#intakeHint:empty { display: none; }
.report-sample { padding-top: 20px; border-top: 2px solid var(--ink); color: var(--ink); }
body[data-screen="upload"] .desk-side { margin-top: clamp(36px, 7vw, 100px); }
.sample-label { margin-bottom: 14px; font-size: .78rem; color: var(--muted); }
.report-sample h2 { margin-bottom: 12px; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.report-sample h2 + p, .sample-action { font-size: .94rem; line-height: 1.5; }
.sample-action { margin-top: 16px; padding: 12px 0; border-block: 1px solid var(--rule); }
.sample-action strong { display: block; margin-bottom: 3px; font-size: .81rem; }
.report-sample .inline-link { font-size: .9rem; }
.side-content h2 { margin: 0 0 10px; font-weight: 600; font-size: 1.24rem; line-height: 1.18; letter-spacing: -.04em; }
.waiting-scene p, .read-help p { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 3px 0 0; }
.files-section kaloy-document-guide { margin-top: 4px; }
.files-section .dg-shell { border: 0; }
.files-section .dg-open { min-height: 44px; font-size: .88rem; }
.file-assistance .inline-link { display: none; }
.read-help, body[data-screen="receipt"] .report-sample { display: none; }
body:has(#receipt[data-stage="ready"]) .read-help { display: block; }
body[data-screen="receipt"]:not(:has(#waitingScene:not([hidden]), #receipt[data-stage="ready"])) .desk-side { display: none; }
body[data-screen] #receiptTitle { font-size: clamp(2rem, 4vw, 3.72rem); margin: 12px 0; text-wrap: balance; }
#receiptTag::before { content: none; }
#receipt { padding-bottom: 20px; }
.statusbox { margin-block: 24px 16px; }
.receipt-actions { align-items: stretch; }
#receipt[data-stage="ready"] #refresh { border-color: transparent; padding-inline: 0; text-decoration: underline; text-underline-offset: .22em; }
#receipt[data-stage="ready"] #refresh:hover { background: transparent; color: var(--rust); }
.waiting-scene { background: transparent; border: 0; }
.waiting-track { display: flex; align-items: center; gap: 12px; }
.waiting-track span { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
.waiting-track strong { font-size: .85rem; letter-spacing: .04em; }
.waiting-steps { display: grid; gap: 7px; margin: 17px 0 0; padding-left: 1.35rem; }
.waiting-steps li { padding-left: 3px; font-size: .9rem; line-height: 1.45; }
.waiting-steps li::marker { color: var(--muted); }
.waiting-scene .waiting-phrase { min-height: 2.8em; margin-top: 16px; color: var(--ink); }
.service-notice { margin-top: 12px; padding-bottom: 18px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  #waitingScene[data-motion="running"] .waiting-track span { animation: intake-pulse 2.4s ease-in-out infinite alternate; }
  @keyframes intake-pulse { to { transform: scale(1.3); background-color: #e5794e; } }
}
@media (max-width: 980px) {
  .frame { width: calc(100% - 56px); }
  .desk { grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr); gap: 28px; }
  .wordmark { gap: 12px; }
}
@media (max-width: 760px) {
  .frame { width: calc(100% - 40px); }
  .head-inner { min-height: 58px; justify-content: space-between; gap: 12px; }
  .wordmark img { width: 115px; }
  .wordmark span, .head-links { display: none; }
  .service-name { font-size: .79rem; gap: 7px; }
  .desk { display: flex; flex-direction: column; gap: 30px; padding-block: 23px 35px; }
  .desk-main, .desk-side { width: 100%; }
  body[data-screen="upload"] .desk-side { margin-top: 0; }
  .case-heading { padding-bottom: 10px; }
  .case-heading h1 { margin: 0 0 11px; font-size: clamp(1.7rem, 8vw, 3.2rem); }
  #lead { font-size: .95rem; }
  #contactForm { gap: 16px; margin-top: 16px; }
  #choose { min-height: 79px; padding: 13px 14px; gap: 12px; }
  .doc-symbol svg { width: 30px; height: 36px; }
  .file-assistance { position: relative; }
  .file-assistance .dg-open { width: calc(100% - 76px); line-height: 1.25; }
  .file-assistance .dg-open::before { display: none; }
  .file-assistance .inline-link { display: block; position: absolute; inset-block-start: 0; inset-inline-end: 0; font-size: .85rem; }
  .submission-row { align-items: stretch; }
}
@media (max-width: 500px) {
  .frame { width: calc(100% - 32px); }
  .case-heading h1 { font-size: clamp(1.4rem, 8vw, 2.5rem); }
  .desk { padding-top: 17px; }
  .case-heading { padding-bottom: 9px; }
  #contactForm { gap: 10px; margin-top: 12px; }
  #choose { min-height: 72px; }
  .contact-help { margin-bottom: 7px; }
  .contact-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .field-heading h2, .field-heading label, .contacts legend { font-size: 1.03rem; }
  .field-heading > span { font-size: .75rem; }
  #objective { min-height: 96px; }
  .submission-row { display: grid; }
  #intakeHint { max-width: none; text-align: center; }
  .foot { align-items: flex-start; }
}
