@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root{font-family:'Noto Sans JP','Yu Gothic',Meiryo,sans-serif;color:#303b33;background:#f6f7f2;font-synthesis:none;font-size:14px;--green:#355e49;--muted:#8a9287;--border:#e4e7dd;--paper:#fffefa;--sage:#eef2e7;--gold:#b58e4c}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button{transition:background .18s,box-shadow .18s,transform .18s}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #c5aa6a;outline-offset:4px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.sidebar{position:fixed;inset:0 auto 0 0;width:218px;background:#fcfcf8;border-right:1px solid var(--border);padding:36px 21px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;font-size:25px;font-weight:800;letter-spacing:2px}.brand-mark{display:grid;place-items:center;background:var(--green);color:#fffdf4;width:42px;height:46px;border-radius:11px 11px 11px 2px}.brand-mark .icon{width:27px;height:27px}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:600;margin-top:3px}.workspace-tag{font-size:10px;color:#9b9f94;margin-top:28px;display:flex;align-items:center;gap:7px;white-space:nowrap}.tiny-dot{display:inline-block;background:#6e8d64;width:6px;height:6px;border-radius:50%;flex-shrink:0}.nav-label{font-size:10px;color:#a1a696;letter-spacing:1.8px;margin:35px 12px 15px}.nav-item{display:flex;align-items:center;gap:12px;border:0;background:transparent;width:100%;padding:13px 12px;margin:5px 0;border-radius:7px;text-align:left;color:#77816f;font-size:14px;white-space:nowrap}.nav-item.active{background:#e9efdf;color:#35583f;font-weight:700}.nav-item .icon{width:19px;height:19px}.nav-badge{font-family:Arial,sans-serif;font-size:11px;margin-left:auto;background:#eeeede;color:#85886d;border-radius:4px;padding:2px 5px}.sidebar-dream{margin-top:42px;padding:19px 14px 0;background:#f1f2e7;border:1px solid #e7e9dc;border-radius:9px;overflow:hidden}.dream-icon{color:#7c8c63;margin-bottom:12px}.sidebar-dream b{font-size:12px}.sidebar-dream p{color:#8a907f;font-size:11px;line-height:1.9;margin-top:9px}.dream-lines{height:45px;display:flex;gap:6px;align-items:end;margin-top:5px}.dream-lines span{background:#dce2cc;width:26px;border-radius:3px 3px 0 0;height:20px}.dream-lines span:nth-child(2){height:28px}.dream-lines span:nth-child(3){height:24px}.dream-lines span:nth-child(4){height:39px}.dream-lines span:nth-child(5){height:48px}.sidebar-bottom{margin-top:auto;padding-top:30px}.sidebar-bottom button{display:flex;gap:10px;align-items:center;width:100%;border:0;background:transparent;color:#828a7b;font-size:12px;padding:11px 10px}.sidebar-bottom .icon{width:17px;height:17px}.save-status{border-top:1px solid var(--border);margin-top:15px;padding-top:19px;display:flex;align-items:center;gap:7px;font-size:10px;color:#969c8d}.workspace{margin-left:218px}.topbar{height:70px;border-bottom:1px solid var(--border);background:#fbfcf7;display:flex;justify-content:space-between;align-items:center;padding:0 36px}.breadcrumb{font-size:11px;color:#929b8b;display:flex;gap:15px;align-items:center}.breadcrumb b{font-weight:500;color:#56624f}.breadcrumb>span{color:#c8cec0}.time-controls{display:flex;align-items:center;gap:13px}.day{display:flex;align-items:center;gap:8px;font-size:11px;color:#788269;letter-spacing:1px}.day .icon{width:15px;height:15px}.day b{font-weight:600}.control-divider{width:1px;height:18px;background:var(--border);margin:0 2px}.icon-button{border:0;background:transparent;display:grid;place-items:center;width:28px;height:28px;color:#67765c;font-weight:700;font-size:16px;border-radius:4px}.icon-button.paused{background:#e4eace}.speed-btn{border:1px solid #dde3d3;border-radius:5px;background:#f4f6ee;min-width:36px;padding:4px 7px;font-size:11px;color:#697759;font-weight:600}main{padding:33px 36px 28px;max-width:1600px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-family:Arial,sans-serif;font-size:10px;font-weight:600;letter-spacing:2px;color:#8e9b80;margin-bottom:11px}h1{font-size:25px;font-weight:700;letter-spacing:1px;line-height:1.5}.page-heading p{font-size:12px;color:#92998b;margin-top:7px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:6px;padding:10px 14px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid transparent;min-height:35px}.btn .icon{width:15px;height:15px}.btn.secondary{color:#516545;background:#fcfdf8;border-color:#dce3d1}.btn.primary{background:var(--green);color:#fffefa;border-color:var(--green)}.btn.tiny{padding:6px 9px;font-size:11px;min-height:29px}.btn.full{width:100%}.btn.locked{color:#a5ac9c;background:#f2f3ed;border-color:#e6e9de}.btn.danger{color:#ad5c4c;background:#f9ede7;border-color:#ead9d1}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat-card{display:flex;align-items:flex-start;gap:13px;background:var(--paper);border:1px solid var(--border);border-radius:9px;padding:20px 16px 17px;box-shadow:0 2px 2px #44532c02}.stat-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.green{background:#edf1e6;color:#728962}.gold{background:#f6efdf;color:#b69558}.blue{background:#eaf0ef;color:#829594}.peach{background:#f7eee7;color:#b99379}.stat-label{display:block;font-size:11px;color:#8c9484;margin:1px 0 7px}.stat-card strong{display:block;font-family:Arial,'Noto Sans JP',sans-serif;font-size:26px;letter-spacing:.3px;font-weight:600;line-height:1.1}.stat-card em{font-family:'Noto Sans JP',sans-serif;font-size:11px;font-weight:400;color:#98a08f;font-style:normal;margin-left:4px}.stat-card small{display:block;font-size:10px;color:#9aab87;margin-top:11px}.factory-layout{display:grid;grid-template-columns:minmax(0,1fr) 283px;gap:23px;align-items:start}.factory-column,.right-column{display:flex;flex-direction:column;gap:21px}.panel{background:var(--paper);border:1px solid var(--border);border-radius:9px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 20px;border-bottom:1px solid #edefe5;min-height:62px}.panel-title{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;white-space:nowrap}.panel-title>.icon{color:#929b83;width:17px;height:17px}.badge{display:inline-block;font-size:10px;font-weight:400;background:#f0f2e9;color:#8c977d;padding:4px 7px;border-radius:4px;white-space:nowrap}.panel-title .badge{margin-left:5px}.floor-size{font-size:10px;color:#8d987e;white-space:nowrap}.floor-size>span{font-family:Arial,sans-serif;font-size:10px;letter-spacing:.5px;margin-left:9px;color:#a9b296;padding:4px 6px;border:1px solid #e1e6d7;border-radius:4px}.floor-toolbar{padding:14px 19px 0;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8d987d;background:#f8f9f3}.floor-toolbar>span{display:flex;align-items:center;gap:7px}.text-button{display:inline-flex;align-items:center;gap:6px;padding:2px;border:0;background:transparent;font-size:11px;color:#8a987c;white-space:nowrap}.text-button .icon{width:13px;height:13px}.text-button.on{color:#647c53}.factory-scene{position:relative;background:#f8f9f3;padding:7px 7px 0;min-height:310px;display:flex;align-items:center;justify-content:center}.factory-scene>canvas{display:block;width:100%;height:100%}.machine-label{font-family:Arial,sans-serif;font-size:7px;letter-spacing:1px;fill:#f4f4e7;text-anchor:middle}.running{filter:drop-shadow(0 4px 3px #64845818)}@keyframes blink{50%{fill:#e9f8ad}}.floor-plus{text-anchor:middle;fill:#8da37d;font-size:27px;font-weight:400}.floor-caption{font-size:10px;letter-spacing:2px;fill:#a5af96}.floor-empty-label{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);color:#718266;font-size:11px;background:#fbfcf8eb;border:1px solid #dfe5d5;border-radius:7px;padding:10px 14px;white-space:nowrap;box-shadow:0 3px 10px #53633505;pointer-events:none}.floor-empty-label span{display:block;font-family:Arial,sans-serif;font-size:8px;letter-spacing:1.6px;color:#a0ab90;margin-bottom:5px}.floor-empty-label .icon{width:12px;height:12px;margin-left:6px}.floor-legend{display:flex;gap:17px;align-items:center;border-top:1px solid #e9ecdf;padding:14px 19px;font-size:10px;color:#909982}.floor-legend>span{display:flex;align-items:center;gap:5px;white-space:nowrap}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:2px}.sage{background:#7f9874}.sand{background:#cfad6c}.slate{background:#91a2b0}.legend-hint{margin-left:auto;font-size:9px;color:#a2ac95}.legend-hint .icon{width:11px;height:11px}.placement-notice{display:flex;gap:8px;align-items:center;background:#eef3e4;border-top:1px solid #dde6cf;padding:10px 14px;font-size:11px;color:#5d754d;flex-wrap:wrap}.placement-notice>.icon{width:16px}.placement-notice>span{flex:1}.placement-notice .btn{background:#fcfdf7;border-color:#d9e1cd}.count-badge{display:inline-grid;place-items:center;background:#f0f3e8;border-radius:4px;min-width:20px;height:20px;font-family:Arial,sans-serif;font-size:11px;color:#8c9a7c}.muted{color:#949c8b}.small{font-size:11px}.empty-production{display:flex;align-items:center;gap:14px;padding:27px 20px}.empty-production>span{display:grid;place-items:center;background:#f4f5ee;border-radius:50%;width:38px;height:38px;color:#a0ac91;flex-shrink:0}.empty-production b{font-size:12px;font-weight:500;color:#7e8a71}.empty-production p{font-size:10px;color:#a4ab9c;margin-top:6px;line-height:1.8}.empty-production>.text-button{margin-left:auto}.next-step{background:#eef1e3;border:1px solid #e1e6d3;padding:21px 23px;border-radius:9px;position:relative;overflow:hidden}.next-step .eyebrow{color:#91a275;display:flex;justify-content:space-between;font-size:9px;margin-bottom:14px}.next-step .eyebrow>span{font-size:19px;line-height:8px}.next-step h2{font-size:19px;line-height:1.75;font-weight:600;letter-spacing:.8px;color:#475c3e}.next-step p{font-size:11px;line-height:1.95;color:#8b987b;margin:11px 0 18px}.next-step .btn{font-size:11px;padding:11px}.next-step .btn .icon{margin-left:auto}.next-step small{display:block;text-align:center;font-size:9px;color:#9ba68b;margin-top:10px}.step-progress{display:flex;gap:5px;margin:17px 0}.step-progress span{height:3px;width:100%;background:#dde4cf;border-radius:3px}.step-progress span:first-child{background:#99ad7d}.goal-meter{background:#dce4cb;border-radius:4px;height:4px}.goal-meter i{display:block;background:#809a67;height:100%;border-radius:4px}.goal-amount{font-family:Arial,sans-serif;font-size:11px;color:#6f855a;margin:8px 0 15px}.goal-amount span{color:#a6af97}.board-panel .panel-heading{padding:17px 18px;min-height:auto}.board-panel .panel-title{font-size:12px}.live-label{display:flex;align-items:center;gap:4px;font-size:9px;color:#97a981}.live-label i{width:5px;height:5px;border-radius:50%;background:#a2b88b}.mini-order{padding:16px 18px;border-bottom:1px solid #edefe4}.order-top{display:flex;align-items:center;gap:12px}.paper-art{width:43px;height:49px;background:color-mix(in srgb,var(--paper),white 55%);border-radius:6px;display:grid;place-items:center;flex-shrink:0}.paper-art>div{width:25px;height:34px;background:var(--paper);transform:rotate(-8deg);box-shadow:2px 3px 0 #5d695217;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.paper-art span{font-size:5px;letter-spacing:.3px;font-family:Georgia,serif;font-weight:700;color:#636550}.paper-art i{display:block;width:14px;height:1px;background:#6b6c4c3a}.paper-art i:last-child{width:8px}.order-title{min-width:0}.order-title small{font-size:9px;color:#a0a590}.order-title h3{font-size:12px;line-height:1.6;font-weight:500;color:#5d6953;margin-top:4px}.order-spec{font-size:9px;color:#a1a791;margin:11px 0}.order-spec>span{margin:0 6px}.order-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-bottom strong{font-family:Arial,sans-serif;color:#5a6b49;font-size:17px;font-weight:500;letter-spacing:.3px}.order-bottom .btn{font-size:10px;padding:4px 8px;min-height:26px}.order-bottom .btn .icon{width:11px;height:11px}.all-orders{width:100%;border:0;display:flex;justify-content:center;align-items:center;gap:15px;background:transparent;padding:15px;color:#829270;font-size:10px}.all-orders .icon{width:13px;height:13px}.tip-note{display:flex;align-items:flex-start;gap:11px;padding:0 9px;color:#a2ac92}.tip-note>.icon{width:19px;height:19px;transform:rotate(-10deg);margin-top:1px}.tip-note p{font-size:10px;line-height:1.9}.tip-note b{font-size:11px;font-weight:500;color:#8c997a}footer{padding:0 36px 22px;display:flex;justify-content:space-between;font-size:9px;color:#b0b6a5;letter-spacing:.5px;max-width:1600px;margin:auto}.footer-dot{margin:0 10px}.production-job{padding:19px 21px;border-bottom:1px solid #ecefe4}.production-job:last-child{border-bottom:0}.production-name{display:flex;align-items:center;gap:10px}.production-name b{font-size:12px;font-weight:500}.production-name small{display:block;font-size:10px;color:#9ba58f;margin-top:4px}.production-name>strong{margin-left:auto;font-family:Arial,sans-serif;font-size:17px;color:#72845d;font-weight:500}.job-dot{width:7px;height:7px;border-radius:50%;background:#c5caba}.job-dot.active{background:#96ad78;box-shadow:0 0 0 4px #edf2e4}.progress-track{height:5px;border-radius:5px;background:#eef0e7;margin:15px 0 10px;overflow:hidden}.progress-track span{display:block;height:100%;background:#91a875;transition:width .45s linear;border-radius:5px}.production-steps{display:flex;gap:10px;align-items:center;font-size:9px;color:#b0b6a6}.production-steps .current{color:#7d925f}.production-steps .complete{color:#54784b}.production-steps i{font-style:normal;color:#bec5b0}.production-steps b{margin-left:auto;color:#7c8c65;font-weight:500;font-size:10px}.info-strip{display:flex;align-items:center;gap:12px;background:#edf1e5;color:#839372;padding:15px 19px;border-radius:7px;font-size:12px;line-height:1.9;margin-bottom:25px}.info-strip .icon{width:18px;height:18px}.orders-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:26px}.order-card{padding:22px}.order-card .order-title h3{font-size:14px}.order-card .paper-art{width:54px;height:64px}.order-card .paper-art>div{width:33px;height:45px}.order-card .paper-art span{font-size:6px}.order-card .order-title .badge{margin-top:9px;font-size:9px}.order-details{display:flex;gap:16px;margin-top:23px;color:#939f86;font-size:11px}.order-details>span{display:flex;align-items:center;gap:6px}.order-details .icon{width:14px;height:14px}.order-stages{display:flex;gap:8px;align-items:center;margin:18px 0 25px;font-size:10px;color:#bdc5b2}.order-stages>span{display:flex;align-items:center;gap:3px}.order-stages .icon{width:12px;height:12px}.order-stages>i{font-style:normal;color:#cbd0c1}.order-stages .ready{color:#819866}.order-card .order-bottom{border-top:1px solid #edf0e5;padding-top:18px}.order-card .order-bottom strong{font-size:22px}.order-card .order-bottom .btn{padding:9px 10px;font-size:11px}.auto-control{display:flex;align-items:center;gap:12px;background:#fffefa;border:1px solid var(--border);border-radius:8px;padding:12px 15px;font-size:12px;color:#81906e;white-space:nowrap}.switch{border:0;border-radius:20px;width:35px;height:20px;padding:3px;background:#d1d7c7}.switch>i{display:block;width:14px;height:14px;border-radius:50%;background:white;transition:transform .2s}.switch.checked{background:#6e8b54}.switch.checked>i{transform:translateX(15px)}.page-footnote{font-size:11px;line-height:1.9;color:#9ca78e;margin-top:20px}.wallet-pill{display:flex;align-items:center;gap:9px;background:#eef3e5;border:1px solid #dfe6d4;color:#6b8252;padding:12px 16px;border-radius:8px;font-family:Arial,sans-serif;font-size:17px;white-space:nowrap}.wallet-pill .icon{width:18px}.equipment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.equipment-art{height:180px;background:#f1f3e9;position:relative;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--border)}.equipment-art>.badge{position:absolute;left:16px;top:14px;background:#fffefa9c}.equipment-code{position:absolute;right:16px;bottom:13px;font-family:Arial,sans-serif;letter-spacing:1.3px;font-size:9px;color:#98a68a}.equipment-body{padding:21px}.equipment-body h2{font-size:16px;letter-spacing:.5px}.equipment-body p{font-size:11px;color:#9aa38f;margin:8px 0 21px}.equipment-spec{display:flex;justify-content:space-between;background:#f6f7f0;border-radius:5px;padding:11px;font-size:10px;color:#99a38d;margin-bottom:23px}.equipment-spec b{color:#798969;margin-left:6px;font-size:11px;font-weight:500}.equipment-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.equipment-bottom>strong{font-family:Arial,sans-serif;font-size:22px;letter-spacing:.5px;font-weight:500}.equipment-bottom .btn{font-size:10px;padding:8px 10px}.owned{display:block;color:#a9b19e;font-size:10px;margin-top:13px}.expansion-card{border:1px dashed #ced8c1;border-radius:9px;background:#f0f3e8;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px;min-height:320px;text-align:center}.expansion-card .stat-icon{width:53px;height:53px;background:#e5ecd9;margin-bottom:23px}.expansion-card h2{font-size:17px;color:#6b8056}.expansion-card p{font-size:12px;line-height:2;color:#99a689;margin:12px 0 25px}.section-label{font-size:15px;margin:30px 0 18px;font-weight:600;display:flex;align-items:center;gap:12px}.section-label>span{font-size:11px;color:#9ca98c;font-weight:400}.staff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.staff-card{padding:22px}.person-heading{display:flex;gap:13px;align-items:center;margin-bottom:24px}.avatar{display:grid;place-items:center;width:45px;height:49px;border-radius:14px 14px 14px 4px;color:#6c7462;font-size:18px;flex-shrink:0}.avatar.owner{background:#e3ead8;color:#7c925d}.person-heading h3{font-size:15px;font-weight:600}.person-heading p{font-size:10px;color:#a0aa91;margin-top:6px}.person-heading .badge{font-size:9px;margin-left:5px}.owner-card{background:#f9fbf3}.owner-card>p{font-size:12px;line-height:2.2}.skill-bars>div{display:flex;align-items:center;gap:10px;font-size:10px;color:#98a48b;margin:12px 0}.skill-bars>div>span{min-width:42px}.skill-bars i{flex:1;background:#edf1e4;height:5px;border-radius:4px}.skill-bars i>b{display:block;background:#a1b285;height:100%;border-radius:4px}.skill-bars strong{font-family:Arial,sans-serif;font-size:11px;font-weight:400;color:#81946a;min-width:16px}.staff-cost{margin:22px 0 17px;padding-top:17px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:5px;font-size:10px;color:#a1aa94}.staff-cost b{font-size:11px;color:#768a60;font-weight:500}.assignment-label{display:block;border-top:1px solid var(--border);padding-top:16px;font-size:11px;color:#889a73;margin:18px 0 12px}.assignment-label select{width:100%;padding:9px 8px;margin-top:8px;border-radius:5px;border:1px solid #dae2cc;background:#fafcf5;color:#72895b;font-size:12px}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin-bottom:24px}.report-summary{padding:25px}.report-summary h2,.history-panel h2{font-size:14px;font-weight:600}.report-summary dl{margin:22px 0 0}.report-summary dl>div{display:flex;justify-content:space-between;gap:12px;padding:16px 0;font-size:12px;color:#8e9b7e}.report-summary dd{margin:0;font-family:Arial,sans-serif;font-size:17px;color:#6c8058}.report-summary dl>.total{border-top:1px solid var(--border);margin-top:10px;padding-top:23px}.total dd{font-size:23px;color:#47683f}.milestones{margin-top:20px}.milestones>div{display:flex;align-items:center;gap:12px;font-size:12px;color:#b0b9a4;margin:14px 0}.milestones>div>span{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#f0f3e9;font-size:18px}.milestones .icon{width:13px;height:13px}.milestones>.done{color:#6e8756}.milestones>.done>span{background:#e6eed9}.milestones small{margin-left:auto;font-size:10px;color:#a0b186}.history-row{display:grid;grid-template-columns:1fr 90px 100px;gap:20px;padding:17px 24px;border-bottom:1px solid #edf0e4;font-size:12px;color:#8b997a;align-items:center}.history-row>span:first-child{display:flex;align-items:center;gap:10px}.history-row .icon{width:14px;height:14px;color:#9bb481}.history-row strong{font-family:Arial,sans-serif;font-size:15px;text-align:right;font-weight:500;color:#6e8756}.history-head{font-size:10px;background:#f7f9f1;color:#a6b197}.history-head>span:last-child{text-align:right}.empty-message{padding:40px 24px;text-align:center;color:#a0ac91;font-size:12px;line-height:2}.modal-backdrop{position:fixed;inset:0;background:#27312266;backdrop-filter:blur(4px);z-index:100;display:flex;justify-content:center;align-items:center;padding:24px;animation:fade-in .18s}.modal{max-width:540px;width:100%;max-height:90vh;overflow:auto;background:#fffef9;border:1px solid #f3f4e9;box-shadow:0 24px 100px #1e30132b;border-radius:15px;padding:28px}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.modal-heading h2{font-size:19px;letter-spacing:.3px}.modal-heading .icon-button{font-size:23px;color:#939e83}.modal-copy{color:#8e9a7d;font-size:13px;line-height:2;margin:15px 0 25px}.property-preview{display:flex;align-items:center;flex-direction:column;text-align:center;background:#edf2e3;border-radius:9px;padding:25px 18px}.property-preview>.icon{width:45px;height:45px;color:#8ea572;margin-bottom:20px}.property-preview>span{font-size:10px;letter-spacing:2px;color:#a1b087;margin-bottom:10px}.property-preview h3{font-size:19px;color:#698052;font-weight:600}.property-preview p{font-size:11px;color:#9ba98b;margin-top:12px;line-height:1.9}.modal-price{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding:20px 0;margin-top:12px;font-size:13px;color:#8a9978}.modal-price strong{font-family:Arial,sans-serif;font-size:26px;color:#607c48;font-weight:500}.center{text-align:center;margin-top:14px}.settings-row{border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 0}.settings-row b{font-size:13px;font-weight:500}.settings-row p{font-size:11px;color:#a1ab91;line-height:1.9;margin-top:6px}.file-label{cursor:pointer}.file-label input{position:absolute;opacity:0;width:1px;height:1px}.danger-row{margin-bottom:13px}.modal-actions{display:flex;justify-content:flex-end;gap:12px}.guide{counter-reset:guide;list-style:none;padding:0;margin:20px 0 30px}.guide li{position:relative;padding-left:40px;margin:23px 0}.guide li:before{counter-increment:guide;content:counter(guide);position:absolute;left:0;top:0;width:25px;height:25px;display:grid;place-items:center;background:#edf2e4;border:1px solid #dce5cc;color:#8ca670;border-radius:50%;font-size:11px}.guide b{font-size:13px;color:#6b8354}.guide p{font-size:12px;color:#97a187;line-height:2;margin-top:8px}.offline-summary{text-align:center;padding:10px 0 25px}.offline-summary>span{display:inline-flex;background:#edf2e3;padding:16px;border-radius:50%;color:#8eaa6d}.offline-summary h3{font-size:18px;margin:20px 0 13px;color:#6c8356}.offline-summary p{font-size:12px;color:#9ca98b}.offline-summary>div{display:flex;margin:30px 0 10px;justify-content:space-around}.offline-summary b{font-size:29px;font-family:Arial,sans-serif;font-weight:500;color:#67844e}.offline-summary small{display:block;font-family:'Noto Sans JP',sans-serif;font-size:11px;color:#9aab87;margin-top:10px}#toast{position:fixed;bottom:28px;left:calc(50% + 109px);transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#3c5942;color:#f8f9f0;border:1px solid #627953;border-radius:9px;box-shadow:0 6px 30px #283d2829;padding:15px 23px;z-index:200;font-size:12px;line-height:1.8;max-width:calc(100vw - 40px);width:max-content;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}@keyframes fade-in{from{opacity:0}to{opacity:1}}

@media(min-width:1500px){main{padding-top:40px}.factory-scene{min-height:400px}.stat-card{padding:24px}.factory-layout{grid-template-columns:minmax(0,1fr) 320px}.next-step{padding:25px}.mini-order{padding:19px 21px}.order-title h3{font-size:13px}.order-spec{font-size:10px}.sidebar{width:238px}.workspace{margin-left:238px}}
@media(max-width:1200px){.sidebar{width:188px;padding-left:15px;padding-right:15px}.brand{font-size:22px}.brand-mark{width:36px;height:41px}.workspace{margin-left:188px}main{padding:27px 25px}.topbar{padding:0 25px}.factory-layout{grid-template-columns:minmax(0,1fr) 251px;gap:18px}.stats{gap:10px}.stat-card{padding:16px 12px;gap:9px}.stat-icon{width:30px;height:32px;border-radius:8px}.stat-icon .icon{width:17px;height:17px}.stat-card strong{font-size:23px}.stat-card small{font-size:9px}.panel-heading{padding:16px}.floor-legend{gap:12px;padding:13px}.legend-hint{display:none}.next-step{padding:18px}.next-step h2{font-size:18px}.orders-grid,.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.floor-empty-label{bottom:49px}.factory-scene{min-height:280px}.empty-production{gap:10px;padding:22px 16px}.empty-production>.text-button{display:none}#toast{left:calc(50% + 94px)}}
@media(max-width:1000px){.sidebar{width:76px;padding:25px 12px}.brand{justify-content:center}.brand>span:last-child,.workspace-tag,.nav-label,.nav-item>span,.sidebar-dream,.sidebar-bottom button,.save-status{display:none}.brand-mark{width:42px;height:46px}.sidebar nav{margin-top:35px}.nav-item{justify-content:center;padding:15px 10px;margin:9px 0}.nav-item .icon{width:21px;height:21px}.workspace{margin-left:76px}.factory-layout{grid-template-columns:minmax(0,1fr) 260px}.stat-card{gap:8px}.stat-card strong{font-size:22px}.stat-label{font-size:10px}.stat-icon{display:none}.floor-size>span{display:none}.panel-title{font-size:12px;gap:6px}.panel-title .badge{font-size:9px;margin-left:0}.factory-scene{min-height:250px}.floor-toolbar{padding:12px 13px 0}.floor-empty-label{font-size:10px;bottom:45px}.page-heading h1{font-size:23px}.page-heading p{font-size:11px}.production-steps{gap:7px}#toast{left:calc(50% + 38px)}}
@media(max-width:800px){main{padding:25px 20px}.factory-layout{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tip-note{display:none}.factory-scene{min-height:300px}.floor-empty-label{bottom:60px}.next-step{height:fit-content;padding:24px}.board-panel{grid-row:span 2}.floor-size>span{display:inline}.stat-card strong{font-size:23px}.stat-card small{font-size:9px}.page-heading{gap:12px}.report-grid{grid-template-columns:1fr}.order-card{padding:17px}.orders-grid,.equipment-grid{gap:15px}.equipment-body{padding:17px}.equipment-bottom>strong{font-size:19px}.equipment-bottom .btn{font-size:9px}.staff-card{padding:18px}.staff-cost{flex-direction:column;gap:8px}.topbar{padding:0 20px}.panel-heading .small{font-size:10px}.info-strip{font-size:11px}}
@media(max-width:580px){.sidebar{width:100%;height:65px;top:auto;bottom:0;left:0;right:0;padding:0 8px;border-top:1px solid var(--border);border-right:0;display:block;background:#fcfcf8f5;backdrop-filter:blur(10px)}.sidebar .brand,.sidebar-bottom{display:none}.sidebar nav{display:flex;margin:0;justify-content:space-between}.nav-item{width:20%;flex-direction:column;gap:4px;padding:9px 2px;margin:3px 0;border-radius:7px}.nav-item .icon{width:19px;height:19px}.nav-item>span:not(.nav-badge){display:block;font-size:9px}.workspace{margin-left:0;padding-bottom:67px}.topbar{height:55px;padding:0 18px}.breadcrumb{font-size:10px;gap:9px}.day{font-size:10px}.time-controls{gap:8px}main{padding:24px 16px}.page-heading{margin-bottom:22px;align-items:flex-start}.eyebrow{font-size:8px;letter-spacing:1.7px;margin-bottom:9px}.page-heading h1{font-size:21px;letter-spacing:.4px}.page-heading p{font-size:10px;line-height:1.8;max-width:235px}.page-heading>.btn{font-size:10px;padding:8px;margin-top:20px;min-height:30px;gap:4px}.page-heading>.btn>.icon{width:12px;height:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.stat-icon{display:grid;width:33px;height:34px}.stat-card{padding:15px 13px;gap:12px}.stat-card strong{font-size:23px}.stat-card small{margin-top:8px;font-size:9px}.stat-label{margin-bottom:7px}.factory-column{gap:18px}.factory-scene{min-height:225px;padding:9px 0}.floor-empty-label{bottom:40px;font-size:9px;padding:8px 10px}.floor-empty-label span{font-size:7px}.floor-caption{font-size:11px}.right-column{grid-template-columns:1fr}.next-step{padding:21px}.next-step h2{font-size:20px}.next-step h2 br{display:none}.next-step p br{display:none}.next-step p{font-size:12px}.board-panel{grid-row:auto}.mini-orders{display:grid;grid-template-columns:1fr}.mini-order{padding:17px}.order-title h3{font-size:13px}.mini-order .paper-art{width:48px;height:52px}.order-title small{font-size:10px}.order-spec{font-size:10px}.order-bottom strong{font-size:19px}.order-bottom .btn{font-size:11px;padding:7px 12px}.floor-toolbar{font-size:9px}.floor-legend{font-size:9px}.empty-production{padding:23px 16px}.empty-production p{font-size:10px;max-width:220px}.production-name b{font-size:11px}.production-name small{font-size:9px}.production-steps{gap:8px}.orders-grid,.equipment-grid,.staff-grid{grid-template-columns:1fr}.order-card{padding:22px}.order-card .order-title h3{font-size:15px}.order-details{font-size:12px}.equipment-art{height:190px}.equipment-body{padding:23px}.equipment-body h2{font-size:17px}.equipment-body p{font-size:12px}.equipment-spec{font-size:11px;padding:13px}.equipment-bottom>strong{font-size:25px}.equipment-bottom .btn{font-size:12px;padding:11px 14px}.equipment-body .owned{font-size:11px}.expansion-card{min-height:280px}.auto-control{padding:9px;font-size:10px;gap:6px;margin-top:17px}.switch{width:31px;height:19px}.switch>i{width:13px;height:13px}.switch.checked>i{transform:translateX(12px)}.wallet-pill{font-size:14px;padding:9px;gap:6px;margin-top:16px}.wallet-pill .icon{width:15px}.info-strip{padding:13px;gap:9px;font-size:11px}.staff-card{padding:23px}.staff-cost{flex-direction:row;font-size:11px}.person-heading h3{font-size:17px}.person-heading p{font-size:11px}.skill-bars>div{font-size:11px}.skill-bars i{height:6px}.history-row{grid-template-columns:1fr 45px 65px;font-size:10px;gap:10px;padding:15px 14px}.history-row strong{font-size:12px}.history-row .icon{display:none}.report-summary{padding:22px}.report-summary dl>div{font-size:11px}.modal-backdrop{padding:16px}.modal{padding:22px;max-height:85vh}.modal-heading h2{font-size:17px}.modal-copy{font-size:12px}.settings-row{gap:10px}.settings-row b{font-size:12px}.settings-row p{font-size:10px}.settings-row .btn{font-size:11px;padding:8px}.property-preview h3{font-size:17px}.modal-actions .btn{font-size:11px;padding:9px}.offline-summary b{font-size:24px}.offline-summary h3{font-size:17px}footer{padding:0 18px 20px;font-size:8px}footer>span:last-child{display:none}#toast{left:50%;bottom:80px;font-size:11px;padding:13px 17px}.placement-notice{font-size:10px;padding:9px}.placement-notice>.icon{display:none}.placement-notice .btn{font-size:10px}.placement-notice>span{min-width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.compact-utilities{display:none}@media(max-width:1000px){.compact-utilities{display:flex;gap:2px;margin-right:7px}.compact-utilities .icon{width:16px;height:16px}}@media(max-width:580px){.compact-utilities{gap:0;margin-right:1px}.compact-utilities .icon-button{width:24px}.breadcrumb{gap:6px;font-size:9px}.time-controls{gap:5px}}
.recovery-notice{background:#fff3e9;border:1px solid #efd7c6;border-radius:8px;padding:16px;margin:0 0 18px;color:#8d634d}.recovery-notice b{font-size:13px}.recovery-notice p{font-size:11px;line-height:1.9;margin:7px 0 12px}.recovery-notice .btn{background:#fffaf4;border-color:#e8cdb8;color:#925f43}

.language-choice{display:flex;gap:8px;flex-shrink:0}
.company-name-editor{display:flex;align-items:center;gap:8px;flex-shrink:0}.company-name-editor input{width:170px;min-width:0;border:1px solid var(--border);border-radius:6px;background:#fbfcf7;padding:8px 9px;color:#4c5c49}.company-name-editor input:focus{outline:2px solid #c5aa6a;outline-offset:2px;border-color:#c5aa6a}
.pricing-editor{display:grid;gap:8px;margin:16px 0;color:#4f5c4b}.pricing-editor textarea{width:100%;min-height:260px;resize:vertical;border:1px solid var(--border);border-radius:7px;background:#fbfcf7;padding:10px;font:11px/1.45 ui-monospace,Consolas,monospace;color:#38433a}.invoice-table{border:1px solid var(--border);border-radius:8px;overflow:hidden}.invoice-row,.invoice-total{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid var(--border)}.invoice-row span{display:grid;gap:3px;min-width:0}.invoice-row small{color:var(--muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere;min-width:0}.invoice-total{border:0;background:var(--sage);font-size:15px}.order-economics{font-size:11px;line-height:1.5;color:#8a6241;margin:8px 0}
.estimate-layout,.rates-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:22px;align-items:start}.estimate-editor,.rate-editor{padding:24px}.estimate-main-fields,.estimate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.estimate-editor label:not(.check-field),.estimate-extra input{display:grid;gap:6px;font-size:11px;color:#76876b}.estimate-editor input,.estimate-editor select,.estimate-extra input{min-width:0;width:100%;border:1px solid var(--border);border-radius:6px;background:#fbfcf7;padding:9px;color:#4b5c48;font:inherit}.estimate-section{border-top:1px solid var(--border);margin-top:20px;padding-top:18px}.estimate-section h2,.estimate-result h2,.saved-estimates h2{font-size:14px;margin:0 0 12px}.check-field{display:flex!important;align-items:center;gap:7px;margin:8px 0 12px;color:#718466;font-size:11px}.check-field input{width:auto!important}.component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;margin-top:14px;padding:12px;background:#f7f9f2;border-radius:7px}.component-grid>b{grid-column:1/-1;font-size:11px;color:#7b8d70}.component-grid .check-field{margin:0}.estimate-extras{display:grid;gap:8px}.estimate-extra{display:grid;grid-template-columns:minmax(0,1fr) 92px 70px 28px;gap:7px;align-items:center}.estimate-extra .icon-button{font-size:18px;color:#9d725f}.estimate-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--border);margin-top:20px;padding-top:18px}.estimate-result,.saved-estimates{padding:20px}.estimate-side{display:grid;gap:18px}.estimate-total{display:flex;justify-content:space-between;gap:12px;align-items:baseline;border-bottom:1px solid var(--border);padding-bottom:17px;margin-bottom:17px;color:#75836d;font-size:12px}.estimate-total strong{font:500 24px Arial,sans-serif;color:#577543}.estimate-lines{display:grid}.estimate-line,.saved-estimate{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #edf0e6;font-size:11px}.estimate-line span,.saved-estimate span{display:grid;gap:3px;min-width:0}.estimate-line b,.saved-estimate b{font-weight:500;color:#596953}.estimate-line small,.saved-estimate small{color:var(--muted);font-size:10px;overflow-wrap:anywhere}.estimate-line strong{font:500 12px Arial,sans-serif;color:#536c45;white-space:nowrap}.saved-estimate{align-items:center}.saved-estimate .btn{margin-left:4px}.rate-profile-name{display:grid;gap:5px;margin-bottom:8px;font-size:12px;color:#718466}.rate-profile-name span{font-size:14px;color:#4e6049}.rate-table-wrap{overflow:auto;max-height:calc(100vh - 205px)}.rate-table{width:100%;border-collapse:collapse;font-size:11px;min-width:440px}.rate-table th{position:sticky;top:0;background:#f4f7ed;color:#6e8065;text-align:left;font-weight:500}.rate-table th,.rate-table td{padding:10px 12px;border-bottom:1px solid var(--border)}.rate-table td:last-child{font-family:Arial,sans-serif;text-align:right;color:#536c45;white-space:nowrap}
@media(max-width:900px){.estimate-layout,.rates-layout{grid-template-columns:1fr}.rate-table-wrap{max-height:none}}
@media(max-width:580px){.company-name-editor{width:100%;justify-content:space-between}.company-name-editor input{width:calc(100% - 86px)}.estimate-main-fields,.estimate-fields{grid-template-columns:1fr}.component-grid{grid-template-columns:1fr}.estimate-extra{grid-template-columns:minmax(0,1fr) 74px 58px 24px}.estimate-editor,.rate-editor,.estimate-result,.saved-estimates{padding:18px}.estimate-actions .btn{font-size:10px;padding:8px}}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

.machine-pending{display:grid;place-items:center;background:color-mix(in srgb,var(--tint),white 72%);border:1px dashed color-mix(in srgb,var(--tint),white 35%);border-radius:8px;min-height:44px}
.machine-pending>b{font-family:Arial,sans-serif;font-size:10px;letter-spacing:1.4px;color:color-mix(in srgb,var(--tint),black 25%)}
.build-card .machine-pending{width:100%;aspect-ratio:1/1}
.catalog-machine-image.machine-pending{width:78%;max-width:260px;height:145px}
.placement-notice .machine-pending{width:34px;height:34px;min-height:0;flex-shrink:0}
.placement-notice .machine-pending>b{font-size:7px;letter-spacing:.6px}

.blueprint-card{position:relative;padding:0;overflow:visible}
.blueprint-pick{display:flex;flex-direction:column;gap:7px;width:100%;height:100%;border:0;background:transparent;padding:13px 12px;text-align:left;border-radius:9px}
.blueprint-plan{display:flex;flex-wrap:wrap;gap:3px;align-content:flex-start;background:#f4f6ee;border:1px solid #e5e9dc;border-radius:7px;padding:9px;min-height:54px}
.blueprint-plan>i{display:block;width:10px;height:10px;border-radius:2px;background:var(--tint)}
.blueprint-plan.big{min-height:0;padding:6px;width:44px;flex-shrink:0}
.blueprint-plan.big>i{width:7px;height:7px}
.blueprint-card strong{font-size:11px;font-weight:500;color:#7b8770}
.blueprint-remove{position:absolute;top:6px;right:6px;width:22px;height:22px;border:1px solid #e2e6d8;border-radius:50%;background:#fffefa;color:#98a08d;font-size:14px;line-height:1;display:grid;place-items:center}
.parts-table{border:1px solid var(--border);border-radius:9px;overflow:hidden;margin:0 0 14px}.parts-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 14px;background:#f6f8ef;font-size:12px;font-weight:500;color:#53684b;border-bottom:1px solid var(--border)}.parts-head>span{font-family:Arial,sans-serif;font-size:10px;font-weight:400;color:#96a489;text-align:right}.parts-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 14px;border-bottom:1px solid #eceee3;font-size:11px}.parts-row:last-child{border-bottom:0}.parts-row>span:first-child{display:grid;gap:2px;min-width:0}.parts-row b{font-weight:500;color:#53684b}.parts-row small{color:var(--muted);font-size:10px;overflow-wrap:anywhere;min-width:0}.parts-spec{font-family:Arial,sans-serif;font-size:10px;color:#96a489;text-align:right;white-space:nowrap}
.naming-field{display:grid;gap:5px;margin:12px 0}.naming-field>span{font-size:11px;color:var(--muted)}.naming-field>input{width:100%}

/* オペレーターの人数パネル。数がひと目で足りているか分かることが目的。 */
.operator-panel .operator-count { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin: .5rem 0 .75rem; }
.operator-panel .operator-count b { font-size: 1.35rem; }
.operator-panel .operator-count .tight { color: var(--danger, #b4544a); font-weight: 600; }
.operator-panel .operator-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* 損益計算書。内訳は一段落として、合計行だけを強く。 */
.pl { margin: 0; }
.pl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.pl > div dt, .pl > div dd { margin: 0; }
.pl > div dt em { font-style: normal; font-weight: 400; opacity: .7; margin-left: .4rem; font-size: .85em; }
.pl .pl-detail { padding: .1rem 0 .1rem 1rem; font-size: .85em; opacity: .65; }
.pl .subtotal { border-top: 1px solid var(--line, #dcdcd2); font-weight: 600; }
.pl .total { border-top: 2px solid var(--line, #dcdcd2); font-weight: 700; padding-top: .45rem; }
.pl dd.loss { color: var(--danger, #b4544a); }

/* 人材紹介会社の一覧と、任期の近い人。 */
.agency-panel .staff-grid { margin-top: .6rem; }
.staff-card.leaving { border-color: var(--danger, #b4544a); }
.staff-card .staff-cost .tight { color: var(--danger, #b4544a); font-weight: 600; }

/* 退職の申し出と、ボーナスの選択。 */
.staff-card .staff-notice { display: flex; gap: .4rem; margin-top: .5rem; }
.staff-card.gifted { border-color: #c8b08a; }
.bonus-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; margin: .8rem 0; }
.bonus-choices .bonus-choice { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .5rem; height: auto; }
.bonus-choices .bonus-choice small { font-weight: 400; opacity: .75; }
.bonus-choices .bonus-choice small.tight { color: var(--danger, #b4544a); opacity: 1; }
.staff-card .staff-tell { margin: .35rem 0 .5rem; font-size: .85rem; opacity: .7; font-style: italic; }
.season-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.4px;padding:4px 9px;border-radius:20px;border:1px solid var(--season-line);background:var(--season-wash);color:var(--season-ink);white-space:nowrap}
.season-chip i{width:7px;height:7px;border-radius:50%;background:var(--season-ink);flex-shrink:0}
.season-chip.spring{--season-ink:#b56b86;--season-wash:#fbeef2;--season-line:#f0d7e0}
.season-chip.summer{--season-ink:#4e7d46;--season-wash:#eef5e6;--season-line:#d5e6c8}
.season-chip.autumn{--season-ink:#a3662f;--season-wash:#f8f0e2;--season-line:#ecdcc1}
.season-chip.winter{--season-ink:#5b7382;--season-wash:#eef2f4;--season-line:#dae2e6}
.sound-btn{border:1px solid var(--border);background:#fbfbf6;color:#b3b8ac;min-width:30px;height:26px;padding:0 7px;border-radius:7px;font-size:12px;font-weight:700;line-height:1;letter-spacing:.5px;position:relative}
.sound-btn.on{color:var(--green);border-color:#cfdcc9;background:#f1f6ec}
.sound-btn:not(.on)::after{content:'';position:absolute;left:4px;right:4px;top:50%;height:1.5px;background:currentColor;transform:rotate(-16deg);border-radius:2px}
.bank-panel{padding:24px;margin-bottom:22px}.bank-panel h2{font-size:17px;margin-bottom:8px}.bank-figures{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0;color:#6f7d6c;font-size:12px}.bank-figures b{display:block;color:#304d3a;font-size:18px;margin-top:3px}.bank-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.bank-warning{color:#9b532f;background:#fff1e6;border:1px solid #e7c9ad;padding:11px 13px;border-radius:6px;font-size:12px;line-height:1.7}@media(max-width:580px){.bank-panel{padding:20px}.bank-actions .btn{flex:1 1 100%}}
.bank-factory-warning{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.bank-factory-warning .btn{flex-shrink:0}@media(max-width:580px){.bank-factory-warning{display:block}.bank-factory-warning .btn{display:block;margin-top:10px}}
.factory-scene.foreclosed canvas{filter:grayscale(1) brightness(.7)}
.process-primer{margin:0 0 20px;padding:15px 20px}.process-primer summary{cursor:pointer;font-weight:700;color:#345544}.process-primer>p{font-size:12px;color:var(--muted);line-height:1.7}.process-primer ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;margin:15px 0;padding:0}.process-primer li{display:flex;gap:8px;padding:11px;border:1px solid var(--border);border-radius:8px;background:#fafbf7}.process-primer li>span{display:grid;place-items:center;flex:0 0 21px;height:21px;border-radius:50%;background:#e1eadd;color:#345544;font-size:11px;font-weight:700}.process-primer li b{font-size:12px}.process-primer li p{margin:5px 0 0;font-size:11px;line-height:1.6;color:var(--muted)}@media(max-width:850px){.process-primer ol{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.process-primer ol{grid-template-columns:1fr}}
.proof-swatches{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.proof-swatches>div{display:grid;gap:6px;color:var(--muted);font-size:11px}.proof-swatch{display:block;height:84px;border-radius:7px;border:1px solid #cdd4c9;background:linear-gradient(115deg,#7aa59a 0 22%,#d8c179 22% 44%,#9f7083 44% 67%,#6682a7 67% 100%)}.proof-difference{font-size:13px;font-weight:700}.proof-difference.within{color:#37734c}.proof-difference.outside{color:#ab5c32}.proof-meter{position:relative;height:10px;margin:10px 0 17px;border-radius:8px;background:#f4ddd1}.proof-meter span{display:block;height:100%;border-radius:8px 0 0 8px;background:#b9dec4}.proof-meter i{position:absolute;top:-4px;width:3px;height:18px;background:#31473e;transform:translateX(-50%);box-shadow:0 0 0 2px #fff}.proof-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.proof-actions .btn{flex:1 1 145px}
.order-bottom{flex-wrap:wrap}.offer-count{color:var(--muted);font-size:11px;white-space:nowrap}.order-bottom .offer-count{order:-1;flex-basis:100%;margin-left:0}

.order-route{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;margin:12px 0 2px;color:#697468;font-size:11px;line-height:1.5}.order-route b{border-radius:999px;background:#eef2e7;color:#42634a;padding:3px 8px;font-size:10px;font-weight:700}.order-route.subcontract b{background:#e9eee8}.order-route.agency b{background:#f5efe3;color:#886939}.order-route small{flex-basis:100%;font-size:10px;color:#8b9286}.mini-order .order-route{margin:8px 0 1px;font-size:10px}
.elder-call{position:fixed;right:22px;bottom:18px;z-index:30;display:flex;align-items:center;gap:7px;border:1px solid #d6dfc8;border-radius:38px;background:#fffdf1;color:#3c5a43;padding:5px 13px 5px 5px;box-shadow:0 7px 22px #263b2d29;font-size:12px;font-weight:700;white-space:nowrap}.elder-call:hover{background:#f4f7e7;transform:translateY(-2px)}.elder-art{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eaf1dc;overflow:hidden}.elder-art svg{width:41px;height:41px}.elder-portrait{display:flex;align-items:center;gap:14px;padding:6px 0 14px}.elder-portrait svg{width:78px;height:78px;flex:none;border-radius:50%;background:#eaf1dc}.elder-portrait b{display:block;font-size:18px;color:#3c5a43}.elder-portrait small{display:block;margin-top:6px;color:var(--muted);line-height:1.6}.elder-dialog blockquote{margin:2px 0 15px;padding:18px 20px;border-left:4px solid #b9a777;background:#f7f7ee;border-radius:0 9px 9px 0;color:#354d3b;font-size:18px;font-weight:700;line-height:1.8}.elder-detail{margin:0 0 15px;line-height:1.9;font-size:13px}.elder-progress{font-size:11px;color:var(--muted);margin:15px 0}.elder-actions{display:flex;gap:9px;flex-wrap:wrap}.elder-memories{display:grid;gap:8px;max-height:48vh;overflow:auto;margin:3px 0 16px}.elder-memory{border:1px solid var(--border);border-radius:8px;background:#fffefa;color:#354d3b;text-align:left;padding:12px;line-height:1.6;font-size:12px}.elder-memory:hover{background:#f3f5ea}@media(max-width:700px){.elder-call{right:10px;bottom:10px;padding-right:7px}.elder-call>span:last-child{display:none}.elder-art{width:48px;height:48px}.elder-art svg{width:47px;height:47px}.elder-dialog blockquote{font-size:16px}}
.elder-diagram{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:0 0 15px}.elder-diagram span{border:1px solid #dae3d4;border-radius:8px;background:#f2f6ec;color:#41624a;padding:7px 10px;font-size:11px;font-weight:700}.elder-diagram i{color:#a4ae9b;font-size:17px;font-style:normal}
.process-load-row.tight{background:#fdf7ea;border-radius:7px;box-shadow:inset 0 0 0 1px #e8d3ab}
.process-load-row.tight b{color:#a3722c}
.process-load-note{margin-top:9px;font-size:12px;line-height:1.7;color:#a3722c}
.goal-detail{color:var(--muted)}
.bank-alert{border:1px solid #e6cf9d;background:#fdf7e8;color:#8a6420;border-radius:9px;padding:11px 14px;font-size:12.5px;line-height:1.7;margin:0 0 15px}
.bank-alert.late{border-color:#e0b0a2;background:#fdf0ec;color:#9a4d33}
/* A phone shows one figure a row. Two columns leaves the working capital — the
   longest number on the screen — clipped at its last digits, which is worse
   than no figure at all. */
@media(max-width:480px){
  .stats{grid-template-columns:1fr}
  .stat-card strong{font-size:21px;word-break:keep-all}
  .breadcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
}
.order-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 15px}
.order-search{display:flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--paper);border-radius:9px;padding:0 12px;flex:1 1 230px;min-width:0}
.order-search .icon{width:16px;height:16px;color:#a9b0a2;flex-shrink:0}
.order-search input{border:0;background:none;outline:none;padding:10px 0;font-size:12px;width:100%;min-width:0;color:inherit}
.order-sorts{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--border);background:#fbfbf6;color:#7d8776;border-radius:20px;padding:6px 12px;font-size:11px;font-weight:600}
.chip.on{background:var(--green);border-color:var(--green);color:#fdfdf6}
.locked-orders{margin-top:18px;padding:0}
.locked-orders>summary{cursor:pointer;list-style:none;padding:15px 18px;font-size:12px;font-weight:600;color:#7d8776;display:flex;align-items:center;gap:8px}
.locked-orders>summary::-webkit-details-marker{display:none}
.locked-orders>summary::before{content:'▸';color:#a9b0a2;font-size:13px}
.locked-orders[open]>summary::before{content:'▾'}
.locked-orders[open]>summary{border-bottom:1px solid var(--border)}
.locked-orders>.orders-grid{padding:18px}
.rate-focus{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f4f7ee;border:1px solid #dae4cf;border-radius:9px;padding:11px 14px;margin:0 0 14px;font-size:11.5px;color:#4d6046}
.rate-table tr.focused td{background:#fbfdf7}
/* The browser must not take the two-finger gesture for its own page zoom, and a
   one-finger drag on the floor pans the factory rather than scrolling the page. */
#floor-canvas{touch-action:none}
#factory-panels{display:flex;flex-direction:column;gap:15px;margin-top:15px}
.fold{padding:0}
.fold>summary{cursor:pointer;list-style:none;padding:15px 18px;font-size:13px;font-weight:700;color:#46513f;display:flex;align-items:center;gap:9px}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary::before{content:'▸';color:#a9b0a2;font-size:13px;transition:transform .15s}
.fold[open]>summary::before{content:'▾'}
.fold[open]>summary{border-bottom:1px solid var(--border)}
.fold-body{padding:18px}
.fold-body>.panel{border:0;padding:0;box-shadow:none;background:none}
.mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-bottom:12px}
.person-facts{font-size:11px;font-weight:500;color:#98a28b;margin-left:6px;white-space:nowrap}
/* The box under the navigation used to be squeezed to 21px on a laptop-height
   window, with overflow hidden, so none of it could be read. It keeps its size
   now, and gives up its place entirely on a window too short for it rather than
   pushing the settings button off the bottom. */
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.sidebar-dream{flex-shrink:0;padding:15px 14px 14px;margin-top:28px}
.sidebar-dream .dream-lines{display:none}
.build-info{margin:9px 0 0;font-size:10px;color:#a4ab98;letter-spacing:.3px}
/* Nothing in the sidebar is ever out of reach now, but on a window too short
   for the words to earn their space they step aside first, so the settings
   and the guide stay on screen without scrolling. */
@media (max-height:820px){.sidebar-dream{display:none}}
.bank-hint{margin-top:10px;font-size:11px;line-height:1.8;color:#8f9a82}
.day small{font-size:10px;color:#a1a996;margin-left:6px;letter-spacing:0;font-weight:400}
.map-clock{position:absolute;top:14px;right:62px;background:#fffdf6e6;border:1px solid #e0e5d6;border-radius:9px;padding:8px 12px;display:flex;flex-direction:column;align-items:flex-end;gap:2px;pointer-events:none;box-shadow:0 3px 10px #53633508}
.map-clock b{font-size:13px;font-weight:600;color:#46513f;font-variant-numeric:tabular-nums;letter-spacing:.3px}
.map-clock span{font-size:10px;color:#7d9369}
.map-clock.closed{background:#2a3450e0;border-color:#3d4868}
.map-clock.closed b{color:#e8ecf6}
.map-clock.closed span{color:#aab4d0}
.estimate-basics{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}
.estimate-main-fields label.wide{grid-column:1/-1}
.estimate-derived{display:flex;flex-wrap:wrap;gap:8px 16px;background:#f4f7ee;border:1px solid #e0e7d6;border-radius:9px;padding:11px 14px;margin:4px 0 6px;font-size:11.5px;color:#5d7050}
.estimate-part .part-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.estimate-part .part-head h2{margin:0}
.part-size{font-size:11px;color:#9aa38e;font-variant-numeric:tabular-nums}
.part-off{margin-left:auto}
.estimate-part.off .estimate-fields{opacity:.4;pointer-events:none}
@media(max-width:580px){.estimate-basics{grid-template-columns:1fr}}
/* On a phone the top bar has no room for the elapsed span, and the map already
   carries the date; it wrapped into a column of single characters. */
@media(max-width:580px){#game-span{display:none}}
