/* Optional MIND.Layout.20260909 — no incumbent editor overrides. */
.mind-layout-switch { display:inline-flex; align-items:center; gap:6px; color:var(--color-text-secondary); font-size:12px; }
.mind-layout-switch select { padding:4px 8px; border:1px solid var(--color-border); border-radius:5px; background:var(--arx-white); color:var(--arx-charcoal); font:inherit; }
.mind-layout-choice { width:520px; max-width:calc(100vw - 32px); margin:auto; padding:24px; color:var(--arx-charcoal); background:var(--arx-white); border:1px solid var(--color-border); border-radius:12px; }
.mind-layout-choice::backdrop { background:rgb(0 0 0 / 28%); }
.mind-layout-choice h2 { margin:0 0 8px; font-size:20px; }
.mind-layout-choice p { font-size:14px; color:var(--color-text-secondary); }
.mind-layout-options { display:grid; gap:10px; margin:18px 0; }
.mind-layout-options > button { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:14px; border:1px solid var(--color-border); border-radius:6px; background:var(--arx-white); color:var(--arx-charcoal); cursor:pointer; font:inherit; text-align:left; }
.mind-layout-options > button:hover { background:var(--arx-blue-soft); border-color:var(--arx-blue-ink); }
.mind-layout-options span { font-size:12px; color:var(--color-text-secondary); }
.mind-layout-choice form { text-align:right; }
.mind-layout-choice button:focus-visible, .mind-layout-switch select:focus-visible { outline:2px solid var(--arx-blue-ink); outline-offset:2px; }

