:root { color-scheme: light; font-family: 'Trebuchet MS', Arial, sans-serif; color: #26352e; background: #fff6df; }
* { box-sizing: border-box; }
body { margin: 0; }
button,a { -webkit-tap-highlight-color: transparent; }
button { border: 1.5px solid #27382e; border-radius: 6px; color: #27382e; cursor: pointer; font: 700 13px 'Trebuchet MS', Arial, sans-serif; }
button:focus-visible,a:focus-visible { outline: 3px solid #008ab8; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .45; }
button:hover:not(:disabled) { filter: brightness(.96); }
.masthead { align-items: center; background: #fff6df; border-bottom: 2px solid #28382e; display: flex; gap: 22px; justify-content: space-between; min-height: 76px; padding: 12px 26px; }
.brand { align-items: center; color: inherit; display: flex; font-size: 18px; font-weight: 900; gap: 12px; letter-spacing: .8px; text-decoration: none; }
.brand img { height: 47px; width: 47px; }
.brand small { display: block; font-size: 10px; letter-spacing: 1.7px; margin-top: 4px; }
.edition { font-size: 10px; letter-spacing: 2px; }
.head-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }
.head-actions button { background: transparent; font-size: 18px; padding: 8px 13px; }
.head-actions span { font-size: 11px; margin-left: 4px; }
.scene { position: relative; aspect-ratio: 1672/941; background: #86ad52; isolation: isolate; overflow: hidden; touch-action: none; width: 100%; }
#world { display: block; height: 100%; width: 100%; }
.loading { position: absolute; inset: 0; align-items: center; background: #fff6df; display: flex; font-size: 20px; justify-content: center; z-index: 20; }
.loading[hidden] { display: none; }
.mission { position: absolute; left: 22px; top: 20px; align-items: center; background: #fff6dff5; border: 2px solid #28382e; border-radius: 7px; box-shadow: 3px 3px #28382e35; display: flex; font-size: 15px; font-weight: 700; gap: 12px; padding: 11px 16px; pointer-events: none; }
.star { color: #c1820a; font-size: 31px; line-height: 1; }
.mission small { display: block; font-size: 10px; font-weight: 400; margin-top: 4px; }
.hotspot { position: absolute; background: #fff7de; border: 2px solid #29372f; border-radius: 50%; box-shadow: 2px 3px #25332e55; display: grid; height: 38px; padding: 8px; place-items: center; transform: translate(-50%,-50%); width: 38px; }
.hotspot svg,.tools svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 23px; }
.hotspot.bakery { left: 38.3%; top: 44%; }
.hotspot.bridge { left: 82.6%; top: 34%; }
.bridge-label { position: absolute; left: 82.6%; top: 24%; background: #fff6dff5; border: 1.5px solid #27382e; border-radius: 5px; font-size: 13px; font-weight: 700; padding: 10px 13px; pointer-events: none; text-align: center; transform: translate(-50%,-50%); white-space: nowrap; }
.bridge-label small { color: #735a31; display: block; font-size: 10px; font-weight: 400; margin-top: 4px; }
.tools { position: absolute; bottom: 22px; left: 50%; background: #fff6df; border: 2px solid #27382e; border-radius: 12px; box-shadow: 3px 4px #28382e50; display: flex; gap: 5px; padding: 6px; transform: translateX(-50%); }
.tools button { align-items: center; background: transparent; border-color: transparent; display: flex; flex-direction: column; font-size: 11px; gap: 6px; min-width: 85px; padding: 9px 14px; }
.tools button.primary { background: #ffcf45; border-color: #27382e; min-width: 125px; }
.tools button[aria-pressed=true] { background: #f8df9b; border-color: #27382e; }
.zoom { position: absolute; right: 18px; top: 20px; display: flex; flex-direction: column; gap: 5px; }
.zoom button { background: #fff6df; font-size: 21px; height: 36px; width: 36px; }
.concept { position: absolute; bottom: 14px; right: 14px; background: #fff6dfe5; border-radius: 3px; font-size: 8px; letter-spacing: .7px; padding: 5px 7px; pointer-events: none; }
.toast { position: absolute; left: 50%; top: 20px; background: #263a30; border: 1px solid #f8ebca; border-radius: 5px; color: #fff7dd; font-size: 13px; max-width: 450px; padding: 12px 18px; text-align: center; transform: translateX(-50%); z-index: 5; }
.construction { align-items: center; border-top: 2px solid #29372e; display: grid; gap: 40px; grid-template-columns: 1fr 320px; padding: 28px 36px; }
.kicker { color: #7d6a44; font-size: 9px; font-weight: 700; letter-spacing: 2px; }
h2 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; margin: 8px 0; }
p { font-size: 13px; line-height: 1.6; margin: 0; }
.progress-label { display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; }
progress { appearance: none; border: 1.5px solid #29372e; border-radius: 8px; display: block; height: 13px; margin: 10px 0 13px; overflow: hidden; width: 100%; }
progress::-webkit-progress-bar { background: #e9dfc4; }
progress::-webkit-progress-value { background: #90b556; }
progress::-moz-progress-bar { background: #90b556; }
#construction-pause { background: #fffaf0; font-size: 11px; padding: 8px 12px; }
footer { align-items: center; border-top: 1px solid #d6ceb7; color: #7a7968; display: flex; flex-wrap: wrap; font-size: 10px; gap: 16px; justify-content: space-between; padding: 16px 36px; }
.live-dot { background: #739b42; border-radius: 50%; display: inline-block; height: 6px; margin-right: 6px; width: 6px; }
dialog { background: #fff6df; border: 2px solid #27382e; border-radius: 10px; box-shadow: 5px 6px #263a3030; color: #27382e; max-width: min(440px,90vw); padding: 34px; }
dialog::backdrop { background: #18382a30; }
dialog h1 { font-family: Georgia, serif; font-size: 29px; font-weight: 400; margin: 13px 0; }
dialog p { font-size: 14px; }
#close-dialog { position: absolute; right: 12px; top: 8px; background: none; border: none; font-size: 25px; }
#dialog-action { background: #ffcf45; margin-top: 24px; padding: 12px 17px; }

@media (max-width:700px) {
 .masthead { gap: 8px; min-height: 62px; padding: 8px 12px; }
 .brand { font-size: 13px; gap: 7px; }
 .brand img { height: 37px; width: 37px; }
 .brand small { font-size: 8px; }
 .edition,.head-actions span { display: none; }
 .head-actions button { padding: 6px 10px; }
 .mission { left: 10px; top: 10px; font-size: 11px; gap: 6px; padding: 8px; }
 .mission small,.star { display: none; }
 .tools { bottom: 12px; }
 .tools button { font-size: 10px; min-width: 64px; padding: 6px 9px; }
 .tools button.primary { min-width: 96px; }
 .construction { gap: 20px; grid-template-columns: 1fr; padding: 22px; }
 h2 { font-size: 23px; }
 .bridge-label { font-size: 10px; padding: 7px; }
 .bridge-label small { font-size: 8px; }
 .zoom { right: 10px; top: 10px; }
 .concept { display: none; }
 footer { font-size: 9px; padding: 14px 22px; }
}

.episode-panel{padding:20px 36px;border-top:2px solid #29372e;background:#f7edcf}.ledger{display:flex;gap:36px;flex-wrap:wrap;font-size:12px;margin-bottom:18px}.ledger strong{font-size:18px;margin:0 5px}.project-actions{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.project-actions button{background:#ffe5a0;padding:13px 10px;text-align:left}.project-actions button small{display:block;font-weight:400;font-size:10px;margin-top:7px;line-height:1.4}.project-actions button:disabled{opacity:.65}.head-actions #sound{font-size:11px}.head-actions #speed{font-size:13px}@media(max-width:700px){.episode-panel{padding:16px}.project-actions{grid-template-columns:repeat(2,1fr)}.ledger{gap:14px}.head-actions{gap:4px}.head-actions button{padding:6px}.brand small{letter-spacing:.5px}}

#restart{background:transparent;font-size:11px;padding:8px 12px;margin-top:8px}

.supply-ledger{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;border-top:1px solid #d4c59e;padding:16px 0}.supply-ledger span,.supply-ledger strong,.supply-ledger small{display:block}.supply-ledger span{font-size:11px}.supply-ledger strong{font-size:19px;margin:6px 0}.supply-ledger small{font-size:10px;color:#705e38;line-height:1.5}.supply-actions{display:flex;gap:10px;flex-wrap:wrap}.supply-actions button{background:#e4eacb;padding:10px 14px;text-align:left}.supply-actions small{display:block;font-size:10px;font-weight:400;margin-top:5px}#delivery-status{font-size:12px;margin:12px 0 20px}.project-actions{grid-template-columns:repeat(4,1fr)}@media(max-width:700px){.supply-ledger{grid-template-columns:repeat(2,1fr)}.project-actions{grid-template-columns:repeat(2,1fr)}}

.mission #scene-stock{font-size:12px;font-weight:700;margin-top:7px;display:block}

/* All neighbourhood decisions live in one scrollable strip on the scene. */
.scene{touch-action:auto}
#world{touch-action:none}
.tools{width:min(850px,calc(100% - 120px));gap:3px;padding:5px;z-index:5}
.action-strip{display:flex;align-items:stretch;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#ac9462 transparent;touch-action:pan-x;min-width:0;flex:1;padding:1px 0 4px;scroll-padding-inline:8px}
.tools .supply-actions,.tools .project-actions{display:contents}
.tools .action-strip button{flex:0 0 auto;justify-content:center;min-width:110px;max-width:175px;min-height:65px;padding:7px 10px;gap:3px;font-size:11px;line-height:1.25;text-align:center}
.tools .action-strip button svg{width:19px;height:19px;flex:none}
.tools .action-strip small{font-size:9px;line-height:1.3;font-weight:400;max-width:153px;margin:0}
.tools .supply-actions button{background:#e4eacb;border-color:#bac7a0}
.tools .project-actions button{background:#ffe5a0;border-color:#d8b777}
.tools button:disabled{opacity:.55;cursor:default}
.tools .action-scroll{min-width:27px;max-width:27px;padding:0;justify-content:center;font-size:28px;flex:none;background:#f1e2be;border:0}
.tools #inspect,.tools #talk{min-width:64px}
.tools #construction-pause,.tools #restart{max-width:120px;background:#fffaf0;font-size:10px}
.action-strip:focus-visible,.tools button:focus-visible{outline:3px solid #176a87;outline-offset:-3px}
@media(max-width:700px){.tools{width:calc(100% - 28px);bottom:24px}.tools .action-strip button{min-height:57px;min-width:105px;padding:5px 8px}.tools #inspect,.tools #talk{min-width:54px}.tools .action-scroll{min-width:23px;max-width:23px}.zoom{bottom:100px}}

/* Fullscreen is a fitted game layout, rather than a taller scrolling page. */
html:is(:fullscreen,.lbg-player){height:100%;overflow:hidden;background:#fff6df}
html:is(:fullscreen,.lbg-player) body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
html:is(:fullscreen,.lbg-player) .masthead{min-height:48px;padding:5px 18px;flex:none}
html:is(:fullscreen,.lbg-player) .brand{font-size:14px;gap:8px}
html:is(:fullscreen,.lbg-player) .brand img{width:34px;height:34px}
html:is(:fullscreen,.lbg-player) .brand small{font-size:8px;margin-top:2px}
html:is(:fullscreen,.lbg-player) .head-actions button{padding:6px 10px}
html:is(:fullscreen,.lbg-player) main{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}
html:is(:fullscreen,.lbg-player) .scene-stage{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e6dec5}
html:is(:fullscreen,.lbg-player) .scene{flex:none;width:var(--fitted-scene-width,100%)}
html:is(:fullscreen,.lbg-player) .game-info{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr);background:#fff6df;border-top:2px solid #29372e;max-height:45dvh;overflow-y:auto}
html:is(:fullscreen,.lbg-player) .episode-panel{padding:10px 18px;border:0}
html:is(:fullscreen,.lbg-player) .ledger{gap:16px;margin-bottom:8px;font-size:11px}
html:is(:fullscreen,.lbg-player) .ledger strong{font-size:15px;margin:0 3px}
html:is(:fullscreen,.lbg-player) .supply-ledger{gap:12px;padding:8px 0}
html:is(:fullscreen,.lbg-player) .supply-ledger span{font-size:10px}
html:is(:fullscreen,.lbg-player) .supply-ledger strong{font-size:15px;margin:4px 0}
html:is(:fullscreen,.lbg-player) .supply-ledger small{font-size:9px;line-height:1.3}
html:is(:fullscreen,.lbg-player) #delivery-status{font-size:11px;line-height:1.4;margin:5px 0 0}
html:is(:fullscreen,.lbg-player) .construction{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:9px;padding:10px 18px;border:0;border-left:1px solid #d4c59e}
html:is(:fullscreen,.lbg-player) .construction h2{font-size:17px;margin:3px 0 5px}
html:is(:fullscreen,.lbg-player) .construction .kicker{font-size:8px}
html:is(:fullscreen,.lbg-player) #project-copy{font-size:11px;line-height:1.4}
html:is(:fullscreen,.lbg-player) progress{margin:5px 0 0;height:10px}
html:is(:fullscreen,.lbg-player) footer{grid-column:1/-1;font-size:9px;gap:8px;padding:5px 18px}
html:is(:fullscreen,.lbg-player) .toast{top:auto;bottom:112px;max-width:min(500px,calc(100% - 32px));width:max-content}
html:is(:fullscreen,.lbg-player) .review-controls{max-height:90px;overflow:auto;flex:none;font-size:10px}
/* Wide monitors have room for a readable information column beside the art. */
@media(min-width:1100px) and (min-aspect-ratio:4/3){
 html:is(:fullscreen,.lbg-player) main{grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr)}
 html:is(:fullscreen,.lbg-player) .game-info{display:flex;flex-direction:column;max-height:none;min-height:0;border-top:0;border-left:2px solid #29372e}
 html:is(:fullscreen,.lbg-player) .episode-panel{padding:14px}
 html:is(:fullscreen,.lbg-player) .ledger{flex-direction:column;gap:10px;margin-bottom:14px}
 html:is(:fullscreen,.lbg-player) .supply-ledger{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:14px 0}
 html:is(:fullscreen,.lbg-player) .supply-ledger>div:last-child{grid-column:1/-1}
 html:is(:fullscreen,.lbg-player) .supply-ledger strong{font-size:18px}
 html:is(:fullscreen,.lbg-player) .supply-ledger small{font-size:10px}
 html:is(:fullscreen,.lbg-player) #delivery-status{background:#e8e6c8;padding:10px;border-radius:5px;line-height:1.5}
 html:is(:fullscreen,.lbg-player) .construction{border-left:0;border-top:1px solid #d4c59e;padding:14px;gap:14px}
 html:is(:fullscreen,.lbg-player) footer{margin-top:auto;padding:10px 14px}
}
@media(max-width:900px){
 html:is(:fullscreen,.lbg-player) .game-info{grid-template-columns:minmax(0,1fr) minmax(200px,.7fr)}
 html:is(:fullscreen,.lbg-player) .episode-panel,html:is(:fullscreen,.lbg-player) .construction{padding:7px 10px}
 html:is(:fullscreen,.lbg-player) .supply-ledger{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 html:is(:fullscreen,.lbg-player) .supply-ledger small{display:none}
 html:is(:fullscreen,.lbg-player) .ledger{gap:7px;flex-wrap:wrap;margin-bottom:4px}
 html:is(:fullscreen,.lbg-player) footer{padding:4px 10px}
 html:is(:fullscreen,.lbg-player) .tools{bottom:8px}
 html:is(:fullscreen,.lbg-player) .toast{bottom:92px}
}

.ledger .square-fund{display:block;font-size:12px;flex-basis:100%}
.ledger .square-fund #balance{font-size:32px;font-weight:900;letter-spacing:-1px;line-height:1.1;margin:0 5px 0 8px;font-variant-numeric:tabular-nums}
.sales-ledger{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:1px solid #d4c59e;padding:12px 0 5px}
.sales-ledger span,.sales-ledger strong{display:block}
.sales-ledger span{font-size:11px}
.sales-ledger strong{font-size:22px;margin-top:4px;font-variant-numeric:tabular-nums}
.sales-note{display:block;font-size:9px;color:#705e38;margin:3px 0 12px}
.safety-line{display:flex;flex-wrap:wrap;gap:7px 18px;align-items:center;padding:9px 0;border-top:1px solid #d4c59e;font-size:12px}
.safety-line small{font-size:10px;color:#705e38}
html:is(:fullscreen,.lbg-player) .ledger .square-fund{flex-basis:auto}
html:is(:fullscreen,.lbg-player) .ledger .square-fund #balance{font-size:34px}
html:is(:fullscreen,.lbg-player) .sales-ledger{padding-top:9px}
html:is(:fullscreen,.lbg-player) .sales-ledger strong{font-size:22px}
@media(min-width:1100px) and (min-aspect-ratio:4/3){html:is(:fullscreen,.lbg-player) .ledger .square-fund #balance{display:block;font-size:42px;margin:5px 0 0}html:is(:fullscreen,.lbg-player) .safety-line{display:block}html:is(:fullscreen,.lbg-player) .safety-line small{display:block;margin-top:5px}}
@media(max-height:850px){html:is(:fullscreen,.lbg-player) .sales-ledger{padding:6px 0 2px}html:is(:fullscreen,.lbg-player) .sales-note{margin-bottom:5px}html:is(:fullscreen,.lbg-player) .supply-ledger{gap:8px;padding:8px 0}html:is(:fullscreen,.lbg-player) .ledger{margin-bottom:7px;gap:7px}html:is(:fullscreen,.lbg-player) .ledger .square-fund #balance{font-size:30px}}

.happiness-badge{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#253d31;padding:3px 8px;cursor:pointer;white-space:nowrap}
.happiness-badge>span:last-child{display:flex;flex-direction:column;align-items:flex-start}.happiness-badge small{font-size:10px;line-height:1.1}.happiness-badge strong{font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}
.happy-face{width:32px;height:32px;fill:#e8c85c;stroke:#263b2c;stroke-width:2;stroke-linecap:round}.happy-face path{fill:none}.happiness-badge[data-mood=high] .happy-face{fill:#83c967}.happiness-badge[data-mood=low] .happy-face{fill:#ef9d70}
.happiness-panel{border-top:1px solid #d4c59e;padding:12px 0;margin:0}.happiness-panel>div{display:flex;justify-content:space-between;gap:12px;font-size:13px}.happiness-panel>div span{font-size:11px;color:#6d673e}.happiness-panel meter{display:block;width:100%;height:17px;margin:6px 0}.happiness-panel p{font-size:12px;margin:4px 0}.happiness-panel small{font-size:10px;color:#705e38}.happiness-panel #earning-capacity{font-weight:800;font-size:15px}.happiness-panel #happiness-reasons{font-size:10px;color:#705e38}#dialog-copy{white-space:pre-line}
@media(max-width:800px){.masthead{flex-wrap:wrap}.masthead .edition{display:none}.happiness-badge{margin-left:auto}.head-actions{flex-wrap:wrap}.happiness-badge strong{font-size:20px}}
@media(max-height:850px){html:is(:fullscreen,.lbg-player) .happiness-panel{padding:5px 0}html:is(:fullscreen,.lbg-player) .happiness-panel meter{margin:2px 0}}
.resident-talk{font:bold 20px Georgia;letter-spacing:1px}.resident-talk[hidden]{display:none}

#operating-costs,#service-status{display:block;font-size:11px;line-height:1.5;margin:7px 0;color:#705e38}#service-status{font-weight:700;color:#704333}

.ledger .fund-net{display:block;flex-basis:100%;font-size:12px}.ledger .fund-net strong{font-size:22px;font-variant-numeric:tabular-nums}.ledger .fund-net small{display:block;font-size:10px;color:#705e38;margin-top:3px}html:is(:fullscreen,.lbg-player) .ledger .fund-net{flex-basis:auto}

/* Quiet, state-driven hints: no flashing or forced dialogs. */
.neighbour-hint{width:32px;height:32px;padding:3px;font-size:19px;z-index:3}
.hotspot.hint-new::after{content:'';position:absolute;right:-2px;top:-2px;width:9px;height:9px;border-radius:50%;background:#f5c400;border:1.5px solid #1a1a1a}
.hotspot.hint-urgent::after{background:#cc1622}
.hint-target{outline:3px solid #cc1622;outline-offset:-3px}

/* Retained scenery, bounded effects, native-resolution character overlay. */
.render-layer{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
#world{position:relative}

@media(max-width:700px){html.lbg-player .game-info{display:block}html.lbg-player .construction{border-left:0;border-top:1px solid #d4c59e}}

.game-timer{display:grid;flex:none;gap:2px;min-width:84px;text-align:center}
.game-timer small{font-size:10px}
.game-timer strong{font-size:19px;font-variant-numeric:tabular-nums;line-height:1.2}

/* Embedded city page only. Fullscreen continues using its existing rules. */
html.lbg-embedded:not(:fullscreen){height:auto;overflow:visible}
html.lbg-embedded:not(:fullscreen) body{display:block;height:auto;overflow:visible}
html.lbg-embedded:not(:fullscreen) main{display:block;min-height:0}
html.lbg-embedded:not(:fullscreen) .masthead{flex-wrap:wrap;gap:12px}
html.lbg-embedded:not(:fullscreen) .edition{display:none}
html.lbg-embedded:not(:fullscreen) .scene-stage{background:transparent;display:block;overflow:visible}
html.lbg-embedded:not(:fullscreen) .scene{width:100%}
html.lbg-embedded:not(:fullscreen) .mission{display:none}
html.lbg-embedded:not(:fullscreen) .game-info{border:0;display:block;max-height:none;overflow:visible}
html.lbg-embedded:not(:fullscreen) .embedded-status{align-items:center;background:#f7edcf;border-bottom:1px solid #d4c59e;display:grid;gap:12px;grid-template-columns:repeat(6,minmax(0,1fr));padding:14px 18px}
html.lbg-embedded:not(:fullscreen) .embedded-status .ledger{display:contents}
html.lbg-embedded:not(:fullscreen) .embedded-status > span,html.lbg-embedded:not(:fullscreen) .embedded-status .ledger > span{font-size:12px}
html.lbg-embedded:not(:fullscreen) .embedded-status strong{display:block;font-size:22px;font-variant-numeric:tabular-nums;line-height:1.2;margin:4px 0 0}
html.lbg-embedded:not(:fullscreen) .embedded-status #balance{font-size:30px;margin:3px 0}
html.lbg-embedded:not(:fullscreen) .embedded-status small{display:none}
html.lbg-embedded:not(:fullscreen) .embedded-status #happiness-button{background:transparent;border:0;justify-content:flex-start;padding:0}
html.lbg-embedded:not(:fullscreen) .embedded-status #happiness-button small{display:block}
html.lbg-embedded:not(:fullscreen) .tools{position:relative;bottom:auto;left:auto;background:#fff6df;border:0;border-bottom:1px solid #d4c59e;border-radius:0;box-shadow:none;margin:0;padding:10px 12px;transform:none;width:100%}
html.lbg-embedded:not(:fullscreen) .tools .action-strip button{font-size:12px;min-height:70px}
html.lbg-embedded:not(:fullscreen) .tools .action-strip small{font-size:10px}
html.lbg-embedded:not(:fullscreen) .episode-panel{border:0;display:grid;gap:16px;grid-template-columns:minmax(0,1fr);padding:18px}
html.lbg-embedded:not(:fullscreen) .embedded-ledger-group h3{font-size:13px;margin:0 0 8px}
html.lbg-embedded:not(:fullscreen) .supply-ledger,html.lbg-embedded:not(:fullscreen) .sales-ledger{border:0;display:grid;gap:14px;grid-template-columns:repeat(7,minmax(0,1fr));padding:0}
html.lbg-embedded:not(:fullscreen) .supply-ledger > div:last-child{grid-column:auto}
html.lbg-embedded:not(:fullscreen) .supply-ledger strong,html.lbg-embedded:not(:fullscreen) .sales-ledger strong{font-size:20px;margin:4px 0}
html.lbg-embedded:not(:fullscreen) .supply-ledger small{display:block;font-size:11px;line-height:1.35}
html.lbg-embedded:not(:fullscreen) .supply-ledger span,html.lbg-embedded:not(:fullscreen) .sales-ledger span{font-size:12px}
html.lbg-embedded:not(:fullscreen) .embedded-alerts{background:#eee7cf;border-radius:6px;display:grid;gap:8px 20px;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
html.lbg-embedded:not(:fullscreen) .embedded-alerts p,html.lbg-embedded:not(:fullscreen) .embedded-alerts small{background:transparent;font-size:12px;line-height:1.4;margin:0;padding:0}
html.lbg-embedded:not(:fullscreen) .embedded-details{border-top:1px solid #d4c59e;padding:14px 18px}
html.lbg-embedded:not(:fullscreen) .embedded-details summary{cursor:pointer;font-size:13px;font-weight:700}
html.lbg-embedded:not(:fullscreen) .embedded-details > :not(summary){margin-top:14px}
html.lbg-embedded:not(:fullscreen) .embedded-details .construction{border:0;padding:0}
html.lbg-embedded:not(:fullscreen) .embedded-details footer{padding:0}
html.lbg-embedded:not(:fullscreen) .toast{position:fixed;bottom:16px;top:auto}
@media(max-width:900px){
 html.lbg-embedded:not(:fullscreen) .embedded-status{grid-template-columns:repeat(3,minmax(0,1fr))}
 html.lbg-embedded:not(:fullscreen) .supply-ledger,html.lbg-embedded:not(:fullscreen) .sales-ledger{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:540px){
 html.lbg-embedded:not(:fullscreen) .masthead{padding:10px}
 html.lbg-embedded:not(:fullscreen) .head-actions{gap:4px;width:100%}
 html.lbg-embedded:not(:fullscreen) .head-actions button{font-size:13px;padding:6px}
 html.lbg-embedded:not(:fullscreen) .embedded-status{gap:10px;padding:12px}
 html.lbg-embedded:not(:fullscreen) .embedded-status strong{font-size:18px}
 html.lbg-embedded:not(:fullscreen) .supply-ledger,html.lbg-embedded:not(:fullscreen) .sales-ledger{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.lbg-embedded:not(:fullscreen) .embedded-alerts{grid-template-columns:minmax(0,1fr)}
}

html.lbg-embedded:not(:fullscreen) .embedded-goal{font-size:12px;grid-column:1/-1;order:1}
html.lbg-embedded:not(:fullscreen) .embedded-goal small{display:block;font-size:12px}
