:root{--bar: #1d1f23;--bar2: #2a2d33;--bar-ink: #f3efe6;--muted: #a9a49a;--accent: #f2c46d;--sheet: #fbf7ef;--sheet2: #f1e9da;--rule: #e6dccb;--sheet-ink: #2a2a2a;--sheet-muted: #6b6152;--outline: #2e1d16;--good: #5f9a4c;--ok: #d6a63c;--low: #d9813a;--bad: #c4523f;--top-h: env(safe-area-inset-top);--tab-h: 150px}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;height:100%;overflow:hidden;background:#23262b;color:var(--bar-ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}#view{position:fixed;top:0;right:0;bottom:0;left:0;touch-action:none;display:block}button{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dock{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;flex-direction:column}.dock .tabbar,.dock .bar{background:var(--bar)}.dock .tabbar{box-shadow:0 -1px #0006}.bar{display:flex;align-items:center;gap:8px;padding:4px 10px calc(env(safe-area-inset-bottom) + 6px);border-top:1px solid #000}body.panel-open .tenantbar,body.building .tenantbar{display:none}.clock{display:flex;flex-direction:column;line-height:1.1;min-width:72px}.clock #day{font-size:11px;color:var(--muted)}.clock #time{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}.money-button{margin-right:auto;border:0;background:transparent;min-height:44px;padding:0 6px;display:flex;flex-direction:column;align-items:flex-start;line-height:1.1;cursor:pointer}.money-button b{font-size:15px;color:var(--accent);font-variant-numeric:tabular-nums}.money-button b.negative{color:#ff8a7a}.money-button span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.speeds{display:flex;gap:2px;background:#121316;border-radius:10px;padding:2px}.speeds button,.recentre,.close,.menu-button{min-width:40px;min-height:40px;border:0;border-radius:8px;background:transparent;color:var(--bar-ink);font:600 13px system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.menu-button{background:#2e3137;min-width:44px;min-height:44px}.speeds button[aria-pressed=true]{background:var(--accent);color:#1d1f23}@media (max-width: 420px){.speeds button[data-speed="8"]{display:none}}.tenantbar{display:flex;gap:6px;padding:8px 10px 6px;overflow-x:auto;scrollbar-width:none;min-height:58px}.tenantbar::-webkit-scrollbar{display:none}.who{flex:none;display:grid;justify-items:center;gap:2px;border:0;background:transparent;padding:0;min-width:44px;cursor:pointer}.who .face{width:40px;height:40px;border-radius:8px;border:3px solid var(--c, var(--ok));background:#383b42;overflow:hidden;display:grid;place-items:center}.who small{background:#1d1f23d9;padding:2px 5px;border-radius:6px;font-size:10px;font-weight:700;color:var(--c, var(--ok));line-height:1;font-variant-numeric:tabular-nums}.who.empty .face{border-style:dashed;border-color:#5a5d64;color:#8d9097;font-weight:700;font-size:14px}.who.empty small{color:#8d9097}.face canvas,.portrait canvas{image-rendering:pixelated;width:100%;height:100%}.money-pop{position:absolute;right:10px;bottom:calc(100% + 8px);width:270px;background:var(--sheet);color:var(--sheet-ink);border:2px solid var(--outline);border-radius:10px;padding:10px 12px;font-size:12px;box-shadow:0 6px #00000040;z-index:6}.row{display:flex;justify-content:space-between;gap:10px;padding:2px 0}.row.total{border-top:1px solid var(--rule);margin-top:4px;padding-top:6px;font-weight:700}.alerts{position:fixed;right:0;top:calc(var(--top-h) + 8px);display:grid;gap:4px;width:150px;z-index:3;max-height:calc(100% - var(--top-h) - var(--tab-h) - 80px);overflow-y:auto;scrollbar-width:none}.alert{min-height:44px;display:grid;text-align:left;align-content:center;gap:1px;padding:4px 8px 4px 10px;border:0;border-left:5px solid var(--c, var(--ok));border-radius:8px 0 0 8px;background:#fbf7eff0;color:var(--sheet-ink);line-height:1.15;cursor:pointer}.alert b{font-size:11px}.alert span{font-size:10px;color:var(--sheet-muted)}.alert.urgent{background:#fbe4dcf2}body.building .alerts,body.panel-open .alerts{display:none}.tabbar{display:grid;grid-template-columns:repeat(6,1fr);padding:4px 4px 2px}.tabbar button{min-height:52px;border:0;background:transparent;color:var(--muted);display:grid;justify-items:center;align-content:center;gap:3px;font-size:10px;position:relative;border-radius:8px;cursor:pointer}.tabbar button[aria-current=page]{color:var(--accent);background:var(--bar2)}.tabbar .ic{width:22px;height:22px}.tabbar .ic svg{width:100%;height:100%;display:block}.badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bad);color:#fff;font-size:10px;font-weight:700;display:inline-grid;place-items:center;line-height:1}.tabbar .badge{position:absolute;top:2px;right:calc(50% - 24px)}body.building .tabbar{display:none}.recentre{position:fixed;left:12px;bottom:calc(var(--tab-h) + 10px);background:#1d1f23e6;min-width:44px;min-height:44px;z-index:2}body.panel-open .recentre{display:none}body.building .recentre{bottom:calc(var(--tab-h) + 12px + var(--buildbar-h, 0px))}.toast{position:fixed;left:12px;right:12px;top:calc(var(--top-h) + 10px);max-width:460px;margin:0 auto;padding:10px 14px;border:0;border-radius:12px;background:#fbf7eff2;color:var(--sheet-ink);font:500 13px system-ui,sans-serif;text-align:left;box-shadow:0 6px 18px #00000040;cursor:pointer;z-index:7}.toast.bad{border-left:4px solid var(--bad)}.sheet,.buildbar{position:fixed;left:0;right:0;bottom:0;max-width:640px;margin:0 auto;z-index:6;background:var(--sheet);color:var(--sheet-ink);border-radius:16px 16px 0 0;box-shadow:0 -6px 24px #0000004d}.sheet{bottom:var(--tab-h);max-height:calc(100% - var(--top-h) - var(--tab-h) - 12px);overflow-y:auto;padding:14px 16px 16px;border-top:3px solid var(--outline)}.sheet-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.sheet-head>div{flex:1;min-width:0}.sheet h2{margin:0;font-size:18px}.sheet p{margin:2px 0 0;color:var(--sheet-muted);font-size:13px}.sheet .close{background:#ece5d8;color:var(--sheet-ink);min-width:44px;min-height:44px}.portrait{width:48px;height:48px;border-radius:8px;border:3px solid var(--c, var(--ok));background:#e9dfcf;overflow:hidden;flex:none}#info-portrait:empty{display:none}.sec{display:grid;gap:6px;margin-bottom:14px}.sec>h3{margin:0;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--sheet-muted);display:flex;justify-content:space-between;gap:8px;font-weight:700}.sec>h3 em{font-style:normal;letter-spacing:0;text-transform:none;font-weight:400}.chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:700;background:var(--sheet2);white-space:nowrap}.chip.good{background:#dcebd3;color:#2f5a22}.chip.ok{background:#f6e6bd;color:#6a4a07}.chip.low{background:#f8dcc2;color:#7a3b0b}.chip.bad{background:#f6d2ca;color:#7d2414}.chip.posh{box-shadow:inset 0 0 0 1px #d2a73a;color:#7a5a0c}.chip.cheap{color:var(--sheet-muted);font-weight:600}.chips{display:flex;flex-wrap:wrap;gap:6px}.note{margin-top:8px!important;color:#9a5a2a!important}.pos{color:#3c7a2c;font-weight:700}.neg{color:#b03d2a;font-weight:700}.muted{color:var(--sheet-muted)}.small{font-size:11px!important}.doing{margin:0 0 10px!important;color:var(--sheet-ink)!important;font-weight:600}.warn{border:2px solid var(--bad);background:#fbe7e1;border-radius:8px;padding:10px 12px;font-size:12px;margin-bottom:14px}.btn{min-height:44px;border-radius:8px;border:2px solid var(--outline);background:var(--sheet);color:var(--sheet-ink);font-weight:700;padding:0 14px;font-size:13px;cursor:pointer}.btn.primary{background:var(--accent);box-shadow:0 3px 0 var(--outline)}.btn.ghost{border-color:#cdbfa8;color:var(--sheet-muted)}.btn:disabled{opacity:.45;cursor:default;box-shadow:none}.btns{display:flex;flex-wrap:wrap;gap:6px}.link{border:0;background:none;padding:0;color:#2f6b5a;font-weight:600;text-decoration:underline;cursor:pointer;font-size:inherit}.sheet .tabs{display:flex;gap:4px;background:var(--sheet2);border-radius:10px;padding:3px;margin-bottom:10px}.sheet .tabs button{flex:1;min-height:38px;border:0;background:transparent;border-radius:8px;font-size:12px;font-weight:700;color:var(--sheet-muted);cursor:pointer}.sheet .tabs button[aria-selected=true]{background:var(--outline);color:var(--sheet)}.meters{display:flex;flex-direction:column;gap:6px}.meter{display:grid;grid-template-columns:104px 1fr 32px;align-items:center;gap:10px;font-size:13px;padding:2px 4px;border-radius:6px}.meter small{color:#b5543f;font-weight:700}.meter b{text-align:right;font-variant-numeric:tabular-nums}.track{position:relative;height:10px;border-radius:3px;background:#e7dccb;border:1px solid #d3c4ad}.fill{position:absolute;inset:0 auto 0 0;border-radius:2px;background:var(--c, var(--good))}.score-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.score-head .tier-box{width:56px;height:56px;border:3px solid var(--outline);border-radius:8px;background:var(--accent);display:grid;place-items:center;font-size:20px;font-weight:800;flex:none}.score-head b{font-size:16px}.gauge{position:relative;padding:24px 0 8px;--l1: 60%;--l2: 40%;--l3: 25%}.gauge .bar{height:14px;border:2px solid var(--outline);border-radius:3px;background:linear-gradient(90deg,var(--bad) 0 var(--l3),var(--low) var(--l3) var(--l2),var(--ok) var(--l2) var(--l1),var(--good) var(--l1))}.gauge .now{position:absolute;top:0;transform:translate(-50%);display:grid;justify-items:center;font-weight:800;font-size:14px;line-height:1}.gauge .now:after{content:"";width:3px;height:20px;background:var(--outline);margin-top:2px}.gauge .target{position:absolute;bottom:0;transform:translate(-50%);font-size:10px;font-weight:700;color:var(--sheet-muted);white-space:nowrap}.liking-word{font-weight:700}.thoughts{display:flex;flex-direction:column;border-top:1px solid var(--rule)}.thought{display:flex;justify-content:space-between;gap:12px;padding:6px 2px;border-bottom:1px solid var(--rule);font-size:13px}.thought b{font-variant-numeric:tabular-nums}.thought.base span,.thought.total span{color:var(--sheet-muted)}.thought.total{border-bottom:0;font-weight:700}.trait{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;padding:8px;border-radius:8px;background:var(--sheet2);font-size:12px}.trait .t-ic{width:34px;height:34px;border-radius:6px;background:var(--outline);color:var(--accent);display:grid;place-items:center;font-weight:800}.trait.hidden{background:transparent;border:2px dashed #c9b89c}.trait.hidden .t-ic{background:#e5d8c3;color:var(--sheet-muted)}.trait p{margin:2px 0 0!important;font-size:11px!important}.lines{display:flex;flex-direction:column;border-top:1px solid var(--rule)}.line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--rule);font-size:12px}.line small{display:block;color:var(--sheet-muted);font-size:10px}.line b{white-space:nowrap}.rentbox{display:grid;gap:8px;background:var(--sheet2);border-radius:8px;padding:10px 12px}.stepper{display:flex;align-items:center;gap:8px}.stepper b{min-width:72px;text-align:center;font-size:16px;font-variant-numeric:tabular-nums}.stepper .btn{min-width:44px;padding:0}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}.stat{background:var(--sheet2);border-radius:8px;padding:8px;display:grid;gap:2px}.stat small{font-size:10px;color:var(--sheet-muted)}.stat b{font-size:18px;line-height:1.1;font-variant-numeric:tabular-nums}.table-wrap{overflow-x:auto}table.people{width:100%;border-collapse:collapse;font-size:12px;min-width:320px}.people th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--sheet-muted);padding:4px;border-bottom:2px solid var(--outline)}.people td{padding:5px 4px;border-bottom:1px solid var(--rule);vertical-align:middle}.people tr.person{cursor:pointer}.people tr.person:nth-child(2n) td{background:#f6efe2}.people .nm{display:flex;align-items:center;gap:6px}.people .nm .portrait{width:30px;height:30px;border-width:2px;border-radius:6px}.people .lk{display:grid;gap:2px;min-width:52px}.people .lk .track{height:6px}.people tr.vacant td{color:var(--sheet-muted);font-style:italic}.mortbar{height:22px;border:2px solid var(--outline);border-radius:3px;background:#e7dccb;position:relative;overflow:hidden}.mortbar i{position:absolute;inset:0 auto 0 0;background:repeating-linear-gradient(90deg,var(--accent) 0 9px,#d9a94c 9px 10px);border-right:2px solid var(--outline)}.ledger{display:flex;flex-direction:column;font-size:12px}.ledger .row{border-bottom:1px dotted #d6c8b2;padding:5px 0}.ledger .row span:first-child{color:var(--sheet-muted);min-width:64px}.ledger .row span:nth-child(2){flex:1}.letters{display:flex;flex-direction:column;gap:6px}.letter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;border:2px solid var(--rule);border-radius:8px;padding:8px 10px;background:var(--sheet);min-height:52px;cursor:pointer;width:100%}.letter b{display:block;font-size:12px}.letter small{display:block;font-size:11px;color:var(--sheet-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.letter.unread{border-color:var(--outline)}.paper{background:#fffdf8;border:2px solid var(--outline);border-radius:4px;padding:12px 14px;display:grid;gap:8px;font-size:13px;box-shadow:4px 4px #d8c9b1;margin-bottom:12px}.paper header{display:flex;justify-content:space-between;gap:8px;border-bottom:2px solid var(--outline);padding-bottom:6px}.paper header b{font-size:12px}.paper header small{font-size:10px;color:var(--sheet-muted)}.paper p{margin:0;color:var(--sheet-ink);white-space:pre-line}.opt{min-height:44px;border:2px solid #cdbfa8;border-radius:8px;background:var(--sheet);text-align:left;padding:6px 10px;display:grid;gap:1px;font-size:13px;cursor:pointer;width:100%}.opt small{font-size:11px;color:var(--sheet-muted)}.opt.chosen{border-color:var(--outline);background:#f6edd9}.deadline{display:flex;align-items:center;gap:8px;background:#fbe7e1;border-radius:6px;padding:6px 8px;font-size:11px}.cards{display:flex;flex-direction:column;gap:10px}.card{border:2px solid var(--outline);border-radius:10px;background:var(--sheet);padding:12px;display:grid;gap:8px}.card .top-line{display:flex;gap:10px;align-items:center}.card .top-line .portrait{width:44px;height:44px;border-color:var(--outline)}.card h4{margin:0;font-size:14px}.card p{margin:0;font-size:11px}.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 10px;font-size:12px;margin:0}.kv dt{color:var(--sheet-muted)}.kv dd{margin:0;font-weight:700}.hintline{font-size:11px;background:var(--sheet2);border-radius:6px;padding:6px 8px}.menu-list{display:flex;flex-direction:column;gap:8px}.menu-list button,.menu-list a,.file-button{min-height:48px;padding:0 16px;border:1px solid #d9cdb8;border-radius:12px;background:#fff;color:var(--sheet-ink);font:600 14px system-ui,sans-serif;text-align:left;display:flex;align-items:center;text-decoration:none;cursor:pointer}.file-button input{display:none}.menu-list .danger{color:var(--bad)}.endscreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#1d1f23e8;display:grid;place-items:center;padding:24px;text-align:center}.endscreen div{max-width:420px;display:grid;gap:14px;justify-items:center}.endscreen h2{margin:0;font-size:23px}.endscreen p{margin:0;color:var(--muted)}.main-button{min-height:48px;padding:0 22px;border:0;border-radius:12px;background:var(--accent);color:#1d1f23;font:700 14px system-ui,sans-serif;cursor:pointer}.buildbar{bottom:var(--tab-h);padding:8px 12px 10px}.buildbar .groups{display:flex;gap:6px;overflow-x:auto;margin:0 -12px 2px;padding:0 12px 4px;scrollbar-width:none}.buildbar .groups::-webkit-scrollbar{display:none}.buildbar .groups button{flex:none;min-height:36px;padding:0 12px;border:0;border-radius:18px;background:#ece5d8;color:var(--sheet-ink);font-weight:600;font-size:12px;cursor:pointer;white-space:nowrap}.buildbar .groups button.gap{margin-left:10px}.buildbar .groups button[aria-selected=true]{background:var(--bar);color:var(--bar-ink)}.hint{margin:4px 2px 6px;min-height:18px;font-size:12px;color:var(--sheet-muted)}.hint.bad{color:var(--bad)}.palette{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px;padding-bottom:4px}.palette button{min-height:66px;padding:4px;border:2px solid transparent;border-radius:10px;background:#fff;color:var(--sheet-ink);font-size:11px;line-height:1.15;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}.quote{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:4px 2px 6px;font-size:12px;color:var(--sheet-muted)}.quote strong{color:var(--sheet-ink)}.quote .up{color:#2f7a4a;font-weight:600}.quote .down{color:var(--bad);font-weight:600}.quote .link{border:0;background:none;padding:0;color:var(--sheet-ink);text-decoration:underline;font:inherit;cursor:pointer;margin-left:auto}.build-zoom{position:fixed;left:8px;right:8px;top:calc(var(--top-h) + 8px);display:flex;gap:4px;overflow-x:auto;z-index:3;scrollbar-width:none}.build-zoom::-webkit-scrollbar{display:none}.build-zoom[hidden]{display:none}.build-zoom button{flex:none;min-height:34px;padding:0 12px;border-radius:17px;border:1px solid #4a4d55;background:#1d1f23d9;color:var(--bar-ink);font-size:12px;cursor:pointer;white-space:nowrap}.palette button small{color:var(--sheet-muted);font-size:10px}.palette button canvas{image-rendering:pixelated}.palette button[aria-pressed=true]{border-color:var(--bar);background:#f6edd9}.palette .grades{grid-column:1 / -1;display:flex;gap:4px;padding:3px;border-radius:12px;background:#e7dccb}.palette .grades button{flex:1;min-height:44px;padding:2px 4px;border:0;border-radius:9px;background:transparent;flex-direction:row;flex-wrap:wrap;column-gap:4px;row-gap:0}.palette .grades button b{font-size:12px}.palette .grades button small{flex-basis:100%;text-align:center}.palette .grades button[aria-checked=true]{background:#fff;box-shadow:0 1px #cdbfa8}.palette .grades .grade-posh b{color:#9a7414}.palette .grades .locked{opacity:.6;cursor:help}.palette .grades .padlock{width:12px;height:14px}.build-actions{display:flex;gap:6px;margin-top:4px}.build-actions button{flex:1;min-height:44px;border:0;border-radius:10px;background:#ece5d8;color:var(--sheet-ink);font-weight:600;cursor:pointer}.build-actions button:disabled{opacity:.4;cursor:default}.build-actions #build-sign{flex:2}.build-actions button[hidden]{display:none}.build-actions .primary{background:var(--accent)}@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}.overlays{position:fixed;left:8px;top:calc(var(--top-h) + 8px);display:flex;gap:4px;z-index:3}.overlays button{min-height:32px;padding:0 10px;border-radius:16px;border:1px solid #4a4d55;background:#1d1f23d9;color:var(--bar-ink);font-size:11px;cursor:pointer}.overlays button[aria-pressed=true]{background:var(--accent);color:#1d1f23;border-color:var(--accent)}body.building .overlays,body.panel-open .overlays{display:none}.overlays button{padding:0 9px}.lens{position:fixed;left:8px;top:calc(var(--top-h) + 48px);z-index:4;max-width:250px;padding:8px 10px;display:grid;gap:3px;background:#1d1f23ea;color:var(--bar-ink);border:1px solid #4a4d55;border-radius:10px;font-size:12px}.lens[hidden],body.building .lens,body.panel-open .lens{display:none}.lens b{font-size:13px}.lens ul{margin:0;padding-left:16px}.lens button{justify-self:start;min-height:28px;padding:0 10px;border-radius:14px;border:1px solid #4a4d55;background:transparent;color:var(--bar-ink);font-size:11px;cursor:pointer}.chat{display:flex;flex-direction:column;gap:8px;background:#ece4d5;border-radius:10px;padding:10px}.msg{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:end;max-width:92%}.msg .portrait{width:30px;height:30px;border-width:2px;border-radius:6px}.bubble{background:var(--sheet);border-radius:10px 10px 10px 2px;padding:6px 10px;font-size:13px;box-shadow:0 1px #d2c3ab}.bubble b{display:block;font-size:10px;color:#9b6a42}.bubble time{float:right;font-size:10px;color:var(--sheet-muted);margin:4px 0 0 8px}.msg.me{justify-self:end;grid-template-columns:minmax(0,1fr)}.msg.me .bubble{background:var(--accent);border-radius:10px 10px 2px}.sys{align-self:center;font-size:10px;color:var(--sheet-muted);background:#e0d6c4;border-radius:10px;padding:2px 10px}.choice{border:2px solid var(--outline);border-radius:10px;background:var(--sheet);padding:10px;display:grid;gap:6px}.rel{display:grid;grid-template-columns:36px minmax(0,1fr) 44px;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--rule)}.rel .portrait{width:36px;height:36px;border-width:2px}.rel small{display:block;font-size:10px;color:var(--sheet-muted)}.rel .v{font-size:14px;text-align:right;font-weight:800}.opbar{height:6px;background:#e7dccb;position:relative;border-radius:2px;margin-top:3px}.opbar:before{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;background:var(--sheet-muted)}.opbar i{position:absolute;top:0;bottom:0;background:var(--c)}.seg-row{display:flex;gap:4px;flex-wrap:wrap}.seg-row button{min-height:40px;padding:0 12px;border:2px solid #cdbfa8;border-radius:8px;background:var(--sheet);font-weight:700;cursor:pointer}.seg-row button[aria-pressed=true]{border-color:var(--outline);background:var(--accent)}.furn-card{position:fixed;left:12px;right:12px;bottom:calc(var(--tab-h) + 10px);max-width:420px;margin:0 auto;z-index:7;padding:10px 12px 12px;border-radius:14px;background:var(--sheet);color:var(--sheet-ink);box-shadow:0 6px 20px #0005}.furn-card[hidden]{display:none}body.building .furn-card{bottom:calc(var(--tab-h) + var(--buildbar-h, 0px) + 8px)}.furn-card .head{display:flex;align-items:flex-start;gap:8px}.furn-card .head>div{flex:1;display:grid;gap:2px}.furn-card .head strong{font-size:14px}.furn-card .head span{font-size:12px;color:var(--sheet-muted)}.furn-card .close{border:0;background:none;font-size:14px;color:var(--sheet-muted);min-width:32px;min-height:32px;cursor:pointer}.furn-card p{margin:6px 0 10px;font-size:12px;color:var(--sheet-muted)}.furn-card .actions{display:flex;gap:6px}.furn-card .actions button{flex:1;min-height:44px;border:0;border-radius:10px;background:#ece5d8;color:var(--sheet-ink);font-weight:600;cursor:pointer}.furn-card .actions .primary{background:var(--accent)}.furn-card .actions .danger{background:var(--bad);color:#fff}.furn-card .upgrades{flex-wrap:wrap;margin-bottom:6px}.furn-card .upgrades button{font-size:13px}.furn-card .upgrades .posh{background:#f1dfa4}.furn-card .upgrades button:disabled{opacity:.5;cursor:default}.furn-card .upgrades .why{flex-basis:100%;font-size:11px;color:var(--sheet-muted)}.place-bar{position:fixed;left:8px;right:8px;bottom:calc(var(--tab-h) + 8px);max-width:520px;margin:0 auto;z-index:7;padding:10px 12px;border-radius:14px;background:var(--sheet);color:var(--sheet-ink);box-shadow:0 6px 20px #0005}.place-bar[hidden]{display:none}.place-info{display:grid;gap:2px;margin-bottom:8px}.place-info strong{font-size:14px}.place-info span{font-size:12px;color:var(--sheet-muted)}.place-info span.bad{color:var(--bad)}.facts{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:var(--sheet-muted)}.facts:empty{display:none}.facts .up,.quote .fact.up{color:#2f7a4a;font-weight:600}.facts .down,.quote .fact.down{color:var(--bad);font-weight:600}.place-bar .actions{display:flex;gap:6px}.place-bar .actions button{flex:1;min-height:48px;border:0;border-radius:10px;background:#ece5d8;color:var(--sheet-ink);font-weight:600;font-size:14px;cursor:pointer}.place-bar .actions .primary{flex:1.6;background:var(--accent)}.place-bar .actions button:disabled{opacity:.45;cursor:default}body.placing .build-zoom{display:none}.cond{font-size:12px;color:var(--muted, #6b5f50)}.cond.bad{color:var(--bad);font-weight:700}.warnline span{color:var(--bad)}.listing{font-style:italic;margin:8px 0 2px}.reviews{display:flex;flex-direction:column;gap:10px}.review{display:flex;flex-direction:column;gap:2px;font-size:13px}.review b{color:#c58a14;letter-spacing:1px}.review small{color:var(--muted, #6b5f50)}.say{position:fixed;left:8px;right:8px;bottom:calc(var(--tab-h) + 8px);z-index:5;display:flex;gap:10px;align-items:flex-start;padding:10px 12px;background:var(--sheet);color:var(--sheet-ink);border:2px solid var(--outline);border-radius:12px;box-shadow:0 6px #00000040;max-width:520px;margin:0 auto}.say[hidden],.todo[hidden]{display:none}.say .face{flex:none;width:40px;height:40px;border-radius:8px;overflow:hidden;border:2px solid var(--outline)}.say .words{flex:1;display:grid;gap:2px}.say .words b{font-size:12px}.say .words p{margin:0;font-size:14px;line-height:1.3}.say .words small{color:var(--sheet-muted);font-size:11px}.say .skip{flex:none;min-height:32px;padding:0 10px;border:1px solid var(--rule);border-radius:8px;background:transparent;color:var(--sheet-ink);font-weight:700;cursor:pointer}.todo{position:fixed;left:8px;top:calc(var(--top-h) + 48px);z-index:3;width:176px;display:grid;background:#fbf7eff0;color:var(--sheet-ink);border-radius:10px;overflow:hidden;border:2px solid var(--outline);font-size:12px}.todo-head{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:0;background:var(--accent);color:#1d1f23;cursor:pointer;font:inherit}.todo-head span{font-size:11px;font-variant-numeric:tabular-nums}.todo-item{display:flex;gap:8px;align-items:center;min-height:36px;padding:4px 10px;border:0;border-top:1px solid var(--rule);background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}.todo-item .tick{flex:none;width:16px;height:16px;border:2px solid var(--outline);border-radius:4px;display:grid;place-items:center;font-size:11px;font-weight:700}.todo-item.done{color:var(--sheet-muted);text-decoration:line-through}.todo-item.done .tick{background:var(--ok)}body.building .todo,body.panel-open .todo,body.building .say,body.panel-open .say{display:none}.build-needs{position:fixed;left:8px;top:calc(var(--top-h) + 50px);z-index:3;width:168px;display:grid;background:#fbf7efe8;color:var(--sheet-ink);border-radius:10px;overflow:hidden;border:2px solid var(--outline);font-size:11px}.build-needs[hidden],body.placing .build-needs{display:none}.needs-head{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:0;background:var(--accent);color:#1d1f23;cursor:pointer;font:inherit}.needs-head span{font-size:11px}.build-needs .need{display:flex;gap:6px;align-items:center;min-height:26px;padding:1px 8px;border:0;border-top:1px solid var(--rule);background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}.build-needs .need .tick{flex:none;width:14px;height:14px;border:2px solid var(--outline);border-radius:4px;display:grid;place-items:center;font-size:10px;font-weight:700}.build-needs .need.done{color:var(--sheet-muted);cursor:default}.build-needs .need.done .tick{background:var(--ok)}.build-needs small{padding:4px 8px 1px;border-top:1px solid var(--rule);color:var(--sheet-muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.build-needs .list-it{min-height:36px;border:0;border-top:2px solid var(--outline);background:var(--ok);color:#1d1f23;font:inherit;font-weight:700;cursor:pointer}.build-zoom button[aria-pressed=true]{background:var(--accent);color:#1d1f23;border-color:var(--outline)}.tray{display:flex;flex-direction:column;gap:4px;padding:0 16px 4px}.tray[hidden]{display:none}.project-bar{display:block;width:100%;min-height:28px;padding:4px 16px;border:0;border-top:1px solid #000;background:var(--bar);color:var(--muted);font-size:12px;text-align:left}.project-bar[hidden]{display:none}.skip-morning{align-self:flex-end;margin:0 10px 6px;min-height:36px;padding:0 14px;border:2px solid var(--outline);border-radius:10px;background:var(--accent);color:#1d1f23;font-weight:700}.skip-morning[hidden],body.building .tray,body.panel-open .tray{display:none}.slim-card{display:flex;align-items:center;gap:8px;width:100%;height:44px;padding:0 8px 0 5px;border:2px solid var(--outline);border-radius:10px;background:var(--sheet);color:var(--sheet-ink);font-size:13px;text-align:left;cursor:pointer;box-shadow:0 2px #0005}.slim-card .hook{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.card-face{flex:none;width:32px;height:32px;border:2px solid var(--outline);border-radius:6px;overflow:hidden;background:#d9ccb6;color:var(--outline);display:grid;place-items:center}.card-face canvas{width:100%;height:100%;image-rendering:pixelated;display:block}.card-face canvas.icon{width:16px;height:16px}.ring{flex:none;width:20px;height:20px}.ring circle{fill:none;stroke-width:3}.ring .back{stroke:#0002}.ring .left{stroke:var(--bad);transform:rotate(-90deg);transform-origin:50% 50%;transform-box:fill-box}.ring .step{stroke:var(--sheet-ink);stroke-width:1.4}.open-card{display:grid;gap:6px;padding:8px 10px 10px;border:2px solid var(--outline);border-radius:12px;background:var(--sheet);color:var(--sheet-ink);box-shadow:0 3px #0006}.card-head{display:flex;align-items:center;gap:8px}.card-head .fold{flex:none;padding:0;border:0;background:none;cursor:pointer}.card-name{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-text{margin:0;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.card-choice{display:grid;align-content:center;gap:1px;min-height:44px;padding:3px 8px;min-width:0;border:2px solid var(--outline);border-radius:10px;background:#ece5d8;color:var(--sheet-ink);cursor:pointer}.card-choice b{font-size:14px}.card-choice small{font-size:11px;color:var(--sheet-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-choice.reading small{white-space:normal}.slim-card.arriving{animation:card-in .15s ease-out}@keyframes card-in{0%{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}@media (prefers-reduced-motion: reduce){.slim-card.arriving{animation:none}}body.cards-waiting #build-done,body.cards-waiting #info-close,body.cards-waiting #menu-close{position:relative}body.cards-waiting #build-done:after,body.cards-waiting #info-close:after,body.cards-waiting #menu-close:after{content:"";position:absolute;top:4px;right:4px;width:10px;height:10px;border-radius:50%;background:var(--bad);border:2px solid var(--sheet)}.fit-line{margin:4px 0;gap:4px}