#mind-form.the-mind { max-width:1480px; width:100%; font-size:12px; color:var(--arx-charcoal); --text-xs:11px; --text-sm:12px; }
#mind-form-container:has(> .the-mind) > .mind-mgmt-strip { max-width:1480px; }
#mind-form.the-mind [hidden] { display:none !important; }
#mind-form.the-mind .tm-page-header { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 10px; }
#mind-form.the-mind .tm-page-header h1 { font-size:26px; line-height:1.25; margin:0; font-weight:650; }
#mind-form.the-mind .tm-page-header > span { color:var(--color-text-secondary); }
#mind-form.the-mind .tm-page-header .mind-layout-switch { margin-left:auto; }
#mind-form.the-mind .tm-layout { display:grid; grid-template-columns:150px minmax(0,1fr); gap:12px; align-items:start; }
#mind-form.the-mind .tm-steps { padding:10px; border:1px solid var(--color-border); border-radius:10px; background:var(--arx-white); }
#mind-form.the-mind .tm-steps h2 { font-size:11px; font-weight:600; text-transform:uppercase; color:var(--color-text-secondary); margin:6px 6px 10px; }
#mind-form.the-mind .tm-steps button { width:100%; display:flex; align-items:center; justify-content:space-between; gap:4px; min-height:30px; border:0; padding:5px 8px; border-radius:5px; background:transparent; color:var(--arx-charcoal); text-align:left; font:inherit; cursor:pointer; }
#mind-form.the-mind .tm-steps button:hover { background:var(--arx-blue-soft); }
#mind-form.the-mind .tm-steps button[aria-current="step"] { background:var(--arx-blue-ink); color:white; }
#mind-form.the-mind .tm-steps small { font-size:9px; }
#mind-form.the-mind .tm-work { min-width:0; border:1px solid var(--color-border); border-radius:10px; background:var(--arx-white); padding:12px 12px 8px; }
#mind-form.the-mind .tm-work-header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--color-border); padding:0 0 10px; margin-bottom:12px; }
#mind-form.the-mind .tm-work-header h2 { margin:0; font-size:16px; }
#mind-form.the-mind .tm-work-header > span { color:var(--color-text-secondary); font-size:12px; }
#mind-form.the-mind .tm-fields { display:block; }
#mind-form.the-mind :is(input:not([type="checkbox"]),select,.ss-input) { min-height:26px; height:26px; padding:3px 7px; font-size:12px; line-height:18px; border-radius:4px; }
#mind-form.the-mind input[type="number"] { font-variant-numeric:tabular-nums; text-align:right; }
#mind-form.the-mind input[type="checkbox"] { appearance:auto; accent-color:var(--arx-blue-ink); width:15px; height:15px; }
#mind-form.the-mind .btn { min-height:28px; padding:4px 10px; font-size:12px; line-height:18px; border-radius:5px; }
#mind-form.the-mind button:disabled { opacity:.5; cursor:default; }
#mind-form.the-mind :is(button,input,select,[role="button"]):focus-visible { outline:2px solid var(--arx-blue-ink); outline-offset:2px; }
#mind-form.the-mind .form-group { min-width:0; gap:4px; }
#mind-form.the-mind .form-group label { font-size:12px; line-height:1.4; margin:0; }
#mind-form.the-mind .tm-product-row { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:12px; padding:0 0 12px; }
#mind-form.the-mind .tm-product-row > .form-group { display:grid; grid-template-columns:auto minmax(90px,1fr); column-gap:8px; align-items:center; }
#mind-form.the-mind .tm-product-row > .form-group > label { display:contents; }
#mind-form.the-mind .tm-product-row .tm-label-text { grid-column:1; grid-row:1; }
#mind-form.the-mind .tm-product-row .tm-source { grid-column:2; grid-row:2; }
#mind-form.the-mind .tm-product-row :is(.searchable-select,select) { grid-column:2; grid-row:1; width:100%; }
#mind-form.the-mind .ss-input { width:100%; padding-right:24px; }
#mind-form.the-mind .ss-dropdown { font-size:12px; min-width:260px; max-width:calc(100vw - 32px); }
#mind-form.the-mind .tm-parameters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--color-border); border-radius:7px; }
#mind-form.the-mind .tm-parameter-head,
#mind-form.the-mind .tm-parameter { display:grid; grid-template-columns:160px 110px minmax(0,1fr); column-gap:8px; align-items:center; padding:5px 10px; margin:0; }
#mind-form.the-mind .tm-parameter-head { background:var(--arx-gray-light); font-size:10px; text-transform:uppercase; font-weight:600; color:var(--color-text-secondary); border-bottom:1px solid var(--color-border); }
#mind-form.the-mind .tm-parameter { min-height:34px; border-bottom:1px solid var(--color-border); }
#mind-form.the-mind .tm-parameter:nth-child(4n+5),
#mind-form.the-mind .tm-parameter:nth-child(4n+6) { background:var(--arx-gray-light); }
#mind-form.the-mind .tm-parameter:nth-last-child(-n+2) { border-bottom:0; }
#mind-form.the-mind .tm-parameter:nth-child(even) { border-left:1px solid var(--color-border); }
#mind-form.the-mind .tm-parameter > label { display:contents; }
#mind-form.the-mind .tm-parameter .tm-label-text { grid-column:1; grid-row:1; font-weight:400; }
#mind-form.the-mind .tm-parameter > :is(input,select,output) { grid-column:2; grid-row:1; width:100%; min-width:0; }
#mind-form.the-mind .tm-parameter > input[type="checkbox"] { width:15px; }
#mind-form.the-mind .tm-parameter > output { text-align:right; padding-right:8px; font-variant-numeric:tabular-nums; }
#mind-form.the-mind .tm-parameter .tm-source { grid-column:3; grid-row:1; }
#mind-form.the-mind .tm-source { display:flex; align-items:center; flex-wrap:wrap; gap:3px 5px; min-width:0; }
#mind-form.the-mind .tm-source .ev-badge { margin:0; order:0; }
#mind-form.the-mind .tm-source :is(.mind-autofill-hint,.mind-manual-input-hint) { order:1; flex:1 1 80px; width:auto; margin:0; }
#mind-form.the-mind .mind-autofill-hint { color:var(--arx-blue-ink); text-transform:none; letter-spacing:0; font-size:10px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
#mind-form.the-mind .mind-manual-input-hint { color:var(--color-text-secondary); font-size:10px; }
#mind-form.the-mind .ev-badge { color:var(--arx-blue-ink); background:var(--arx-blue-soft); border-color:var(--arx-blue-border); font-size:10px; padding:1px 6px; min-height:19px; line-height:15px; }
#mind-form.the-mind .tm-purchase-totals { display:flex; align-items:center; flex-wrap:wrap; gap:8px 24px; padding:10px 0; font-variant-numeric:tabular-nums; }
#mind-form.the-mind .tm-purchase-totals strong { margin-left:6px; font-size:12px; }
#mind-form.the-mind .tm-purchase-formula { border:0; padding:0; margin:0; }
#mind-form.the-mind .tm-purchase-formula[open] { flex-basis:100%; }
#mind-form.the-mind .tm-purchase-formula > span { display:block; padding:4px 0; }
#mind-form.the-mind .mind-markup-actions { display:flex; align-items:center; gap:8px; margin:0 0 6px; }
#mind-form.the-mind #m-markup-status { font-size:10px; line-height:1.4; }
#mind-form.the-mind .mind-inline-details { padding:0; margin:0; }
#mind-form.the-mind .mind-inline-details > summary { padding:7px 0; font-size:12px; }
#mind-form.the-mind .mind-profit-strip { padding:8px 0; }
#mind-form.the-mind .mind-profit-strip .mind-exporter-row { flex-direction:row; align-items:center; gap:8px; }
#mind-form.the-mind .mind-profit-strip .mind-exporter-val { font-size:14px; }
#mind-form.the-mind .mind-exporter-grid { font-size:12px; }
#mind-form.the-mind .mind-section { border:0; border-radius:0; margin:0; padding:0; }
#mind-form.the-mind .mind-section > .mind-section-body { padding:0; gap:10px; }
#mind-form.the-mind #m-section-allocation > summary,
#mind-form.the-mind #m-section-financial > summary { display:none; }
#mind-form.the-mind #m-section-shipment > summary { min-height:30px; padding:8px 0; background:transparent; border-top:1px solid var(--color-border); }
#mind-form.the-mind #m-section-shipment > summary h3 { font-size:13px; }
#mind-form.the-mind .form-grid { gap:8px; }
#mind-form.the-mind .mind-supplier-schedule { padding:10px; margin:8px 0; }
#mind-form.the-mind .mind-supplier-definition { font-size:12px; }
#mind-form.the-mind :is(.mind-supplier-table,.mind-clients-table) :is(th,td) { padding:5px 7px; font-size:11px; }
#mind-form.the-mind .mind-clients-table :is(input,select) { min-height:26px; height:26px; padding:3px 5px; font-size:12px; }
#mind-form.the-mind .mc-remove-btn { min-width:26px; min-height:26px; }
#mind-form.the-mind .mind-customer-search { gap:6px; margin:6px 0; }
#mind-form.the-mind .mind-customer-search input { min-height:26px; height:26px; padding:3px 7px; }
#mind-form.the-mind .mind-allocation-table-scroll { max-height:60vh; }
#mind-form.the-mind .mind-editor-actions { position:static; min-height:36px; padding:8px 0 0; margin:0; gap:6px; background:transparent; }
#mind-form.the-mind #m-editor-state { font-size:11px; }
#mind-form.the-mind #m-editor-context { font-size:10px; }
#mind-form.the-mind .tm-step-note { color:var(--color-text-secondary); font-size:10px; margin:8px 0; }
#mind-form.the-mind .mind-editor-error { font-size:12px; }
.tm-evidence-popover .ev-popover-header { font-size:11px; }
.tm-evidence-popover .ev-popover-body { max-height:min(300px,60vh); }
.tm-evidence-popover .ev-table { font-size:12px; }
.tm-evidence-popover button:focus-visible { outline:2px solid var(--arx-blue-ink); outline-offset:2px; }
/* A calculation is a bounded workbench, even on a 4K display. Keep
   labels, editable values and their evidence within one reading span. */
