.workspace { padding-top: 2.5rem; padding-bottom: 4rem; }
.home-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; margin: .5rem 0 2.5rem; }
.eyebrow { color: var(--text-secondary); font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.home-intro h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 1rem; }
.home-pitch { max-width: 32rem; color: var(--text-secondary); line-height: 1.65; }
.home-art { text-align: center; }
.home-art img { width: 100%; max-width: 360px; height: auto; }
.upload-dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.75rem 1.5rem; border: 2px dashed var(--border); border-radius: 1.25rem; background: var(--card-solid); transition: background .15s, border-color .15s; }
.upload-dropzone h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.upload-dropzone p { color: var(--text-secondary); line-height: 1.5; margin: .6rem 0 1.5rem; }
.upload-icon { width: 2rem; height: 2rem; margin-bottom: 1.25rem; fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.upload-dropzone .btn { min-width: 13rem; }
.upload-dropzone .upload-limit { margin: .85rem 0 0; font-size: .8125rem; }
.mobile-drop { display: none; }
.upload-dropzone.is-dragging, .workspace.drag-over .draft-list { background: var(--accent-tint); border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 4px; }
.upload-extras { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; margin: 1rem 0 3rem; color: var(--text-secondary); font-size: .8125rem; }
.format-help { max-width: 34rem; line-height: 1.65; }
.format-help summary { cursor: pointer; padding: .5rem 0; }
.format-help p { margin: .75rem 0; }
.link-button { font-size: .875rem; }
.file-input { display: none; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.section-header h2 { font-size: 1.25rem; }
.section-header a { font-size: .875rem; text-decoration: none; }
.active-order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.active-order-card { padding: 1.25rem; border: 1px solid var(--border-subtle); border-radius: 1rem; background: var(--card-solid); text-decoration: none; color: var(--text); }
.active-order-card:hover { border-color: var(--primary); }
.active-order-summary { display: flex; gap: .75rem; align-items: center; }
.active-order-summary div { flex: 1; min-width: 0; }
.active-order-summary h3 { font-size: .9375rem; margin-bottom: .3rem; }
.active-order-summary p { font-size: .75rem; color: var(--text-secondary); line-height: 1.5; }
.parcel-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--accent-tint); border-radius: .65rem; font-size: 1.25rem; }
.order-progress { display: flex; gap: .3rem; margin-top: 1.25rem; }
.order-progress span { flex: 1; height: 3px; background: var(--border); border-radius: 3px; }
.order-progress .complete { background: var(--primary); }
.draft-list { list-style: none; border: 1px solid var(--border-subtle); border-radius: 1rem; background: var(--card-solid); overflow: hidden; }
.draft-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--border-subtle); padding-right: .75rem; }
.draft-row:last-child { border-bottom: 0; }
.draft-open { display: flex; align-items: center; gap: 1.25rem; width: 100%; background: none; border: 0; color: var(--text); font: inherit; padding: 1.5rem 1rem 1.5rem 1.5rem; text-align: left; cursor: pointer; }
.draft-open:hover:not(:disabled) { background: var(--card-background); }
.draft-open:disabled { opacity: 1; cursor: default; }
.document-preview { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 82px; height: 106px; background: var(--background); color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: .3rem; overflow: hidden; font-size: .75rem; }
.document-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.monochrome { filter: grayscale(1); }
.draft-info { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: .6rem; }
.draft-info > strong { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; line-height: 1.45; }
.draft-specs { display: flex; flex-direction: column; gap: .25rem; color: var(--text-secondary); font-size: .8125rem; line-height: 1.45; }
.draft-price { display: flex; flex-direction: column; align-items: end; flex-shrink: 0; gap: .6rem; font-size: .9375rem; }
.remove-document { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; border-radius: .5rem; }
.remove-document:hover { background: var(--error-bg); color: var(--error-text); }
.remove-document svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.draft-error { grid-column: 1 / -1; margin: 0 1.5rem 1rem; color: var(--error-text); font-size: .875rem; }
.upload-status { color: var(--text-secondary); font-size: .875rem; }
.progress-bar { display: block; height: 4px; background: var(--border-subtle); border-radius: 2px; overflow: hidden; max-width: 15rem; }
.progress-bar > span { display: block; height: 100%; background: var(--primary); }
.document-list-footer { display: flex; gap: 1rem; flex-wrap: wrap; margin: .75rem 0; }
.removal-notice { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--card-solid); margin: 1rem 0; overflow-wrap: anywhere; }
.summary-note { font-size: .8125rem; color: var(--text-secondary); line-height: 1.6; margin-top: .75rem; }
.document-options, .workspace-dialog { margin: auto; border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card-solid); color: var(--text); width: min(900px, calc(100% - 3rem)); max-height: calc(100dvh - 3rem); overflow: auto; padding: 0; }
.document-options::backdrop, .workspace-dialog::backdrop { background: var(--overlay-background); backdrop-filter: blur(4px); }
.options-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.75rem; border-bottom: 1px solid var(--border-subtle); background: var(--card-solid); }
.options-header div { min-width: 0; }
.options-header .eyebrow { margin-bottom: .3rem; }
.options-header h2 { font-size: 1.125rem; overflow-wrap: anywhere; }
.document-options { width: min(1100px, calc(100% - 3rem)); }
.options-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; padding: 1.75rem; }
.options-preview { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; background: var(--background); border-radius: .75rem; height: fit-content; }
.options-fields { grid-column: 2; grid-row: 1; }
.options-preview { grid-column: 1; grid-row: 1; }
.options-preview h3 { font-size: 1rem; }
.options-preview p { color: var(--text-secondary); font-size: .8125rem; }
.print-color { border: 0; padding: 0 0 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.print-color legend { margin-bottom: .75rem; font-size: .875rem; font-weight: 600; }
.print-color label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .75rem .5rem 0; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: .5rem; cursor: pointer; }
.print-color label:has(input:checked) { background: var(--accent-tint); border-color: var(--primary); }
.option-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border-subtle); }
.option-row label { margin: 0; }
.option-row select, .option-row input { padding: .65rem; font-size: .875rem; }
.range-hint { grid-column: 2; margin: -.5rem 0 0; font-size: .75rem; line-height: 1.4; color: var(--text-secondary); }
.option-row input[type="number"] { max-width: 6rem; justify-self: end; }
.option-cost { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0 .75rem; }
.ai-options { padding: 1rem 0; border-bottom: 1px solid var(--border-subtle); }
.ai-options summary { cursor: pointer; font-size: .875rem; font-weight: 500; }
.ai-options label { margin-top: 1rem; }
.ai-options textarea { margin-bottom: .75rem; }
@media (max-width: 1050px) { .active-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .draft-price { align-items: start; } .draft-open { flex-wrap: wrap; } .draft-price { margin-left: 102px; margin-top: -.5rem; } }
@media (max-width: 760px) {
  .workspace { padding-top: 1.5rem; padding-bottom: 2rem; }
  .home-intro { display: flex; flex-direction: column-reverse; text-align: center; gap: 1rem; margin: 0 0 1.75rem; }
  .home-intro h1 { font-size: 2rem; }
  .home-art img { max-width: 230px; }
  .home-intro .eyebrow { display: none; }
  .home-pitch { font-size: .875rem; }
  .upload-dropzone { padding: 1.75rem 1rem; border-radius: 1rem; }
  .upload-dropzone h2 { font-size: 1.125rem; }
  .upload-dropzone p { font-size: .8125rem; max-width: 18rem; }
  .desktop-drop { display: none; } .mobile-drop { display: inline; }
  .upload-extras { align-items: center; flex-direction: column; gap: .25rem; margin-bottom: 2rem; }
  .format-help summary { text-align: center; }
  .active-order-grid { grid-template-columns: 1fr; }
  .draft-open { flex-wrap: nowrap; gap: .85rem; padding: 1rem .5rem 1rem 1rem; align-items: start; }
  .document-preview { width: 68px; height: 88px; }
  .draft-info > strong { font-size: .9375rem; }
  .draft-price { display: none; }
  .draft-row { padding-right: .5rem; }
  .draft-info .draft-specs { font-size: .75rem; }
  .document-options { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .options-header { padding: 1rem; }
  .options-body { display: flex; flex-direction: column; gap: 1.5rem; padding: 1rem; }
  .options-preview { padding: 1.25rem; }
  .options-header .btn { padding: .65rem 1rem; }
}

.mobile-document-price { display: none; }
@media (max-width: 760px) { .mobile-document-price { display: block; font-size: .8125rem; font-weight: 650; } }

.document-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; }
.document-actions .summary-note { margin: 0; }
.document-actions > .btn { min-width: 16rem; }
@media (max-width: 760px) {
  .document-actions { flex-direction: column; align-items: stretch; }
  .document-actions > .btn { width: 100%; min-width: 0; }
}
