/* Host-owned skin. Source markup and file-processing logic stay in Dxf_form. */
@font-face{font-family:Golos;src:url('/assets/golos-text.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--color-bg:#eef0f2;--color-surface:#f8f9fa;--color-surface-sunken:#e2e6e9;--color-border:#cdd3d8;--color-border-strong:#adb7bf;--color-text:#172126;--color-muted:#59646c;--color-accent:#244bcc;--color-accent-strong:#193baf;--color-accent-soft:#e4e9fb;--color-accent-soft-hover:#d5ddf8;--color-on-accent:#fff;--radius:4px;--radius-sm:4px;--radius-pill:4px;--shadow-card:none;--font-body:Golos,system-ui,sans-serif;--color-warn:#555f67;--color-warn-bg:#eef0f2;--color-warn-border:#cdd3d8;--dxf-preview-bg:#f7f7f8;color-scheme:light}
html{overflow:hidden}body{font-size:13px;background:var(--color-bg)}::selection{background:var(--color-accent);color:#fff}button,input,textarea,select{font-family:var(--font-body);caret-color:var(--color-accent)}a{text-underline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--color-accent);outline-offset:3px}.page{width:100%;max-width:none;padding:22px 0 8px}.page>.page-heading{justify-content:space-between;margin-bottom:12px}.page>.page-heading h1{font-size:15px;font-weight:500;letter-spacing:-.02em}.page>.hint{font-size:11px;max-width:570px;line-height:1.6;margin-bottom:18px}.drop-zone{margin:0 0 20px;min-height:170px;display:flex;align-items:center;justify-content:center;padding:30px 20px;border:1px dashed var(--color-border-strong);background:var(--color-surface);transition:background .15s,border-color .15s}.drop-zone:hover{border-color:var(--color-accent);background:#e8ecf8}.drop-zone p{font-size:17px;font-weight:500;line-height:1.6;letter-spacing:-.02em}.drop-zone p:before{content:'+';display:block;font-size:34px;line-height:1;font-weight:300;color:var(--color-accent);margin-bottom:16px}.help-icon-button{width:30px;height:30px;min-height:30px;font-size:12px;border-radius:4px}.embedded-empty .group-controls,.embedded-empty section[aria-labelledby="cutting-heading"],.embedded-empty section[aria-labelledby="drawing-heading"],.embedded-empty .contact-form,.embedded-empty #submit-order{display:none}.embedded-empty #submit-status:empty{display:none}.group-controls{background:transparent;border:0;padding:0 0 24px;margin-bottom:26px;border-bottom:1px solid var(--color-border);border-radius:0;box-shadow:none}.group-controls h2{font-size:15px;margin-bottom:15px}.group-controls-row{gap:10px}.row-fields{gap:8px}.row-fields label,.field-label{font-size:11px}.group-controls button{font-size:11px;padding:8px 10px;min-height:36px}.group-controls .hint{font-size:10px;margin-top:12px}.group-controls select{font-size:12px}h2{font-size:15px;font-weight:500;letter-spacing:-.02em}section[aria-labelledby="cutting-heading"]{margin-bottom:25px}section[aria-labelledby="drawing-heading"]{margin-bottom:28px}.empty-hint{font-size:11px}.file-card{box-shadow:none;padding:18px;border:0;background:var(--color-surface)}.file-card-header{font-size:12px;overflow-wrap:anywhere}.file-card-fields{gap:12px}.file-card-fields label{font-size:11px}.preview{font-size:10px;overflow-wrap:anywhere}.file-card-controls-buttons button{font-size:10px;padding:7px 10px}.file-card-controls{width:130px}.preview-thumb{width:100%;max-width:130px}.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;padding-top:20px;border-top:1px solid var(--color-border)}.contact-form h2{grid-column:1/-1;margin-bottom:3px}.contact-form .field{margin-bottom:0}.contact-form .field:has(textarea),.contact-form .field-consent{grid-column:1/-1}.contact-form label{font-size:12px}.contact-form input,.contact-form textarea{background:var(--color-surface);font-size:14px}.contact-form .field-consent{font-size:11px;margin-block:4px 8px}.contact-form .field-consent label{font-size:11px;line-height:1.6}.submit-button{font-size:14px;font-weight:500;min-height:50px;width:auto;padding:13px 28px;border-radius:4px}.submit-status{font-size:13px;margin-top:16px}.help-modal{align-items:flex-start;padding-top:24px}.help-modal-card{max-width:580px;padding:30px 24px;font-size:13px}.help-modal-close{width:38px;height:38px}.help-modal-card h2{padding-right:35px}.preview-facts{font-size:10px}input::placeholder,textarea::placeholder{color:var(--color-muted);opacity:1}
@media(max-width:650px){.file-card-controls{width:100%}.file-card-controls-buttons{justify-content:flex-end}.preview-thumb{max-width:150px}.file-card{padding:14px}.contact-form{gap:14px}.group-controls-row{flex-wrap:wrap}.row-fields{flex-wrap:wrap}.row-actions{flex-wrap:wrap}.group-controls button{font-size:10px}.file-card-fields{gap:10px}.page>.page-heading h1{font-size:14px}.drop-zone{min-height:165px}.drop-zone p{font-size:15px}.contact-form input,.contact-form textarea,.file-card-fields input,.file-card-fields select{font-size:16px}.submit-button{width:100%}}
@media(max-width:390px){.contact-form{grid-template-columns:1fr}.contact-form .field{grid-column:1/-1}.file-card-fields{flex-direction:column}.row-fields select{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* The host owns the page-wide drop state. Inside the iframe the drop target
   remains visible, but its second full-window overlay must never compete. */
.drag-overlay,.drag-overlay.active{display:none!important}.drop-zone.dragover{border-color:var(--color-accent);background:var(--color-accent-soft)}

/* Both help triggers sit beside their headings. The explanation itself opens
   as a local popover, rather than halfway down a height-growing iframe. */
.page>.page-heading{justify-content:flex-start}.help-modal{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:flex-start;padding:0;background:transparent}.help-modal-card{position:absolute;top:var(--help-popover-top,24px);left:var(--help-popover-left,12px);width:min(580px,calc(100% - 24px));max-width:none;margin:0;padding:24px;background:var(--color-surface);border:1px solid var(--color-border);box-shadow:0 8px 26px #17212624}.help-modal-close{border-radius:4px;background:transparent;border:0;color:var(--muted)}

/* Computed delivery names are part of the order data, so they need to read
   like a primary value rather than a faint technical footnote. */
.preview{margin-top:14px;font-family:var(--font-body);font-size:13px;line-height:1.5;font-weight:500;color:var(--color-accent);word-break:break-word;overflow-wrap:anywhere}

/* The preview service paints its SVG ground #f7f7f8. Reuse it in the thumb
   and expanded panel to remove the nested-rectangle mismatch. */
.preview-thumb,.dxf-panel-container{background:#f7f7f8}

/* Remove is intentionally quiet until hovered: it belongs beside Reset, not
   as a competing red warning control. */
.remove-button{background:transparent;border-color:var(--color-border-strong);color:var(--color-muted);font-weight:500}.remove-button:hover{background:transparent;border-color:#b85454;color:#a23f3f}