#mind-form.the-mind .mind-finance-premises { grid-template-columns:repeat(5,minmax(0,1fr)); max-width:1080px; gap:12px; }
#mind-form.the-mind .mind-finance-premises .form-group > label { min-height:34px; }
#mind-form.the-mind .mind-finance-premises .form-group > :is(input,select) { width:120px; max-width:100%; }
#mind-form.the-mind #m-section-shipment .form-grid { grid-template-columns:repeat(4,minmax(0,180px)); max-width:744px; }
#mind-form.the-mind #m-section-shipment .form-group > :is(input,select) { max-width:100%; }
#mind-form.the-mind .mind-supplier-dates { grid-template-columns:220px; margin-top:8px; gap:8px; }
#mind-form.the-mind .mind-supplier-help { margin:6px 0; line-height:1.4; }
#mind-form.the-mind .mind-supplier-table-scroll { margin:8px 0; }
#mind-form.the-mind .mind-supplier-table { table-layout:fixed; width:1080px; max-width:100%; }
#mind-form.the-mind .mind-supplier-table th:nth-child(1) { width:150px; }
#mind-form.the-mind .mind-supplier-table th:nth-child(2) { width:70px; }
#mind-form.the-mind .mind-supplier-table th:nth-child(3) { width:190px; }
#mind-form.the-mind .mind-supplier-table th:nth-child(4) { width:80px; }
#mind-form.the-mind .mind-supplier-table th:last-child { width:60px; }
#mind-form.the-mind .mind-supplier-table input[type="number"] { width:60px; }
#mind-form.the-mind .mind-clients-table { table-layout:fixed; }
#mind-form.the-mind .mind-clients-table th:nth-child(1) { width:230px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(2) { width:80px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(3) { width:120px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(4) { width:170px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(5) { width:120px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(6) { width:100px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(7) { width:110px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(8) { width:130px !important; }
#mind-form.the-mind .mind-clients-table th:last-child { width:70px !important; }
#mind-form.the-mind .mind-clients-table :is(th,td):first-child { min-width:0; }
#mind-form.the-mind .mc-freight { min-width:0; }
#mind-form.the-mind :is(.mc-last-sale,.mc-suggestion-content) { min-height:26px; }
@media (max-width:1250px) {
  #mind-form.the-mind .tm-layout { grid-template-columns:150px minmax(0,1fr); gap:10px; }
  #mind-form.the-mind .tm-parameters { grid-template-columns:minmax(0,1fr); }
  #mind-form.the-mind .tm-parameter-head:nth-child(2) { display:none; }
  #mind-form.the-mind .tm-parameter:nth-child(even) { border-left:0; }
  #mind-form.the-mind .tm-parameter { background:transparent; }
  #mind-form.the-mind .tm-parameter:nth-child(even) { background:var(--arx-gray-light); }
}
@media (max-width:700px) {
  #mind-form.the-mind .tm-layout { grid-template-columns:minmax(0,1fr); }
  #mind-form.the-mind .tm-steps { display:flex; flex-wrap:wrap; gap:4px; }
  #mind-form.the-mind .tm-steps h2 { width:100%; }
  #mind-form.the-mind .tm-steps button { width:auto; flex:1 1 110px; min-height:36px; }
  #mind-form.the-mind .tm-work { padding:10px; }
  #mind-form.the-mind .tm-page-header h1 { font-size:22px; }
  #mind-form.the-mind .tm-page-header .mind-layout-switch { margin-left:0; }
  #mind-form.the-mind .tm-product-row { grid-template-columns:minmax(0,1fr); }
  #mind-form.the-mind .tm-parameter-head,#mind-form.the-mind .tm-parameter { grid-template-columns:minmax(90px,1fr) 95px minmax(65px,1fr); gap:6px; padding:5px; }
  #mind-form.the-mind .tm-parameter .tm-label-text { font-size:11px; }
  #mind-form.the-mind .tm-parameter :is(input,select) { font-size:12px; }
  #mind-form.the-mind .mind-finance-premises,
  #mind-form.the-mind #m-section-shipment .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #mind-form.the-mind .mind-editor-actions .btn { min-height:36px; }
}
@media print {
  #mind-form.the-mind :is(.tm-steps,.tm-page-header,.tm-step-note) { display:none; }
  #mind-form.the-mind .tm-layout { display:block; }
  #mind-form.the-mind .tm-step[hidden] { display:block !important; }
}

