:root{--accent:#ff6d0a;--accent-soft:#2b180c;--panel:#111;--field:#080808;--line:#353535;--text:#f5f5f5;--muted:#aaa;--danger:#ff5058}
*{box-sizing:border-box}.pricing-shell{width:min(1760px,calc(100% - 28px));margin:22px auto 56px;color:var(--text);font-size:14px}.pricing-status{min-height:20px;margin:0 4px 8px;color:var(--accent);font-weight:800}.pricing-status.error,.negative{color:var(--danger)!important}.orange-text{color:var(--accent)!important}
.pricing-tabs{display:grid;grid-template-columns:repeat(8,minmax(108px,1fr));gap:6px;max-width:1640px;margin:0 auto 10px}.pricing-tabs button,.pricing-button,.mini-button{border:1px solid #444;border-radius:7px;background:#0c0c0c;color:var(--text);font:inherit;font-weight:800;cursor:pointer}.pricing-tabs button{min-height:35px;padding:5px 9px}.pricing-button{min-height:35px;padding:6px 15px}.mini-button{min-height:27px;padding:3px 9px;font-size:.78rem;white-space:nowrap}.mini-button.danger{border-color:#8f252b;color:#ff969b}.pricing-tabs button:hover,.pricing-button:hover,.mini-button:hover{border-color:var(--accent)}.pricing-tabs button.active,.pricing-button.primary{background:var(--accent);border-color:var(--accent);color:#090909}.pricing-button:disabled,.mini-button:disabled{opacity:.55;cursor:wait}.is-busy{position:relative;overflow:hidden}.is-busy:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#fff;animation:busy 1s ease-in-out infinite}@keyframes busy{0%,100%{transform:translateX(-80%)}50%{transform:translateX(80%)}}
.pricing-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0}.compact-card{padding:11px}.section-stack{display:grid;gap:10px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.compact-heading{align-items:center}.section-heading h2,.pricing-card h2{font-size:1.15rem;margin:0}.section-heading p,.pricing-card p{margin:2px 0;color:var(--muted);line-height:1.35}.pricing-card h3{font-size:.96rem;margin:0}.empty-message,.loading-line{padding:13px 2px;margin:0;color:var(--muted)}
.dashboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.summary-tile,.stat-tile{display:grid;gap:2px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);text-align:left}.summary-tile.accent{border-color:var(--accent)}.summary-tile span,.stat-tile span{color:var(--muted);font-size:.78rem}.summary-tile strong{color:var(--accent);font-size:1.55rem}.summary-tile small,.stat-tile small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.summary-button{cursor:pointer;font:inherit}.summary-button:hover{border-color:var(--accent)}.dashboard-intro{display:flex;justify-content:space-between;align-items:center}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat-tile strong{font-size:1.15rem}.stat-tile{background:#0c0c0c}
.field{display:grid;gap:3px;min-width:0;font-size:.78rem;font-weight:800}.field>span{display:block}.field input,.field select,.list-tools input,.list-tools select,.history-tools input,.history-tools select,.cost-list-heading input,.rrp-pair input,.default-number input{width:100%;height:34px;background:var(--field);border:1px solid #454545;border-radius:6px;color:var(--text);font:inherit;padding:4px 8px}.field input:focus,.field select:focus,.list-tools input:focus,.list-tools select:focus,.history-tools input:focus,.history-tools select:focus,.cost-list-heading input:focus,.rrp-pair input:focus,.default-number input:focus{outline:2px solid var(--accent);outline-offset:1px}.grow{flex:1 1 220px}.w-category{flex:0 1 150px}.w-number{flex:0 1 120px}.w-unit{flex:0 1 80px}.w-basis{flex:0 1 115px}.w-role{flex:0 1 135px}.w-size{width:105px}.tiny-number{width:78px}.small-number{width:112px}.cost-form,.inline-record-form,.channel-form{display:flex;flex-wrap:wrap;align-items:end;gap:7px}.compact-save{flex:0 0 auto}.settings-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:7px}.two-panel{display:grid;grid-template-columns:1fr 1.2fr;gap:10px}.channel-form .grow{flex-basis:200px}
.list-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.list-tools input{width:230px}.list-tools select{width:auto;min-width:110px}.single-search{margin:9px 0 5px}.dense-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.dense-table{width:100%;border-collapse:collapse;font-size:.82rem}.dense-table th{color:var(--accent);background:#090909;text-align:left;white-space:nowrap}.dense-table th,.dense-table td{padding:6px 7px;border-bottom:1px solid #303030;vertical-align:middle}.dense-table td>strong{display:block}.dense-table td small{display:block;color:var(--muted);font-size:.7rem;margin-top:1px}.table-actions{display:flex;gap:4px;align-items:center}.result-count{display:block;color:var(--muted);margin-top:7px}.pagination{display:flex;gap:6px;align-items:center;justify-content:flex-end;margin-top:7px}.pagination small{color:var(--muted);margin-right:auto}
.calculator-layout{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(440px,.78fr);gap:9px;align-items:start}.calculator-inputs{padding:11px}.calculator-results{position:sticky;top:8px;display:grid;gap:8px}.product-input-grid{display:flex;flex-wrap:wrap;gap:7px;align-items:end}.product-name{flex:1 1 260px}.default-fields{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:7px;margin:8px 0}.default-number,.mini-check{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #393939;border-radius:7px;padding:6px 8px;font-size:.78rem;font-weight:800}.default-number span{display:grid}.default-number small{color:var(--muted);font-weight:500}.default-number>div{display:flex;gap:4px}.default-number input{width:70px}.mini-check{justify-content:flex-start;background:var(--accent-soft);border-color:#563119;cursor:pointer}.mini-check input{width:17px;height:17px;accent-color:var(--accent)}.mini-check span{display:grid}.mini-check small{color:var(--muted)}.cost-list-heading{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:9px 0 5px}.cost-list-heading h2{font-size:1.05rem}.cost-list-heading input{width:180px}.cost-columns{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cost-list-section{border:1px solid #333;border-radius:7px;overflow:hidden;margin-bottom:7px}.cost-list-section h3{background:#090909;padding:6px 8px;border-bottom:1px solid #303030}.calculator-cost-row{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:7px;align-items:center;padding:5px 7px;border-bottom:1px solid #292929;cursor:pointer}.calculator-cost-row:last-child{border-bottom:0}.calculator-cost-row[hidden]{display:none}.calculator-cost-row>span{display:grid;min-width:0}.calculator-cost-row strong,.calculator-cost-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calculator-cost-row small{font-size:.68rem;color:var(--muted)}.calculator-cost-row input{width:72px;height:30px;background:var(--field);border:1px solid #444;border-radius:5px;color:var(--text);padding:3px 7px}.calculator-cost-row input:disabled{opacity:.7;color:var(--accent)}.auto-note,.basis-help{font-size:.74rem;color:var(--muted);padding:4px 2px}.auto-note strong,.basis-help strong{color:var(--text)}.change-note{margin-top:7px}
.rrp-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.rrp-pair article,.rrp-pair label{display:grid;gap:2px;border:1px solid var(--accent);border-radius:8px;background:#090909;padding:9px}.rrp-pair span{font-size:.76rem;color:var(--muted)}.rrp-pair strong{font-size:1.55rem;color:var(--accent)}.rrp-pair input{height:34px;border-color:var(--accent);font-size:1.25rem;font-weight:900;color:var(--accent)}.rrp-pair small{color:var(--muted);font-size:.68rem}.result-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.result-metrics>div{display:grid;gap:1px;border:1px solid #343434;border-radius:6px;padding:6px}.result-metrics span{color:var(--muted);font-size:.68rem}.result-metrics strong{font-size:.95rem}.loss-note{border-left:3px solid var(--danger);padding:6px 8px!important;background:#251012;color:#ffb6b9!important}.always-result{border:1px solid #333;border-radius:7px;overflow:hidden}.always-result h3{padding:6px 8px;background:#090909;border-bottom:1px solid #303030}.breakdown-list{padding:2px 8px}.breakdown-list>div,.cost-total{display:flex;justify-content:space-between;gap:8px;padding:3px 0;border-bottom:1px solid #292929}.cost-total{padding:6px 8px;border-top:1px solid #3a3a3a;border-bottom:0}.cost-total strong{color:var(--accent)}.market-table{font-size:.78rem}.market-table>div{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:6px;padding:5px 7px;border-bottom:1px solid #292929}.market-table>div:last-child{border:0}.market-head{color:var(--muted);font-size:.68rem}.full-button{width:100%}
.history-tools{display:grid;grid-template-columns:130px minmax(190px,1fr) minmax(260px,1.4fr);gap:6px;margin-bottom:9px}.history-current{display:flex;flex-wrap:wrap;gap:6px}.history-current>div{display:grid;gap:1px;flex:1 1 150px;background:#090909;border:1px solid #303030;border-radius:7px;padding:7px 9px}.history-current span{font-size:.68rem;color:var(--muted)}.history-current small{color:var(--muted);font-size:.68rem}.history-current .mini-button{align-self:center}.recipe-summary{display:flex;gap:10px;align-items:center;margin:7px 0;padding:6px 8px;border-left:3px solid var(--accent);background:#0b0b0b}.recipe-summary span{color:var(--muted)}.timeline-title{margin:11px 0 5px!important}.history-timeline{display:grid;gap:6px}.history-event{border:1px solid #333;border-radius:7px;padding:7px}.history-event header{display:flex;justify-content:space-between;gap:8px;align-items:start}.history-event header>div{display:grid}.history-event header small{color:var(--muted)}.history-event header em{color:var(--muted);font-size:.74rem;font-style:normal}.history-values{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:6px}.history-values>div{display:grid;gap:1px;background:#090909;border-left:2px solid transparent;padding:5px 6px}.history-values>div.changed{border-left-color:#81501f}.history-values span,.history-values small{font-size:.67rem;color:var(--muted)}.change-line{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;margin-top:5px;padding:5px 7px;background:#090909}.change-line span{color:var(--muted)}.log-table td:first-child{white-space:nowrap}
@media(max-width:1250px){.settings-grid{grid-template-columns:repeat(5,minmax(120px,1fr))}.pricing-tabs{grid-template-columns:repeat(4,1fr)}.calculator-layout{grid-template-columns:1fr}.calculator-results{position:static}.two-panel{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.pricing-shell{width:calc(100% - 14px);margin-top:14px;font-size:14px}.pricing-tabs{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:3px}.pricing-tabs button{flex:0 0 auto;min-width:132px;min-height:44px;scroll-snap-align:start}.pricing-card{padding:10px}.pricing-button,.mini-button{min-height:44px;padding:8px 13px}.dashboard-summary{grid-template-columns:1fr 1fr}.stats-grid{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:repeat(2,1fr)}.field input,.field select,.list-tools input,.list-tools select,.history-tools input,.history-tools select,.cost-list-heading input,.rrp-pair input,.default-number input{height:44px}.section-heading{align-items:stretch}.list-tools input{width:100%;flex:1 1 100%}.default-fields{grid-template-columns:1fr}.default-number{min-height:50px}.cost-columns{grid-template-columns:1fr}.calculator-cost-row{grid-template-columns:minmax(0,1fr) 84px;min-height:48px}.calculator-cost-row input{width:84px;height:42px}.result-metrics{grid-template-columns:1fr 1fr}.history-tools{grid-template-columns:1fr}.history-values{grid-template-columns:repeat(2,1fr)}.dense-table th,.dense-table td{padding:8px}.table-actions{flex-wrap:nowrap}.dashboard-intro{align-items:stretch;flex-direction:column}.dashboard-intro .pricing-button{width:100%}}
@media(max-width:480px){.dashboard-summary,.stats-grid,.settings-grid,.rrp-pair{grid-template-columns:1fr 1fr}.summary-tile strong{font-size:1.35rem}.cost-form,.inline-record-form,.channel-form{display:grid;grid-template-columns:1fr 1fr}.cost-form .grow,.inline-record-form .grow,.channel-form .grow{grid-column:1/-1}.cost-form .compact-save,.inline-record-form .compact-save,.channel-form .compact-save{grid-column:1/-1}.w-category,.w-number,.w-unit,.w-basis,.w-role{width:auto}.product-input-grid{display:grid;grid-template-columns:1fr 1fr}.product-name{grid-column:1/-1}.w-size,.tiny-number,.small-number{width:auto}.cost-list-heading{align-items:stretch;flex-direction:column}.cost-list-heading input{width:100%}.history-current>div{flex-basis:calc(50% - 4px)}.recipe-summary{align-items:flex-start;flex-direction:column}.market-table>div{grid-template-columns:1.25fr repeat(3,.8fr);font-size:.7rem}}

/* Second compact refinement */
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dashboard-heading h2{font-size:1.15rem;margin:0}.dashboard-heading p{color:var(--muted);margin:2px 0}.dashboard-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.comparison-card{border:1px solid var(--line);border-radius:8px;background:#0d0d0d;overflow:hidden}.comparison-card h3{padding:6px 8px;background:#090909;border-bottom:1px solid #303030}.comparison-card>div{display:grid;grid-template-columns:64px 74px minmax(0,1fr);gap:6px;align-items:center;padding:5px 8px;border-bottom:1px solid #282828}.comparison-card>div:last-child{border-bottom:0}.comparison-card span,.comparison-card small{color:var(--muted);font-size:.7rem}.comparison-card strong,.comparison-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-card>div{grid-template-columns:55px minmax(0,1fr) auto}
.library-tools{margin:-2px 0 7px}.dense-table th,.dense-table td{padding:4px 7px}.dense-table td{height:38px}.table-actions{justify-content:flex-start;width:max-content}.table-actions .mini-button{flex:0 0 72px;width:72px;min-width:72px}.product-table th:last-child,.product-table td:last-child{width:232px}.product-table th:first-child{width:20%}.period-table th:last-child,.period-table td:last-child{width:154px}
.time-number{width:66px}.compact-mini{height:34px;min-width:72px;padding:5px 8px;align-self:end}.compact-mini strong{font-size:.78rem}.default-fields{grid-template-columns:repeat(2,minmax(220px,285px));justify-content:start}.default-number{flex-direction:column;align-items:stretch;justify-content:start;gap:4px}.default-number>div{display:grid;grid-template-columns:78px 70px;justify-content:start;align-items:center}.default-number .mini-button{width:70px;min-height:34px;padding:4px 8px}.quantity-input{display:grid!important;gap:1px!important;justify-items:stretch}.quantity-input small{text-align:center!important;font-size:.64rem!important}.calculator-cost-row{grid-template-columns:minmax(0,1fr) 76px}.calculator-cost-row input{width:76px}.rrp-pair{align-items:stretch}.rrp-pair>article,.rrp-pair>label{align-self:stretch;margin:0;grid-template-rows:auto 36px auto;min-height:96px}.rrp-pair article strong{display:flex;align-items:center;height:36px;font-size:1.55rem}.rrp-pair input{height:36px!important;font-size:1.55rem!important;padding:2px 8px}
.period-record-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(285px,1.25fr) auto;gap:7px;align-items:end}.channel-record-form{grid-template-columns:minmax(170px,1fr) minmax(285px,1.2fr) 90px 90px auto}.period-cost-fields{display:grid;grid-template-columns:repeat(3,minmax(82px,1fr));gap:6px}.record-name,.rate-field{align-self:end}.period-record-form>.compact-save{align-self:end;min-width:76px;height:34px}
.product-history-layout{display:grid;grid-template-columns:minmax(330px,.82fr) minmax(0,1.7fr);gap:8px;align-items:start}.current-recipe-panel,.history-side{border:1px solid #333;border-radius:8px;background:#0d0d0d;min-width:0}.current-recipe-panel{padding:8px;position:sticky;top:8px}.recipe-title{display:flex;justify-content:space-between;gap:8px;align-items:start;margin-bottom:7px}.recipe-title>div{display:grid}.recipe-title span,.recipe-title small{color:var(--muted);font-size:.7rem}.recipe-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:8px}.recipe-facts>div{display:grid;background:#090909;border:1px solid #2d2d2d;border-radius:5px;padding:4px 6px}.recipe-facts span{color:var(--muted);font-size:.64rem}.recipe-components{margin:4px 0 8px}.recipe-components>div{display:grid;grid-template-columns:minmax(0,1fr) 82px 70px;gap:6px;padding:4px 3px;border-bottom:1px solid #292929;align-items:center}.recipe-components>div>span:first-child{display:grid}.recipe-components small{color:var(--muted);font-size:.64rem}.recipe-components>div>span:nth-child(2),.recipe-components>div>strong{text-align:right}.recipe-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.recipe-breakdown>div{display:flex;justify-content:space-between;gap:6px;padding:3px;border-bottom:1px solid #282828}.history-side{padding:7px}.history-side-heading p{margin:2px 0 6px!important}.history-event{padding:6px}.history-values{margin-top:4px}.history-values>div{border:1px solid #252525;border-radius:4px;padding:4px 6px;background:#090909}.history-values>div.changed{border-color:#9a591f;background:#26170d;box-shadow:inset 0 0 0 1px rgba(255,109,10,.12)}.recipe-changes{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.recipe-changes strong,.recipe-changes span{font-size:.68rem;padding:3px 6px;border-radius:999px}.recipe-changes strong{color:var(--accent)}.recipe-changes span{background:#25180f;border:1px solid #69401e;color:#e6c6ad}.log-tools small{color:var(--muted)}
@media(max-width:1250px){.dashboard-detail-grid{grid-template-columns:1fr 1fr}.channel-record-form{grid-template-columns:1fr 1.5fr 90px 90px}.channel-record-form>.compact-save{grid-column:4}.product-history-layout{grid-template-columns:1fr}.current-recipe-panel{position:static}}
@media(max-width:780px){.dashboard-heading{align-items:stretch;flex-direction:column}.dashboard-detail-grid{grid-template-columns:1fr}.comparison-card>div{grid-template-columns:64px 80px minmax(0,1fr)}.dense-table th,.dense-table td{padding:7px}.table-actions .mini-button{flex-basis:72px;min-height:40px}.default-fields{grid-template-columns:1fr}.default-number>div{grid-template-columns:1fr 76px}.default-number .mini-button{width:76px;min-height:44px}.compact-mini{height:44px}.quantity-input input{height:38px}.period-record-form,.channel-record-form{grid-template-columns:1fr}.period-record-form>.record-name,.period-record-form>.period-cost-fields,.period-record-form>.compact-save,.channel-record-form>.compact-save{grid-column:1}.period-record-form>.compact-save{height:44px}.product-history-layout{grid-template-columns:1fr}.recipe-facts{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:480px){.dashboard-heading .pricing-button{width:100%}.product-input-grid{grid-template-columns:1fr 1fr 1fr}.product-name{grid-column:1/-1}.w-size{grid-column:span 2}.compact-mini{grid-column:span 1}.time-number,.tiny-number,.small-number{width:auto}.period-cost-fields{grid-template-columns:1fr 1fr 1fr}.recipe-facts{grid-template-columns:1fr 1fr}.recipe-components>div{grid-template-columns:minmax(0,1fr) 70px 58px}.history-values{grid-template-columns:1fr 1fr}}
.product-input-grid .product-name{flex:0 1 245px}.product-input-grid .w-size{width:92px}.product-input-grid .time-number{width:58px}.product-input-grid .tiny-number{width:78px}.product-input-grid .small-number{width:96px}.mini-reference{display:grid;gap:4px;width:42px;align-self:end}.mini-reference>span,.printer-reference>span{font-size:.78rem;font-weight:800}.mini-reference input{width:17px;height:17px;margin:8px 0 7px;accent-color:var(--accent)}.printer-reference{width:72px}.printer-reference select{width:72px}
.product-group-selector{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 2px;padding:6px 9px;border:1px solid #393939;border-radius:7px}.product-group-selector legend{padding:0 4px;font-size:.78rem;font-weight:800}.product-group-selector label{display:flex;align-items:center;gap:4px;font-size:.78rem;font-weight:700;white-space:nowrap}.product-group-selector input{width:15px;height:15px;accent-color:var(--accent)}
.set-controls,.set-add-row{display:grid;grid-template-columns:190px minmax(220px,1fr) 150px;gap:7px;align-items:end;margin-bottom:8px}.set-add-row{grid-template-columns:minmax(240px,1fr) 100px 74px}.set-add-row .mini-button{height:34px}.set-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:9px;margin:8px 0}.set-layout>section,.set-result{border:1px solid #333;border-radius:7px;padding:8px;background:#0d0d0d}.set-items{margin-top:5px}.set-items>div{display:grid;grid-template-columns:minmax(0,1fr) 80px 72px;gap:6px;align-items:center;padding:6px 2px;border-bottom:1px solid #292929}.set-items>div:last-child{border-bottom:0}.set-items span{display:grid;min-width:0}.set-items small{color:var(--muted);font-size:.68rem}.set-items label{display:grid;gap:2px;font-size:.68rem;color:var(--muted)}.set-items input{width:100%;height:30px;background:var(--field);border:1px solid #444;border-radius:5px;color:var(--text);padding:3px 6px}.set-missing{grid-template-columns:minmax(0,1fr) 72px!important}.set-metrics{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px}.set-metrics>div{display:grid;gap:2px;border:1px solid #4d321f;border-radius:6px;background:#130d09;padding:6px}.set-metrics span{color:var(--muted);font-size:.68rem}.set-metrics strong{color:var(--accent);font-size:1rem}.set-result h3{margin:3px 0}.set-pricing .full-button{margin-top:7px}
.set-packaging-row{display:grid;grid-template-columns:minmax(220px,1fr) 90px minmax(180px,1fr);gap:7px;align-items:end;margin:-2px 0 8px;padding:7px;border:1px solid #4d321f;border-radius:7px;background:#130d09}.set-packaging-row small{color:var(--muted);padding-bottom:7px}.set-packaging-summary{margin:0 0 7px;color:var(--muted);font-size:.72rem}.profile-picker>.profile-product-category{color:var(--accent);font-weight:800;margin:1px 0 3px}
@media(max-width:900px){.set-layout{grid-template-columns:1fr}.set-controls,.set-add-row,.set-packaging-row{grid-template-columns:1fr 1fr}.set-controls .set-name,.set-add-row .set-profile-picker,.set-packaging-row small{grid-column:1/-1}}@media(max-width:480px){.set-items>div{grid-template-columns:minmax(0,1fr) 68px 68px}.set-add-row .mini-button{height:44px}.set-items input{height:40px}}
.dashboard-detail-grid{align-items:start}.recipe-pricing{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:-3px 0 8px}.recipe-pricing>div{display:grid;background:#130d09;border:1px solid #4d321f;border-radius:5px;padding:4px 6px}.recipe-pricing span{color:var(--muted);font-size:.64rem}.recipe-pricing strong{color:var(--accent)}

/* Third refinement: consistent cards, aligned controls and complete history */
.dashboard-summary{align-items:stretch}.summary-tile{height:100%;min-height:90px;align-content:start}.summary-button{appearance:none;-webkit-appearance:none;margin:0}
.default-number>div{align-items:stretch}.default-number input,.default-number .mini-button{height:34px!important;min-height:34px!important;margin:0;align-self:stretch}.default-number .mini-button{display:flex;align-items:center;justify-content:center}
.product-history-layout{grid-template-columns:minmax(620px,1.05fr) minmax(0,1.55fr)}
.recipe-financials{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:8px;margin-top:7px}.recipe-financials>section{min-width:0}.recipe-financials h3{margin-bottom:3px}.recipe-breakdown{display:grid;grid-template-columns:1fr;gap:0}.recipe-market-table{border:1px solid #292929;border-radius:5px;overflow:hidden}.recipe-market-table>div{grid-template-columns:1.35fr repeat(3,.75fr);padding:3px 5px;font-size:.68rem}
.history-values,.history-changes-grid{display:grid;grid-template-columns:repeat(7,minmax(105px,1fr));gap:4px;margin-top:5px}.history-values>div,.history-changes-grid>div{display:grid;align-content:start;gap:1px;min-height:53px;border:1px solid #252525;border-radius:4px;padding:4px 6px;background:#090909;min-width:0}.history-values>div.changed{border-color:#9a591f;background:#26170d;box-shadow:inset 0 0 0 1px rgba(255,109,10,.12)}.history-values span,.history-values small,.history-changes-grid span{font-size:.63rem;color:var(--muted)}.history-values strong,.history-changes-grid strong{font-size:.78rem;line-height:1.18;overflow-wrap:anywhere}.history-values .previous-value{color:#e6b58f}.history-changes-grid>div{border-color:#69401e;background:#25180f}.history-changes-grid span{color:var(--accent)}.history-changes-grid strong{color:#f1d2bb}.history-load-error{display:grid;justify-items:start;gap:6px;border:1px solid #723137;border-radius:6px;background:#201012;padding:10px}.history-load-error span{color:#ffb6b9}.history-side-body>.loading-line{padding:18px 4px}
.history-event>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer}.history-event>summary::-webkit-details-marker{display:none}.history-event>summary>span:first-child{display:grid;flex:1 1 auto}.history-event>summary small{color:var(--muted)}.history-event>summary em{color:var(--muted);font-size:.74rem;font-style:normal;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-expand{color:var(--accent);font-size:.7rem;white-space:nowrap}.history-event[open]>summary{padding-bottom:4px;border-bottom:1px solid #292929;margin-bottom:4px}.history-major>header{display:flex}.history-major{margin-bottom:5px}
.profile-workspace{display:grid;grid-template-columns:minmax(220px,.42fr) minmax(0,1.58fr);gap:8px;margin-top:8px}.profile-picker,.profile-workspace-detail{border:1px solid #333;border-radius:7px;background:#0d0d0d;padding:8px}.profile-picker>small{display:block;color:var(--muted);margin:2px 0 7px}.profile-select{display:grid;width:100%;gap:2px;padding:6px 7px;text-align:left;border:1px solid #292929;border-radius:5px;background:#090909;color:var(--text);font:inherit;cursor:pointer}.profile-select.active,.profile-select:hover{border-color:var(--accent)}.profile-select span{color:var(--muted);font-size:.68rem}.profile-detail-heading{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:7px}.profile-detail-heading p{margin:2px 0;color:var(--muted);font-size:.72rem}.profile-workspace-detail .recipe-facts{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-workspace-detail .recipe-pricing{grid-template-columns:repeat(6,minmax(0,1fr))}.profiles-tools{grid-template-columns:minmax(280px,520px)}
@media(max-width:1100px){.profile-workspace{grid-template-columns:1fr}.profile-workspace-detail .recipe-pricing{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:780px){.profile-workspace-detail .recipe-facts,.profile-workspace-detail .recipe-pricing{grid-template-columns:1fr 1fr}.profiles-tools{grid-template-columns:1fr}}
@media(max-width:1500px){.product-history-layout{grid-template-columns:1fr}.current-recipe-panel{position:static}.history-values,.history-changes-grid{grid-template-columns:repeat(6,minmax(105px,1fr))}}
@media(max-width:900px){.recipe-financials{grid-template-columns:1fr}.history-values,.history-changes-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.default-number input,.default-number .mini-button{height:44px!important;min-height:44px!important}.history-values,.history-changes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-tile{min-height:86px}}

/* Average-market recommendation */
.rrp-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}.rrp-trio article,.rrp-trio label{display:grid;gap:2px;grid-template-rows:auto 36px auto;min-height:96px;border:1px solid var(--accent);border-radius:8px;background:#090909;padding:8px;margin:0}.rrp-trio span{font-size:.7rem;color:var(--muted)}.rrp-trio strong{display:flex;align-items:center;height:36px;font-size:1.4rem;color:var(--accent)}.rrp-trio input{width:100%;height:36px;background:var(--field);border:1px solid var(--accent);border-radius:6px;color:var(--accent);font:inherit;font-size:1.4rem;font-weight:900;padding:2px 7px}.rrp-trio input:focus{outline:2px solid var(--accent);outline-offset:1px}.rrp-trio small{color:var(--muted);font-size:.63rem;line-height:1.15}.market-table .market-average{background:#171007;border-top:1px solid #69401e}.market-table .market-average strong,.market-table .market-average span:nth-child(2){color:var(--accent)}.market-table .market-safe{background:#0d0d0d}.market-table .market-safe strong{color:#ddd}.recipe-pricing{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1050px){.rrp-trio{grid-template-columns:1fr 1fr}.rrp-trio>label{grid-column:1/-1}}
@media(max-width:480px){.rrp-trio{grid-template-columns:1fr}.rrp-trio>label{grid-column:auto}.recipe-pricing{grid-template-columns:1fr 1fr}}

/* Production records: labels only; pricing still uses the saved calculator inputs. */
.production-record-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:end;margin:7px 0 9px;padding:7px;border:1px solid #3b2b20;border-radius:7px;background:#100c09}.record-picker{flex:1 1 250px}.filament-picker{width:170px}.custom-filament{flex:1 1 180px}.production-record-actions{display:flex;gap:5px;align-items:end}.production-record-actions .mini-button{width:auto;min-width:104px;height:34px;min-height:34px;padding:4px 10px}.profile-count{color:var(--accent)!important}.profile-labels{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-comparison{margin-top:0}.production-summary{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:6px}.production-summary>div{display:grid;background:#120d09;border:1px solid #4f321f;border-radius:5px;padding:5px 7px}.production-summary span{font-size:.66rem;color:var(--muted)}.production-summary strong{color:var(--accent)}.profile-table{font-size:.7rem;overflow-x:auto}.profile-table>div{display:grid;grid-template-columns:minmax(155px,1.35fr) repeat(6,minmax(68px,.7fr));gap:5px;align-items:center;padding:5px 7px;border-top:1px solid #292929;min-width:690px}.profile-table .profile-head{color:var(--muted);font-size:.64rem}.history-production-records{margin-top:8px}.history-production-records .production-comparison{border:0}.history-production-records .production-comparison>h3{background:transparent;padding-left:0}.history-production-records .profile-table>div{min-width:650px}
@media(max-width:780px){.production-record-bar{display:grid;grid-template-columns:1fr 1fr}.record-picker{grid-column:1/-1}.filament-picker,.custom-filament{width:auto}.production-record-actions{grid-column:1/-1}.production-record-actions .mini-button{min-height:44px}.production-summary{grid-template-columns:1fr}}

/* Product summaries keep all comparison figures together and remain compact on mobile. */
.rrp-trio{grid-template-columns:repeat(5,minmax(0,1fr))}.product-summary-pricing{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.history-profile-list{display:grid;gap:4px;margin-top:4px}.history-profile-list>div{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:5px 7px;border:1px solid #292929;border-radius:5px;background:#090909;font-size:.72rem}.history-profile-list span{color:var(--muted);text-align:right}.production-summary{display:none}
@media(max-width:1250px){.rrp-trio,.product-summary-pricing{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.rrp-trio,.product-summary-pricing{grid-template-columns:1fr 1fr}.history-profile-list>div{display:grid}.history-profile-list span{text-align:left}}

.purge-blocks{display:grid;grid-template-columns:minmax(190px,1fr) auto;gap:6px;align-items:end;margin:7px 0;padding:7px;border:1px solid #3b2b20;border-radius:7px;background:#100c09}.purge-blocks>div:first-child{display:grid;gap:1px}.purge-blocks small{font-size:.67rem;color:var(--muted)}.purge-add{display:grid;grid-template-columns:172px 70px 104px;gap:5px;align-items:end}.purge-add select,.purge-add input,.purge-list input{height:34px;background:var(--field);border:1px solid #454545;border-radius:6px;color:var(--text);font:inherit;padding:4px 8px}.purge-add select:focus,.purge-add input:focus,.purge-list input:focus{outline:2px solid var(--accent);outline-offset:1px}.purge-add .mini-button{height:34px;min-height:34px;padding:4px 10px}.purge-list{grid-column:1/-1;display:grid;gap:4px}.purge-list>div{display:grid;grid-template-columns:minmax(0,1fr) 70px 80px;gap:5px;align-items:center;padding:4px 0;border-top:1px solid #302319}.purge-list>div:first-child{border-top:0}.purge-list .mini-button{min-width:80px;width:80px;height:34px;min-height:34px;padding:4px 8px}.history-side-heading{display:flex;justify-content:space-between;gap:7px;align-items:start}.history-side-heading select{max-width:260px}.history-major{border-color:#69401e;background:#171007}
@media(max-width:780px){.purge-blocks{grid-template-columns:1fr}.purge-add{grid-template-columns:1fr 70px 104px}.purge-add select{min-width:0}.history-side-heading{display:grid}.history-side-heading select{max-width:none}}

/* Final profile workspace and calculator alignment. */
.rrp-trio{grid-template-columns:repeat(4,minmax(0,1fr))}.rrp-trio>label{grid-column:1/-1;min-height:104px}.rrp-trio>label input{font-size:1.7rem!important;height:42px!important}.profile-workspace-detail .profile-pricing{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 8px}.profile-pricing>div{min-height:74px;padding:7px 9px}.profile-pricing strong{font-size:1.12rem}.profile-workspace-detail .recipe-facts{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-total{border-top:1px solid #4b321e!important;padding-top:6px!important}.profile-total strong{color:var(--accent)}.profile-compare-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.profile-compare-grid .profile-workspace-detail{min-width:0}.profiles-tools{grid-template-columns:minmax(280px,520px) minmax(240px,360px)}.production-record-actions{height:34px;align-self:end}.production-record-actions .mini-button{height:34px!important;min-height:34px!important}.purge-blocks{grid-template-columns:minmax(0,1fr) 356px;align-items:center}.purge-blocks>div:first-child{align-self:center}.purge-add{align-items:center}.purge-add .mini-button{width:104px!important;min-width:104px!important}.purge-add select,.purge-add input,.purge-add .mini-button{height:34px!important;min-height:34px!important;box-sizing:border-box}.purge-list input,.purge-list .mini-button{height:34px!important;min-height:34px!important}
@media(max-width:1100px){.profile-compare-grid{grid-template-columns:1fr}.profile-workspace-detail .recipe-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:780px){.rrp-trio{grid-template-columns:1fr 1fr}.rrp-trio>label{grid-column:1/-1}.profile-workspace-detail .profile-pricing,.profile-workspace-detail .recipe-facts{grid-template-columns:1fr 1fr}.profiles-tools{grid-template-columns:1fr}.purge-blocks{grid-template-columns:1fr}.purge-add{grid-template-columns:minmax(0,1fr) 70px 104px}}

/* Profile tools and compact controls */
.profiles-tools{display:grid;grid-template-columns:minmax(190px,1fr) 150px minmax(240px,1.4fr) minmax(240px,1.4fr);gap:6px;align-items:center}
.profiles-tools .profile-search,.profiles-tools select{width:100%;min-width:0;box-sizing:border-box}
.profile-aggregate-summary{margin:6px 0 8px;padding:7px;border:1px solid #4f321f;border-radius:7px;background:#120d09}
.profile-aggregate-summary h3{margin:0 0 5px;font-size:.82rem;color:var(--accent)}
.profile-aggregate-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.profile-aggregate-grid>div{border:1px solid #69401e;border-radius:5px;padding:6px 7px;min-width:0}
.profile-aggregate-grid span{display:block;color:var(--muted);font-size:.65rem;line-height:1.1}.profile-aggregate-grid strong{display:block;color:var(--accent);font-size:1.02rem;margin-top:3px}
.section-heading .table-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;align-items:center}.section-heading .table-actions .mini-button{width:auto;min-width:104px;white-space:nowrap}
.rrp-trio>label{box-sizing:border-box;overflow:hidden}.rrp-trio>label small{display:block;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1100px){.profile-aggregate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profiles-tools{grid-template-columns:1fr 150px 1fr}}
@media(max-width:780px){.profile-aggregate-grid{grid-template-columns:1fr 1fr}.profiles-tools{grid-template-columns:1fr}.section-heading .table-actions{justify-content:flex-start}}

/* Final compactness pass: align controls to the fields, not to their text labels. */
.production-record-bar,.purge-blocks,.set-add-row,.set-items>div{align-items:end!important}
.production-record-actions,.purge-add{height:34px!important;align-self:end!important;display:flex!important;align-items:stretch!important}
.production-record-actions .mini-button,.purge-add .mini-button,.set-add-row>.mini-button,.set-items .mini-button{height:34px!important;min-height:34px!important;align-self:end!important;box-sizing:border-box!important}
.purge-add{display:grid!important;grid-template-columns:172px 70px 104px!important}.purge-add>*{min-width:0}.purge-list>div{align-items:end!important}
.rrp-trio article{grid-template-rows:minmax(32px,auto) 36px minmax(30px,auto)!important}.rrp-trio article strong{align-self:end!important}.rrp-trio article span{align-self:start}.rrp-trio article small{align-self:start}
.compact-product-table th:last-child,.compact-product-table td:last-child{width:155px!important}.compact-product-table th:first-child{width:26%!important}.compact-product-table td{height:34px!important}.product-filter-tools{gap:5px!important}.product-filter-tools select{max-width:145px}
.dense-table td{vertical-align:middle}.dense-table .table-actions{align-items:center}.dense-table .table-actions .mini-button{height:30px;min-height:30px}.period-table td{height:34px!important}.period-table .table-actions .mini-button{height:30px;min-height:30px}
.log-table td{height:28px!important;padding-top:2px!important;padding-bottom:2px!important;font-size:.78rem}.log-table th{padding-top:3px!important;padding-bottom:3px!important}.log-table td:first-child{font-size:.72rem}
.mini-bundle-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:8px;padding:7px;border:1px solid #4d321f;border-radius:7px;background:#120d09}.mini-bundle-panel h3{grid-column:1/-1;margin:0;font-size:.82rem;color:var(--accent)}.mini-bundle-panel>div{border:1px solid #52341f;border-radius:5px;padding:5px 6px}.mini-bundle-panel span{display:block;color:var(--muted);font-size:.65rem}.mini-bundle-panel strong{color:var(--accent)}
@media(max-width:780px){.product-filter-tools select{max-width:none}.mini-bundle-panel{grid-template-columns:1fr 1fr}.production-record-actions,.purge-add{height:44px!important}.production-record-actions .mini-button,.purge-add .mini-button,.set-add-row>.mini-button,.set-items .mini-button{height:44px!important;min-height:44px!important}.purge-add{grid-template-columns:minmax(0,1fr) 70px 104px!important}.log-table td{height:auto!important;padding:6px!important}}

/* Match controls to their adjacent form fields and stop the RRP helper text being covered. */
.rrp-trio>label{grid-template-rows:auto 42px minmax(22px,auto)!important;min-height:112px!important;gap:5px!important}
.rrp-trio>label input{box-sizing:border-box;margin:0!important}.rrp-trio>label small{min-height:22px;margin:0!important}
.production-record-actions,.purge-add{align-items:flex-end!important}
.production-record-actions .mini-button,.purge-add .mini-button{height:38px!important;min-height:38px!important;box-sizing:border-box;margin:0!important}
.purge-add select,.purge-add input{height:38px!important;min-height:38px!important;box-sizing:border-box}
.section-heading .table-actions #toggleProfileCompare,.section-heading .table-actions #profilesNewProduct{width:200px;min-width:200px;height:38px;min-height:38px;box-sizing:border-box}
@media(max-width:780px){.section-heading .table-actions #toggleProfileCompare,.section-heading .table-actions #profilesNewProduct{width:auto;min-width:150px}}

/* Set Pricing: keep controls compact and inside their allocated columns. */
.set-pricing{overflow:hidden}.set-controls{grid-template-columns:190px 220px minmax(0,1fr)!important}.set-profile-tools{display:grid;grid-template-columns:minmax(220px,1fr) 150px 190px;gap:7px;margin:0 0 8px}.set-add-row{grid-template-columns:minmax(0,1fr) 78px 74px!important;min-width:0}.set-add-row>*{min-width:0}.set-add-row .mini-button,.set-items .mini-button{width:100%!important;min-width:0!important}.set-layout{align-items:start!important}.set-items-panel{align-self:start;min-height:0!important}.set-items-panel>p{margin:0 0 5px;color:var(--muted);font-size:.7rem}.set-items>div{grid-template-columns:minmax(0,1fr) 70px 68px!important;min-width:0}.set-items>div span{overflow:hidden}.set-items>div strong,.set-items>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.set-packaging-row{grid-template-columns:minmax(220px,1fr) 82px minmax(180px,1fr)!important}.set-price-inputs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:7px}.set-price-inputs label{display:grid;gap:4px;border:1px solid var(--accent);border-radius:7px;background:#130d09;padding:7px}.set-price-inputs span{color:var(--muted);font-size:.72rem}.set-price-inputs input{width:100%;height:38px;box-sizing:border-box;border:1px solid var(--accent);border-radius:5px;background:var(--field);color:var(--accent);font-size:1.25rem;font-weight:800;padding:4px 7px}.set-result .set-metrics{margin-top:0}
@media(max-width:900px){.set-controls,.set-profile-tools,.set-packaging-row{grid-template-columns:1fr 1fr!important}.set-controls .set-name,.set-profile-tools .field:first-child,.set-packaging-row small{grid-column:1/-1}}@media(max-width:560px){.set-controls,.set-profile-tools,.set-packaging-row,.set-price-inputs{grid-template-columns:1fr!important}.set-add-row{grid-template-columns:minmax(0,1fr) 68px 68px!important}.set-add-row .set-profile-picker{grid-column:1/-1}.set-packaging-row small{grid-column:auto}}

/* Calculator: compact lists, readable number controls and saved-profile context. */
input[type="number"]{color-scheme:dark}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{opacity:1;filter:invert(1)}
.calculator-inputs .cost-list-section{margin:5px 0}.calculator-inputs .cost-list-section h3{padding:5px 8px;font-size:.9rem}.calculator-cost-row{min-height:46px!important;padding:5px 8px!important}.calculator-cost-row strong{font-size:.88rem}.calculator-cost-row small{font-size:.67rem}.quantity-input small{margin-top:0!important}
.default-fields{margin:7px 0 0!important}.pricing-guide{margin:7px 0;padding:7px 8px;border-left:3px solid var(--accent);background:#120d09;color:var(--muted);font-size:.74rem;line-height:1.35}.pricing-guide strong{color:var(--text)}
.profile-note{display:grid;gap:2px;margin:7px 0;padding:7px 8px;border:1px solid #4f321f;border-radius:6px;background:#120d09;font-size:.78rem}.profile-note strong{color:var(--accent)}
.profile-aggregate-summary>p{margin:0 0 6px;color:var(--muted);font-size:.71rem}
.profiles-tools #primaryProfileSelect,.profiles-tools #compareProfileSelect{min-width:0}.profiles-tools #primaryProfileSelect{grid-column:3}.profiles-tools #compareProfileSelect{grid-column:4}
@media(max-width:1100px){.profiles-tools #primaryProfileSelect,.profiles-tools #compareProfileSelect{grid-column:auto}}@media(max-width:780px){.calculator-cost-row{min-height:44px!important}.profiles-tools #primaryProfileSelect,.profiles-tools #compareProfileSelect{grid-column:auto}}

/* Designer, compact pricing settings and clearer profile calculations. */
.designer-selector{margin-top:5px}.designer-other{display:flex!important;align-items:end!important;gap:5px!important}.designer-other[hidden]{display:none!important}.designer-other span{font-size:.7rem;color:var(--muted)}.designer-other input{width:190px;height:34px}
.pricing-settings-card{margin-top:5px!important}.pricing-settings-card .default-fields{grid-template-columns:1fr 1fr!important;margin:0!important;padding:6px!important}.pricing-settings-card .default-number{min-width:0;padding:5px 6px!important}.pricing-settings-card .default-number>div{grid-template-columns:minmax(60px,76px) 58px!important}.pricing-settings-card .default-number .mini-button{width:58px!important;min-width:58px!important}
.calculator-cost-row{min-height:36px!important;padding:2px 7px!important}.calculator-cost-row input{height:28px!important}.calculator-inputs .cost-list-section h3{padding:4px 7px!important}
.dense-table td{height:31px!important;padding-top:2px!important;padding-bottom:2px!important}.period-table td{height:31px!important}.dense-table .table-actions .mini-button,.period-table .table-actions .mini-button{height:28px!important;min-height:28px!important}
input[type="number"]{color-scheme:dark!important}.pricing-shell input[type="number"]::-webkit-inner-spin-button,.pricing-shell input[type="number"]::-webkit-outer-spin-button{opacity:1!important;filter:invert(100%) brightness(220%) contrast(140%)!important;cursor:pointer!important}
.profile-product-designer,.profile-product-category{display:block;margin-top:2px;color:var(--muted)}.profile-list-note{display:block!important;margin-top:4px!important;color:var(--muted)!important;font-size:.66rem!important;white-space:normal!important}.profile-calculation-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:6px 0;padding:7px;border:1px solid #3b3028;border-radius:6px;background:#100d0b;font-size:.68rem;color:var(--muted)}.profile-calculation-guide>strong{grid-column:1/-1;color:var(--text)}.profile-calculation-guide b{color:var(--text)}.mini-bundle-explanation{grid-column:1/-1;margin:2px 0 0;color:var(--muted);font-size:.68rem;line-height:1.3}
.shared-rrp-editor>div{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:5px;margin-top:3px;align-items:stretch!important}.shared-rrp-editor input{width:100%;min-width:0;height:34px!important;min-height:34px!important;box-sizing:border-box;margin:0!important;border:1px solid var(--accent);border-radius:5px;background:var(--field);color:var(--accent);font-weight:800;padding:4px 7px}.shared-rrp-editor .mini-button{width:82px!important;min-width:82px!important;height:34px!important;min-height:34px!important;box-sizing:border-box!important;align-self:stretch!important;margin:0!important;padding:4px!important}
.section-heading .table-actions #profilesAddRecord{width:200px;min-width:200px;height:38px;min-height:38px;box-sizing:border-box}.compact-product-table th:first-child{width:23%!important}.compact-product-table th:nth-child(2){width:11%}
@media(max-width:780px){.designer-other{width:100%}.designer-other input{width:100%}.pricing-settings-card .default-fields,.profile-calculation-guide{grid-template-columns:1fr!important}.section-heading .table-actions #profilesAddRecord{width:auto;min-width:150px}.calculator-cost-row{min-height:42px!important}.calculator-cost-row input{height:38px!important}}

/* Overhead and sales-channel recovery calculators. */
.dense-table tfoot th{border-top:2px solid #4b3526;background:#17100b;color:var(--accent);padding:5px 7px;text-align:left}.recovery-calculator{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px;padding:7px;border:1px solid #4d321f;border-radius:7px;background:#120d09}.recovery-calculator>div{display:grid;gap:2px}.recovery-calculator span,.channel-recovery-preview span{font-size:.68rem;color:var(--muted)}.recovery-calculator strong,.channel-recovery-preview strong{color:var(--accent);font-size:1rem}.recovery-calculator p{grid-column:1/-1;margin:1px 0 0;color:var(--muted);font-size:.68rem;line-height:1.3}.channel-sales-field{min-width:142px}.channel-recovery-preview{display:grid;align-content:end;gap:3px;min-width:105px;height:34px;box-sizing:border-box;padding:3px 7px;border:1px solid #4d321f;border-radius:6px;background:#120d09}.channel-recovery-preview strong{font-size:.84rem}.channel-recovery-table{font-size:.72rem}.channel-recovery-table th,.channel-recovery-table td{white-space:nowrap}.channel-recovery-table th:first-child,.channel-recovery-table td:first-child{white-space:normal}.channel-recovery-table th:last-child,.channel-recovery-table td:last-child{width:154px}
@media(max-width:780px){.recovery-calculator{grid-template-columns:1fr}.recovery-calculator p{grid-column:auto}.channel-recovery-preview{height:44px}.channel-recovery-table{font-size:.7rem}}

/* Recovery forms: two deliberate rows with the calculated value beside its inputs. */
.channel-record-form{display:grid;gap:7px}.channel-form-row{display:grid;gap:7px;align-items:end}.channel-form-costs{grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(90px,.75fr))}.channel-form-recovery{grid-template-columns:110px minmax(145px,1fr) 125px 125px 92px}.channel-form-row .field{min-width:0}.channel-form-row input{width:100%;box-sizing:border-box}.channel-recovery-preview{height:38px;align-content:center}.recovery-calculator{grid-template-columns:1fr minmax(180px,1.2fr) 1fr 90px;align-items:end}.recovery-calculator .field{margin:0}.recovery-calculator input{height:36px}.recovery-calculator .mini-button{height:36px;min-height:36px}.recovery-calculator p{grid-column:1/-1}
@media(max-width:1050px){.channel-form-costs{grid-template-columns:1fr 1fr}.channel-form-recovery{grid-template-columns:1fr 1fr}.channel-form-recovery .compact-save{grid-column:1/-1}.recovery-calculator{grid-template-columns:1fr 1fr}.recovery-calculator p{grid-column:1/-1}}@media(max-width:600px){.channel-form-costs,.channel-form-recovery,.recovery-calculator{grid-template-columns:1fr}.channel-form-recovery .compact-save,.recovery-calculator p{grid-column:auto}}

/* Bundles & Deals share the page but keep independent drafts and controls. */
.bundles-deals-page{overflow:hidden}.bundles-deals-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;align-items:start}.bundle-deal-panel{min-width:0;border:1px solid #3a3a3a;border-radius:8px;padding:9px;background:#0b0b0b}.bundle-identity{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(200px,1.2fr);gap:6px;margin-bottom:7px}.bundle-deal-panel .set-profile-tools{grid-template-columns:minmax(150px,1fr) 125px 135px}.bundle-deal-panel .set-packaging-row{grid-template-columns:minmax(180px,1fr) 75px!important}.compact-set-items{max-height:270px;overflow:auto;margin:7px 0}.bundle-deal-panel #setSummary{margin-top:7px}.bundle-deal-panel .market-table{font-size:.69rem}.bundle-deal-panel .set-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.deal-price-row{display:grid;grid-template-columns:105px 1fr 1fr;gap:6px;margin-bottom:7px;align-items:end}.deal-price-row>label:not(.field){display:grid;gap:4px;border:1px solid var(--accent);border-radius:7px;background:#130d09;padding:6px}.deal-price-row>label:not(.field)>span{color:var(--muted);font-size:.7rem}.deal-price-row>label:not(.field)>input{height:36px;width:100%;box-sizing:border-box;background:var(--field);color:var(--accent);border:1px solid var(--accent);border-radius:5px;font-size:1.12rem;font-weight:800;padding:4px 7px}.deal-rules{display:grid;grid-template-columns:160px 1fr 1fr;gap:6px;align-items:end;margin:6px 0;padding:7px;border:1px solid #4d321f;border-radius:7px}.deal-rules legend{color:var(--muted);font-size:.7rem;padding:0 4px}.check-field{display:flex;align-items:center;gap:5px;min-height:36px}.deal-manual{margin:7px 0;border:1px solid #333;border-radius:6px;padding:6px}.deal-manual summary{cursor:pointer;color:var(--muted);font-size:.74rem;font-weight:700}.deal-manual>input{width:100%;height:34px;margin:6px 0;box-sizing:border-box}.deal-product-checks{display:grid;grid-template-columns:1fr 1fr;gap:2px;max-height:180px;overflow:auto;padding:3px}.deal-product-checks label{font-size:.7rem;padding:3px;border-bottom:1px solid #222}.deal-profile-add{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:5px;margin-top:6px}.deal-profile-add select,.deal-profile-add button{height:34px}.deal-profile-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.deal-profile-tags .mini-button{width:auto;max-width:100%;font-size:.65rem}.deal-headline{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}.deal-headline>div,.deal-scenarios article{border:1px solid #52341f;border-radius:6px;background:#120d09;padding:6px}.deal-headline span,.deal-scenarios span{display:block;color:var(--muted);font-size:.66rem}.deal-headline strong{display:block;color:var(--accent);font-size:1rem;margin-top:2px}.deal-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:5px}.deal-scenarios h4{margin:0 0 4px;color:var(--text);font-size:.75rem}.deal-scenarios strong,.deal-scenarios b{display:block;margin-top:3px;color:var(--accent);font-size:.8rem}.deal-scenarios .deal-loss{border-color:#b91c1c}.deal-scenarios .deal-loss strong,.deal-scenarios .deal-loss b{color:#ff7180}
@media(max-width:1250px){.bundles-deals-grid{grid-template-columns:1fr}.bundle-deal-panel .set-profile-tools{grid-template-columns:1fr 140px 150px}}@media(max-width:700px){.bundle-identity,.deal-price-row,.deal-rules,.deal-headline,.deal-scenarios{grid-template-columns:1fr}.bundle-deal-panel .set-profile-tools{grid-template-columns:1fr}.deal-product-checks{grid-template-columns:1fr}}

/* Current/reference profiles and separated printed components. */
.current-profile-toggle{display:flex;align-items:center;gap:8px;margin:0 0 7px;padding:7px 9px;border:1px solid #4d321f;border-radius:7px;background:#120d09}.current-profile-toggle input{width:18px;height:18px;flex:0 0 auto}.current-profile-toggle span{display:grid;gap:1px}.current-profile-toggle small{color:var(--muted);font-size:.68rem}.calculator-components-card{display:grid;gap:5px;margin:7px 0;padding:8px;border:1px solid #4d321f;border-radius:8px;background:#100d0b}.calculator-components-card>div>p{margin:1px 0;color:var(--muted);font-size:.72rem}.calculator-components-card .cost-list-section{margin:0}.calculator-components-card .calculator-cost-row{min-height:32px!important}.purge-block-card{margin-top:7px!important}

/* Recovery forms retain two clean rows without inherited one-line sizing. */
.channel-record-form{display:flex!important;flex-direction:column!important;gap:7px!important}.channel-form-row{display:grid!important;position:static!important;gap:7px!important;align-items:end!important}.channel-form-costs{grid-template-columns:minmax(170px,1.45fr) repeat(3,minmax(82px,.7fr))!important}.channel-form-recovery{grid-template-columns:90px minmax(135px,1fr) 120px 115px 92px!important}.channel-form-row .field,.channel-form-row label{position:static!important;min-width:0!important;margin:0!important}.channel-form-row .field>span{display:block!important;white-space:normal!important;line-height:1.15}.channel-form-row input,.channel-form-row select,.channel-form-row button,.channel-recovery-preview{height:38px!important;min-height:38px!important;box-sizing:border-box!important;margin:0!important}.final-recovery-calculator{grid-template-columns:minmax(110px,.8fr) minmax(145px,1.2fr) minmax(110px,.8fr) minmax(145px,1fr) 112px!important;align-items:end!important}.final-recovery-calculator>div,.final-recovery-calculator>.field{min-width:0}.final-recovery-calculator .mini-button{width:112px!important;min-width:112px!important;height:38px!important}.final-recovery-calculator p{grid-column:1/-1!important}

/* Deal eligibility fields are three independent, non-overlapping controls. */
.deal-rules{grid-template-columns:minmax(150px,.8fr) minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;align-items:end!important}.deal-rules .check-field{display:flex!important;position:static!important;align-items:center!important;gap:7px!important;height:38px!important;min-width:0!important;white-space:nowrap!important}.deal-rules .check-field input{width:18px!important;height:18px!important;flex:0 0 auto!important;margin:0!important}.deal-rules .field{display:grid!important;position:static!important;gap:4px!important;min-width:0!important;margin:0!important}.deal-rules .field>span{display:block!important;position:static!important}.deal-rules select{width:100%!important;min-width:0!important;height:38px!important;box-sizing:border-box!important}
@media(max-width:1050px){.channel-form-costs{grid-template-columns:1fr 1fr!important}.channel-form-recovery{grid-template-columns:1fr 1fr!important}.channel-form-recovery .compact-save{grid-column:1/-1}.final-recovery-calculator{grid-template-columns:1fr 1fr!important}.final-recovery-calculator .mini-button{width:100%!important}.final-recovery-calculator p{grid-column:1/-1!important}}@media(max-width:700px){.channel-form-costs,.channel-form-recovery,.final-recovery-calculator,.deal-rules{grid-template-columns:1fr!important}.deal-rules .check-field{white-space:normal!important}}
#purgeBlockControls{margin-top:7px!important}

/* Final compact controls for channels, components and flexible cost sizes. */
.channel-form-recovery{grid-template-columns:90px 180px 130px 130px 92px!important;justify-content:start!important}.channel-form-recovery #channelExpectedSales{width:180px!important;max-width:180px!important}.channel-form-recovery #saveChannel{width:92px!important;min-width:0!important;max-width:92px!important;padding:4px 8px!important;justify-self:stretch!important}.channel-form-recovery .channel-recovery-preview{width:130px!important;min-width:0!important}.cost-size-field{min-width:130px}.cost-library-table th:nth-child(2),.cost-library-table td:nth-child(2){width:120px;max-width:170px}.component-add-row{display:grid;grid-template-columns:minmax(180px,1fr) 80px 92px;gap:7px;align-items:center}.component-add-row select,.component-add-row input,.component-add-row button{height:38px!important;min-height:38px!important;box-sizing:border-box!important;margin:0!important}.component-add-row button{width:92px!important;min-width:92px!important}.selected-component-list{display:grid;margin-top:5px}.selected-component-list>div{display:grid;grid-template-columns:minmax(0,1fr) 80px 92px;gap:7px;align-items:center;padding:4px 0;border-top:1px solid #292929}.selected-component-list>div>span{display:grid}.selected-component-list small{color:var(--muted);font-size:.68rem}.selected-component-list input,.selected-component-list button{height:32px!important;min-height:32px!important;box-sizing:border-box!important;margin:0!important}.selected-component-list button{width:92px!important;min-width:92px!important}

/* Native Safari arrows are hidden and replaced with consistently visible controls. */
.pricing-shell input[type="number"]{-webkit-appearance:textfield!important;appearance:textfield!important;padding-right:25px!important}.pricing-shell input[type="number"]::-webkit-inner-spin-button,.pricing-shell input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;appearance:none!important;margin:0!important}.has-number-stepper{position:relative!important}.visible-number-stepper{position:absolute!important;right:3px!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;grid-template-rows:1fr 1fr!important;width:18px!important;height:28px!important;z-index:5!important;border-left:1px solid #3b3b3b!important}.visible-number-stepper button{display:flex!important;align-items:center!important;justify-content:center!important;width:18px!important;height:14px!important;min-width:18px!important;min-height:14px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;font-size:7px!important;line-height:7px!important;cursor:pointer!important}.visible-number-stepper button:hover{background:#333!important;color:#fff!important}
@media(max-width:1050px){.channel-form-recovery{grid-template-columns:90px 160px 120px 120px 92px!important}.channel-form-recovery #channelExpectedSales{width:160px!important;max-width:160px!important}}@media(max-width:700px){.channel-form-recovery{grid-template-columns:1fr!important}.channel-form-recovery #channelExpectedSales,.channel-form-recovery #saveChannel,.channel-form-recovery .channel-recovery-preview{width:100%!important;max-width:none!important}.component-add-row,.selected-component-list>div{grid-template-columns:1fr!important}.component-add-row button,.selected-component-list button{width:100%!important}}
.visible-number-stepper{right:auto!important;left:var(--stepper-left,auto)!important;top:var(--stepper-top,3px)!important;transform:none!important}

/* Calculator fixes: consistent component controls, filament allocation and contained comparisons. */
.component-add-row select{width:100%!important;background:var(--field)!important;border:1px solid #454545!important;border-radius:6px!important;color:var(--text)!important;font:inherit!important;font-size:.78rem!important;font-weight:800!important;padding:4px 8px!important;color-scheme:dark!important}.component-add-row select option{background:#080808!important;color:#f5f5f5!important;font:inherit!important}
.filament-section{overflow:visible}.filament-section>h3{border-radius:7px 7px 0 0}.filament-total{padding:7px;border-bottom:1px solid #303030;background:#100d0b}.filament-total input{width:150px;height:34px;background:var(--field);border:1px solid #454545;border-radius:6px;color:var(--text);font:inherit;padding:4px 8px}.filament-choice-list{display:grid}.filament-choice{display:grid;grid-template-columns:20px minmax(0,1fr) 76px;gap:7px;align-items:center;padding:5px 7px;border-bottom:1px solid #292929;cursor:pointer}.filament-choice:last-child{border-bottom:0}.filament-choice>.filament-check{width:17px;height:17px;accent-color:var(--accent)}.filament-choice>span{display:grid;min-width:0}.filament-choice strong,.filament-choice small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filament-choice small{font-size:.68rem;color:var(--muted)}.filament-choice .filament-qty{width:76px;height:30px;background:var(--field);border:1px solid #444;border-radius:5px;color:var(--text);padding:3px 25px 3px 7px}.filament-choice .filament-qty:disabled{opacity:.45}.production-comparison{width:100%;max-width:100%;min-width:0;overflow:hidden}.production-comparison .profile-table{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.calculator-results>*{min-width:0}

/* September 2026 pricing fixes. */
.calculator-layout,.calculator-inputs,.calculator-results,.production-comparison,.production-comparison .profile-table{box-sizing:border-box;min-width:0;max-width:100%}
.production-comparison{overflow:hidden}
.production-comparison .profile-table{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.production-comparison .profile-table>div{width:max-content;min-width:100%;grid-template-columns:minmax(155px,1.35fr) repeat(6,minmax(78px,.7fr))}
.total-cost-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;border:1px solid var(--accent);border-radius:8px;background:var(--accent-soft);padding:8px 10px}
.total-cost-summary span{font-size:.76rem;font-weight:800}.total-cost-summary strong{grid-row:1/3;grid-column:2;color:var(--accent);font-size:1.35rem}.total-cost-summary small{color:var(--muted);font-size:.68rem}
.product-total-cost{white-space:nowrap}.product-total-cost small{display:block;color:var(--muted);font-size:.64rem}
.profile-product-mini,.profile-mini-status{display:inline-block;width:max-content;border:1px solid #454545;border-radius:999px;padding:2px 7px;color:var(--muted)!important;font-size:.66rem;font-weight:800}
.profile-product-mini.is-mini,.profile-mini-status.is-mini{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)!important}
.profile-detail-heading>div{min-width:0}.profile-mini-status{margin-top:3px}
@media(max-width:780px){.production-comparison .profile-table{margin-bottom:2px}.production-comparison .profile-table>div{min-width:650px}.total-cost-summary strong{font-size:1.15rem}.profile-workspace{min-width:0}.profile-workspace-detail{min-width:0;overflow:hidden}}

/* Explicit direct-versus-all-in product costing. */
.all-in-cost-card{min-width:0;max-width:100%;overflow:hidden}.all-in-help{margin:7px 8px;color:var(--muted);font-size:.72rem}.all-in-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.all-in-table{width:100%;min-width:660px;border-collapse:collapse;font-size:.72rem}.all-in-table th,.all-in-table td{padding:7px 8px;text-align:right;border-top:1px solid #303030;white-space:nowrap}.all-in-table th:first-child{text-align:left}.all-in-table thead th{color:var(--muted);font-size:.66rem}.all-in-table tbody th{font-weight:800}.all-in-table tbody th small{display:block;color:var(--muted);font-weight:400}.all-in-table .all-in-total{color:var(--accent);font-weight:900}.all-in-explanation{margin:4px 8px 8px;color:var(--muted);font-size:.72rem}.all-in-explanation summary{cursor:pointer;color:var(--accent);font-weight:800}.all-in-explanation p{margin:6px 0}.all-in-explanation ul{margin:5px 0;padding-left:20px}.product-all-in-cost{white-space:nowrap}.product-all-in-cost small{display:block;color:var(--muted);font-size:.64rem}.profile-workspace-detail .all-in-cost-card{margin-top:9px}
@media(max-width:700px){.filament-total input{width:100%}.filament-choice{grid-template-columns:20px minmax(0,1fr) 84px}.filament-choice .filament-qty{width:84px}}
.single-total-cost{display:grid;gap:3px;padding:12px 10px;background:var(--accent-soft)}
.single-total-cost strong{color:var(--accent);font-size:2rem;line-height:1.1}
.single-total-cost small{color:var(--muted);font-size:.72rem}
.single-cost-warning{margin:0;padding:8px 10px;color:#ffb6b9;font-size:.72rem}
.all-in-breakdown{padding:0 9px 8px}
.all-in-breakdown>div{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #292929}
.all-in-breakdown .all-in-grand-total{border-top:1px solid #69401e;border-bottom:0;color:var(--accent);font-size:1.08rem;font-weight:900}

/* Old sale-price recovery fields remain stored for history but are no longer editable. */
.channel-form-recovery{grid-template-columns:110px 92px!important}
.channel-form-recovery [hidden],.channel-recovery-preview[hidden]{display:none!important}
@media(max-width:700px){.channel-form-recovery{grid-template-columns:1fr!important}}
