/* The title typeface is unchanged. Nunito replaces small UI lettering. */
/* Keep the original saturated gold on game tabs and staff trim. */
.game .inspector .crew-file-header>span{background:#f3c553;border-color:#d3aa56;color:#314550}
.game .staff-bar{border-top-color:#d3aa56;box-shadow:inset 0 1px #f3c553}
.game .staff-bar .staff-card.selected{border-top-color:#f3c553}
.title-sheet #game-title>span{display:block;white-space:nowrap}
.title-sheet #game-title>span:last-child{font-size:.73em;line-height:1.1;margin-top:.1em}
@font-face{font-family:PaperSerif;src:url('./assets/fonts/SourceSerif4.ttf') format('truetype');font-weight:200 900;font-display:swap}
:root{font-size:16px}body,button,input,select{font-weight:550}button,input,select{font-size:16px}
button:focus-visible{outline:3px solid #f1c766;outline-offset:3px}
.game{grid-template-columns:minmax(380px,1fr) 340px;grid-template-rows:auto minmax(0,1fr)}
.topbar{min-height:78px;height:auto;flex-wrap:wrap;gap:8px 12px;padding:9px 15px}.brand{font-weight:400}.brand small{display:none}.day-label{font-size:14px;max-width:170px;white-space:normal;padding:6px 9px;line-height:1.25}.inventory{margin-left:auto}.inventory-label{font-size:12px;width:35px;letter-spacing:0}.inventory-line .stock{min-width:43px;height:27px}.inventory-line .stock strong{font-size:15px}.wallet strong{font-size:23px}.time-controls button,.utility-controls .icon-button{min-width:31px;height:34px;font-size:14px}.management-button{font-size:14px;padding:6px 9px;min-height:34px}.utility-controls .demo-button{font-size:14px;min-height:34px}
/* The closing-cash goal belongs to the top banner, never over the street. */
.phase-strip{position:relative;display:grid;grid-template-columns:minmax(115px,1fr) minmax(280px,2.5fr) auto;gap:7px 15px;padding:9px 17px;min-height:120px;align-items:center;background:#344b5b;border-bottom:3px solid #b79a5a;overflow:visible;z-index:5}
.phase-icon{display:none}.phase-info{grid-column:1;grid-row:1;min-width:0;align-self:center}.phase-info strong{font-size:18px;line-height:1.2}.phase-info>span{font-size:14px;line-height:1.35;color:#d2ded9;max-width:190px}.phase-action{grid-column:3;grid-row:2;font-size:14px;min-height:36px;padding:8px 12px}.shift-clock{grid-column:3;grid-row:1;justify-self:stretch;min-width:90px;background:#e6eadb;padding:7px 10px}.shift-clock strong{font-size:20px}.shift-clock small{font-size:12px;letter-spacing:0}.phase-meter{grid-column:1;grid-row:2;width:auto;min-width:0}.phase-meter .meter-label{font-size:14px;color:#cfdfd7}.phase-meter[hidden]{display:none!important}
.phase-strip .cash-goal{position:relative;grid-column:2;grid-row:1/3;left:auto;right:auto;top:auto;bottom:auto;transform:none;width:100%;min-width:0;max-width:none;padding:7px 17px 6px;background:#263e4a;border:1px solid #c4aa65;border-top:3px solid #e3c079;border-radius:5px;box-shadow:0 3px 0 #20343d;pointer-events:auto;color:#f5efd9;overflow:visible}
.goal-heading{display:flex;align-items:center;gap:11px;min-height:43px;margin-bottom:0}.goal-heading>div{flex:1;white-space:nowrap}.goal-heading small{display:block;font-size:12px;line-height:1.1;margin-bottom:0;letter-spacing:1px;color:#ecdfb6}.goal-heading strong{font-family:OfficeTitle,sans-serif;font-weight:400;font-size:36px;line-height:1;color:#fff1b7;display:inline-block;font-variant-numeric:tabular-nums;min-width:1.3em}.goal-heading #goal-target{font-size:19px;color:#cedbd5}.goal-coin{display:flex;flex-shrink:0}.goal-coin svg{width:32px;height:32px}#goal-status{font-size:14px;color:#ecddaf;max-width:110px;text-align:right;line-height:1.25;font-weight:750}
.goal-track{position:relative;height:14px;background:#1b2e38;border:1px solid #8c9279;border-radius:3px;margin-top:5px;overflow:hidden}.goal-track>i{height:100%;display:block;background:linear-gradient(90deg,#bb8b37,#f3c957 72%,#fff0b6);box-shadow:0 0 15px #f7cf66;transition:width .5s cubic-bezier(.2,.7,.2,1);position:relative}.goal-track>i:after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 20%,#fffce666 48%,transparent 70%);transform:translateX(-120%)}.collecting .goal-track>i:after{animation:cash-shine .7s ease-out}.goal-tick{height:100%;width:1px;background:#f3e4b44d;position:absolute;top:0}.goal-caption{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#c6d3ca;margin-top:4px;padding-top:0;line-height:1.2}#goal-extra{color:#f7d479;font-weight:750}.goal-met #goal-status{color:#e9d780}.goal-met .goal-track>i{background:linear-gradient(90deg,#b59443,#e8c467,#fff0b3)}
#goal-particles{position:absolute;inset:0;overflow:visible;pointer-events:none}.goal-income{position:absolute;right:15px;top:9px;background:#efd076;color:#263e4a;padding:4px 10px;border-radius:4px;font-size:24px;box-shadow:0 2px 8px #102b3c55;z-index:3}.goal-spark{position:absolute;top:40px;display:block;width:18px;height:18px;background:none;border:0;box-shadow:none;border-radius:50%}.cash-goal.collecting{animation:cash-pulse .7s ease-out}.cash-goal.goal-celebrating{animation:cash-goal-arrival 1s ease-out}.goal-celebrating:after{content:'TARGET REACHED';position:absolute;top:-11px;left:50%;transform:translateX(-50%) rotate(-3deg);font:400 15px OfficeTitle,sans-serif;background:#e6c376;color:#2d4c50;padding:5px 11px;box-shadow:0 2px 0 #a48142;border:1px solid #ffe7a3;animation:cash-stamp .65s ease-out both;pointer-events:none}
@keyframes cash-shine{to{transform:translateX(120%)}}@keyframes cash-pulse{35%{box-shadow:0 0 19px #f7d78688;border-color:#fff0b7}}@keyframes cash-goal-arrival{35%{box-shadow:0 0 30px #f9df86aa;filter:brightness(1.12)}}@keyframes cash-stamp{0%{opacity:0;transform:translateX(-50%) rotate(-3deg) scale(1.8)}60%{opacity:1;transform:translateX(-50%) rotate(-3deg) scale(.95)}100%{opacity:1;transform:translateX(-50%) rotate(-3deg) scale(1)}}
.interaction-prompt{bottom:15px!important;font-size:14px!important;max-width:85%!important;white-space:normal}.scene-badge{font-size:14px}.play-footer{min-height:34px;font-size:13px}.play-footer>#replan-day{font-size:14px;padding-right:12px}.keyboard-hint{display:none}.staff-bar{padding:9px;gap:7px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.staff-card{min-height:70px}.staff-card .staff-text strong{font-size:16px}.staff-card .staff-status,.staff-card small{font-size:13px}.staff-card .staff-key{font-size:12px}
/* A real header in the crew panel; only the panel contents scroll. */
.inspector{padding:14px;background:#e5edeb;border:7px solid #a38b67;border-top-width:7px;overflow:auto;scrollbar-gutter:stable}.inspector::before{display:none}.inspector-tab,.robot-inspector>.inspector-tab{position:static!important;display:block;width:100%;padding:9px 12px;margin:0 0 13px;background:#a48b63;color:#fff6dc;font-size:16px;letter-spacing:.3px;border-radius:2px;order:-1!important}.employee-header{gap:12px}.employee-header .eyebrow{font-size:14px;letter-spacing:0;color:#506b75}.employee-id{display:none}.employment{font-size:15px;color:#496771}.skills{gap:8px}.skill span,.skill small{font-size:14px}.skill strong{font-size:23px}.panel-heading h2{font-size:20px}.panel-heading .subtle{display:none}.station-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.station-actions button{min-height:68px;height:auto;padding:8px 5px}.station-actions button span{font-size:14px!important;line-height:1.2}.dispatch-context{padding:12px}.dispatch-heading{font-size:16px}.dispatch-options .dish-recipe-choice{min-width:110px;min-height:86px;padding:10px 8px}.dispatch-choice>span,.dispatch-options .dish-recipe-choice>span{font-size:15px}.dispatch-choice small,.dispatch-options .dish-recipe-choice small,.dispatch-choice .dish-mini-price{font-size:14px}.dispatch-choice .seat-tag{font-size:12px}.dispatch-empty,.dispatch-context p,#dispatch-note,.task-status{font-size:14px!important;line-height:1.45;color:#4b6873}.task-status:empty,#dispatch-note:empty{display:none}.inspector-note{display:none}.coffee-button{min-height:40px}.employee-header h1{margin:4px 0}.rule,.rule select,.rule input,.rule button{font-size:14px}.rule select{min-height:34px}.empty-crew p,.empty-crew small{font-size:16px;line-height:1.45;color:#506b75}.empty-crew .eyebrow{display:none}.empty-crew{padding-top:10px}.empty-crew h2{font-size:30px}.empty-crew .primary{font-size:16px}
/* Paper panels have one stable outer frame, no fake rings or clipped stitching. */
dialog:not(.title-screen){max-height:94dvh;padding:22px;font-size:16px;scrollbar-gutter:stable}dialog:not(.title-screen)::after,.management-paper::before,.shop-columns::after{display:none!important}dialog p{font-size:16px;line-height:1.5}dialog h3{font-size:18px}.dialog-close{position:sticky!important;float:right;top:0;margin:-10px -9px -28px 0;width:34px;height:34px;z-index:8;background:#eef0e4}.eyebrow{font-size:14px;letter-spacing:.5px}.management-dialog{width:min(1240px,96vw)!important;padding:18px!important}.management-paper{padding:24px}.management-heading h2{font-size:34px;margin-top:0}.management-heading p{font-size:15px}.management-heading p:empty{display:none}.management-total small{font-size:14px;letter-spacing:0}.management-ribbon strong,.management-ribbon>span{font-size:15px;color:#4a6973}.management-ribbon{align-items:center}.menu-book-body{grid-template-columns:minmax(0,1fr) 230px}.recipe-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.recipe-card{padding:16px}.recipe-card h3{font-size:24px;line-height:1.15;margin:6px 0 12px}.recipe-card-top{min-height:65px}.recipe-path{font-size:14px;color:#5e797d;line-height:1.3}.recipe-ingredients{flex-wrap:wrap}.recipe-ingredients .ingredient-symbol{min-width:64px;background:transparent;border:0;padding:3px;grid-template-columns:30px auto;gap:3px}.ingredient-symbol small{font-size:14px;color:#4c6e73;white-space:normal}.ingredient-symbol b{font-size:14px}.ingredient-plus{font-size:16px}.dish-economics{border-top:1px solid #c2cdbf;gap:7px;padding:12px 0}.dish-economics small{font-size:12px;line-height:1.3;color:#536e75}.dish-economics strong{font-size:23px}.dish-economics>span{font-size:16px}.menu-check{font-size:16px;padding:10px;min-height:44px}.menu-check input{width:19px;height:19px}.menu-check small{display:none}.margin-explainer{font-size:14px!important;color:#5c7779}.menu-plan{padding:17px}.menu-plan .eyebrow{display:none}.menu-plan h3{font-size:23px}.menu-selected-dish{font-size:15px}.menu-projection>div{font-size:15px;line-height:1.3}.menu-projection .projection-total{font-size:15px}.projection-total small{font-size:14px}.menu-plan p:empty{display:none}.menu-plan p{font-size:14px!important}.menu-plan button{font-size:15px;min-height:42px;margin-top:10px}.menu-plan .quiet-button{font-size:14px}
.candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.candidate-card{padding:16px}.candidate-heading{gap:11px}.candidate-heading h3{font-size:26px}.candidate-heading>div:nth-child(2){min-width:0}.candidate-heading .recipe-role{font-size:14px;letter-spacing:0;text-transform:none;color:#4e7079}.candidate-wage strong{font-size:26px}.candidate-wage small{font-size:13px}.candidate-skill{font-size:15px}.candidate-skill>span{width:99px}.candidate-skill>i{height:6px}.candidate-card button{font-size:16px;min-height:42px}.candidate-perk{font-size:14px!important;color:#3f7065;line-height:1.4!important;margin:12px 0 0!important}.crew-section>h3{font-size:16px;letter-spacing:0}.crew-starter{padding:15px}.crew-starter strong{font-size:17px}.crew-starter p{font-size:15px;margin:5px 0 0}.crew-starter button{font-size:16px;min-width:0!important;white-space:normal}.crew-budget p,.crew-budget button,.crew-robots{font-size:15px!important}.crew-budget{gap:14px}.recruitment{border-top:1px solid #a9bcb4}
.shop-dialog{width:min(1130px,96vw);max-width:1130px;overflow:auto;background:#f0f0e4!important;border:8px solid #aa8d65!important}.shop-header h2{font-size:33px}.shop-header .shop-wallet{font-size:25px;color:#7f622c}.shop-header{margin-bottom:15px}.planning-links{padding:9px 0;gap:10px;background:transparent}.planning-links button{font-size:15px;padding:8px 13px}.shop-forecast{display:flex;align-items:center;gap:13px;padding:13px 17px;margin:14px 0 23px;border:1px solid #bbc4aa;background:#e3e8d7;color:#3a5b65}.shop-forecast>span:last-child{font-size:15px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.shop-forecast strong{font-size:23px}.shop-columns{gap:27px;grid-template-columns:minmax(270px,1fr) minmax(360px,1.2fr)}.shop-columns h3{font-size:19px}.equipment-shop{padding-right:24px;border-right:1px solid #b9c5b8}.equipment-shop .shop-items{max-height:none!important;overflow:visible;padding-right:0}.equipment-shop .shop-item{padding:14px;grid-template-columns:34px 1fr;gap:11px}.equipment-shop .shop-item strong{font-size:17px}.equipment-shop .shop-item p{font-size:14px;line-height:1.45}.equipment-shop .shop-item button{font-size:16px;min-height:38px}.shop-item small{font-size:14px}.shop-section-note{font-size:14px!important;color:#566f75;margin-bottom:13px}.shop-section-note:empty{display:none}.ingredient-row{padding:14px 10px;grid-template-columns:32px minmax(100px,1fr) auto;gap:12px}.ingredient-details strong{font-size:17px}.ingredient-details small{font-size:14px!important;color:#547076!important;line-height:1.35}.ingredient-stepper button{width:32px;height:36px;font-size:21px}.ingredient-stepper input{width:44px;height:36px;font-size:17px}.cart-ledger>div{font-size:16px}.cart-grand-total strong{font-size:27px}.cart-ledger .cart-grand-total{font-size:18px}.ingredient-shop .primary{font-size:17px;min-height:45px}.ingredient-policy{font-size:14px;color:#5c7578;padding:10px 12px}.cart-message{font-size:15px!important}.shop-delivery{font-size:14px}.purchase-stamp{font-size:22px}
/* A short local newspaper, separate from game instructions and shopping forecasts. */
dialog.newspaper{width:min(680px,94vw);max-width:680px;padding:22px!important;border:0!important;border-radius:1px;background:#d8d5c7!important;color:#272b24;overflow:auto;box-shadow:0 15px 45px #172a3f66!important}.news-paper{padding:25px 28px 20px;background:#f5f0e2;color:#252a23}.paper-masthead{font-family:PaperSerif,Georgia,serif;font-size:42px;font-weight:750;letter-spacing:-2px;line-height:1.1;text-align:center;border:0;padding:0 0 16px}.paper-edition{display:flex;justify-content:space-between;gap:12px;border-top:3px solid #383f31;border-bottom:1px solid #62694f;font-size:12px;padding:8px 0;text-transform:uppercase;color:#394532}.paper-kicker{font-size:13px;letter-spacing:1.2px;margin-top:19px;color:#3d4736}.newspaper #news-headline{font-family:PaperSerif,Georgia,serif!important;font-weight:700;font-size:34px!important;line-height:1.08;color:#272c23;letter-spacing:-.8px;margin:9px 0 17px}.newspaper figure{margin:0}.newspaper .news-illustration{height:auto;min-height:0;border:0;background:#e7e5d6;display:block;overflow:hidden}.news-illustration img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:contain;mix-blend-mode:multiply}.newspaper figcaption{font-size:12px;line-height:1.3;color:#56604c;margin-top:7px}.newspaper #news-body{font-family:PaperSerif,Georgia,serif;font-size:19px;line-height:1.45;color:#2b3027;font-weight:400;margin:18px 0}.news-byline{border-top:1px solid #a6aa92;padding-top:10px;font-size:12px;text-transform:uppercase;color:#46533c}.news-actions{display:flex;justify-content:space-between;gap:15px;margin:15px 0 0}.news-actions button{font-size:15px;min-height:42px;padding:10px 16px}.news-actions .primary{width:auto;margin:0;background:#4e6e70!important}.news-actions .quiet-button{margin:0;background:#e7e6d8;color:#465f60}
/* Reveal a chapter in three distinct groups. */
.unlock-dialog{width:min(900px,96vw)!important;max-width:900px!important;max-height:94dvh;padding:0!important;overflow:auto}.unlock-content{padding:28px}.unlock-steps{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.unlock-steps span{font-size:15px;color:#a1b9b4;padding:8px 13px;border:1px solid #728a7b;border-radius:4px}.unlock-steps .current{color:#fce6a5;background:#6f603b;border-color:#d7b869}.unlock-steps .complete{color:#d9dcb7}.unlock-content h2{font-family:OfficeTitle,sans-serif;font-size:38px;margin:23px 0 8px}.unlock-content>p{font-size:15px;color:#cfdbd0}.unlock-cards{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:19px;margin:25px 0}.unlock-card{padding:23px 16px;min-height:250px}.unlock-card h3{font-size:27px;line-height:1.12;margin:10px 0 16px;overflow-wrap:normal}.unlock-card small{font-size:14px;letter-spacing:0;color:#806536}.unlock-card p{font-size:15px;line-height:1.45;color:#4e6867}.unlock-art{height:100px;margin-bottom:16px}.unlock-art svg{max-height:100px;max-width:100px}.unlock-access{font-size:13px;letter-spacing:0;padding-top:13px;color:#557363}.unlock-footer{padding:13px 0;background:#233942}.unlock-footer .primary{font-size:17px;min-height:48px;min-width:0;padding:12px 24px}.unlock-policy{font-size:14px!important;color:#c4d1c3!important;line-height:1.4!important}.unlock-empty{font-size:18px;color:#e6e9d9;text-align:center;padding:35px;grid-column:1/-1}
.help-steps p{font-size:16px;line-height:1.5}.help-tip,.help-small{font-size:14px!important;line-height:1.5}.result-ledger>div,.result-leftovers>div,.result-leftovers p,.shift-book .help-small{font-size:14px!important}.result-ledger strong{font-size:20px}.result-ledger .sales-row strong{font-size:23px}.result-ledger small,.result-ledger .investment-row small{font-size:13px}.result-target>span,.profit-slip>span,.result-leftovers>strong{font-size:14px}.result-stats small{font-size:14px}.book-actions button{font-size:17px;min-height:43px}.audio-dialog p,.audio-dialog label,.audio-slider,.audio-slider output,.demo-note,.demo-status,.demo-chapters strong,.demo-chapters small,.demo-cash-form>label{font-size:15px!important}.audio-slider{grid-template-columns:24px 60px minmax(70px,1fr) 42px}.demo-chapters button{padding:14px 8px}.demo-dialog{max-width:590px}
@media(min-width:1600px){.recipe-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.management-dialog{width:min(1450px,96vw)!important;max-width:1450px!important}.game{grid-template-columns:minmax(380px,1fr) 370px}}
@media(max-width:1180px){.topbar{min-height:95px}.brand{font-size:18px}.day-label{max-width:135px}.phase-strip{grid-template-columns:minmax(105px,1fr) minmax(265px,2.5fr) auto;padding:10px;gap:6px 10px}.phase-info strong{font-size:16px}.phase-info>span{font-size:13px}.phase-strip .cash-goal{padding:9px 12px}.goal-heading strong{font-size:31px}.goal-heading #goal-target{font-size:17px}#goal-status{font-size:13px;max-width:85px}.goal-caption{font-size:11px}.game{grid-template-columns:minmax(380px,1fr) 320px}.candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-book-body{grid-template-columns:minmax(0,1fr) 210px}.management-total{min-width:110px}.staff-card .staff-status{font-size:12px}.crew-starter{flex-wrap:wrap}}
@media(max-width:980px){.game{grid-template-columns:minmax(370px,1fr) 290px}.phase-strip{grid-template-columns:minmax(140px,1fr) auto;gap:8px}.phase-info{grid-column:1;grid-row:1}.phase-info strong{font-size:16px}.phase-info>span{display:none}.phase-strip .cash-goal{grid-column:1/-1;grid-row:2}.shift-clock{grid-column:2;grid-row:1;display:flex;align-items:center;gap:6px;padding:4px 8px;min-width:0}.shift-clock small{font-size:12px}.shift-clock strong{font-size:17px}.phase-action{grid-column:1/-1;grid-row:3;justify-self:stretch}.phase-action:empty{display:none}.phase-strip{min-height:0}.menu-book-body{display:block}.menu-plan{position:static;margin-top:20px}.recipe-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-columns{grid-template-columns:1fr}.equipment-shop{border-right:0;border-bottom:1px solid #b5c3b4;padding:0 0 24px}.shop-columns{display:flex;flex-direction:column-reverse}.inspector{padding:11px}.station-actions button span{font-size:13px!important}.dispatch-options .dish-recipe-choice{min-width:95px}.management-ribbon{align-items:flex-start}.staff-card .avatar{width:32px}.staff-card .staff-key{display:none}}
@media(max-width:650px){.game{display:flex;min-height:100dvh;height:auto;overflow:visible}.topbar{padding:9px;gap:8px}.brand{font-size:18px}.inventory{order:4;flex-basis:100%;display:flex;flex-direction:row;flex-wrap:wrap;margin-left:0;gap:8px}.inventory-line .stock{min-width:39px;height:27px}.inventory-line .stock strong{font-size:14px}.inventory-label{font-size:12px;width:34px}.wallet strong{font-size:21px}.utility-controls{margin-left:auto}.management-button>span:last-child{display:inline}.management-button{font-size:14px;padding:5px 8px}.time-controls{margin-left:auto}.play-area{min-height:650px}.phase-strip{padding:10px}.phase-strip .cash-goal{max-width:none;padding:9px 13px}.goal-heading strong{font-size:34px}.goal-heading small{font-size:13px}.goal-caption{font-size:12px}#goal-status{font-size:14px;max-width:100px}.goal-heading #goal-target{font-size:18px}.goal-track{height:16px}.world-shell{min-height:350px}.inspector{overflow:visible;border-width:7px;padding:16px}.staff-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.staff-card{min-height:66px}.staff-card .avatar{display:none}.staff-card .staff-status{font-size:13px}.management-dialog{padding:11px!important}.management-paper{padding:17px}.management-heading h2{font-size:29px}.management-total strong{font-size:29px}.management-total small{font-size:12px}.management-total{min-width:75px}.recipe-cards{grid-template-columns:1fr}.recipe-card{padding:16px}.recipe-card-top{display:flex}.recipe-path{font-size:14px;min-height:0}.recipe-card h3{font-size:25px}.ingredient-symbol small{font-size:14px}.recipe-ingredients .ingredient-symbol{min-width:65px}.dish-economics small{font-size:13px}.candidate-grid{grid-template-columns:1fr}.crew-budget{display:block}.crew-budget button{margin-top:10px}.crew-starter{display:block}.crew-starter>.primary{width:100%;margin-top:12px}.shop-dialog{width:95vw!important;padding:15px!important}.shop-header h2{font-size:27px}.ingredient-row{grid-template-columns:29px minmax(80px,1fr) auto;gap:8px;padding:12px 7px}.ingredient-stepper button{width:30px}.ingredient-stepper input{width:39px}.ingredient-details strong{font-size:16px}.ingredient-details small{font-size:14px!important}.shop-forecast>span:last-child{gap:5px;display:block}.shop-forecast strong{display:block;font-size:23px}.shop-columns h3{font-size:18px}.news-paper{padding:21px 19px}.paper-masthead{font-size:32px;letter-spacing:-1.5px}.paper-edition{font-size:10px;gap:7px}.newspaper #news-headline{font-size:29px!important}.newspaper #news-body{font-size:18px}.news-illustration img{height:auto}.newspaper figcaption,.news-byline{font-size:12px}.news-actions button{font-size:14px;padding:8px 10px}.unlock-content{padding:21px 14px}.unlock-steps{gap:6px}.unlock-steps span{font-size:13px;padding:7px 9px}.unlock-cards{grid-template-columns:1fr;gap:16px}.unlock-card{min-height:0;padding:20px}.unlock-content h2{font-size:31px}.unlock-footer .primary{font-size:16px;width:100%}.unlock-card h3{font-size:27px}.unlock-policy{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.cash-goal,.cash-goal *, .unlock-dialog *{animation:none!important;transition:none!important}.goal-celebrating:after{animation:none}.unlock-card::after{display:none}}

@media(max-width:980px){.phase-meter{grid-column:1/-1;grid-row:3}.phase-action{grid-row:4}}

.play-footer #event-line{font-size:13px}.phase-meter:not([hidden]){display:block!important}

/* Readable robot routines: the full condition gets a row of its own. */
.rule-card{padding:10px}.rule-card select,.rule-card input[type=number],.rule-card button{font-size:14px}.rule-card select,.rule-card input[type=number]{height:36px;padding:6px;line-height:1.3}.rule-top{height:auto;min-height:28px;margin-bottom:9px;gap:6px}.rule-priority,.rule-status{font-size:14px}.rule-priority input{width:16px;height:16px}.rule-tools{gap:4px}.rule-tools button{height:28px;width:28px}.rule-tools button svg{width:16px;height:16px}.condition-fields{grid-template-columns:20px minmax(65px,1fr) minmax(60px,1fr);gap:7px;margin-bottom:9px}.condition-fields select[data-field=metric]{grid-column:1/-1;grid-row:1}.condition-fields .condition-icon{grid-column:1;grid-row:2}.condition-fields select[data-field=operator]{grid-column:2;grid-row:2}.condition-fields input{grid-column:3;grid-row:2}.action-fields{grid-template-columns:20px minmax(0,1fr);gap:7px}.rule-status{white-space:nowrap}.empty-rules{font-size:14px}
/* Plain paper accounts, without metal binder decorations. */
.book-spread{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.book-binding,.sheet-hole-row{display:none!important}.book-page{margin:0}.page-tab,.ledger-heading small{font-size:12px;letter-spacing:.3px}.ledger-heading{font-size:15px}

/* Restore the original leather-covered folios around the fixed sheet layout.
   Only the paper body scrolls, so the inset stitching never crosses content. */
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog){
  padding:18px!important;border:2px solid #725334!important;border-radius:13px!important;
  background-color:#a27f56!important;
  background-image:radial-gradient(ellipse at 25% 30%,#f4d7a912 .5px,transparent .9px),radial-gradient(ellipse at 70% 65%,#4d362116 .5px,transparent 1px)!important;
  background-size:4px 3px,5px 4px!important;
  box-shadow:0 14px 40px #172c3d77,inset 0 1px #d0b28c!important;
}
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)::before{
  content:'';display:block;position:absolute;inset:6px;
  border:1px dashed #c4a579;border-radius:8px;pointer-events:none;
}
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-header,
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-body,
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-footer{
  position:relative;background:#f0f1e7;z-index:1;
}
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-header{
  padding:16px 20px;border-radius:4px 4px 0 0;border-bottom:3px double #afc1c1;
}
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-body{padding:18px 20px}
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-footer{
  padding:14px 20px;background:#e8eee5;border-radius:0 0 4px 4px;
}
dialog.sheet-dialog.shop-dialog>.sheet-header,
dialog.sheet-dialog.shop-dialog>.sheet-body{background:#eef0e7}
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-header>.dialog-close{
  width:36px;height:36px;justify-self:end;padding:8px;
  background:#dbe5e5;border:1px solid #b2c4c9;border-bottom:2px solid #8ba2ac;
  border-radius:2px;color:#3d6073;
}
dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-header>.dialog-close:hover{
  background:#f5cd6c;color:#344b5b;border-color:#b79960;
}
@media(max-width:649px){
  dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog){padding:10px!important;border-radius:10px!important}
  dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)::before{inset:4px;border-radius:6px}
  dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-header{padding:12px;gap:10px;grid-template-columns:minmax(0,1fr) 36px}
  dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-body{padding:14px 12px}
  dialog.sheet-dialog:not(.newspaper):not(.unlock-dialog)>.sheet-footer{padding:12px}
}