/* Approved Focus Desk, 2026-09-09: one dense shell across all four steps. */
#mind-form.the-mind { max-width:1900px; font-size:11px; --text-xs:10px; --text-sm:11px; }
#mind-form-container:has(> .the-mind) > .mind-mgmt-strip { max-width:1900px; font-size:10px; padding:4px 8px; margin-bottom:6px; }
#mind-form.the-mind .tm-page-header { gap:8px; margin-bottom:6px; }
#mind-form.the-mind .tm-page-header h1 { font-size:17px; }
#mind-form.the-mind .tm-page-header > span { font-size:11px; }
#mind-form.the-mind .tm-layout { grid-template-columns:140px minmax(0,1fr) 420px; gap:8px; }
#mind-form.the-mind .tm-steps { padding:6px; border-radius:5px; }
#mind-form.the-mind .tm-steps h2 { font-size:10px; margin:6px 2px 8px; }
#mind-form.the-mind .tm-steps button { min-height:28px; padding:4px 6px; font-size:11px; border-radius:3px; }
#mind-form.the-mind .tm-work { padding:8px; border-radius:4px; }
#mind-form.the-mind .tm-work-header { padding-bottom:6px; margin-bottom:6px; }
#mind-form.the-mind .tm-work-header h2 { font-size:13px; }
#mind-form.the-mind .tm-work-header > span { font-size:10px; }
#mind-form.the-mind :is(input:not([type="checkbox"]),select,.ss-input) { min-height:20px; height:20px; padding:1px 4px; font-size:10px; line-height:16px; border-radius:2px; }
#mind-form.the-mind input[type="checkbox"] { width:12px; height:12px; }
#mind-form.the-mind .btn { min-height:22px; padding:2px 6px; font-size:10px; line-height:16px; border-radius:3px; }
#mind-form.the-mind .form-group { gap:2px; }
#mind-form.the-mind .form-group label { font-size:10px; line-height:1.3; }
#mind-form.the-mind .tm-product-row { gap:8px; padding-bottom:6px; }
#mind-form.the-mind .tm-product-row > .form-group { column-gap:4px; }
#mind-form.the-mind .tm-parameters { border-radius:3px; }
#mind-form.the-mind .tm-parameter-head,#mind-form.the-mind .tm-parameter { grid-template-columns:130px 80px minmax(0,1fr); padding:2px 5px; column-gap:6px; }
#mind-form.the-mind .tm-parameter { min-height:25px; }
#mind-form.the-mind .tm-parameter-head { font-size:9px; }
#mind-form.the-mind :is(.mind-autofill-hint,.mind-manual-input-hint) { font-size:9px; }
#mind-form.the-mind .ev-badge { font-size:9px; min-height:16px; line-height:12px; padding:1px 4px; border-radius:8px; }
#mind-form.the-mind .tm-purchase-totals { gap:6px 16px; padding:6px 0; }
#mind-form.the-mind .tm-purchase-totals strong { font-size:11px; }
#mind-form.the-mind .mind-inline-details > summary { padding:5px 0; font-size:11px; }
#mind-form.the-mind .mind-section > .mind-section-body { gap:6px; }
#mind-form.the-mind .form-grid { gap:6px; }
#mind-form.the-mind .mind-finance-premises { max-width:none; gap:8px; }
#mind-form.the-mind .mind-finance-premises .form-group > label { min-height:28px; }
#mind-form.the-mind .mind-finance-premises .form-group > :is(input,select) { width:80px; }
#mind-form.the-mind .mind-supplier-schedule { padding:6px; margin:4px 0; border-radius:3px; }
#mind-form.the-mind .mind-supplier-definition { margin:6px 0; font-size:11px; }
#mind-form.the-mind .mind-supplier-help { margin:4px 0; font-size:10px; }
#mind-form.the-mind .mind-supplier-dates { grid-template-columns:180px; margin-top:6px; }
#mind-form.the-mind .mind-supplier-dates label { gap:2px; font-size:10px; }
#mind-form.the-mind .mind-supplier-table { width:100%; min-width:800px; font-size:10px; }
#mind-form.the-mind .mind-supplier-table :is(th,td) { padding:3px 4px; font-size:10px; }
#mind-form.the-mind .mind-supplier-table th:nth-child(1) { width:120px; }
#mind-form.the-mind .mind-supplier-table th:nth-child(3) { width:180px; }
#mind-form.the-mind #m-section-shipment .form-grid { grid-template-columns:repeat(4,minmax(0,140px)); max-width:578px; }
#mind-form.the-mind #m-section-shipment > summary { padding:5px 0; min-height:24px; }
#mind-form.the-mind #m-section-shipment .mind-section-summary { font-size:10px; }
#mind-form.the-mind .tm-customer-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
#mind-form.the-mind #m-allocation-actions { gap:4px; margin:0; }
#mind-form.the-mind #m-auto-alloc-hint { flex-basis:100%; font-size:9px; }
#mind-form.the-mind .mind-customer-search { gap:4px; margin:0; flex:1; }
#mind-form.the-mind .mind-customer-search label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#mind-form.the-mind .mind-customer-search input { width:180px; min-height:20px; height:20px; padding:1px 5px; font-size:10px; }
#mind-form.the-mind #m-customer-search-count { font-size:9px; }
#mind-form.the-mind .tm-delivery { margin:0 !important; padding:3px 6px !important; gap:8px !important; border-radius:3px !important; }
#mind-form.the-mind .mind-alloc-summary { margin:0; padding:4px 0; font-size:10px; }
#mind-form.the-mind .mind-allocation-table-scroll { max-height:calc(100vh - 280px); min-height:80px; border-radius:3px; }
#mind-form.the-mind .mind-clients-table { min-width:1080px; }
#mind-form.the-mind .mind-clients-table :is(th,td) { padding:2px 4px; font-size:10px; vertical-align:middle; }
#mind-form.the-mind .mind-clients-table th { font-size:9px; }
#mind-form.the-mind .mind-clients-table :is(input,select) { min-height:20px; height:20px; padding:1px 3px; font-size:10px; line-height:16px; }
#mind-form.the-mind .mind-clients-table th:nth-child(1) { width:165px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(2) { width:60px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(3) { width:90px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(4) { width:135px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(5) { width:85px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(6) { width:75px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(7) { width:80px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(8) { width:110px !important; }
#mind-form.the-mind .mind-clients-table th:nth-child(9) { width:135px !important; }
#mind-form.the-mind .mind-clients-table th:last-child { width:50px !important; }
#mind-form.the-mind .mc-relevance { margin:0; font-size:9px; white-space:nowrap; }
#mind-form.the-mind .mind-clients-table td:nth-child(8) { position:relative; padding-right:24px; }
#mind-form.the-mind .mc-freight-details { position:absolute; top:4px; right:4px; margin:0; }
#mind-form.the-mind .mc-freight-note { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#mind-form.the-mind .mc-freight::placeholder { color:var(--color-warning); font-size:9px; }
#mind-form.the-mind :is(.mc-last-sale,.mc-suggestion-content) { min-height:20px; }
#mind-form.the-mind .mc-suggestion-content { gap:3px; }
#mind-form.the-mind .mc-remove-btn { min-width:18px; min-height:18px; width:18px; height:18px; padding:2px; }
#mind-form.the-mind .mind-editor-actions { padding-top:4px; min-height:28px; }
#mind-form.the-mind .tm-step-note { margin:5px 0; font-size:9px; }
#mind-form.the-mind #m-editor-state { font-size:10px; }
#mind-form.the-mind #m-editor-context { font-size:9px; }
#mind-form.the-mind .tm-context { min-width:0; background:var(--arx-white); border:1px solid var(--color-border); border-radius:4px; font-size:10px; }
#mind-form.the-mind .tm-context > h2 { margin:0; padding:8px; font-size:13px; border-bottom:1px solid var(--color-border); }
#mind-form.the-mind .tm-context-section { padding:6px 8px; border-bottom:1px solid var(--color-border); }
#mind-form.the-mind .tm-context-section h3 { margin:0 0 5px; font-size:11px; }
#mind-form.the-mind .tm-context-row { display:grid; grid-template-columns:110px 105px minmax(0,1fr); align-items:center; gap:5px; min-height:24px; }
#mind-form.the-mind .tm-context-control { width:100%; min-width:0; }
#mind-form.the-mind button.tm-context-control { height:20px; padding:1px 4px; border:1px solid var(--color-border); border-radius:2px; background:var(--arx-white); font:inherit; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; cursor:pointer; }
#mind-form.the-mind input.tm-context-control[type="checkbox"] { width:12px; }
#mind-form.the-mind .tm-context-source { display:flex; align-items:center; gap:3px; min-width:0; color:var(--arx-blue-ink); font-size:9px; line-height:1.25; }
#mind-form.the-mind .tm-context-source > span { overflow-wrap:anywhere; }
#mind-form.the-mind .tm-context-badge { flex-shrink:0; cursor:pointer; }
#mind-form.the-mind .tm-context-totals { margin:6px 0 0; padding-top:5px; border-top:1px solid var(--color-border); font-size:10px; font-weight:600; }
#mind-form.the-mind #tm-context-terms h4 { font-size:10px; margin:8px 0 4px; }
#mind-form.the-mind #tm-context-terms p { margin:4px 0; line-height:1.4; }
#mind-form.the-mind .tm-context-scroll { overflow:auto; }
#mind-form.the-mind .tm-context-scroll table { width:100%; border-collapse:collapse; font-size:9px; }
#mind-form.the-mind .tm-context-scroll :is(th,td) { text-align:left; padding:3px; border-bottom:1px solid var(--color-border); }
#mind-form.the-mind .tm-context-link { background:none; border:0; color:var(--arx-blue-ink); font:inherit; padding:3px 0; cursor:pointer; }
#mind-form.the-mind #tm-source-empty { color:var(--color-text-secondary); line-height:1.4; margin:4px 0; }
#mind-form.the-mind .tm-docked-evidence { box-shadow:none; border:0; border-radius:0; margin:0; }
#mind-form.the-mind .tm-docked-evidence .ev-popover-header { padding:4px 0; font-size:10px; flex-wrap:wrap; }
#mind-form.the-mind .tm-docked-evidence .ev-popover-body { padding:4px 0; font-size:10px; max-height:340px; }
#mind-form.the-mind .tm-docked-evidence .ev-table { font-size:10px; }
#mind-form.the-mind .tm-docked-evidence .ev-table :is(th,td) { padding:3px; }
#mind-form.the-mind #mind-results-panel { font-size:11px; }
#mind-form.the-mind #mind-results-panel :is(th,td) { font-size:10px; padding:4px 6px; }
@media (max-width:1550px) {
  #mind-form.the-mind .tm-layout { grid-template-columns:120px minmax(0,1fr) 340px; }
  #mind-form.the-mind .tm-context-row { grid-template-columns:90px 85px minmax(0,1fr); }
  #mind-form.the-mind .tm-parameters { grid-template-columns:minmax(0,1fr); }
  #mind-form.the-mind .tm-parameter-head:nth-child(2) { display:none; }
  #mind-form.the-mind .tm-parameter:nth-child(even) { border-left:0; }
  #mind-form.the-mind .tm-parameter:nth-child(odd) { background:white; }
  #mind-form.the-mind .tm-parameter:nth-child(even) { background:var(--arx-gray-light); }
}
@media (max-width:1150px) {
  #mind-form.the-mind .tm-layout { grid-template-columns:120px minmax(0,1fr); }
  #mind-form.the-mind .tm-context { grid-column:2; }
  #mind-form.the-mind .tm-context-row { grid-template-columns:120px 120px minmax(0,1fr); }
}
@media (max-width:700px) {
  #mind-form.the-mind .tm-layout { grid-template-columns:minmax(0,1fr); }
  #mind-form.the-mind .tm-context { grid-column:1; }
  #mind-form.the-mind .tm-product-row { grid-template-columns:minmax(0,1fr); }
  #mind-form.the-mind .tm-parameter { grid-template-columns:100px 65px minmax(0,1fr); }
  #mind-form.the-mind .tm-context-row { grid-template-columns:90px 90px minmax(0,1fr); }
  #mind-form.the-mind .mind-finance-premises,#mind-form.the-mind #m-section-shipment .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media print {
  #mind-form.the-mind .tm-context { display:none; }
}
/* Native context editors use the same subtle field border as the main grid. */
#mind-form.the-mind .tm-context :is(input:not([type="checkbox"]),select) { border:1px solid var(--color-border-strong); background:var(--arx-white); color:var(--arx-charcoal); box-sizing:border-box; }
#mind-form.the-mind .tm-context .mind-autofilled { background:var(--arx-blue-soft) !important; border-color:var(--arx-blue-border) !important; }

