/* Kits & Assemblies keeps the Stitch register and BOM review in one
   vertically scrolling workspace. All inventory availability stays sourced
   from its own endpoint and is never inferred from saved component rates. */
.tv-stitch-composite-items[data-stitch-screen="d66bf2a9e0834e1d9becdade4cb7c0e6"] > .tv-route-frame,
.tv-stitch-composite-items[data-stitch-route-screen="d66bf2a9e0834e1d9becdade4cb7c0e6"] > .tv-route-frame {
  display:grid;gap:18px;max-width:1600px;margin-inline:auto;
}
.tv-stitch-composite-items .workspace-stats {gap:12px;margin-block:0;}
.tv-stitch-composite-items .tv-composite-metric {box-shadow:none;}
.tv-stitch-composite-items .workspace-body {min-width:0;}
.tv-stitch-composite-items .workspace-main {display:grid;gap:16px;min-width:0;}
.tv-composite-workspace:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:12px;min-width:0;}
.tv-composite-filters:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) auto;gap:10px;align-items:end;padding:14px;background:#fff;border:1px solid var(--tv-border,#c7d4e2);border-radius:10px;}
.tv-composite-filters input:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-composite-filters select:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){width:100%;min-width:0;}
.tv-composite-filters .tv-composite-filter:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:5px;min-width:0;color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-stitch-composite-items .tv-composite-register {max-width:100%;overflow-x:auto;}
.tv-stitch-composite-items .tv-composite-register table {min-width:980px;}
.tv-stitch-composite-items .tv-composite-register td {vertical-align:top;}
.tv-stitch-composite-items .tv-composite-register tbody tr[aria-selected="true"] {background:var(--tv-brand-soft,#e8f3fc);box-shadow:inset 3px 0 var(--tv-brand,#1b64d8);}
.tv-stitch-composite-items .tv-composite-register tbody tr[aria-selected="true"]:focus-visible {outline:2px solid var(--tv-focus,#1769aa);outline-offset:-2px;}
.tv-composite-name:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:4px;min-width:130px;overflow-wrap:anywhere;}
.tv-composite-name small:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-composite-muted:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){color:var(--tv-text-muted,#4d6178);font-size:12px;line-height:1.5;}
.tv-composite-result-count:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:0;padding:10px 14px;color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-composite-detail:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:16px;min-width:0;padding:20px;background:#fff;border:1px solid var(--tv-border,#c7d4e2);border-radius:10px;}
.tv-composite-detail-heading:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--tv-border,#c7d4e2);}
.tv-composite-detail-heading h3:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:0;font-size:19px;overflow-wrap:anywhere;}
.tv-composite-detail-heading p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:6px 0 0;color:var(--tv-text-muted,#4d6178);font-size:13px;overflow-wrap:anywhere;}
.tv-composite-detail-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;}
.tv-composite-operation-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:flex;flex-wrap:wrap;gap:6px;min-width:180px;}
.tv-composite-editor-drawer:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){width:min(760px,100vw);max-width:calc(100vw - 24px);}
.tv-composite-definition-form:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:16px;min-width:0;}
.tv-composite-form-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.tv-composite-field:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:6px;min-width:0;color:var(--tv-text-muted,#4d6178);font-size:13px;}
.tv-composite-field :is(input,select,textarea):where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){width:100%;min-width:0;max-width:100%;}
.tv-composite-field textarea:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){min-height:84px;resize:vertical;}
.tv-composite-checkbox:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:flex;align-items:center;gap:9px;color:var(--tv-text,#122c46);}
.tv-composite-checkbox input:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){width:18px;height:18px;}
.tv-composite-item-search:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;padding:12px;background:var(--tv-surface-muted,#f3f7fb);border:1px solid var(--tv-border,#c7d4e2);border-radius:8px;}
.tv-composite-item-search p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-column:1/-1;margin:0;font-size:12px;}
.tv-composite-components-heading:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;}
.tv-composite-components-heading h3:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:0;font-size:16px;}
.tv-composite-components-heading span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){flex:1 1 100%;order:2;color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-composite-component-editor:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:10px;min-width:0;}
.tv-composite-component-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:10px;min-width:0;padding:12px;border:1px solid var(--tv-border,#c7d4e2);border-radius:8px;}
.tv-composite-component-line legend:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){padding-inline:4px;color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-composite-component-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:10px;}
.tv-composite-form-feedback:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){padding:10px 12px;border-radius:6px;background:var(--tv-surface-muted,#f3f7fb);color:var(--tv-text,#122c46);font-size:13px;line-height:1.45;}
.tv-composite-form-feedback:empty:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:none;}
.tv-composite-form-feedback.is-error:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){background:#fff4f2;color:#8c261b;border:1px solid #e7b4ad;}
.tv-composite-detail-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.tv-composite-detail-panel:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:8px;min-width:0;padding:14px;background:var(--tv-surface-muted,#f3f7fb);border:1px solid var(--tv-border,#c7d4e2);border-radius:8px;overflow-wrap:anywhere;}
.tv-composite-detail-panel h4:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:0 0 4px;font-size:14px;}
.tv-composite-detail-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1fr);gap:12px;padding:5px 0;border-bottom:1px solid var(--tv-border,#c7d4e2);font-size:12px;}
.tv-composite-detail-line span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){color:var(--tv-text-muted,#4d6178);}
.tv-composite-detail-line strong:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){text-align:right;overflow-wrap:anywhere;}
.tv-composite-unavailable:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:0;color:var(--tv-text-muted,#4d6178);font-size:13px;line-height:1.55;}
.tv-composite-table-region:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){max-width:100%;overflow-x:auto;}
.tv-composite-table-region table:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){min-width:720px;}
.tv-composite-read-warning:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-composite-unavailable-state:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){display:grid;gap:5px;padding:14px 16px;background:#fff8e8;border:1px solid #ebd39d;border-radius:8px;color:var(--tv-text,#122c46);}
.tv-composite-read-warning span:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-composite-unavailable-state p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:0;color:var(--tv-text-muted,#4d6178);font-size:13px;line-height:1.5;}
.tv-composite-no-selection:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){min-height:120px;align-content:center;}
.tv-composite-no-selection h3:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)),.tv-composite-no-selection p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){margin:0;}
.tv-composite-no-selection p:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){color:var(--tv-text-muted,#4d6178);}
@media(max-width:900px){.tv-composite-filters:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-template-columns:repeat(2,minmax(0,1fr));}.tv-composite-filters input[type="search"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-column:1/-1;}.tv-composite-detail-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-template-columns:1fr;}}
@media(max-width:540px){.tv-composite-filters:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-template-columns:1fr;padding:12px;}.tv-composite-filters input[type="search"]:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-column:auto;}.tv-composite-detail:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){padding:12px;}.tv-composite-detail-heading:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){flex-direction:column;}.tv-composite-detail-actions:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){justify-content:flex-start;}.tv-composite-form-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-template-columns:1fr;}.tv-composite-component-line:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-template-columns:1fr;}.tv-composite-component-grid:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-template-columns:repeat(2,minmax(0,1fr));}.tv-composite-editor-drawer:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){max-width:100vw;}.tv-composite-item-search:where(:not(.tv-stitch-surface):not(.tv-stitch-surface *):not(.tv-home-v1):not(.tv-home-v1 *)){grid-template-columns:1fr;}}
