.xt-workspace { order: 3; width: 100%; min-width: 0; max-width: 100%; margin: 4px 0; text-align: left; }
.xt-panel { margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; }
.xt-details { margin: 6px 0; color: #53627a; font-size: 12px; line-height: 1.4; }
.xt-details summary { cursor: pointer; }
.xt-details .xt-help { font-size: 12px; }
.xt-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.xt-toolbar label { display: grid; gap: 6px; font-weight: 700; }
.xt-workspace input:not([type=checkbox]):not([type=file]), .xt-workspace select { min-height: 44px; max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); }
.xt-toolbar select { min-width: 160px; max-width: 300px; }
.xt-workspace button, .xt-upload { min-height: 44px; }
.xt-upload { position: relative; display: flex !important; align-items: center; padding: 10px 14px; cursor: pointer; }
.xt-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.xt-upload:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.xt-help { margin: 10px 0; color: #53627a; font-size: 14px; line-height: 1.6; }
.xt-status { margin: 4px 0; color: #1659af; font-size: 12px; line-height: 1.4; }
.xt-status:empty { display: none; }
.xt-error { color: #b42318; }
.xt-editor { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.xt-editor h3 { margin: 0 0 14px; }
.xt-warning { white-space: pre-line; padding: 10px; color: #79480b; background: #fff6e8; font-size: 14px; line-height: 1.6; }
.xt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; margin: 12px 0; }
.xt-grid { overflow: auto; max-height: 560px; padding: 8px; background: white; border: 1px solid var(--line); }
.xt-grid [data-cell-ref] { cursor: crosshair; outline: 1px solid #dbe3ee; outline-offset: -1px; }
.xt-grid [data-cell-ref]:hover { outline: 2px solid var(--blue); outline-offset: -2px; }
.xt-mappings { max-height: 560px; overflow-y: auto; }
.xt-field { display: grid; grid-template-columns: 92px minmax(0,1fr) 56px; gap: 6px; align-items: center; padding: 5px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; }
.xt-field button { padding: 6px; }
.xt-field input { width: 100%; }
.xt-active-field { border-color: var(--blue); background: var(--blue-soft); }
.xt-confirm { display: flex; align-items: start; gap: 8px; margin: 16px 0; padding: 8px 0; font-size: 14px; line-height: 1.6; }
.xt-confirm input { width: 20px; height: 20px; flex-shrink: 0; }
.xt-filled-preview { margin: 14px 0; padding: 14px; overflow: auto; max-height: 640px; background: white; border: 1px solid var(--line); }
.xt-quote-page { background: white; color: #17233c; padding: 8px 0; margin-bottom: 18px; break-after: page; }
.xt-quote-page:last-child { break-after: auto; margin-bottom: 0; }
.xt-scheme-note { font-size: 14px; margin: 0 0 12px; color: #34445c; }
.xt-quote-page table { margin: 0 auto; }
#success-step:has(.xt-workspace) { min-width: 0; max-width: 100%; }
#success-step.page-section-active .success-actions { order: 6; position: sticky; bottom: 0; z-index: 5; padding: 8px 0; background: #fff; border-top: 1px solid var(--line); }
#quote-preview:has(.xt-quote-page) { width: 100%; min-width: 0; overflow-x: auto; }
#quote-preview .xlsx-quote-table, .xt-grid .xlsx-quote-table, .xt-filled-preview .xlsx-quote-table { min-width: 720px; }
@media (max-width: 900px) {
  .xt-layout { grid-template-columns: minmax(0,1fr); }
  .xt-grid { max-height: 360px; }
  .xt-mappings { max-height: 380px; }
  .xt-workspace input:not([type=checkbox]):not([type=file]), .xt-workspace select { font-size: 16px; }
}
@media print { .xt-workspace { display: none !important; } }
