.match-order-lines-overlay{position:fixed;inset:0;z-index:10060;display:flex;align-items:center;justify-content:center;padding:var(--space-24);background:var(--overlay-bg);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);box-sizing:border-box}.match-order-lines-modal{width:min(1360px,calc(100vw - 48px));height:min(860px,calc(100vh - 48px));max-height:calc(100vh - 48px);background:hsl(var(--card));border:.5px solid hsl(var(--border));border-radius:var(--radius-lg);display:flex;flex-direction:column;overflow:hidden;font-family:var(--font-primary);color:hsl(var(--foreground));box-shadow:0 8px 16px hsl(var(--foreground) / .08),0 28px 56px -16px hsl(var(--foreground) / .32)}.molm-header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-12);padding:var(--space-14) var(--space-16);border-bottom:.5px solid hsl(var(--border))}.molm-title{--ui-type-size: calc(var(--text-lg) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:500}.molm-subtitle{--ui-type-scale: var(--type-subtitle-scale);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));margin-top:2px}.molm-header-actions{display:flex;align-items:center;gap:var(--space-6)}.molm-search{position:relative;display:flex;align-items:center}.molm-search>svg{position:absolute;left:8px;color:hsl(var(--muted-foreground));pointer-events:none}.molm-search input{height:28px;padding:0 var(--space-10) 0 var(--space-24);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);width:160px;border:.5px solid hsl(var(--border));border-radius:var(--radius-md);background:hsl(var(--background));color:hsl(var(--foreground));outline:none}.molm-search input:focus{border-color:hsl(var(--ring))}.molm-close{height:28px;width:28px;border:0;background:transparent;color:hsl(var(--muted-foreground));border-radius:var(--radius-md);cursor:pointer;display:flex;align-items:center;justify-content:center}.molm-close:hover:not(:disabled){background:hsl(var(--muted));color:hsl(var(--foreground))}.molm-filters{display:flex;gap:var(--space-6);padding:var(--space-8) var(--space-16);border-bottom:.5px solid hsl(var(--border));flex-wrap:wrap}.molm-chip{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);padding:3px var(--space-10);border-radius:var(--radius-full);border:.5px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--muted-foreground));cursor:pointer;font-family:inherit}.molm-chip:hover:not(:disabled){color:hsl(var(--foreground));border-color:hsl(var(--ring))}.molm-chip--active,.molm-chip.molm-chip--active:hover{background:var(--selected-bg);color:var(--selected-fg);border-color:var(--selected-border)}.molm-chip:disabled{opacity:.4;cursor:not-allowed}.molm-error{padding:var(--space-8) var(--space-16);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--destructive));background:hsl(var(--destructive) / .08);border-bottom:.5px solid hsl(var(--border))}.molm-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-10);flex:1;--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));padding:40px}@keyframes molm-spin{to{transform:rotate(360deg)}}.molm-spinner{animation:molm-spin 1s linear infinite;color:hsl(var(--primary))}.molm-body{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);min-height:0;flex:1}.molm-table-wrap{--ui-type-scale: var(--type-table-scale);display:flex;flex-direction:column;min-width:0;border-right:.5px solid hsl(var(--border));--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-table-head,.molm-row{display:grid;grid-template-columns:20px 16px minmax(0,1fr) minmax(140px,200px) 48px 84px;gap:var(--space-8);align-items:center;padding:var(--space-6) var(--space-16);border-bottom:.5px solid hsl(var(--border))}.molm-table-head{--ui-type-scale: var(--type-table-scale);background:hsl(var(--muted));color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);text-transform:uppercase;letter-spacing:.04em;position:sticky;top:0;z-index:1}.molm-table-body{overflow-y:auto;flex:1;min-height:0}.molm-row{cursor:pointer;background:hsl(var(--background))}.molm-row:hover{background:hsl(var(--accent) / .5)}.molm-row--active{background:hsl(var(--accent))}.molm-row--done{opacity:.6}.molm-row--linked{background:var(--info-surface)}.molm-row--unmatched{color:hsl(var(--muted-foreground))}.molm-col-check{display:flex;align-items:center;justify-content:center}.molm-col-check input{width:13px;height:13px;cursor:pointer}.molm-col-status{display:flex;align-items:center;justify-content:center}.molm-icon{display:inline-flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground))}.molm-icon--success{color:hsl(var(--success));font-weight:600}.molm-icon--warn{color:hsl(var(--warning, 38 92% 50%))}.molm-icon--accent{color:hsl(var(--primary))}.molm-col-line{display:flex;align-items:baseline;gap:var(--space-8);min-width:0;overflow:hidden}.molm-line-n{color:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums;min-width:20px;--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-line-desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.molm-col-match{min-width:0;overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);display:flex;align-items:center;gap:var(--space-6)}.molm-match-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;min-width:0}.molm-strength{width:7px;height:7px;border-radius:50%;flex-shrink:0;display:inline-block;background:hsl(var(--muted-foreground))}.molm-strength--strong{background:hsl(var(--success))}.molm-strength--good{background:hsl(var(--primary))}.molm-strength--weak{background:hsl(var(--warning))}.molm-match-empty{color:hsl(var(--muted-foreground));font-family:var(--font-primary);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-match-empty--warn{color:var(--warning-text)}.molm-col-tree{text-align:center;color:hsl(var(--foreground));--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-dim{color:hsl(var(--muted-foreground))}.molm-col-action{display:flex;justify-content:flex-end}.molm-action-done{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground))}.molm-action-pair{display:flex;gap:var(--space-4)}.molm-empty{padding:40px var(--space-20);text-align:center;color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-12);grid-column:1 / -1;padding:60px var(--space-20);--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground))}.molm-spinner{animation:molm-spin 1s linear infinite}@keyframes molm-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.molm-batch-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-10);padding:var(--space-8) var(--space-14);border-top:.5px solid hsl(var(--border));background:hsl(var(--accent) / .4);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-detail{padding:var(--space-14) var(--space-16);overflow-y:auto;min-height:0;--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-detail-eyebrow{--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));text-transform:uppercase;letter-spacing:.06em}.molm-detail-title{--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:500;margin-top:2px}.molm-detail-sub{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));margin-top:3px}.molm-candidate-card{margin-top:var(--space-14);padding:var(--space-4);border-radius:var(--radius-md);border:.5px solid hsl(var(--border));background:hsl(var(--background))}.molm-tree{display:flex;flex-direction:column}.molm-tree-row{display:grid;grid-template-columns:minmax(0,1fr) 28px auto;align-items:center;gap:var(--space-6);padding:var(--space-4) var(--space-6);border-radius:var(--radius-sm);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.molm-tree-row:hover{background:hsl(var(--accent) / .5)}.molm-tree-row--root{font-weight:500}.molm-tree-guide{display:inline-block;width:0;padding-left:calc(var(--molm-depth, 0) * var(--space-16))}.molm-tree-name{display:flex;align-items:center;gap:var(--space-6);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.molm-tree-row:not(.molm-tree-row--root) .molm-tree-name:before{content:"";flex:0 0 auto;width:8px;height:8px;border-left:1px solid hsl(var(--border));border-bottom:1px solid hsl(var(--border));border-bottom-left-radius:2px;margin-right:2px}.molm-tree-qty{text-align:center;font-variant-numeric:tabular-nums;--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground))}.molm-tree-actions{display:flex;align-items:center;gap:var(--space-4);justify-content:flex-end}.molm-tree-add{min-width:22px;height:22px;padding:0 var(--space-6);border-radius:var(--radius-sm);border:.5px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.molm-tree-add:disabled{opacity:.4;cursor:not-allowed}.molm-tree-jump{border:0;background:transparent;color:hsl(var(--primary));--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);cursor:pointer;padding:2px var(--space-4);white-space:nowrap}.molm-tree-jump:hover{text-decoration:underline}.molm-alternates{margin-top:var(--space-14)}.molm-alternates-label{--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground));margin-bottom:var(--space-4)}.molm-alternates-list{display:flex;flex-wrap:wrap;gap:var(--space-4)}.molm-alternate{padding:3px var(--space-8);--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);border-radius:var(--radius-full);border:.5px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--muted-foreground));cursor:pointer;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.molm-alternate--active,.molm-alternate.molm-alternate--active:hover{background:var(--selected-bg);color:var(--selected-fg);border-color:var(--selected-border)}.molm-usage{margin-top:var(--space-14);padding-top:var(--space-12);border-top:.5px solid hsl(var(--border))}.molm-usage-label{--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground));margin-bottom:var(--space-6)}.molm-usage-loading,.molm-usage-empty,.molm-usage-error{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));padding:var(--space-4) 0}.molm-usage-error{color:hsl(var(--destructive))}.molm-usage-list{display:grid;gap:var(--space-4)}.molm-usage-row{display:grid;grid-template-columns:96px 68px minmax(0,1fr);gap:var(--space-8);--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);align-items:baseline}.molm-usage-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:hsl(var(--foreground))}.molm-usage-client{color:hsl(var(--muted-foreground))}.molm-usage-items{color:hsl(var(--foreground));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.molm-detail-empty{padding:var(--space-24) var(--space-4);text-align:left;color:hsl(var(--muted-foreground))}.molm-detail-empty .molm-detail-title{color:hsl(var(--foreground))}.molm-footer{padding:var(--space-8) var(--space-16);border-top:.5px solid hsl(var(--border));background:hsl(var(--muted) / .3);display:flex;align-items:center;justify-content:space-between;--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground))}.molm-legend{display:flex;gap:var(--space-12)}.molm-legend-item{display:inline-flex;align-items:center;gap:var(--space-6)}.molm-candidate-card{margin-top:var(--space-14);padding:0;border-radius:var(--radius-md);border:.5px solid hsl(var(--border));background:hsl(var(--muted) / .5);overflow:hidden}.molm-tree{display:grid}.molm-tree-row{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:var(--space-6);padding:var(--space-6) var(--space-10);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);border-bottom:.5px solid hsl(var(--border))}.molm-tree-row:last-child{border-bottom:0}.molm-tree-row--root{background:hsl(var(--background) / .5)}.molm-tree-guide{width:calc(var(--molm-depth, 0) * 14px);flex-shrink:0}.molm-tree-name{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.molm-tree-qty{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));min-width:20px;text-align:right}.molm-tree-actions{display:flex;gap:3px}.molm-tree-add{padding:1px var(--space-8);border:.5px solid hsl(var(--border));background:hsl(var(--background));border-radius:var(--radius-sm);--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-family:inherit;cursor:pointer;color:hsl(var(--foreground))}.molm-tree-add:hover:not(:disabled){background:hsl(var(--muted))}.molm-tree-add:disabled{opacity:.45;cursor:not-allowed}.molm-tree-add--primary{background:var(--action-bg);color:var(--action-fg);border-color:var(--action-bg)}.molm-tree-add--primary:hover:not(:disabled){opacity:1;background:var(--action-hover-bg);border-color:var(--action-hover-bg);color:var(--action-fg)}.molm-tree-jump{--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--primary));background:transparent;border:0;cursor:pointer;padding:1px var(--space-4);border-radius:var(--radius-sm);white-space:nowrap}.molm-tree-jump:hover{background:hsl(var(--primary) / .1)}.molm-detail-search{padding:var(--space-4) 0}.molm-inline-search-wrap{display:flex;align-items:center;gap:var(--space-6);margin-top:var(--space-12);padding:0 var(--space-8);height:32px;border:.5px solid hsl(var(--border));border-radius:var(--radius-md);background:hsl(var(--background));color:hsl(var(--muted-foreground))}.molm-inline-search-wrap:focus-within{border-color:hsl(var(--ring));color:hsl(var(--foreground))}.molm-inline-search-input{--ui-type-scale: var(--type-control-scale);flex:1;min-width:0;border:0;background:transparent;--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--foreground));font-family:inherit;outline:none}.molm-inline-results{display:grid;gap:3px;margin-top:var(--space-8);max-height:180px;overflow-y:auto}.molm-inline-result{display:flex;align-items:baseline;gap:var(--space-8);padding:var(--space-6) var(--space-8);border:.5px solid hsl(var(--border));border-radius:var(--radius-md);background:hsl(var(--background));cursor:pointer;text-align:left;font-family:inherit}.molm-inline-result:hover:not(:disabled){background:hsl(var(--accent));border-color:hsl(var(--ring))}.molm-inline-result:disabled{opacity:.5;cursor:not-allowed}.molm-inline-result-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--foreground))}.molm-inline-result-meta{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.molm-detail-search-escape{margin-top:var(--space-10);--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));width:100%;justify-content:flex-start}.molm-detail-search-escape:hover:not(:disabled){color:hsl(var(--foreground))}@media(max-width:900px){.molm-body{grid-template-columns:1fr}.molm-table-wrap{border-right:0;border-bottom:.5px solid hsl(var(--border));max-height:45vh}}.cppm-chain{border:none;border-radius:0;overflow:visible;background:transparent}.cppm-chain-row{display:grid;grid-template-columns:80px 1fr 1fr 1fr 1fr 1fr;border:1px solid hsl(var(--border));border-radius:var(--radius-card);overflow:hidden;min-height:58px}.cppm-chain-row--offer{background:hsl(var(--info) / .05)}.cppm-chain-row--quote{background:hsl(var(--warning) / .08)}.cppm-chain--accordion .cppm-chain-row--interactive{width:100%;border:1px solid hsl(var(--border));text-align:left;padding:0;margin:var(--space-8) 0 0;background:transparent;font:inherit}.cppm-chain--accordion .cppm-chain-row--interactive:first-child{margin-top:0}.cppm-chain--accordion .cppm-chain-row--interactive:hover{filter:brightness(.995)}.cppm-chain--accordion .cppm-chain-row--interactive.is-open{border-bottom-left-radius:0;border-bottom-right-radius:0}.cppm-chain--accordion .cppm-chain-type{display:flex;align-items:center;padding:var(--space-10) var(--space-12);background:hsl(var(--muted));margin:0;border:none;border-right:1px solid hsl(var(--border));border-radius:0;--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--color-neutral-muted);cursor:pointer;font-family:inherit;text-align:left}.cppm-chain-row--offer .cppm-chain-type{background:var(--info-surface);color:var(--info-text)}.cppm-chain-row--quote .cppm-chain-type{background:hsl(var(--warning) / .2);color:var(--warning-text)}.cppm-chain-cell{padding:var(--space-8) var(--space-12);border-right:1px solid hsl(var(--border) / .45);display:flex;flex-direction:column;gap:3px;justify-content:center;cursor:pointer}.cppm-chain-cell:last-child{border-right:none}.cppm-chain-cell-label{--ui-type-scale: var(--type-table-scale);--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:var(--color-neutral-muted);font-weight:600}.cppm-chain-cell-value{--ui-type-scale: var(--type-table-scale);--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;color:hsl(var(--foreground));user-select:text;-webkit-user-select:text;cursor:text}.cppm-chain-cell-value--offer{--ui-type-scale: var(--type-table-scale);color:var(--info-text);font-family:var(--font-mono, ui-monospace, monospace);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-chain-cell-value--mono{--ui-type-scale: var(--type-table-scale);font-family:var(--font-mono, ui-monospace, monospace);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-chain-cell--total-emphasis{background:var(--success-surface)}.cppm-chain-cell--total-emphasis .cppm-chain-cell-value{color:var(--success-text);font-weight:800}.cppm-chain-cell--split{flex-direction:row;align-items:center;justify-content:space-between;gap:var(--space-8);width:100%}.cppm-chain-split-line{display:flex;flex-direction:column;gap:2px;min-width:0;flex:0 1 auto}.cppm-chain-split-line:last-child{align-items:flex-end;text-align:right}.cppm-chain-split-line .cppm-chain-cell-value{white-space:nowrap}.cppm-chain-detail{padding:var(--space-10) var(--space-12) var(--space-14);border:1px dashed hsl(var(--border));border-top:none;border-bottom-left-radius:var(--radius-card);border-bottom-right-radius:var(--radius-card);background:hsl(var(--background));margin-bottom:var(--space-8)}.cppm-chain-detail--quote{background:hsl(var(--muted) / .2)}.cppm-chain-detail .app-loading,.cppm-chain-detail .app-error{margin:0;padding:var(--space-8) 0;--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);text-align:left}.cppm-detail-table{--ui-type-scale: var(--type-table-scale);width:100%;border-collapse:collapse;border:1px solid hsl(var(--border));border-radius:var(--radius-card);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-detail-table-scroll{max-height:min(430px,44vh);overflow:auto;border:1px solid hsl(var(--border));border-radius:var(--radius-card);background:hsl(var(--background))}.cppm-detail-table-scroll .cppm-detail-table{border:0;border-radius:0}.cppm-detail-table th{--ui-type-scale: var(--type-table-scale);background:hsl(var(--muted));border-bottom:1px solid hsl(var(--border));padding:var(--space-6) var(--space-8);text-align:left;--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground));position:sticky;top:0;z-index:2}.cppm-detail-table td{padding:var(--space-6) var(--space-8);border-bottom:1px solid hsl(var(--border) / .45)}.cppm-detail-table tr[data-reconciliation-status=yes] td{background:hsl(var(--success) / .08)}.cppm-detail-table tr[data-reconciliation-status=partial] td{background:hsl(var(--warning) / .1)}.cppm-detail-table tr[data-reconciliation-status=yes]:hover td{background:hsl(var(--success) / .12)}.cppm-detail-table tr[data-reconciliation-status=partial]:hover td{background:hsl(var(--warning) / .14)}.cppm-detail-table tr[data-active-order-line=true] td{box-shadow:inset 0 0 0 1px hsl(var(--ring) / .45)}.cppm-detail-table tr[data-active-order-line=true] td:first-child{border-left:2px solid hsl(var(--ring))}.cppm-detail-table th.cppm-reconcile-head,.cppm-detail-table td.cppm-reconcile-cell{width:30px;min-width:30px;max-width:30px;padding:var(--space-6) var(--space-6);text-align:center;vertical-align:middle}.cppm-reconcile-btn{width:20px;height:20px;min-width:20px;min-height:20px;padding:0;margin:0 auto;display:inline-grid;place-items:center;vertical-align:middle;line-height:0;border:1px solid hsl(var(--border));border-radius:var(--radius-full);background:hsl(var(--background));color:hsl(var(--muted-foreground));cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease,transform .12s ease}.cppm-reconcile-btn:hover{transform:translateY(-1px);border-color:hsl(var(--ring));color:hsl(var(--foreground));background:hsl(var(--background))}.cppm-reconcile-btn svg{width:13px;height:13px}.cppm-reconcile-btn[data-status=yes]{border-color:hsl(var(--success) / .6);background:hsl(var(--success) / .16);color:var(--success-text)}.cppm-reconcile-btn[data-status=partial]{border-color:hsl(var(--warning) / .65);background:hsl(var(--warning) / .16);color:var(--warning-text)}.cppm-detail-table td.cppm-reconcile-mismatch-cell{color:var(--danger-text);background:hsl(var(--destructive) / .12)!important;font-weight:700}.cppm-detail-row--clickable{cursor:pointer}.cppm-detail-row--clickable:hover td{background:hsl(var(--muted) / .25)}.cppm-detail-row-expanded td{background:hsl(var(--muted) / .2)}.cppm-submission-table{--ui-type-scale: var(--type-table-scale);width:100%;border-collapse:collapse;border:1px solid hsl(var(--border));border-radius:var(--radius-card);overflow:hidden;--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-submission-table th{--ui-type-scale: var(--type-table-scale);background:hsl(var(--muted) / .6);border-bottom:1px solid hsl(var(--border));padding:var(--space-6) var(--space-8);text-align:left;--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground))}.cppm-submission-table td{padding:var(--space-6) var(--space-8);border-bottom:1px solid hsl(var(--border) / .45)}.cppm-submission-table tr:last-child td{border-bottom:none}.cppm-detail-table tr:last-child td{border-bottom:none}.cppm-tree{--pwb-wi-guide-step: 14px;--pwb-wi-guide-color: hsl(var(--muted-foreground) / .82);border:1px solid hsl(var(--border));border-radius:var(--radius-card);overflow:hidden;--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-tree-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 90px 110px;gap:var(--space-8);align-items:center;padding:var(--space-6) var(--space-12);border-top:1px solid hsl(var(--border) / .6)}.cppm-tree-row:first-child{border-top:none}.cppm-tree-head{background:hsl(var(--muted));--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground))}.cppm-tree-row--diagram{font-weight:500;background:hsl(var(--muted) / .12);cursor:pointer}.cppm-tree-row--diagram:hover{background:hsl(var(--muted) / .25)}.cppm-tree-row--diagram:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:-2px}.cppm-tree-row--line .cppm-tree-label,.cppm-tree-row--info .cppm-tree-label{color:hsl(var(--muted-foreground))}.cppm-tree-label{display:flex;align-items:center;gap:var(--space-6);min-width:0}.cppm-tree-label svg{flex-shrink:0}.cppm-tree-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cppm-tree-name--muted{font-style:italic;--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-tree-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cppm-tree-head .cppm-tree-num{text-align:right}.cppm-tree-caret{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;color:hsl(var(--muted-foreground));transition:transform .15s ease}.cppm-tree-caret svg{width:10px;height:10px}.cppm-tree-row[data-expanded=false] .cppm-tree-caret{transform:rotate(-90deg)}.cppm-tree-caret-spacer{display:inline-block;width:16px;flex-shrink:0}.cppm-detail-panel{border:1px solid hsl(var(--border));border-radius:var(--radius-card);background:hsl(var(--background));overflow:hidden}.cppm-detail-panel+.cppm-detail-panel{margin-top:var(--space-8)}.cppm-detail-panel__trigger{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);width:100%;padding:var(--space-8) var(--space-12);margin:0;border:none;background:transparent;cursor:pointer;font:inherit;text-align:left;color:inherit}.cppm-detail-panel__trigger:hover{background:hsl(var(--muted) / .25)}.cppm-detail-panel__title{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground))}.cppm-detail-panel__icon{flex-shrink:0;--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));transition:transform .15s ease}.cppm-detail-panel.is-open .cppm-detail-panel__icon{transform:rotate(90deg)}.cppm-detail-panel__body{padding:var(--space-8) var(--space-12) var(--space-12);border-top:1px solid hsl(var(--border))}.cppm-detail-empty{margin:0;--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));padding:var(--space-8) 0}.cppm-change-project-btn{--ui-type-scale: var(--type-control-scale);margin-top:var(--space-12);width:100%;border:1px dashed hsl(var(--border));border-radius:var(--radius-card);background:hsl(var(--background));color:var(--color-neutral-muted);--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:600;padding:var(--space-10) var(--space-12);text-align:left;cursor:pointer}.cppm-change-project-btn:hover{background:hsl(var(--muted) / .32)}.cppm-section-label{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:hsl(var(--muted-foreground));margin-bottom:var(--space-8)}.cppm-order-meta{position:relative;margin-bottom:var(--space-10);padding:var(--space-10) 40px var(--space-10) var(--space-12);border:1px solid hsl(var(--border));border-radius:var(--radius-lg);background:hsl(var(--muted) / .3);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-12)}.cppm-order-meta-group{min-width:0}.cppm-order-meta-title{margin:0 0 var(--space-6);--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.cppm-order-meta-list{margin:0;padding:0;display:grid;gap:var(--space-4)}.cppm-order-meta-list>div{display:flex;gap:var(--space-6);align-items:baseline}.cppm-order-meta-list dt{margin:0;color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);flex-shrink:0}.cppm-order-meta-list dd{margin:0;color:hsl(var(--foreground));font-weight:600;min-width:0;overflow-wrap:anywhere}.cppm-summary-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:var(--space-8);gap:var(--space-12);flex-wrap:wrap}.cppm-summary-project{--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:600;color:hsl(var(--foreground));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.cppm-summary-project-num{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:400;color:hsl(var(--muted-foreground));font-family:var(--font-mono, ui-monospace, monospace);margin-left:var(--space-6)}.cppm-summary-totals{display:flex;align-items:center;gap:var(--space-16);flex-shrink:0}.cppm-summary-hours{--ui-type-size: calc(var(--text-caption) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:800;color:var(--info-text);white-space:nowrap}.cppm-summary-hours span{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:500;color:var(--color-neutral-muted);margin-left:2px}.cppm-summary-total{--ui-type-size: calc(var(--text-caption) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:800;font-family:var(--font-mono, ui-monospace, monospace);white-space:nowrap}.cppm-table{--ui-type-scale: var(--type-table-scale);width:100%;border-collapse:collapse;border:1px solid hsl(var(--border));border-radius:var(--radius-card);overflow:hidden;--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-table th{--ui-type-scale: var(--type-table-scale);background:hsl(var(--muted));padding:var(--space-6) var(--space-10);text-align:left;--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--muted-foreground));border-bottom:1px solid hsl(var(--border));white-space:nowrap}.cppm-table th.cppm-r,.cppm-table td.cppm-r{text-align:right}.cppm-table td{padding:var(--space-8) var(--space-10);border-bottom:1px solid hsl(var(--border) / .45);vertical-align:middle}.cppm-table tr:last-child td{border-bottom:none}.cppm-cat-row td{background:hsl(var(--muted) / .5);font-weight:700}.cppm-cat-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:var(--radius-sm);--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:800;margin-right:var(--space-6);vertical-align:middle;flex-shrink:0}.cppm-icon-labour{background:var(--form-type-work-surface);color:var(--form-type-work-text)}.cppm-icon-mat{background:var(--form-type-material-surface);color:var(--form-type-material-text)}.cppm-icon-surface{background:var(--form-type-finish-surface);color:var(--form-type-finish-text)}.cppm-icon-other{background:hsl(var(--muted));color:hsl(var(--muted-foreground))}.cppm-opt-row td{--ui-type-scale: var(--type-table-scale);padding:var(--space-6) var(--space-10) var(--space-6) var(--space-32);color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-total-row td{background:hsl(var(--primary) / .04);font-weight:700;border-top:1.5px solid hsl(var(--border))}.cppm-total-row td.cppm-grand{--ui-type-scale: var(--type-table-scale);--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:800}.cppm-margin-pill{display:inline-block;padding:1px var(--space-6);background:hsl(var(--muted));border-radius:var(--radius-sm);--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:600;color:hsl(var(--muted-foreground))}.cppm-num{font-family:var(--font-mono, ui-monospace, monospace);font-feature-settings:"tnum";--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-picker-search{position:relative;margin-bottom:var(--space-6)}.cppm-picker-search-icon{position:absolute;left:9px;top:50%;transform:translateY(-50%);color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);pointer-events:none}.cppm-picker-input{width:100%;height:34px;border:1.5px solid hsl(var(--border));border-radius:var(--radius);padding:0 var(--space-10) 0 var(--space-32);--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);font-family:inherit;color:hsl(var(--foreground));background:hsl(var(--background));outline:none;transition:border-color .15s}.cppm-picker-input:focus{border-color:hsl(var(--ring))}.cppm-picker-hint{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));margin-bottom:var(--space-8);display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap}.cppm-picker-hint-seed{padding:1px var(--space-6);border-radius:var(--radius-sm);background:var(--info-surface);border:1px solid hsl(var(--info) / .35);color:var(--info-text);--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:600;font-family:var(--font-mono, ui-monospace, monospace)}.cppm-project-list{border:1px solid hsl(var(--border));border-radius:var(--radius-card);overflow:hidden;max-height:190px;overflow-y:auto}.cppm-project-row{display:flex;align-items:center;gap:var(--space-10);padding:var(--space-8) var(--space-12);border-bottom:1px solid hsl(var(--border) / .5);cursor:pointer;transition:background .08s;-webkit-user-select:none;user-select:none}.cppm-project-row:last-child{border-bottom:none}.cppm-project-row:hover{background:hsl(var(--muted) / .5)}.cppm-project-row--selected{background:var(--selected-bg);border-left:3px solid var(--selected-fg)}.cppm-radio{width:14px;height:14px;border-radius:50%;border:2px solid hsl(var(--border));flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:border-color .1s}.cppm-project-row--selected .cppm-radio{border-color:var(--selected-fg)}.cppm-radio-dot{width:6px;height:6px;border-radius:50%;background:var(--selected-fg)}.cppm-proj-info{flex:1;min-width:0}.cppm-proj-name{--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cppm-proj-meta{--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);color:hsl(var(--muted-foreground));display:flex;gap:var(--space-6);margin-top:1px;flex-wrap:wrap}.cppm-proj-meta-sep{color:hsl(var(--border))}.cppm-proj-meta-num{font-family:var(--font-mono, ui-monospace, monospace);--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-already-badge{--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:600;padding:1px var(--space-6);border-radius:var(--radius-full);background:hsl(var(--muted));color:hsl(var(--muted-foreground));flex-shrink:0}.cppm-empty{padding:var(--space-16);text-align:center;color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size)}.cppm-success{background:hsl(var(--success) / .09);border:1px solid hsl(var(--success) / .28);border-radius:var(--radius-card);padding:var(--space-14) var(--space-16);display:flex;align-items:flex-start;gap:var(--space-12)}.cppm-success-icon{width:30px;height:30px;border-radius:50%;background:hsl(var(--success));color:hsl(var(--success-foreground));display:flex;align-items:center;justify-content:center;--ui-type-size: calc(var(--text-caption) * var(--ui-type-scale));font-size:var(--ui-type-size);flex-shrink:0}.cppm-success-title{--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;color:var(--success-text)}.cppm-success-sub{--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);color:var(--success-text);margin-top:3px;line-height:1.5}.cppm-success--floating{position:absolute;top:62px;left:20px;right:20px;z-index:5;box-shadow:0 16px 38px hsl(var(--success) / .18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.cppm-modal-card{position:relative;display:flex;flex-direction:column;padding:0;overflow:hidden!important}.cppm-body{padding:var(--space-16) var(--space-20);display:flex;flex-direction:column;gap:var(--space-14);flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}.cppm-footer-note{flex:1;--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);color:var(--color-neutral-muted);min-width:0}.cppm-footer-note strong{color:hsl(var(--foreground))}.cppm-unlinked-review{display:flex;gap:var(--space-14);padding:var(--space-14);border:1px solid hsl(var(--warning) / .32);border-radius:var(--radius-card);background:linear-gradient(180deg,var(--warning-surface),hsl(var(--background)));box-shadow:inset 0 1px hsl(var(--background) / .65)}.cppm-unlinked-review__icon{width:34px;height:34px;border-radius:var(--radius-md);display:grid;place-items:center;flex:0 0 auto;color:var(--warning-text);background:hsl(var(--warning) / .18);border:1px solid hsl(var(--warning) / .28)}.cppm-unlinked-review__content{min-width:0;flex:1}.cppm-unlinked-review__eyebrow{margin-bottom:var(--space-4);color:var(--warning-text);--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:800;letter-spacing:.07em;text-transform:uppercase}.cppm-unlinked-review h3{margin:0;color:hsl(var(--foreground));--ui-type-size: calc(var(--text-lg) * var(--ui-type-scale));font-size:var(--ui-type-size);line-height:1.25}.cppm-unlinked-review p{margin:var(--space-6) 0 0;color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-md) * var(--ui-type-scale));font-size:var(--ui-type-size);line-height:1.45}.cppm-unlinked-review__meta{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(180px,1fr);gap:var(--space-8);margin:var(--space-12) 0 0}.cppm-unlinked-review__meta>div{min-width:0;padding:var(--space-8) var(--space-10);border:1px solid hsl(var(--border));border-radius:var(--radius-md);background:hsl(var(--background) / .78)}.cppm-unlinked-review__meta dt{margin:0 0 3px;color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:800;letter-spacing:.05em;text-transform:uppercase}.cppm-unlinked-review__meta dd{margin:0;min-width:0;overflow:hidden;color:hsl(var(--foreground));--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:700;text-overflow:ellipsis;white-space:nowrap}.cppm-unlinked-review__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-10);margin-top:var(--space-10)}.cppm-unlinked-review__fields label{display:grid;gap:var(--space-6);min-width:0}.cppm-unlinked-review__fields span{color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:800;letter-spacing:.05em;text-transform:uppercase}.cppm-unlinked-review__fields input{width:100%;min-width:0;height:34px;border:1px solid hsl(var(--border));border-radius:var(--radius-md);background:hsl(var(--background));color:hsl(var(--foreground));font:inherit;padding:0 var(--space-10)}.cppm-unlinked-review__fields input[aria-invalid=true]{border-color:hsl(var(--destructive));outline-color:hsl(var(--destructive));background:hsl(var(--destructive) / .04)}.cppm-unlinked-review__fields label>small{color:hsl(var(--destructive));--ui-type-size: calc(var(--text-xs) * var(--ui-type-scale));font-size:var(--ui-type-size);line-height:1.2}.cppm-unlinked-review__fields span small{color:hsl(var(--muted-foreground));--ui-type-size: calc(var(--text-2xs) * var(--ui-type-scale));font-size:var(--ui-type-size);font-weight:500;letter-spacing:0;text-transform:none}.cppm-unlinked-review__field-wide{grid-column:1 / -1}.cppm-unlinked-review__warning{display:flex;align-items:flex-start;gap:var(--space-8);margin-top:var(--space-10);padding:var(--space-8) var(--space-10);border:1px solid hsl(var(--warning) / .28);border-radius:var(--radius-md);color:var(--warning-text);background:hsl(var(--warning) / .12);--ui-type-size: calc(var(--text-sm) * var(--ui-type-scale));font-size:var(--ui-type-size);line-height:1.45}.cppm-unlinked-review__warning svg{flex:0 0 auto;margin-top:1px}@media(max-width:720px){.cppm-unlinked-review{flex-direction:column}.cppm-unlinked-review__meta,.cppm-unlinked-review__fields{grid-template-columns:1fr}}
