﻿@font-face{font-family:Instrument;src:local('Instrument Sans');font-display:swap}
:root{--ink:#233b32;--muted:#5b685e;--ground:#f2f3ed;--paper:#fffefa;--line:#d9ded3;--accent:#e6b64e;--green:#35644b;color-scheme:light;font-family:Instrument,'Segoe UI',sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--ground)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:var(--paper);border-radius:6px;padding:9px 12px;font-weight:600;transition:background .15s}button:hover:not(:disabled){background:#e5ebdf}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #a66d12;outline-offset:2px}::selection{background:var(--accent);color:var(--ink)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:1.2rem;letter-spacing:-.025em}h3{font-size:1rem}svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}strong,b{font-weight:650}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:4px}.topbar{height:68px;flex-shrink:0;display:flex;align-items:center;gap:25px;padding:0 26px;background:var(--ink);color:var(--paper)}.topbar>a{font-size:1rem;border-right:1px solid #ffffff40;padding-right:24px}.topbar h1{font-size:1.65rem;font-weight:700;letter-spacing:-.04em;white-space:nowrap}.topbar h1 span{font-weight:350}.topbar h1 b{color:var(--accent)}.demo{font-size:.9rem;color:#d1dccf}.top-actions{margin-left:auto;display:flex;gap:8px}.top-actions button{background:transparent;color:var(--paper);border-color:#ffffff40;font-size:.9rem}.top-actions button:hover:not(:disabled){background:#3a5147}main{display:flex;flex-direction:column;gap:18px;padding:20px 26px 0;flex:1;min-height:0}.ledger{display:grid;grid-template-columns:1.15fr 1fr 1fr 1.2fr;flex-shrink:0;gap:25px;padding:0 4px 18px;border-bottom:1px solid #cbd2c3}.ledger>div{display:flex;flex-direction:column;gap:5px}.ledger span{font-size:.9rem;color:var(--muted)}.ledger strong{font-size:1.9rem;letter-spacing:-.035em;line-height:1.15;font-variant-numeric:tabular-nums}.ledger .week strong{font-size:1.7rem}.goal{display:grid!important;grid-template-columns:1fr auto;align-items:center;column-gap:16px!important}.goal>span:first-child{grid-column:1/-1}.goal>span:last-child{font-size:.85rem}.workspace{display:grid;grid-template-columns:325px minmax(0,1fr);flex:1;min-height:0;gap:24px}.market{display:flex;flex-direction:column;min-height:0;gap:10px}.section-heading{display:flex;justify-content:space-between;align-items:center}.section-heading>span{font-size:.85rem;color:var(--muted)}.market-intro,.market-note{font-size:.85rem;color:var(--muted);line-height:1.4}.market-note{margin-top:auto;padding:3px 2px 0}.catalog{display:grid;grid-template-rows:repeat(6,minmax(0,1fr));gap:6px;flex:1;min-height:0}.product{display:flex;align-items:center;gap:10px;text-align:left;padding:8px 10px;min-height:0;border-color:#d2d9cd;cursor:grab}.product:active{cursor:grabbing}.product.selected{outline:2px solid var(--green);background:#e7eedf}.furniture-icon{width:38px;height:42px;color:var(--product,currentColor);stroke-width:2.2}.product-info{display:flex;flex-direction:column;gap:3px;min-width:0}.product-info>strong{font-size:1rem}.product-info>span{font-size:.82rem;color:var(--muted);white-space:nowrap;font-weight:400}.product-info .price-range{font-size:.72rem;color:#66715f}.price-range .current{font-weight:750;color:var(--ink)}.quote{display:flex;flex-direction:column;gap:5px;margin-left:auto;text-align:right}.quote>strong{font-size:1.18rem;font-variant-numeric:tabular-nums;white-space:nowrap}.trend{font-size:.74rem;display:flex;align-items:center;justify-content:flex-end;gap:3px;font-weight:500;color:var(--muted);white-space:nowrap}.trend svg{width:19px;height:15px}.trend-1{color:#306c46}.trend--1{color:#9c452a}.production{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--paper);border:1px solid #d2d9cd;border-radius:12px;overflow:hidden}.plan-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;gap:10px}.plan-heading p{color:var(--muted);font-size:.85rem;margin-top:4px}.plan-heading>button{font-size:.85rem;white-space:nowrap}.line-controls{display:flex;align-items:center;justify-content:space-between;padding:0 18px 10px;gap:8px}.lines{display:flex;gap:4px}.lines button{font-size:.85rem;padding:7px 10px}.lines button span{font-size:.75rem;font-weight:400;display:inline-block;margin-left:9px}.lines .active{background:var(--ink);color:var(--paper);border-color:var(--ink)}#buy{background:#f5edcf;border-color:#dec88c;font-size:.83rem;white-space:nowrap}.calendar-wrap{display:flex;flex:1;min-height:0;padding:0 18px 0 12px;gap:8px}.time-ruler{display:grid;grid-template-rows:repeat(8,1fr);padding-top:39px;padding-bottom:2px;width:28px;font-size:.7rem;color:var(--muted);flex-shrink:0}.calendar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;flex:1;min-width:0}.day{display:flex;flex-direction:column;min-height:0;min-width:0}.day-heading{height:39px;display:flex;align-items:baseline;gap:6px;justify-content:space-between;flex-shrink:0;padding:5px 4px}.day-heading h3{font-size:.9rem}.day-heading>span{font-size:.72rem;color:var(--muted);white-space:nowrap}.day-queue{position:relative;flex:1;display:flex;flex-direction:column;border:1px dashed #cbd2c3;border-radius:6px;min-height:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(12.5% - 1px),#e5e9df calc(12.5% - 1px),#e5e9df 12.5%);cursor:pointer}.job{height:calc(var(--hours) * 12.5%);flex-shrink:0;position:relative;background:color-mix(in srgb,var(--product) 14%,var(--paper));color:var(--product);border:1px solid color-mix(in srgb,var(--product) 48%,white);border-radius:5px;min-height:0;overflow:hidden}.job-select{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;width:100%;height:100%;border:0;border-radius:0;padding:3px 20px 3px 4px;background:transparent;font-size:.8rem;color:var(--ink);cursor:grab;line-height:1}.job-select .furniture-icon{height:26px;width:24px}.job-select>span{font-size:.72rem}.job[style*="--hours:1"] .furniture-icon{display:none}.job[style*="--hours:1"] .job-select{flex-wrap:nowrap;font-size:.73rem}.remove{position:absolute;right:0;top:0;padding:0 4px;z-index:3;background:transparent;border:0;font-size:1.1rem;line-height:22px;color:var(--ink)}.job.selected{outline:2px solid var(--ink);outline-offset:-2px}.job-fill{position:absolute;bottom:0;left:0;right:0;background:color-mix(in srgb,var(--product) 24%,transparent);pointer-events:none}.job.done{opacity:.7}.job.working{outline:2px solid var(--product);outline-offset:-2px}.free-time{height:calc(var(--hours) * 12.5%);display:flex;justify-content:center;align-items:center;font-size:.8rem;color:var(--muted);min-height:0}.day.today .day-heading{color:var(--green);background:#e7eedf;border-radius:5px}.day-cursor{position:absolute;left:0;right:0;border-top:2px solid var(--green);pointer-events:none;z-index:4}.drop-target{outline:3px solid var(--green);outline-offset:-2px;background-color:#e4edda}.factory-floor{height:103px;flex-shrink:0;display:flex;align-items:center;gap:18px;padding:12px 20px}.machine{display:flex;align-items:center;gap:10px}.machine>svg{width:67px;height:54px;color:var(--green)}.machine>div{display:flex;flex-direction:column;gap:4px}.machine strong{font-size:.9rem;white-space:nowrap}.machine span{font-size:.78rem;color:var(--muted)}.conveyor{flex:1;min-width:30px;align-self:center}#belt-items{height:45px;display:flex;align-items:end;justify-content:space-around;overflow:hidden}#belt-items>span:not(.belt-label){display:flex;align-items:center;gap:2px}.belt-label{font-size:.8rem;text-align:center;color:var(--muted);align-self:center}.rollers{height:12px;border-radius:6px;background:repeating-linear-gradient(90deg,#788371 0 4px,#c9d0c0 4px 15px);border:3px solid #56664e}.running .rollers{animation:belt 1s linear infinite}.dispatch{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:104px}.dispatch>svg{width:85px;height:51px;color:var(--green)}.dispatch>span{font-size:.78rem}.shipping #truck{animation:delivery 2s ease-in-out infinite}.plan-bottom{display:flex;align-items:center;gap:30px;flex-shrink:0;background:#e9ede1;padding:12px 18px}.plan-bottom>div:not(.start-controls){display:flex;flex-direction:column;gap:3px}.plan-bottom span{font-size:.8rem;color:var(--muted)}.plan-bottom strong{font-size:1.25rem;font-variant-numeric:tabular-nums}.start-controls{display:flex;gap:8px;margin-left:auto}.primary{background:var(--accent);border-color:#c79a36;color:#26382b;padding:12px 20px}.primary:hover:not(:disabled){background:#f0c66c}footer{flex-shrink:0;min-height:45px;display:flex;align-items:center;justify-content:space-between;padding:8px 26px;gap:16px;font-size:.83rem}#notice{max-width:75ch}.session-note{font-size:.75rem;color:var(--muted);text-align:right}.day-tabs{display:none}dialog{width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 32px);border:0;border-radius:14px;background:var(--paper);color:var(--ink);padding:26px;box-shadow:0 18px 60px #14291d40;overflow:auto;scrollbar-color:#7d8b70 var(--paper)}dialog::backdrop{background:#172a25b0}dialog h2{font-size:1.8rem;letter-spacing:-.035em;margin-bottom:12px}dialog p{line-height:1.5;font-size:.95rem;margin-bottom:14px}.help-steps{padding-left:20px;display:grid;gap:12px;font-size:.95rem;line-height:1.45}.help-note{color:var(--muted);font-size:.85rem!important}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.report-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:#e9ede1;padding:16px;margin:18px 0}.report-numbers>div{display:flex;flex-direction:column;gap:6px}.report-numbers span{font-size:.85rem}.report-numbers strong{font-size:1.6rem;font-variant-numeric:tabular-nums}table{width:100%;border-collapse:collapse;font-size:.9rem;margin-bottom:20px}th,td{text-align:right;border-bottom:1px solid var(--line);padding:9px 5px;font-variant-numeric:tabular-nums}th:first-child{text-align:left}.market-lesson{border-top:1px solid var(--line);padding-top:16px}.market-lesson>p{margin-top:6px;font-size:.9rem}.next-prices{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:14px 0 20px}.next-prices>span{display:flex;flex-direction:column;gap:5px;font-size:.8rem}.next-prices b{font-size:1rem}.next-prices small{color:var(--muted)}@keyframes belt{to{background-position:30px 0}}@keyframes delivery{0%{transform:translateX(-12px)}80%{transform:translateX(12px)}100%{transform:translateX(-12px)}}
@media(min-width:1450px){:root{font-size:16px}.workspace{grid-template-columns:370px minmax(0,1fr)}.product{padding:10px 14px}.factory-floor{height:120px}.topbar{height:76px}}
@media(max-height:740px) and (min-width:761px){main{padding-top:12px;gap:12px}.topbar{height:55px}.ledger{padding-bottom:10px}.ledger strong{font-size:1.6rem}.plan-heading{padding:10px 14px 8px}.line-controls{padding-bottom:5px}.factory-floor{height:78px;padding-block:6px}.plan-bottom{padding-block:8px}.market{gap:6px}.product{padding:4px 8px}.market-note{font-size:.75rem}footer{min-height:37px}.product-info{gap:1px}.catalog{gap:4px}.job-select .furniture-icon{display:none}}
@media(max-width:1100px) and (min-width:761px){main{padding-inline:16px}.workspace{grid-template-columns:290px minmax(0,1fr);gap:14px}.product{gap:6px}.product>.furniture-icon{width:28px}.demo{display:none}.day-heading{flex-direction:column;gap:0;justify-content:center}.factory-floor{gap:8px;padding-inline:12px}.machine>svg{width:44px}.machine strong{font-size:.8rem}.belt-label{display:none}.lines button span{display:none}.plan-bottom{gap:16px}.primary{padding-inline:12px}.job-select .furniture-icon{display:none}.job-select{flex-direction:column;flex-wrap:nowrap}.job[style*="--hours:1"] .job-select{flex-direction:row}.plan-heading p{font-size:.78rem}}
@media(max-width:760px){:root{font-size:14px}.topbar{height:50px;padding:0 12px;gap:12px}.topbar>a{padding-right:12px}.topbar h1{font-size:1.4rem}.demo{display:none}.top-actions{gap:5px}.top-actions button{padding:6px;font-size:.75rem}.top-actions #restart{font-size:0}.top-actions #restart:after{content:'Reiniciar';font-size:.75rem}main{padding:10px 12px 0;gap:9px}.ledger{grid-template-columns:1fr 1fr 1fr;gap:6px;padding-bottom:8px}.ledger .week{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.ledger .week strong{font-size:1.15rem}.ledger strong{font-size:1.2rem}.ledger span{font-size:.72rem}.goal{display:flex!important}.goal>span:last-child{display:none}.workspace{display:flex;flex-direction:column;gap:8px}.market{flex-shrink:0;gap:4px}.section-heading h2{font-size:1rem}.section-heading>span{font-size:.75rem}.market-intro{display:none}.catalog{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,63px);gap:4px;flex:none}.product{padding:5px;gap:3px;border-radius:5px;position:relative;align-items:flex-start}.product>.furniture-icon{width:23px;height:26px}.product-info{gap:2px}.product-info>strong{font-size:.82rem}.product-info>span{font-size:.65rem}.product-info .price-range{display:none}.quote{position:absolute;bottom:5px;left:5px;right:5px;flex-direction:row;align-items:center;gap:4px;justify-content:space-between}.quote>strong{font-size:.9rem}.trend{font-size:.6rem;gap:0}.trend svg{width:14px}.market-note{font-size:.66rem;line-height:1.2;margin:0}.production{flex:1;border-radius:8px}.plan-heading{padding:8px 10px 5px}.plan-heading h2{font-size:1rem}.plan-heading p{display:none}.plan-heading>button{padding:4px 6px;font-size:.7rem}.line-controls{padding:0 10px 5px;gap:4px}.lines{gap:3px}.lines button{font-size:.7rem;padding:5px}.lines button span{display:none}#buy{font-size:.68rem;padding:5px}.day-tabs{display:flex;padding:0 10px 5px;gap:5px}.day-tabs button{flex:1;padding:4px;font-size:.8rem}.day-tabs .active{background:var(--ink);color:var(--paper);border-color:var(--ink)}.calendar-wrap{padding:0 10px;gap:5px}.calendar{display:flex}.day{display:none;flex:1}.day.visible-day{display:flex}.day-heading{display:none}.time-ruler{padding-top:0;font-size:.65rem;width:24px}.day-queue{border-radius:4px}.free-time{font-size:.75rem}.job-select{font-size:.8rem;flex-wrap:nowrap;padding:1px 22px 1px 5px}.job-select .furniture-icon{height:20px;width:22px}.job[style*="--hours:1"] .furniture-icon{display:block}.job[style*="--hours:1"] .job-select{font-size:.73rem}.job-select>span{font-size:.7rem}.remove{line-height:18px}.factory-floor{height:51px;padding:5px 10px;gap:8px}.machine{gap:5px}.machine>svg{width:32px;height:32px}.machine strong{font-size:.72rem}.machine span{font-size:.62rem}.conveyor #belt-items{height:24px}.conveyor .furniture-icon{height:23px;width:25px}.belt-label{display:none}.rollers{height:8px;border-width:2px}.dispatch{min-width:62px;gap:0}.dispatch>svg{width:50px;height:29px}.dispatch>span{font-size:.62rem}.plan-bottom{padding:6px 10px;gap:14px}.plan-bottom span{font-size:.65rem}.plan-bottom strong{font-size:1rem}.primary{font-size:.8rem;padding:9px}.start-controls{gap:4px}.start-controls>button:not(.primary){font-size:.75rem;padding:5px}footer{min-height:38px;padding:5px 12px;font-size:.74rem;line-height:1.25}.session-note{display:none}dialog{padding:18px}dialog h2{font-size:1.5rem}.next-prices{grid-template-columns:repeat(3,1fr)}.report-numbers{gap:5px;padding:12px}.report-numbers strong{font-size:1.3rem}.help-steps{gap:9px}}
@media(max-height:680px) and (max-width:760px){.ledger .week{display:none}.topbar{height:44px}.catalog{grid-template-rows:repeat(2,56px)}.product>.furniture-icon{display:none}.market-note{display:none}.factory-floor{height:42px}.plan-heading{padding-block:5px}.day-tabs{padding-bottom:3px}.day-tabs button{padding:2px}.job-select .furniture-icon{display:none!important}footer{min-height:30px}.product-info>span{font-size:.64rem}}
.help-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}.help-navigation>span{font-size:.85rem;color:var(--muted)}.report-tabs{display:flex;gap:8px;margin-bottom:12px}.report-tabs button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}dialog{overflow:hidden}.market-lesson{border-top:0}
@media(max-height:740px){dialog{padding:18px}dialog h2{font-size:1.4rem;margin-bottom:8px}dialog p{font-size:.85rem;margin-bottom:10px}.report-numbers{padding:10px;margin:10px 0}.report-numbers strong{font-size:1.3rem}.report-numbers span{font-size:.8rem}th,td{padding:5px}table{margin-bottom:10px;font-size:.8rem}.dialog-actions{margin-top:12px}.report-tabs{margin-bottom:8px}.report-tabs button{padding:6px 10px;font-size:.85rem}.help-steps{font-size:.85rem;gap:8px}.help-navigation{margin:12px 0}.help-note{font-size:.78rem!important}}
@media(max-width:380px){.topbar{gap:8px}.topbar h1{font-size:1.2rem}.topbar>a{padding-right:8px}.top-actions button{font-size:.7rem}.lines button{font-size:.65rem}#buy{font-size:.62rem;padding:4px}.plan-bottom{gap:8px}.plan-bottom strong{font-size:.9rem}.plan-bottom .primary{font-size:.73rem;padding:8px}.product-info>span{font-size:.6rem}}
.product:disabled,.job-select:disabled{opacity:1;cursor:default}.day-tabs button>span{display:none}
@media(max-height:560px){.topbar{height:38px}.topbar h1{font-size:1.2rem}main{padding-top:6px;gap:6px}.ledger{padding-bottom:6px}.ledger .week{display:none}.ledger{grid-template-columns:repeat(3,1fr)}.ledger strong{font-size:1.2rem}.ledger span{font-size:.72rem}.goal{display:flex!important}.goal>span:last-child{display:none}.market-note,.market-intro{display:none}.plan-heading{padding:6px 10px}.plan-heading p{display:none}.plan-heading h2{font-size:1rem}.plan-heading>button{padding:3px 6px;font-size:.75rem}.line-controls{padding:0 10px 4px}.lines button,#buy{padding:4px 6px;font-size:.72rem}.day-tabs{display:flex;gap:4px;padding:0 10px 5px}.day-tabs button{flex:1;padding:3px;font-size:.75rem}.day-tabs button>span{display:inline;font-size:.65rem;font-weight:400}.day-tabs .active{background:var(--ink);color:var(--paper)}.calendar-wrap{padding:0 10px}.time-ruler,.day-heading{display:none}.calendar{display:flex}.day{display:none;flex:1}.day.visible-day{display:flex}.day-queue{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(28px,1fr));gap:3px;padding:3px;background:none;align-content:start}.job{height:auto!important;min-height:28px}.job-select,.job[style*="--hours:1"] .job-select{flex-direction:column;gap:2px;font-size:.75rem;padding:2px 16px 2px 2px;line-height:1}.job-select .furniture-icon{display:none!important}.job-select>span{font-size:.65rem}.free-time,.day-cursor{display:none!important}.day-queue:not(:has(.job)):after{content:'Elige un mueble y agrégalo a este día.';grid-column:1/-1;align-self:center;color:var(--muted);font-size:.8rem;text-align:center}.factory-floor{height:26px;padding:2px 10px}.machine>svg{width:25px;height:22px}.machine>div{flex-direction:row;align-items:center;gap:8px}.machine strong{font-size:.7rem}.machine span{font-size:.65rem}.conveyor{display:none}.dispatch{margin-left:auto;flex-direction:row;gap:5px;min-width:0}.dispatch>svg{width:33px;height:22px}.dispatch>span{font-size:.65rem}.plan-bottom{padding:5px 10px;gap:12px}.plan-bottom strong{font-size:1rem}.plan-bottom span{font-size:.65rem}.start-controls>button{padding:6px;font-size:.75rem}footer{min-height:24px;padding-block:3px;font-size:.7rem}.session-note{display:none}dialog{padding:12px;max-height:calc(100dvh - 16px)}dialog h2{font-size:1.2rem;margin-bottom:5px}dialog p{font-size:.78rem;line-height:1.25;margin-bottom:6px}.report-result{display:none}.report-tabs{margin-bottom:5px}.report-tabs button{padding:4px 8px;font-size:.75rem}.report-numbers{margin:6px 0;padding:7px}.report-numbers strong{font-size:1.1rem}.report-numbers span{font-size:.7rem}th,td{padding:3px;font-size:.75rem}table{margin-bottom:6px}.dialog-actions{margin-top:6px}.dialog-actions button{padding:6px 8px;font-size:.75rem}.market-lesson{padding-top:4px}.market-lesson>strong{font-size:.85rem}.next-prices{margin:8px 0;gap:8px;grid-template-columns:repeat(3,1fr)}.next-prices>span{gap:2px;font-size:.7rem}.next-prices b{font-size:.85rem}.help-steps{font-size:.8rem;line-height:1.3;gap:6px;margin-block:8px}.help-navigation{margin:6px 0}.help-navigation button{padding:4px 8px}.help-note{font-size:.7rem!important}}
@media(max-height:560px) and (min-width:761px){main{padding-inline:12px}.workspace{grid-template-columns:260px minmax(0,1fr);gap:12px}.catalog{gap:3px}.product{padding:3px 6px}.product>.furniture-icon{width:24px;height:27px}.product-info>strong{font-size:.85rem}.product-info>span{font-size:.7rem}.product-info .price-range{font-size:.63rem}.quote>strong{font-size:1rem}.trend{font-size:.65rem}.section-heading h2{font-size:1rem}.factory-floor .machine span{display:none}}
@media(max-height:560px) and (max-width:760px){main{padding:4px 8px 0;gap:4px}.workspace{gap:5px}.market{gap:3px}.section-heading h2{font-size:.85rem;line-height:1.1}.section-heading>span{font-size:.65rem}.catalog{grid-template-rows:repeat(2,46px);gap:3px}.product{padding:4px}.product>.furniture-icon{display:none}.product-info{gap:1px;line-height:1.1}.product-info>strong{font-size:.7rem}.product-info>span{font-size:.6rem}.quote{bottom:3px;left:4px;right:4px}.quote>strong{font-size:.8rem}.trend{font-size:.6rem}.ledger{gap:3px;padding-bottom:4px}.ledger>div{gap:2px}.ledger strong{font-size:1.05rem}.ledger span{font-size:.65rem}.plan-heading{padding-block:4px}.plan-heading h2{font-size:.9rem}.day-tabs button{font-size:.7rem}.day-tabs button>span{font-size:.6rem}.line-controls{padding-bottom:3px}.plan-bottom{gap:6px}.plan-bottom strong{font-size:.85rem}.plan-bottom span{font-size:.6rem}.start-controls{gap:3px}.start-controls>button{padding:5px;font-size:.7rem}}
.amount-profit{color:#23733d}.amount-loss{color:#b03730}.amount-cost{color:#945319}.amount-sale,.quote>strong{color:#256975}.amount-neutral{color:var(--ink)}
.audio-toggle{position:relative;width:34px;height:34px;display:grid;place-items:center;padding:6px!important;flex-shrink:0}.audio-toggle svg,.compact-icon{width:20px;height:20px}.compact-icon{display:none}.audio-toggle[aria-pressed=false]{color:#c3cbbf;border-style:dashed}.audio-toggle[aria-pressed=false]::after{content:'';position:absolute;width:23px;height:2px;background:currentColor;transform:rotate(-45deg);pointer-events:none}.top-actions{align-items:center}
@media(max-width:760px){.topbar{gap:10px}.topbar h1{font-size:1.25rem}.top-actions{gap:4px}.top-actions>button{width:30px;height:30px;display:grid;place-items:center;padding:5px;font-size:0}.top-actions>button>span{display:none}.top-actions .compact-icon{display:block}.top-actions #restart::after{content:none}.audio-toggle svg,.compact-icon{width:19px;height:19px}}
@media(max-width:380px){.topbar{padding-inline:9px;gap:7px}.topbar h1{font-size:1.1rem}.topbar>a{padding-right:7px}.top-actions{gap:3px}.top-actions>button{width:27px;height:28px}.audio-toggle svg,.compact-icon{width:17px;height:17px}}
.plan-bottom{gap:20px}.plan-bottom>div:not(.start-controls){min-width:0}.plan-bottom>div>span{white-space:nowrap}
@media(max-width:1100px){.plan-bottom{gap:12px}.plan-bottom .primary{padding-inline:10px}}
@media(max-width:1000px){.plan-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 10px}.plan-bottom>div:not(.start-controls){gap:2px}.plan-bottom .start-controls{grid-column:1/-1;justify-self:stretch;justify-content:flex-end;margin-left:0}.plan-bottom .start-controls .primary{flex:1}.plan-bottom>div>span{font-size:.62rem}.plan-bottom strong{font-size:.95rem}}
@media(max-height:560px) and (min-width:761px){.plan-bottom{gap:10px}.plan-bottom>div>span{font-size:.6rem}.plan-bottom strong{font-size:.9rem}.plan-bottom .primary{padding-inline:7px}}
.resource-panel{margin:0 18px 8px;padding:8px 10px;background:#edf0e6;border-radius:6px;flex-shrink:0}.resource-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.resource-heading>strong{font-size:.8rem}.resource-heading>strong>span{font-size:.72rem;color:var(--muted);font-weight:400;margin-left:6px}#warehouse{padding:3px 8px;font-size:.75rem}.resources{display:flex;gap:20px;margin-top:5px}.resources>span{display:flex;align-items:center;gap:7px;font-size:.8rem}.resources b{font-variant-numeric:tabular-nums}#resource-detail{font-size:.75rem;color:var(--muted);margin-top:5px;line-height:1.25}#resource-warning{font-size:.78rem;color:#a02e29;font-weight:600;line-height:1.25;margin-top:5px}.report-stock{font-size:.85rem;margin-bottom:9px}.report-stock b{color:#945319}tbody th small{display:block;font-size:.72rem;color:var(--muted);font-weight:400;margin-top:2px}.factory-floor{height:86px}
@media(max-width:1000px){.resource-panel{margin-inline:10px;padding:5px 7px}.resources{justify-content:space-between;gap:6px}.resource-heading>strong>span{font-size:.65rem}.resources>span{font-size:.72rem;gap:4px}#resource-detail,#resource-warning{font-size:.68rem}.factory-floor{height:60px}}
@media(max-width:760px){.resource-panel{margin-bottom:5px}.resource-heading>strong{font-size:.72rem}.resource-heading>strong>span{font-size:.6rem}#warehouse{font-size:.65rem;padding:2px 5px}.resources{margin-top:3px}.resources>span{font-size:.68rem}#resource-detail,#resource-warning{margin-top:3px;font-size:.65rem}.factory-floor{height:42px}.report-stock{font-size:.75rem}tbody th small{font-size:.65rem}}
@media(max-height:560px){.resource-panel{position:relative;margin-bottom:4px;padding:4px 6px}.resource-heading{position:absolute;right:5px;top:3px}.resource-heading>strong{display:none}.resources{padding-right:65px;margin:0;gap:7px;justify-content:space-between}.resources>span{font-size:.62rem;gap:3px}#warehouse{font-size:.6rem;padding:2px 4px}#resource-detail,#resource-warning{font-size:.6rem;line-height:1.1;margin-top:3px}.factory-floor{height:22px}.report-stock{font-size:.7rem;margin-bottom:5px}.market-lesson>p{font-size:.72rem}.next-prices{margin-block:5px}}
.material-wood{--material:#925a24;--material-bg:#f1e4d1;color:var(--material)}.material-fabric{--material:#76528f;--material-bg:#eee3f3;color:var(--material)}.material-hardware{--material:#356c7b;--material-bg:#dfeef1;color:var(--material)}.material-icon{width:22px;height:22px;stroke-width:1.8;color:var(--material);flex-shrink:0}.product{gap:8px;padding:6px 8px}.product-info{gap:3px}.product-info>strong{line-height:1.1}.product-info>span{line-height:1.15}.product-info>.recipe{display:flex;gap:4px;align-items:center;margin-top:2px}.ingredient{display:inline-flex;align-items:center;gap:3px;padding:2px 5px;background:var(--material-bg);border-radius:4px;line-height:1;font-size:.78rem}.ingredient .material-icon{width:16px;height:16px}.ingredient b{font-variant-numeric:tabular-nums}.quote{gap:3px}.quote .price-range{font-size:.64rem;line-height:1.15;white-space:nowrap;color:var(--muted);font-weight:400}.resource-panel{padding:7px 9px}.resource-heading{position:static;gap:8px}.resource-heading>strong{display:block}.resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;margin-top:6px}.material-stock{display:grid;grid-template-columns:26px minmax(0,1fr);gap:4px 7px;align-items:center;background:var(--material-bg);padding:7px 8px;border-radius:5px}.material-stock>.material-icon{width:25px;height:25px}.material-name{display:flex;align-items:baseline;justify-content:space-between;gap:5px;min-width:0}.material-name strong{font-size:.86rem;color:var(--ink)}.material-name>span{font-size:.72rem;color:var(--muted);white-space:nowrap}.material-usage{grid-column:1/-1;display:flex;justify-content:space-between;gap:5px;color:var(--ink);font-size:.75rem}.material-usage b{font-size:.95rem;font-variant-numeric:tabular-nums;margin-left:3px}.material-stock.shortage{outline:2px solid #b03730;outline-offset:-2px}.line-controls #clear{padding:6px 9px;font-size:.8rem;white-space:nowrap;margin-left:auto}.line-controls #buy{margin-left:0}.warehouse-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.warehouse-item{display:flex;align-items:center;gap:8px;padding:12px 10px;background:color-mix(in srgb,var(--product) 12%,var(--paper));border-radius:6px}.warehouse-item>.furniture-icon{width:34px;height:46px}.warehouse-item>div{display:flex;flex-direction:column;gap:5px;min-width:0}.warehouse-item strong{font-size:.95rem}.warehouse-item span{font-size:.72rem;color:var(--muted)}.warehouse-item>b{font-size:1.8rem;margin-left:auto;color:var(--product);font-variant-numeric:tabular-nums}.warehouse-item.empty{background:#eef0e8}.warehouse-item.empty>b{color:var(--muted)}
@media(max-width:1100px){.ingredient{padding:2px 4px;font-size:.73rem}.product-info>.recipe{gap:3px}.product>.furniture-icon{width:26px}.quote .price-range{font-size:.59rem}.material-name{flex-direction:column;gap:1px}.material-stock{gap:3px 5px;padding:5px 6px}.material-name strong{font-size:.78rem}.material-name>span{font-size:.65rem}.material-usage{font-size:.68rem}.material-usage b{font-size:.85rem}.resources{gap:5px}}
@media(max-width:760px){.catalog{grid-template-rows:repeat(2,72px)}.product{padding:4px 5px 21px;gap:0}.product>.furniture-icon{display:none}.product-info{gap:2px}.product-info>strong{font-size:.82rem}.product-info>span{font-size:.65rem}.product-info>.recipe{margin-top:1px;gap:3px}.ingredient{padding:1px 3px;gap:2px;font-size:.68rem}.ingredient .material-icon{width:14px;height:14px}.quote{left:5px;right:5px;bottom:4px}.quote>.price-range{display:none}.resource-panel{padding:5px 6px}.resource-heading>strong{font-size:.75rem}.resource-heading>strong>span{font-size:.6rem;margin-left:4px}.resources{margin-top:4px;gap:4px}.material-stock{grid-template-columns:20px minmax(0,1fr);padding:4px;gap:3px}.material-stock>.material-icon{width:20px;height:20px}.material-name strong{font-size:.72rem}.material-name>span{font-size:.6rem}.material-usage{font-size:.61rem;gap:3px}.material-usage b{font-size:.75rem;margin-left:1px}.line-controls #clear{font-size:.65rem;padding:4px}.warehouse-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.warehouse-item{padding:8px;gap:6px}.warehouse-item>.furniture-icon{width:28px;height:38px}.warehouse-item strong{font-size:.85rem}.warehouse-item span{font-size:.65rem}.warehouse-item>b{font-size:1.5rem}}
@media(max-height:560px){.resource-panel{padding:4px 6px}.resource-heading{position:static}.resource-heading>strong{display:block;font-size:.68rem}.resource-heading>strong>span{font-size:.58rem}.resources{padding:0;margin-top:3px}.material-stock{grid-template-columns:18px minmax(0,1fr);padding:3px 4px;gap:2px 4px}.material-stock>.material-icon{width:18px;height:18px}.material-name{flex-direction:row;align-items:center}.material-name strong{font-size:.65rem}.material-name>span{font-size:.58rem}.material-usage{font-size:.6rem}.material-usage b{font-size:.72rem}.warehouse-grid{gap:6px;margin:10px 0}.warehouse-item{padding:6px 8px}.warehouse-item>.furniture-icon{height:32px}.warehouse-item strong{font-size:.8rem}.warehouse-item>b{font-size:1.3rem}}
@media(max-height:560px) and (max-width:760px){.catalog{grid-template-rows:repeat(2,66px)}.product{padding:3px 4px 18px}.product-info>strong{font-size:.72rem}.product-info>span{font-size:.6rem}.product-info>.recipe{gap:2px;margin-top:1px}.ingredient{padding:1px 2px;font-size:.64rem;gap:1px}.ingredient .material-icon{width:13px;height:13px}.quote{bottom:3px;left:4px;right:4px}.plan-heading,.factory-floor{display:none}.line-controls{padding-top:5px}.resources{gap:3px}.material-name{flex-direction:column;align-items:flex-start;gap:0}.material-stock{grid-template-columns:16px minmax(0,1fr);padding:2px 3px}.material-stock>.material-icon{width:16px;height:16px}.material-name strong{font-size:.6rem}.material-name>span{font-size:.56rem}.material-usage{font-size:.56rem;gap:2px}.material-usage b{font-size:.68rem}.plan-bottom{padding-block:4px;gap:3px 8px}.plan-bottom .start-controls>button{padding:4px;font-size:.68rem}}
@media(max-height:560px) and (max-width:760px){.material-name{flex-direction:row;align-items:center;gap:3px}.material-name>span{font-size:.54rem}.plan-bottom{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:center;gap:6px}.plan-bottom .start-controls{grid-column:auto;margin:0;justify-self:end}.plan-bottom .start-controls .primary{flex:none}.plan-bottom>div>span{white-space:normal;line-height:1.1}.start-controls #pause:not([hidden])~#start{display:none}.plan-bottom .start-controls>button{padding:6px 5px}.day-queue{gap:2px;padding:2px}}
.results-dialog{width:min(780px,calc(100% - 24px));max-height:calc(100dvh - 16px);padding:20px}.results-dialog h2{font-size:1.65rem;margin-bottom:8px}.results-dialog .report-result{margin-bottom:10px;font-size:.9rem}.results-dialog .report-tabs{margin-bottom:10px}.results-dialog .report-numbers{margin:10px 0;padding:12px}.results-dialog .report-numbers strong{font-size:1.5rem}.results-dialog .report-stock{margin-bottom:8px}.results-dialog table{margin-bottom:10px;font-size:.9rem}.results-dialog th,.results-dialog td{padding:5px 7px;white-space:nowrap}.results-dialog th:first-child{width:38%}.report-product{display:flex;align-items:center;gap:7px;line-height:1.15}.report-product>.furniture-icon{width:23px;height:25px}.results-dialog .report-product small{display:inline;margin:0;font-size:.72rem;font-weight:400;color:var(--muted)}.results-dialog .dialog-actions{margin-top:10px}
@media(max-height:650px),(max-width:760px){.results-dialog{padding:14px}.results-dialog h2{font-size:1.3rem;margin-bottom:6px}.results-dialog .report-result{font-size:.82rem;line-height:1.35;margin-bottom:8px}.results-dialog .report-tabs{margin-bottom:8px}.results-dialog .report-tabs button{font-size:.8rem;padding:6px 10px}.results-dialog .report-numbers{padding:8px;margin:8px 0;gap:6px}.results-dialog .report-numbers>div{gap:4px}.results-dialog .report-numbers span{font-size:.7rem}.results-dialog .report-numbers strong{font-size:1.25rem}.results-dialog .report-stock{font-size:.8rem;margin-bottom:8px}.results-dialog table{font-size:.85rem;margin-bottom:8px}.results-dialog th,.results-dialog td{padding:3px 4px}.results-dialog thead th{font-size:.75rem}.report-product{gap:4px}.report-product>.furniture-icon{width:20px;height:23px}.results-dialog .report-product small{font-size:.63rem}.results-dialog .dialog-actions{gap:8px;margin-top:8px}.results-dialog .dialog-actions button{font-size:.8rem;padding:8px 10px}}
@media(max-height:560px){.results-dialog{padding:10px}.results-dialog h2{font-size:1.15rem;margin-bottom:6px}.results-dialog .report-result{display:none}.results-dialog .report-tabs{margin-bottom:6px}.results-dialog .report-tabs button{font-size:.78rem;padding:4px 8px}.results-dialog .report-numbers{padding:6px;margin:6px 0}.results-dialog .report-numbers>div{gap:3px}.results-dialog .report-numbers span{font-size:.68rem}.results-dialog .report-numbers strong{font-size:1.15rem}.results-dialog .report-stock{font-size:.75rem;line-height:1.2;margin-bottom:6px}.results-dialog table{font-size:.8rem;margin-bottom:6px}.results-dialog th,.results-dialog td{padding:2px 4px}.results-dialog .report-product>.furniture-icon{height:20px;width:19px}.results-dialog .dialog-actions button{padding:6px 8px;font-size:.78rem}}
@media(max-width:380px){.results-dialog th,.results-dialog td{padding-inline:2px}.report-product{gap:3px}.results-dialog .report-product>.furniture-icon{width:16px}.results-dialog .report-product small{font-size:.6rem}.results-dialog .report-numbers span{font-size:.64rem}.results-dialog .report-numbers strong{font-size:1.1rem}}
.results-dialog .market-preview{padding-top:2px}.market-preview>strong{font-size:1rem}.results-dialog .market-preview .market-summary{margin:6px 0 10px;font-size:.85rem;line-height:1.3;color:var(--muted)}.results-dialog .market-preview .next-prices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.market-tile{position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;background:color-mix(in srgb,var(--product) 9%,var(--paper));border-radius:6px}.market-product-header{display:flex;align-items:center;gap:7px}.market-product-header>.furniture-icon{width:27px;height:31px}.market-product-header>strong{font-size:.95rem;line-height:1.15}.market-indicator{display:inline-flex;align-items:center;gap:3px;margin-left:auto;white-space:nowrap;font-size:.72rem;font-weight:650}.market-indicator>svg{width:17px;height:15px}.market-quote{display:flex;align-items:center;justify-content:space-between;gap:5px}.market-quote>div{display:flex;flex-direction:column;gap:3px}.market-quote>div>span{font-size:.72rem;color:var(--muted)}.market-quote strong{font-size:1.5rem;line-height:1.1;font-variant-numeric:tabular-nums}.market-quote small{font-size:.75rem;color:var(--muted);white-space:nowrap}.market-difference{font-size:.85rem;white-space:nowrap;font-variant-numeric:tabular-nums}.market-stock{display:flex;align-items:center;justify-content:space-between;gap:4px;padding-top:6px;border-top:1px solid color-mix(in srgb,var(--product) 20%,var(--paper));font-size:.75rem}.market-stock>span{color:var(--muted)}.market-stock>strong{font-size:.8rem;font-variant-numeric:tabular-nums}.results-dialog .market-preview .market-footnote{font-size:.78rem;line-height:1.3;color:var(--muted);margin:0}
@media(max-width:760px){.results-dialog .market-preview .next-prices{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}.market-tile{padding:8px;gap:6px}.market-product-header{gap:4px}.market-product-header>.furniture-icon{width:23px;height:25px}.market-product-header>strong{font-size:.85rem}.market-indicator{font-size:.65rem;gap:2px}.market-indicator>svg{width:14px;height:13px}.market-quote strong{font-size:1.3rem}.market-difference{font-size:.78rem}.market-stock{font-size:.68rem;padding-top:4px}.market-stock>strong{font-size:.73rem}.market-preview>strong{font-size:.9rem}}
@media(max-height:700px){.market-tile{padding:7px;gap:5px}.market-product-header>.furniture-icon{width:22px;height:24px}.market-product-header>strong{font-size:.83rem}.market-indicator{font-size:.65rem}.market-quote strong{font-size:1.25rem}.market-quote>div{gap:2px}.market-quote>div>span{font-size:.65rem}.market-quote small{font-size:.68rem}.market-difference{font-size:.73rem}.market-stock{font-size:.65rem;padding-top:4px}.market-stock>strong{font-size:.7rem}.results-dialog .market-preview .market-summary{font-size:.78rem;margin:5px 0 7px}.results-dialog .market-preview .market-footnote{font-size:.73rem}}
@media(max-height:560px){.market-preview>strong{display:none}.results-dialog .market-preview .market-summary{font-size:.72rem;line-height:1.2;margin:0 0 5px}.results-dialog .market-preview .next-prices{gap:5px;margin:5px 0}.market-tile{padding:5px;gap:3px}.market-product-header>.furniture-icon{width:18px;height:19px}.market-product-header>strong{font-size:.74rem}.market-indicator{font-size:.6rem;gap:1px}.market-indicator>svg{width:12px;height:12px}.market-quote{align-items:flex-start}.market-quote>div{gap:1px}.market-quote>div>span{display:none}.market-quote strong{font-size:1.15rem}.market-quote small{font-size:.62rem}.market-difference{font-size:.65rem;padding-top:2px}.market-stock{position:absolute;right:5px;bottom:5px;border:0;padding:0;line-height:1}.market-stock>span{display:none}.market-stock>strong{font-size:.62rem}.results-dialog .market-preview .market-footnote{font-size:.7rem;line-height:1.2}.market-preview+p{font-size:.72rem!important;margin-top:4px}}
@media(max-height:560px) and (min-width:600px){.results-dialog[data-report-tab=market] h2{float:left;margin-right:15px}.results-dialog[data-report-tab=market] .report-tabs{justify-content:flex-end}.market-preview{clear:both}}
@media(max-width:380px){.market-product-header>.furniture-icon{width:18px}.market-product-header>strong{font-size:.75rem}.market-indicator{font-size:.58rem}.market-product-header{gap:3px}.market-indicator>svg{width:12px}.market-quote small{font-size:.62rem}.market-difference{font-size:.68rem}}
@media(max-height:560px){.market-stock{gap:3px}.market-stock>span{display:inline;font-size:.58rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

