:root{--ink:#263e36;--green:#245c50;--deep:#143e36;--gold:#dca650;--cream:#fff9ec;--muted:#7e8172;--line:#e5dfd0;--paper:#f3efe5;--rust:#aa6850;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0%,#fffaf0,transparent 65%),var(--paper)}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #bd8b41;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.app-shell{max-width:1270px;margin:auto;padding:0 30px}.topbar{height:98px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--ink)}.brand-icon{height:47px;width:47px;border:1px solid #c8d2bf;border-radius:15px;display:grid;place-items:center;background:#e7ecdc;color:var(--green)}.brand-icon svg{width:28px;height:28px}.brand strong{display:block;font-family:Georgia,serif;font-size:27px;font-weight:normal;letter-spacing:-.8px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:.4px;margin-top:3px}.top-actions{display:flex;align-items:center;gap:18px}.save-state{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}.save-state i{display:inline-block;width:6px;height:6px;background:#77917b;border-radius:50%}.save-state.warning{color:#a45a36}.save-state.warning i{background:#c87d37}.icon-button{width:38px;height:38px;border:1px solid var(--line);background:transparent;border-radius:12px;display:grid;place-items:center}.icon-button svg{width:19px;height:19px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:30px;margin-top:27px;align-items:start}.play-column{min-width:0}.cafe-heading{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.9px;color:#8e927d;display:block}.cafe-heading h1{font-family:Georgia,serif;font-weight:normal;font-size:34px;letter-spacing:-1.1px;margin:5px 0 2px;line-height:1.1}.stage-name{font-size:12px;color:#8a8d79}.money-pill{display:flex;align-items:center;gap:9px;font-size:23px;font-weight:650;letter-spacing:-.5px}.money-pill small{font-size:10px;font-weight:400;color:var(--muted);letter-spacing:0}.coin{width:28px;height:28px;border-radius:50%;background:linear-gradient(140deg,#f4cf83,#d49b3f);box-shadow:inset 0 0 0 3px #f7d99e,0 2px 4px #99762e24;border:1px solid #cf9844;display:grid;place-items:center;color:#946320;font-size:18px}.level-line{display:flex;align-items:center;gap:10px;margin:17px 0 14px;font-size:10px;color:#8a8d7b}.level-badge{font-size:10px;color:var(--green);font-weight:700;white-space:nowrap}.level-track{height:5px;background:#dedfce;border-radius:9px;overflow:hidden;flex:1}.level-track div{background:#719076;height:100%;width:0;transition:width .4s}.level-line>span:last-child{max-width:155px;white-space:nowrap}.scene-wrap{position:relative;background:linear-gradient(#d9dfce,#e7e8d6);border-radius:24px;overflow:hidden;border:1px solid #cfd6c2;box-shadow:0 12px 30px #3445320c,inset 0 1px 0 #fff;height:475px}.scene-wrap canvas{display:block;width:100%;height:100%;touch-action:manipulation}.scene-note{position:absolute;top:14px;left:16px;display:flex;align-items:center;gap:7px;background:#fff9ecea;padding:7px 12px;border:1px solid #fff8;border-radius:9px;color:#58735d;font-size:10px;pointer-events:none}.pulse-dot{width:5px;height:5px;border-radius:50%;background:#739d65}.cat-chip{position:absolute;right:14px;bottom:14px;border:1px solid #f7ebd4;background:#fff9ecef;border-radius:30px;padding:8px 11px;display:flex;align-items:center;gap:6px;box-shadow:0 3px 10px #233b3020;font-size:11px;color:#705d43}.cat-chip svg{width:20px;height:20px}.cat-chip i{width:6px;height:6px;background:#8da377;border-radius:50%}.shift-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 21px}.shift-bar strong{display:block;font-size:15px;font-weight:600;margin:4px 0}.shift-bar small{display:block;color:var(--muted);font-size:11px;line-height:1.5}.primary{background:var(--green);color:#fff8e8;padding:13px 18px;border:1px solid var(--green);border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:14px;font-size:12px;font-weight:600;box-shadow:0 3px 0 #153d35;white-space:nowrap}.primary:hover{background:#32725f}.primary:disabled{opacity:.5}.primary svg{width:17px;height:17px}.speed-button{border:1px solid var(--line);background:#fffaee;border-radius:10px;padding:11px;font-size:12px}.orders-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.orders-header h2{font-size:12px;margin:0;font-weight:600}.orders-header>span{font-size:10px;color:var(--muted)}.orders-strip{display:flex;gap:8px;overflow-x:auto;min-height:91px;padding-bottom:5px}.empty-orders{border:1px dashed #d7d9c6;border-radius:12px;padding:16px;display:flex;align-items:center;gap:13px;flex:1;color:var(--muted);font-size:11px;line-height:1.7}.empty-orders svg{color:#9dbaa2;width:30px;height:30px}.order-card{position:relative;flex:0 0 145px;border:1px solid var(--line);border-radius:12px;background:#fffaf0;padding:10px 11px;text-align:left;overflow:hidden}.order-card:disabled{cursor:default}.order-card.ready{border-color:#8caa8a;background:#edf3e6}.order-card .order-row{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted)}.order-card strong{display:block;font-size:11px;margin:5px 0}.order-card .order-action{font-size:10px;color:var(--green);font-weight:650}.order-card .order-progress{position:absolute;height:3px;background:#97b38c;left:0;bottom:0;transition:width .3s}.bottom-note{display:flex;justify-content:space-between;gap:10px;margin:15px 0 5px;font-size:9px;color:#969982}.bottom-note span:first-child{display:flex;gap:4px;align-items:center}.bottom-note svg{width:12px;height:12px}.management{background:#fffcf5;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 7px 28px #3f402c04}.panel-heading{padding:24px 23px 19px}.panel-heading h2{font-family:Georgia,serif;font-size:24px;font-weight:400;letter-spacing:-.6px;margin:7px 0 8px}.panel-heading p{font-size:11px;color:var(--muted);line-height:1.7;margin:0;min-height:37px}.tabs{display:flex;padding:0 12px;border-bottom:1px solid var(--line)}.tabs button{border:0;background:none;padding:12px 4px 13px;flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;color:#909582;font-size:10px;border-bottom:2px solid transparent;margin-bottom:-1px}.tabs button svg{width:20px;height:20px}.tabs button.active{color:var(--green);border-bottom-color:var(--green)}.panel-content{padding:18px 18px 22px;min-height:460px}.section-label{display:flex;align-items:center;justify-content:space-between;margin:4px 0 12px;font-size:11px;font-weight:650}.section-label small{font-size:9px;font-weight:400;color:var(--muted)}.purchase-card{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #eee8dc}.purchase-card:last-child{border-bottom:0}.item-art{width:43px;height:43px;border-radius:12px;background:#edf0df;display:grid;place-items:center;color:#6e8870;flex:none}.item-art svg{width:25px;height:25px}.item-art.warm{background:#f5e5c9;color:#bc8d4c}.item-copy{flex:1;min-width:0}.item-copy strong{font-size:12px;font-weight:600;display:block;line-height:1.4}.item-copy p{font-size:10px;color:var(--muted);line-height:1.6;margin:3px 0 0}.buy-button{border:1px solid #d8dfcc;background:#edf3e5;color:var(--green);border-radius:9px;padding:9px 10px;font-size:10px;font-weight:700;white-space:nowrap;min-width:62px}.buy-button:disabled{color:#969a89;background:#f1f0e9;border-color:#e5e4da;font-weight:400;font-size:9px;white-space:normal;max-width:98px}.buy-button:not(:disabled):hover{background:#e2ecd8}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:20px}.stat{border:1px solid #e5e7d9;background:#f6f7ee;border-radius:11px;padding:12px 7px;text-align:center}.stat b{display:block;font-size:18px;font-family:Georgia,serif;font-weight:400}.stat span{font-size:9px;color:var(--muted);display:block;margin-top:3px}.hint-card{border:1px solid #e4e8d5;background:#f4f6eb;border-radius:12px;padding:12px;font-size:10px;color:#7c896b;line-height:1.8;margin:15px 0}.business-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:14px 18px;font-size:10px;color:var(--muted)}.business-footer>span{display:flex;align-items:center;gap:5px}.business-footer svg{width:14px;height:14px;color:#bd9a5c}.business-footer button{border:0;background:none;text-decoration:underline;text-underline-offset:3px;color:#6b846a;font-size:10px}.business-footer strong{font-weight:600;color:#656b55}.page-footer{text-align:center;color:#a2a48e;font-size:10px;margin:29px 0 24px;letter-spacing:.3px}.supplier-card{display:block;position:relative;border:1px solid var(--line);border-radius:12px;background:#fffaf0;padding:12px;width:100%;margin:8px 0;text-align:left}.supplier-card.selected{border-color:#6f977d;background:#eff5e9}.supplier-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600}.supplier-head>span:last-child{font-size:10px;color:#b18a3c}.supplier-metrics{display:flex;gap:10px;margin-top:8px;font-size:9px;color:var(--muted)}.supplier-metrics b{font-weight:600;color:#717760}.supplier-card p{font-size:9px;color:var(--muted);margin:8px 0 0;line-height:1.5}.supplier-card:disabled{cursor:default;opacity:.7}.sub-tabs{display:flex;gap:6px;background:#f0f0e6;padding:4px;border-radius:9px;margin-bottom:16px}.sub-tabs button{border:0;flex:1;background:none;padding:8px;border-radius:7px;font-size:10px;color:var(--muted)}.sub-tabs .active{background:#fffaf0;color:var(--green);box-shadow:0 1px 4px #3c452a10}.style-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.style-card{border:1px solid var(--line);border-radius:11px;background:#fffbf1;padding:7px;text-align:left}.style-card.active{border:2px solid var(--green);padding:6px}.style-preview{height:66px;border-radius:7px;position:relative;overflow:hidden;background:linear-gradient(155deg,var(--a) 54%,var(--b) 54%)}.style-preview:before{content:'';position:absolute;width:37%;height:25%;left:31%;top:45%;background:var(--c);border-radius:50%;box-shadow:-20px 11px 0 -2px var(--d),20px -9px 0 -2px var(--d);transform:rotate(-15deg)}.style-preview:after{content:'';position:absolute;left:10%;top:15%;width:15%;height:28%;background:#fff5b9a6;border-radius:15px 15px 1px 1px;border:2px solid var(--d)}.style-card strong{display:block;font-size:10px;margin:8px 0 3px}.style-card span{font-size:8px;color:var(--muted)}.small-note{font-size:10px;line-height:1.7;color:var(--muted)}.construction-bar{background:#fbefd8;border:1px solid #e8d3ae;color:#9a7844;font-size:10px;line-height:1.6;border-radius:10px;padding:9px 13px;margin-top:9px}.modal-backdrop{position:fixed;z-index:30;inset:0;background:#193a2f80;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fffaf0;box-shadow:0 18px 75px #15271e40;border:1px solid #fff8;border-radius:24px;padding:30px;width:100%;max-width:490px;position:relative;max-height:90dvh;overflow-y:auto}.modal-close{position:absolute;right:14px;top:12px;width:30px;height:30px;border:0;background:#eeeede;border-radius:50%;font-size:22px;line-height:1;color:#7b876c}.modal h2{font-family:Georgia,serif;font-weight:400;font-size:29px;margin:10px 0 13px;letter-spacing:-.8px}.modal p{font-size:12px;line-height:1.85;color:#7b826c}.modal .primary{width:100%;margin-top:16px}.modal .style-preview{height:90px}.modal .style-card strong{font-size:11px}.name-label{font-size:10px;font-weight:650;display:block;margin:20px 0 7px}.text-input{border:1px solid #d7decb;background:#fffff7;color:var(--ink);border-radius:10px;font:inherit;font-size:14px;padding:12px;width:100%}.modal-pictogram{width:57px;height:57px;display:grid;place-items:center;border-radius:16px;background:#e8edd9;color:#78916c}.modal-pictogram svg{width:33px;height:33px}.secondary{background:#f6f2e7;border:1px solid var(--line);border-radius:11px;padding:12px 16px;color:#6f7c66;font-size:11px}.modal-actions{display:flex;gap:9px;margin-top:18px}.modal-actions button{flex:1}.modal-actions .primary{margin:0}.summary-rows{margin:22px 0;border-top:1px solid var(--line)}.summary-row{display:flex;justify-content:space-between;font-size:12px;padding:11px 0;border-bottom:1px solid var(--line);color:#7c806e}.summary-row.total{font-weight:650;color:var(--green);font-size:15px}.cat-portrait{height:115px;background:radial-gradient(ellipse,#f1dfbe,transparent 70%);display:grid;place-items:center;font-size:70px}.meter-label{display:flex;justify-content:space-between;font-size:11px;color:#7a8469;margin:15px 0 6px}.meter{height:7px;background:#e9e5d7;border-radius:10px;overflow:hidden}.meter>i{display:block;height:100%;background:#91a375;border-radius:10px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#234d40;color:#fff7df;box-shadow:0 5px 25px #203b3533;border:1px solid #ffffff30;max-width:min(90vw,520px);border-radius:12px;padding:13px 19px;font-size:12px;z-index:60;opacity:0;pointer-events:none;transition:all .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.settings-options{display:flex;flex-direction:column;gap:9px;margin:20px 0}.danger-button{color:#9b6353;border:0;background:transparent;padding:10px;font-size:10px}.read-only-banner{background:#fce8cf;color:#9d5f33;padding:12px;text-align:center;font-size:12px;line-height:1.6}.job-progress{height:4px;background:#eddfc5;border-radius:4px;margin-top:5px}.job-progress i{display:block;background:#b6955c;height:4px;border-radius:4px}.rework-tag{color:#a47342}.pause-label{color:#ab8a52}
@media(min-width:1100px){.scene-wrap{height:760px}.game-layout{gap:35px;grid-template-columns:minmax(0,1fr) 365px}.panel-content{min-height:505px}}
@media(max-width:950px){.app-shell{padding:0 20px}.game-layout{grid-template-columns:minmax(0,1fr) 310px;gap:20px}.scene-wrap{height:430px}.level-line>span:last-child{display:none}.shift-bar{flex-wrap:wrap}.shift-bar>div{flex:1;min-width:180px}.shift-bar .primary{padding:12px}.panel-content{padding:16px 13px}.panel-heading{padding:20px 18px}.money-pill small{display:none}}
@media(max-width:730px){.app-shell{padding:0 15px;max-width:540px}.topbar{height:76px}.brand strong{font-size:23px}.brand small{font-size:8px}.brand-icon{width:39px;height:39px;border-radius:12px}.brand-icon svg{width:24px;height:24px}.top-actions{gap:10px}.save-state{font-size:9px}.icon-button{width:33px;height:33px}.game-layout{display:flex;flex-direction:column;gap:23px;margin-top:20px}.play-column,.management{width:100%}.cafe-heading h1{font-size:31px}.eyebrow{font-size:8px}.money-pill{font-size:22px}.scene-wrap{height:440px;border-radius:19px}.level-line{margin:13px 0}.level-line>span:last-child{display:block;font-size:8px}.scene-note{top:11px;left:11px;font-size:9px;padding:6px 9px}.shift-bar{margin:15px 0 18px;gap:7px}.shift-bar>div{min-width:150px}.shift-bar strong{font-size:13px}.shift-bar small{font-size:10px;max-width:190px}.shift-bar .primary{font-size:11px;padding:12px 13px;gap:7px}.orders-strip{min-height:90px}.order-card{flex-basis:142px}.bottom-note{font-size:8px;margin-top:9px}.panel-heading{padding:20px 20px 12px}.panel-heading h2{font-size:23px}.panel-heading p{min-height:0}.tabs{position:sticky;top:0;background:#fffcf5;z-index:1}.tabs button{padding-top:12px;font-size:11px}.panel-content{min-height:0;padding:18px 20px 22px}.item-copy strong{font-size:13px}.item-copy p{font-size:11px}.buy-button{font-size:11px;min-width:72px;padding:11px}.supplier-head{font-size:12px}.supplier-metrics{font-size:10px}.supplier-card p{font-size:10px}.style-preview{height:85px}.style-card strong{font-size:11px}.page-footer{font-size:9px;margin:22px 0}.modal{padding:25px;max-height:88dvh}.modal h2{font-size:27px}.cat-chip{right:11px;bottom:11px;font-size:10px}.stats-grid .stat b{font-size:21px}.stat span{font-size:10px}.small-note{font-size:11px}}
@media(max-width:380px){.app-shell{padding:0 10px}.brand small{display:none}.scene-wrap{height:405px}.save-state{font-size:8px}.shift-bar .primary{padding:12px 10px}.shift-bar strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.scene-wrap{height:680px;background:#eee8d8}
.table-buttons{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 16px}.table-buttons button{border:1px solid #d9dfcd;background:#f1f5e9;color:#5f775b;font:inherit;font-size:10px;border-radius:9px;padding:9px 10px}.table-buttons button.work{background:#faecd3;border-color:#e7d2aa;color:#94713a}
@media(min-width:1100px){.scene-wrap{height:800px}}
@media(max-width:950px) and (min-width:731px){.scene-wrap{height:620px}}
@media(max-width:730px){.scene-wrap{height:620px}.scene-note{max-width:75%;font-size:9px}.shift-bar .secondary{padding:11px 10px;font-size:10px}}
@media(max-width:380px){.scene-wrap{height:560px}}
.cat-portrait svg{width:85px;height:85px;color:#ba8752;stroke-width:1.1}
.mini-plan{display:grid;grid-template-columns:2fr 1.5fr 1.5fr;grid-template-rows:repeat(3,48px);gap:3px;margin:13px 0 20px;border:3px solid #8a977c;border-radius:8px;overflow:hidden;background:#8a977c}.mini-plan button{border:0;background:#e9e5da;color:#8d8e79;display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px}.mini-plan button.open{background:#dce7d1;color:#42654e;cursor:default}.mini-plan button:first-child{grid-column:1;grid-row:1/4;flex-direction:column}.mini-plan button:nth-child(2){grid-column:2/4}.mini-plan button svg{width:13px;height:13px}.mini-plan button:not(.open):hover{background:#fff3d6;color:#7b6947}
.scene-legend{position:absolute;left:13px;right:13px;top:48px;display:flex;justify-content:space-between;pointer-events:none;color:#f9f0d6;text-shadow:0 1px 3px #26392e;font-size:9px;opacity:.8}
.scene-wrap{border:2px solid #c6a878;box-shadow:0 12px 32px #5d49291c,inset 0 0 0 4px #fff4d7;border-radius:26px}.scene-toolbar{position:absolute;left:10px;right:10px;bottom:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:5px;background:linear-gradient(#fff5df,#ecd9af);border:1px solid #c3a16c;box-shadow:0 3px 0 #866a4130,inset 0 0 0 2px #fff7e5;border-radius:17px}.scene-toolbar button{border:1px solid #c6ad7f;background:linear-gradient(#fffae9,#efdcb7);border-radius:11px;padding:8px 2px 6px;display:flex;align-items:center;flex-direction:column;gap:3px;font-size:11px;font-weight:650;color:#6c5130;box-shadow:inset 0 1px 0 #fff}.scene-toolbar button svg{width:23px;height:23px}.scene-toolbar button.active{background:linear-gradient(#6d9682,#356554);color:#fff5d9;border-color:#315747;box-shadow:inset 0 1px 0 #acbfa0}.cat-chip{bottom:91px}.scene-note{color:#5e6f4e;background:#fff5dfe8;border-color:#d4bd9180}.money-pill{background:linear-gradient(#fff6dd,#f2dfb6);border:1px solid #d8bf88;border-radius:30px;padding:9px 14px;box-shadow:inset 0 2px 0 #fff9eb}.money-pill small{display:none}
.camera-controls{position:absolute;right:13px;top:13px;display:flex;gap:5px}.camera-controls button{width:33px;height:33px;border:1px solid #ceb687;background:linear-gradient(#fff6df,#ecdbb7);color:#46644e;border-radius:10px;font-size:23px;line-height:1;box-shadow:0 2px 6px #313d3025}.camera-controls button:hover{background:#fff9e9}