/* Explicit field roles approved 2026-09-11; preserve density and source badges. */
#mind-form.the-mind :is(#mss-product-input,#m-markup,#m-freight-markup) {
  background:var(--arx-input-manual-soft) !important;
  border-color:var(--arx-input-manual-border) !important;
  color:var(--arx-charcoal);
}
#mind-form.the-mind .tm-context :is(.tm-context-control:not([type="checkbox"]),.tm-context-policy strong),
#mind-form.the-mind .tm-step[data-step="3"] :is(input:not([type="checkbox"]):not([type="hidden"]),select,textarea) {
  background:var(--arx-blue-soft) !important;
  border-color:var(--arx-blue-border) !important;
  color:var(--arx-charcoal);
  opacity:1;
}
#mind-form.the-mind .mind-markup-actions { flex-wrap:wrap; }
#mind-form.the-mind #tm-markup-outcome { font-weight:600; padding:2px 5px; border:1px solid transparent; border-radius:3px; }
#mind-form.the-mind .mind-markup-actions[data-target-state="met"] :is(#m-suggest-markups,#tm-markup-outcome) {
  background:var(--arx-input-manual-soft); border-color:var(--arx-input-manual-border); color:var(--arx-success);
}
#mind-form.the-mind .mind-markup-actions[data-target-state="below"] :is(#m-suggest-markups,#tm-markup-outcome) {
  background:var(--arx-danger-soft); border-color:var(--arx-danger-border); color:var(--arx-danger);
}
#mind-form.the-mind .tm-purchase-totals { flex-wrap:wrap; gap:6px 16px; }
#mind-form.the-mind .tm-context-totals > div { display:flex; justify-content:space-between; gap:6px; padding:2px 0; }
#mind-form.the-mind .tm-context-totals strong { font-variant-numeric:tabular-nums; }
#mind-form.the-mind .tm-context :disabled { opacity:.6; }
#mind-form.the-mind .mind-clients-table .btn { min-height:20px; height:20px; padding:1px 4px; }
#mind-form.the-mind .tm-context-policy { display:flex; gap:10px; padding:4px 0; }
#mind-form.the-mind .tm-context-policy span:last-child { color:var(--arx-blue-ink); font-size:9px; }
body.mind-workspace:has(#mind-form.the-mind) .topbar { min-height:36px; padding-top:4px; padding-bottom:4px; }
body.mind-workspace:has(#mind-form.the-mind) .topbar-title { font-size:14px; }
body.mind-workspace:has(#mind-form.the-mind) .topbar .btn { padding:3px 6px; min-height:24px; font-size:10px; }
#mind-form-container:has(> .the-mind) > .mind-mgmt-strip { padding:4px 8px !important; margin-bottom:6px !important; border-radius:3px !important; }
#mind-form-container:has(> .the-mind) > .mind-mgmt-strip .btn { min-height:22px; padding:2px 6px; font-size:10px; }
#mind-form.the-mind .tm-context { max-height:calc(100vh - 130px); overflow:auto; overscroll-behavior:contain; }
#mind-form.the-mind .tm-context-row { min-height:22px; grid-template-columns:100px 100px minmax(0,1fr); }
#mind-form.the-mind .tm-context-payment { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:4px; }
#mind-form.the-mind .tm-context-payment .tm-context-row { display:flex; flex-direction:column; align-items:stretch; gap:2px; }
#mind-form.the-mind .tm-context-payment .tm-context-source { min-height:12px; }
@media (max-width:1550px) {
  #mind-form.the-mind .tm-context-row { grid-template-columns:85px 85px minmax(0,1fr); }
}
@media (max-width:1150px) {
  #mind-form.the-mind .tm-context { max-height:none; }
  #mind-form.the-mind .tm-context-row { grid-template-columns:100px 100px minmax(0,1fr); }
}
#mind-form.the-mind .mind-result-details { margin:6px 0; border-radius:3px; }
#mind-form.the-mind .mind-result-details > summary { padding:6px 8px; }
#mind-form.the-mind .mind-result-details > summary::after { margin-top:4px; font-size:10px; }
#mind-form.the-mind .mind-result-details .pnl-header { padding-bottom:4px; }
#mind-form.the-mind .pnl-result-row { padding:5px 8px; }
#mind-form.the-mind .pnl-result-val { font-size:12px; }
#mind-form.the-mind .pnl-header-title { font-size:10px; }
