/* player-style-build:284 */
:root{color-scheme:dark;--bg:#071420;--nav:#0e2030;--card:#142638;--card2:#192e40;--line:rgba(220,232,242,.12);--text:#f5f2e8;--muted:#aab9c6;--gold:#eccb86;--gold2:#b68a4f;--red:#eeb3ab}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);background:radial-gradient(ellipse 65% 25% at 50% 0%,#264357 0,transparent 75%),#071420;font:15px/1.65 system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--gold)}.skip{position:absolute;z-index:10;top:-70px;background:#fff;color:#000;padding:10px}.skip:focus{top:0}.screen{max-width:540px;min-height:100svh;margin:0 auto;position:relative;background:linear-gradient(155deg,#0d2234,#081622 58%,#0a1926);box-shadow:0 0 100px #0007;overflow:hidden}.loading{display:flex;min-height:100svh;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--muted)}.loading img{border-radius:24px}.hero{background:radial-gradient(circle at 15% 0%,#35516a85,transparent 57%),linear-gradient(155deg,#11283b,#091925);padding:calc(22px + env(safe-area-inset-top)) 22px 20px;border-bottom:1px solid var(--line)}.topline{display:flex;gap:10px;justify-content:space-between;align-items:center}.brand{display:flex;gap:10px;align-items:center}.brand img{width:42px;height:42px;object-fit:cover;border-radius:12px}.brand b{display:block;font-size:18px}.brand small{display:block;color:var(--muted);font-size:11px}.round-btn{border:1px solid var(--line);background:#ffffff0b;color:var(--text);border-radius:14px;padding:7px 12px}.eyebrow,.overline{letter-spacing:1.3px;font-size:10px;font-weight:800;color:var(--gold);margin:0}.title{font-size:27px;line-height:1.3;letter-spacing:-.4px;margin:16px 0 5px}.sub{color:var(--muted);margin:0}.content{padding:18px 18px calc(108px + env(safe-area-inset-bottom));min-height:58svh}.panel{border:1px solid var(--line);background:linear-gradient(145deg,#183044,#102233);border-radius:23px;padding:18px;margin-bottom:14px;box-shadow:0 14px 35px #020b1438}.panel.inner{background:#102334}.panel h2,.panel h3{margin:0 0 8px}.panel h2{font-size:20px}.panel h3{font-size:16px}.muted{color:var(--muted);font-size:13px}.pill{display:inline-block;color:#e5d2a6;background:#c4a0681a;border:1px solid #c4a06840;border-radius:99px;padding:3px 10px;font-size:11px}.credit{font-size:37px;letter-spacing:-1px;font-weight:800;margin:5px 0}.credit span{font-size:13px;font-weight:500;color:var(--muted)}.row{display:flex;gap:10px;justify-content:space-between;align-items:center}.row.wrap{flex-wrap:wrap}.space{height:14px}.buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;border:1px solid var(--line);color:var(--text);border-radius:14px;padding:10px 15px;min-height:43px;text-decoration:none;font-weight:700}.button.primary{color:#152432;background:linear-gradient(120deg,#f3da9d,#d2ad69);border:1px solid #e3bc7c}.button.subtle{background:#ffffff0c}.button.danger{border-color:#b66a6888;color:#f6b9b5}.button.full{width:100%}.button.tiny{padding:7px 11px;min-height:36px;font-size:12px}.field{display:block;margin:12px 0}.field span{display:block;color:var(--muted);margin-bottom:6px;font-size:12px}input,select{width:100%;border:1px solid #ffffff29;background:#081926;color:#fff;padding:12px;border-radius:12px;outline:none;min-height:45px}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.login{padding:calc(50px + env(safe-area-inset-top)) 24px 60px}.login-logo{width:100%;max-width:270px;display:block;margin:0 auto 12px;object-fit:contain}.login h1{margin:10px 0 3px;font-size:31px}.login .lead{color:var(--muted);margin:0 0 26px}.login-note{font-size:12px;line-height:1.9;color:var(--muted);margin-top:15px}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(540px,100%);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;background:#0d1e2bf2;border-top:1px solid #ffffff26;backdrop-filter:blur(20px);padding:8px 4px calc(9px + env(safe-area-inset-bottom));z-index:5}.bottom button{border:none;color:#a7b7c3;background:none;display:flex;flex-direction:column;gap:3px;align-items:center;font-size:11px;padding:7px 2px;border-radius:13px;white-space:nowrap}.bottom button strong{font-size:17px;line-height:1.1}.bottom button.active{color:#f2d598;background:#dbb97815}.bottom button.center{transform:translateY(-9px);background:#caac75;color:#0e2130;box-shadow:0 8px 23px #0008;border-radius:16px;padding:12px 3px}.bottom button.center.active{background:#f2d69a}.list{display:grid;gap:10px}.item{padding:15px;border-radius:17px;border:1px solid var(--line);background:#06172366}.item h3{margin:0 0 4px}.item p{margin:4px 0}.item .buttons{margin-top:10px}.item .tag{color:var(--gold);font-size:12px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:16px 2px 10px}.section-title h2{font-size:19px;margin:0}.chips{display:flex;gap:7px;overflow:auto;padding:0 2px 12px;scrollbar-width:none}.chips button{white-space:nowrap;border:1px solid var(--line);background:#ffffff0a;border-radius:99px;color:var(--muted);padding:8px 12px}.chips button.selected{color:#102436;background:var(--gold);border-color:var(--gold)}.scene{min-height:460px;border:1px solid #f0ce8860;display:flex;justify-content:flex-end;flex-direction:column;position:relative;padding:24px;border-radius:26px;overflow:hidden;background:radial-gradient(circle at 35% 25%,#c2a17b60,transparent 28%),linear-gradient(140deg,#29485b,#0b1b2b 68%)}.scene:before{content:'';position:absolute;left:-25%;right:-25%;height:45%;top:28%;opacity:.35;background:repeating-linear-gradient(90deg,#283e4f 0 38px,#0d263a 38px 43px,#2d4556 43px 79px);transform:skewY(-8deg)}.scene>*{z-index:1;position:relative}.scene h2{font-size:26px;margin:0 0 10px;text-shadow:0 3px 20px #000}.scene p{font-size:16px;line-height:1.9;margin:0 0 16px;color:#f9f3e8;text-shadow:0 2px 12px #000}.scene small{color:var(--gold)}.story-tip{color:var(--muted);text-align:center;font-size:12px;padding:12px}.scene.clickable{cursor:pointer}.empty{text-align:center;padding:22px;color:var(--muted);border:1px dashed #ffffff30;border-radius:16px;font-size:13px}.line{border:0;border-top:1px solid var(--line);margin:14px 0}.stat{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat>div{background:#071725a3;border-radius:15px;padding:12px}.stat b{display:block;font-size:19px}.stat small{color:var(--muted)}.toast{position:fixed;top:calc(16px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),490px);z-index:20;background:#1e3648;border:1px solid #e8c68b88;border-radius:14px;padding:12px 16px;box-shadow:0 12px 32px #000b;text-align:center}.toast[hidden]{display:none}.toast.error{border-color:#e99b98;color:#ffcfca}dialog{width:min(94vw,420px);padding:0;border:none;border-radius:22px;background:#10283a;color:#fff;box-shadow:0 15px 60px #000;max-height:80svh}dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.confirm-box{padding:24px}.confirm-box h2{margin:6px 0}.confirm-box p{line-height:1.9}.confirm-actions{display:flex;gap:9px;justify-content:flex-end}body:has(dialog[open]){overflow:hidden}@media(min-width:800px){.screen{border-inline:1px solid #ffffff18}}@media(max-width:360px){.content{padding-inline:12px}.hero{padding-inline:14px}.title{font-size:23px}.bottom button{font-size:10px}.bottom button.center{padding:10px 2px}}

/* Story paintings are the approved assets from the Android branch, not random stock. */
.scene{isolation:isolate;background-position:center;background-size:cover}
.scene:before{display:none}
.scene:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,#06131bea 0%,#06131b96 43%,transparent 88%);z-index:0;pointer-events:none}
.scene-0{background-image:url('/play/media/story_arrival.webp')}
.scene-1{background-image:url('/play/media/story_ashes_letter.webp')}
.scene-2{background-image:url('/play/media/story_employment.webp')}
.property-thumb{display:block;width:100%;height:128px;object-fit:cover;border-radius:12px;margin-bottom:12px;background:#1d3444}

/* Mobile refinement · compact header, consistent icons, safe navigation gap. */
.hero{padding:calc(17px + env(safe-area-inset-top)) 20px 17px}
.hero .title{font-size:24px;margin:12px 0 2px;line-height:1.25}
.hero .sub{font-size:13px}
.brand{min-width:0}
.brand b{font-size:16px}
.brand small{font-size:11px}
.content{padding:14px 15px calc(115px + env(safe-area-inset-bottom));min-height:0}
.panel{border-radius:20px;padding:16px;margin-bottom:12px}
.panel h2{font-size:19px}
.item{padding:13px}
.item h3{font-size:16px;line-height:1.6}
.buttons{gap:8px}
.button.tiny{font-size:13px;min-height:40px}
.credit{font-family:system-ui,Tahoma,sans-serif;font-variant-numeric:lining-nums tabular-nums;letter-spacing:0}
.bottom{padding:7px 6px calc(8px + env(safe-area-inset-bottom))}
.bottom button{font-size:11px;gap:5px}
.bottom button svg{width:21px;height:21px}
.bottom button.center{transform:translateY(-3px);background:#192d3b;border:1px solid #9c825b75;color:#d9c390;box-shadow:none;padding:9px 4px;border-radius:15px}
.bottom button.center.active{background:#f2d69a;color:#172332;border-color:#e7ca8e;box-shadow:0 4px 13px #0004}
.bottom button.active:not(.center){color:#f0d19b;background:#d5af7920}
.property-card{padding:11px 12px 15px}
.property-visual{margin-bottom:10px;overflow:hidden;border-radius:14px;aspect-ratio:16/7.5;background:#1b3142}
.property-thumb{height:100%;width:100%;object-fit:cover;display:block;border-radius:0;transform:scale(1.005)}
.property-card .tag{display:inline-block;border:1px solid #ad8d5b45;background:#c6a57912;border-radius:8px;padding:2px 8px;margin:0 0 6px}
.property-card .buttons{margin-top:11px}
input[type=number]{font-variant-numeric:tabular-nums}
@media(max-width:375px){.hero{padding-inline:14px}.content{padding-inline:11px}.property-visual{aspect-ratio:16/8}.buttons .button.tiny{flex:1}}

/* Work hub · responsive mobile art, truthful attendance states. */
.work-intro{position:relative;overflow:hidden;isolation:isolate;border:1px solid #d7ad684e;border-radius:22px;margin-bottom:14px;min-height:178px;background:linear-gradient(145deg,#1b4053,#0d2437);padding:18px 18px 86px}
.work-intro:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 0%,#e6c98e30,transparent 55%);pointer-events:none}
.work-intro img{position:absolute;bottom:-45px;left:-12px;width:65%;max-width:275px;height:auto;opacity:.88;mask-image:linear-gradient(to top,#000 45%,#0000 98%)}
.work-intro-copy{position:relative;z-index:1;max-width:275px}.work-intro h2{font-size:23px;margin:8px 0 4px}.work-intro p{font-size:12px;color:#d1dfe3;margin:0;line-height:1.65}
.work-dashboard{border-color:#d2a86680;background:linear-gradient(160deg,#244056,#132a3c 65%,#122536)}
.work-card-head{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.work-dashboard h2{font-size:21px;margin:0 0 2px}.work-connection{display:inline-flex;align-items:center;gap:8px;font-size:11px;border-radius:30px;padding:5px 10px;border:1px solid #e8d0a63d;background:#092130a3}
.work-connection i{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#d9b67d}.work-connection.online i{background:#71d5b0;box-shadow:0 0 0 4px #71d5b018;animation:workPulse 2.4s ease-in-out infinite}
.work-connection.offline{color:#ffc5b7;border-color:#d47a7780}.work-connection.offline i{background:#f39b90}.work-connection.pending i{background:#e9c489}
.work-score{display:flex;align-items:end;justify-content:space-between;gap:8px;margin:19px 0 11px}.work-score>div{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}.work-present{font-size:46px;font-weight:850;line-height:1;font-variant-numeric:tabular-nums;color:#fff}.work-score small{color:#bfcbd3;font-size:11px}.work-percent{color:#f1d6a4;font-size:20px;font-weight:750}
.work-track{width:100%;height:11px;overflow:hidden;border-radius:24px;background:#061721;border:1px solid #bad1d342;box-shadow:inset 0 2px 5px #0006}.work-track span{display:block;height:100%;border-radius:24px;background:linear-gradient(90deg,#ac8750,#f9dba1);transition:width .55s ease;box-shadow:0 0 17px #e4c69055}
.work-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px}.work-facts>div{background:#06172587;border:1px solid #fff2;border-radius:15px;padding:13px 11px}.work-facts small{font-size:11px;color:#b6c4cf;display:block}.work-facts strong{font-size:17px;color:#f5e1b7;display:block;margin-top:4px}
.work-note,.work-last,.work-hint{font-size:12px;color:#c0cdd4;line-height:1.65}.work-last{padding-top:7px;border-top:1px solid #ffffff20}.work-hint{margin:8px 0;color:#e5d0ae}
.work-actions{display:flex;gap:8px;flex-wrap:wrap}.work-actions>.button{flex:1}.work-actions>div{flex:1.4;min-width:170px}.work-actions>div button{width:100%}.work-actions button:disabled{opacity:.48}
.work-rules{margin-top:15px;border-top:1px solid #e8ceab34;padding:11px 0 0;font-size:13px}.work-rules summary{cursor:pointer;color:#e8d6b3;font-weight:750}.work-rules p{font-size:12px;color:#b9c9d3;line-height:1.8}
.work-cancel{margin-top:4px}.work-cancel summary{color:#c2d0d9}.work-income{display:grid;grid-template-columns:1.5fr 1fr;gap:9px}.work-income>div{background:#182c3e;border:1px solid #ffffff24;border-radius:15px;padding:13px}.work-income small{font-size:11px;color:#acbecc;display:block}.work-income strong{font-size:23px;color:#f2d6a1;display:block}.work-income strong span{font-size:11px;font-weight:500}.work-disclaimer{margin:7px 0 12px}.work-alert{border:1px solid #f6c57667;color:#f0d8ad;background:#f3c27513;border-radius:13px;padding:12px;font-size:12px}
.work-contract{background:linear-gradient(135deg,#132c3e,#0a1b2a)}.work-contract .row{flex-wrap:wrap}.work-rate{font-size:12px;color:#efd6a2}.work-contract h3{margin-top:10px}.work-contract-facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.work-contract-facts span{padding:4px 8px;border-radius:10px;background:#ffffff0c;color:#bdcbd1;font-size:11px}.work-history strong{font-size:12px;color:#f1d299}.work-history h3{font-size:14px}.work-empty{background:#0d2130;border:1px dashed #d0ad7450;border-radius:19px;padding:10px;text-align:center}.work-empty img{width:100%;max-height:114px;object-fit:cover;object-position:50% 24%;opacity:.6;border-radius:11px}.work-empty p{font-size:12px;color:#c1d0d9;margin:6px}
@keyframes workPulse{50%{box-shadow:0 0 0 7px #71d5b008}}
@media(prefers-reduced-motion:reduce){.work-connection.online i{animation:none}.work-track span{transition:none}}
@media(max-width:375px){.work-card-head{align-items:start}.work-score small{max-width:110px}.work-facts strong{font-size:15px}.work-actions>div{min-width:130px}.work-intro{padding-bottom:92px}.work-intro img{width:76%}}

/* Immersive loading / installation / registration, based on real downloaded assets. */
#boot-overlay{position:fixed;z-index:100;inset:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 0%,#23445a,#071420 68%);padding:24px;color:#f8eccf;text-align:center}
#boot-overlay[hidden]{display:none}
.boot-panel{max-width:380px;width:100%;padding:20px 12px}
.boot-panel img{border-radius:23px;box-shadow:0 10px 40px #0008;border:1px solid #d5b87b50}
.boot-panel h1{font-size:32px;margin:16px 0 8px}
.boot-panel p{color:#c4d4db}
.boot-meter{height:12px;background:#182c3c;border:1px solid #b4986d60;border-radius:20px;overflow:hidden;margin:22px 0 9px}
.boot-meter div{height:100%;width:0;background:linear-gradient(90deg,#a47c49,#f5d99c);transition:width .25s ease}
#boot-count{font-size:12px;color:#e7cea1}
#boot-skip{margin-top:25px;border:1px solid #d4b47a;border-radius:14px;padding:10px 18px;color:#f3dfbd;background:#192f42}
.signup-rules{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:#c4d0d9;line-height:1.75;margin:15px 0}
.signup-rules input{width:18px;min-width:18px;height:18px;min-height:auto;accent-color:#e3be81;margin-top:3px}
.honey{position:absolute;left:-10000px;height:1px;overflow:hidden}
.login button.full{margin-top:10px}
@media(prefers-reduced-motion:reduce){.boot-meter div{transition:none}}

/* Brand splash v9: a readable full logo, not a small letterboxed app icon. */
.boot-panel .boot-logo{width:min(310px,82vw);height:auto;max-height:220px;object-fit:contain;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 12px 24px #0007)}
.boot-panel h1{font-size:24px;margin:4px 0 9px}


/* City Zero cinematic gateway, v10 – the established game art, no emojis. */
#boot-overlay{position:fixed;inset:0;z-index:100;isolation:isolate;overflow:hidden;background:#060f1d;
 display:flex;align-items:center;justify-content:center;min-height:100svh;padding:0;color:#f9ead0;text-align:center}
#boot-overlay[hidden]{display:none}
.boot-landscape{position:absolute;inset:-2%;z-index:-2;
 background:url('/play/media/story_arrival.webp') center 43%/cover no-repeat;
 filter:saturate(1.12) contrast(1.02);
 animation:cityBootReveal 16s ease-out both}
.boot-skyline{position:absolute;inset:0;z-index:-1;
 background:linear-gradient(180deg,#06152592 0%,#09192f52 21%,#05101de8 63%,#020b15fa 100%),
 radial-gradient(ellipse 75% 40% at 50% 45%,#0b253180,transparent 75%)}
.boot-panel{position:relative;z-index:1;width:min(100%,500px);margin:auto;max-height:100svh;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 padding:calc(30px + env(safe-area-inset-top)) 25px calc(20px + env(safe-area-inset-bottom));
 text-shadow:0 2px 18px #02070b}
.boot-panel:before{content:"";position:absolute;inset:14px 0;border-radius:32px;
 border:1px solid #c59e5434;pointer-events:none;
 background:linear-gradient(165deg,#132b391b,#040e166e);box-shadow:inset 0 0 60px #02091240}
.boot-panel>*{z-index:1}
.boot-kicker{font-size:11px;letter-spacing:.7px;font-weight:800;color:#f6d48c}
.boot-kicker i{display:inline-block;margin-inline:10px;vertical-align:middle;height:4px;width:4px;border-radius:50%;background:#e4b86a}
.boot-panel .boot-logo{width:min(350px,85vw);max-height:250px;height:auto;object-fit:contain;
 display:block;margin:14px auto 0;border:0;border-radius:0;box-shadow:none;
 filter:drop-shadow(0 12px 25px #050d17);animation:bootLogoIn 700ms ease-out both}
.boot-panel h1{font-size:clamp(20px,5.6vw,27px);font-weight:850;line-height:1.4;margin:2px 0 5px;color:#fff3db}
.boot-tagline{margin:0;color:#d7e0e4;font-size:13px}
.boot-download{width:min(380px,100%);padding:19px 0 0;margin-top:12px;border-top:1px solid #e1c68e48}
.boot-download-head{display:flex;flex-wrap:wrap;gap:5px;justify-content:space-between;align-items:center;text-align:start}
#boot-caption{font-size:12px;color:#e2e8ed}
#boot-count{font-size:11px;font-variant-numeric:tabular-nums;color:#f4cf8a}
.boot-meter{width:100%;height:10px;background:#0d2136;border:1px solid #e9c78782;border-radius:30px;overflow:hidden;margin:12px 0 7px;box-shadow:0 3px 12px #0007}
.boot-meter #boot-fill{height:100%;width:0;background:linear-gradient(90deg,#98743e,#e9b95f,#fff0b0);box-shadow:0 0 15px #f0c57466;transition:width .35s ease}
#boot-processed{min-height:17px;font-size:11px;color:#bbd0dc}
#boot-skip{margin-top:14px;padding:11px 23px;border-radius:13px;font-weight:800;font-size:13px;
 border:1px solid #f1d394;color:#102238;background:linear-gradient(135deg,#f5e0ad,#caa05c);
 box-shadow:0 7px 24px #0008}
.boot-footer{color:#b8c9d3;font-size:10px;margin-top:23px;opacity:.87}
@keyframes cityBootReveal{0%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes bootLogoIn{from{opacity:.3;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
/* Log in inside the same physical city, not an isolated rectangular web form. */
#app:has(.login){background:linear-gradient(180deg,#0615259e,#071724ee 40%,#071420 80%),url('/play/media/story_arrival.webp') center top/auto 570px no-repeat,#071420}
.login{padding:calc(38px + env(safe-area-inset-top)) 20px 60px;min-height:100svh}
.login-logo{max-width:300px;margin:0 auto 16px;filter:drop-shadow(0 14px 25px #000b)}
.login .panel{background:linear-gradient(150deg,#1b3644ef,#0a1c2cef);border:1px solid #b899676a;backdrop-filter:blur(12px)}
.login h1{font-size:29px;text-shadow:0 4px 15px #000b}
.login .lead{color:#e1e8e5;text-shadow:0 2px 12px #000;max-width:450px}
@media(max-height:620px){.boot-panel{padding-top:14px;padding-bottom:10px}.boot-panel .boot-logo{max-height:160px}.boot-download{padding-top:10px;margin-top:7px}.boot-footer{margin-top:8px}}
@media(max-width:380px){.boot-panel{padding-inline:19px}.boot-panel .boot-logo{width:min(300px,83vw)}.login{padding-inline:15px}}
@media(prefers-reduced-motion:reduce){.boot-landscape,.boot-panel .boot-logo{animation:none}.boot-meter #boot-fill{transition:none}}


/* === City Zero visual language · v11 === */
:root {
 --bg:#071321;--nav:#0b1a2b;--card:#102639;--card2:#1b3246;
 --line:rgba(225,204,166,.16);--text:#faf3e7;--muted:#b8c7d5;
 --gold:#f1d39c;--gold2:#c29a60;
 --surface-glass:linear-gradient(150deg,rgba(34,62,80,.93),rgba(10,28,43,.98));
}
body{font-family:system-ui,"Segoe UI",Tahoma,sans-serif;background-color:var(--bg)}
button,input,select{touch-action:manipulation}
.button,.round-btn,.chips button,.bottom button,.login-alt{
 transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.button:not(:disabled):active,.round-btn:active,.chips button:active,.bottom button:active,.login-alt:active{transform:scale(.975)}
.button.primary{background:linear-gradient(135deg,#f7e4b7,#d0aa68);border-color:#ffdb9a;color:#172536;box-shadow:0 5px 17px #020a1540}
.panel{background:var(--surface-glass);border-color:var(--line);box-shadow:0 14px 36px #02091535}
.panel.inner{background:#091c2bcf}
.item{border-color:rgba(230,211,176,.17);background:linear-gradient(145deg,#122b3bbb,#0b1e2acc)}
.section-title h2{font-size:19px;font-weight:800;letter-spacing:0}
.empty{background:#11293a55;border-color:#ba9b6247}
.muted{color:var(--muted)}
#app.auth-mode{position:fixed;inset:0;max-width:none;width:100%;height:100svh;height:100dvh;min-height:0;
 overflow:hidden;display:grid;place-items:center;isolation:isolate;
 background:linear-gradient(180deg,#0616267d 0%,#061522c9 35%,#06111df5 90%),
 url('/play/media/story_arrival.webp') center 44%/cover no-repeat,#071420;
 box-shadow:none}
#app.auth-mode:before{content:"";position:absolute;inset:0;pointer-events:none;
 background:radial-gradient(ellipse 67% 55% at 50% 35%,transparent,#03111ab5 95%)}
html:has(#app.auth-mode),body:has(#app.auth-mode){height:100%;overflow:hidden;overscroll-behavior:none}
#app.auth-mode .login-shell{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:clamp(9px,2svh,15px);height:100%;width:min(100%,490px);
 min-height:0;max-height:100%;padding:clamp(10px,3svh,24px) 20px;overflow:hidden;text-align:center}
.login-header{width:100%;flex:none}
.login-mark{width:clamp(68px,13svh,94px);height:clamp(68px,13svh,94px);
 margin:0 auto 8px;display:grid;place-items:center;position:relative}
.login-mark:before{content:"";position:absolute;inset:-6px;border:1px solid #e3b96f7d;
 border-radius:24px;background:#0916269c;box-shadow:0 12px 35px #0009}
.login-mark img{position:relative;width:100%;height:100%;object-fit:cover;border-radius:19px;
 border:1px solid #f4dba469;box-shadow:0 0 25px #e1aa6242}
.login-world{color:#f6d7a0;font-size:11px;font-weight:700;margin:0 0 4px}
.login-shell h1{font-size:clamp(23px,3.8svh,31px);line-height:1.2;color:#fff4de;
 margin:0 0 4px;text-shadow:0 4px 16px #0009}
.login-shell .lead{font-size:clamp(12px,1.8svh,14px);margin:0;color:#d9e4ec;
 line-height:1.5;max-width:none}
.login-main{width:100%;flex:none}
.login-form{margin:0 0 9px;padding:clamp(10px,2svh,17px);
 background:linear-gradient(145deg,#1c3448ec,#0b2032f4);
 border:1px solid #d3ab6d6b;border-radius:21px;backdrop-filter:blur(9px)}
.login-form .field{margin:0 0 clamp(7px,1.4svh,12px);text-align:right}
.login-form .field span{font-size:12px;color:#e2d7c0;margin-bottom:3px}
.login-form input{height:clamp(42px,7svh,48px);min-height:42px;font-size:16px;
 padding:10px 13px;border-radius:12px;border-color:#a8bdc542;background:#071727ed}
.login-form .login-submit{min-height:clamp(43px,7svh,48px);margin-top:3px;font-size:15px}
.login-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}
.login-options button{width:100%;min-height:43px;margin:0;font-size:12px;
 border:1px solid #bbad9457;background:linear-gradient(140deg,#1c3042ec,#0e2030ec);
 color:#f3dfb8;border-radius:13px;padding:9px 7px;font-weight:750}
.login-foot{font-size:10px;color:#aec1cd;line-height:1.4;margin:0}
#app.auth-mode.signup-mode .login-shell{overflow-y:auto;justify-content:flex-start;overscroll-behavior:contain}
#app.auth-mode.signup-mode .login-header{margin-top:5px}
#app.auth-mode.signup-mode .login-mark{width:62px;height:62px}
#app.auth-mode.signup-mode #register-form{text-align:right}
#app.auth-mode.signup-mode .login-main>.button{margin-top:8px}
#app.auth-mode.signup-mode .login-foot{padding-bottom:10px}
@media(max-height:570px){
 #app.auth-mode .login-shell{gap:6px;padding-block:7px}
 #app.auth-mode .login-mark{width:54px;height:54px;margin-bottom:5px}
 #app.auth-mode .login-world{font-size:10px}
 #app.auth-mode .login-shell h1{font-size:21px}
 #app.auth-mode .login-form{padding:10px}
 #app.auth-mode .login-form input{height:40px;min-height:40px}
 #app.auth-mode .login-options button{min-height:38px}
 #app.auth-mode .login-form .field{margin-bottom:6px}
}
@media(max-width:350px){#app.auth-mode .login-shell{padding-inline:12px}.login-options button{font-size:11px}}
/* Foreground logo is a deliberately framed game emblem rather than a pasted panoramic banner. */
.boot-panel .boot-emblem{position:relative;display:grid;place-items:center;margin:12px auto 8px;
 width:clamp(105px,18svh,148px);height:clamp(105px,18svh,148px)}
.boot-panel .boot-emblem:before{content:"";position:absolute;inset:-7px;border:1px solid #f5ce835f;
 border-radius:28px;box-shadow:0 0 45px #f4c47222}
.boot-panel .boot-emblem .boot-logo{width:100%;height:100%;max-height:none;object-fit:cover;
 border-radius:21px;animation:bootLogoIn 700ms ease-out both}
.boot-panel .boot-hero-line{font-size:14px;color:#f3d5a4;margin:0}
.boot-panel>h1{font-size:clamp(29px,5.2vw,38px);margin:2px 0 0}
@media(max-height:650px){.boot-panel .boot-emblem{width:92px;height:92px;margin-block:3px}.boot-panel .boot-hero-line{font-size:12px}}
@media(prefers-reduced-motion:reduce){.button,.round-btn,.chips button,.bottom button,.login-alt{transition:none}}


/* City Zero · visual system v11 (uses existing approved imagery) */
.screen:not(.auth-mode){background:linear-gradient(160deg,#0b1d2e,#071420 65%)}
.hero{position:relative;isolation:isolate;overflow:hidden;padding:calc(14px + env(safe-area-inset-top)) 18px 17px;
 background:linear-gradient(140deg,#1b3449df,#0a1c2d 85%);border-bottom:1px solid #e1bd7b35}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;
 background:url('/play/media/story_arrival.webp') center 29%/cover no-repeat;opacity:.09}
.topline{align-items:center}
.brand img{width:43px;height:43px;border-radius:12px;box-shadow:0 4px 14px #0007;border:1px solid #d6b77e73}
.brand b{font-size:17px}.brand small{font-size:11px;color:#b9c8d2}
.round-btn{display:inline-flex;align-items:center;gap:7px;min-height:42px;font-size:12px;color:#f4dcaf;
 border:1px solid #e8cb9854;background:#f6ddb011}
.hero-headline{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:14px}
.hero-headline .title{margin:0 0 3px;font-size:27px;font-weight:850;letter-spacing:0}
.hero-headline .sub{font-size:12px;line-height:1.5}
.hero-seal{width:46px;height:46px;border:1px solid #dfbc8361;display:grid;place-items:center;
 background:#e7c58a13;border-radius:15px;color:#f4d8a3;flex:none}
.content{padding:16px 15px calc(107px + env(safe-area-inset-bottom))}
.section-title{margin:22px 1px 11px}.section-title h2{font-size:19px}
.city-wallet{position:relative;isolation:isolate;min-height:204px;border-radius:22px;overflow:hidden;
 background:#0b2439;border:1px solid #d7b1787d;box-shadow:0 15px 35px #0005;margin-bottom:9px}
.city-wallet-art{position:absolute;inset:0;background:url('/play/media/story_arrival.webp') center 42%/cover no-repeat;
 filter:saturate(1.15);opacity:.55;transform:scale(1.02);z-index:-2}
.city-wallet:after{content:"";position:absolute;inset:0;z-index:-1;
 background:linear-gradient(90deg,#081725f6 15%,#081725d1 47%,#08172576 100%)}
.city-wallet-content{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;
 padding:23px 20px;min-height:204px;text-shadow:0 2px 13px #000d}
.wallet-label{font-size:12px;color:#e8d4b6}
.wallet-amount{font-size:clamp(38px,10vw,54px);font-weight:850;letter-spacing:0;line-height:1.4;
 color:#fff3d7;font-variant-numeric:tabular-nums}
.wallet-amount small{font-size:14px;font-weight:650;color:#e9c48e}
.wallet-foot{display:flex;align-items:center;flex-wrap:wrap;gap:7px 15px;color:#ccdbdf;font-size:11px;
 margin-top:16px;padding-top:10px;border-top:1px solid #f4d39846}
.next-step{border:1px solid #d0ad7259;border-radius:20px;background:linear-gradient(135deg,#1a3548,#102233);
 padding:16px;display:grid;grid-template-columns:auto 1fr;column-gap:13px;align-items:start}
.next-step-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;
 color:#e8c382;border:1px solid #ddb97977;background:#e1ba7a17}
.next-step h3{font-size:19px;margin:4px 0}.next-step p{font-size:12px;color:#b7c9d5;line-height:1.7;margin:0}
.next-step-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.next-step-actions .button{flex:1;min-width:120px;background:#f0d69b;color:#122437;border-color:#e0bc7e;font-size:13px}
.next-step-actions .button+.button{background:#ffffff0a;color:#e9d4a9}
.mission-list{display:grid;gap:9px}
.mission-card{display:grid;grid-template-columns:auto 1fr;gap:13px;border:1px solid #e0be863e;
 border-radius:17px;padding:14px;background:#142c3bb8}
.mission-number{width:34px;height:34px;border-radius:11px;background:#eccd8a1e;
 border:1px solid #eccd8a61;color:#edce91;display:grid;place-items:center;font-weight:800}
.mission-card h3{font-size:15px;margin:0 0 5px}.mission-card p{font-size:12px;color:#bdd0d9;line-height:1.65;margin:0 0 8px}
.mission-reward{font-size:11px;color:#f2ce90}
.feature{min-height:180px;position:relative;overflow:hidden;isolation:isolate;border-radius:22px;
 border:1px solid #d7b3755b;background:#142d40;margin-bottom:13px}
.feature-media{position:absolute;inset:0}
.feature-media img{width:100%;height:100%;object-fit:cover;display:block}
.feature:after{content:"";position:absolute;inset:0;z-index:0;
 background:linear-gradient(90deg,#081624ef 22%,#0b2136ba 63%,#09213343 100%)}
.feature-body{position:relative;z-index:1;width:85%;min-height:180px;display:flex;flex-direction:column;
 align-items:flex-start;justify-content:center;padding:18px}
.feature-body h2{font-size:20px;margin:5px 0}.feature-body p{color:#d9e3e8;font-size:12px;line-height:1.65;margin:0}
.feature-estate .feature-media img,.feature-business .feature-media img{object-position:center 43%}
.feature-estate,.feature-estate .feature-body{min-height:155px}
.estate-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:9px 0 16px}
.estate-summary>div{border-radius:14px;background:#193044aa;border:1px solid #e5c38e3b;padding:10px 13px}
.estate-summary strong{font-size:22px;color:#f4d6a5;display:block;line-height:1.25}
.estate-summary span{font-size:11px;color:#b9cbd6}
.estate-chips{gap:7px;padding:2px 0 9px}.estate-chips button{min-height:42px;font-size:12px}
.property-visual{aspect-ratio:16/7.4}
.property-thumb{transition:transform .25s ease}
.property-card:focus-within .property-thumb{transform:scale(1.035)}
.property-card .buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.property-card .buttons button{width:100%;white-space:normal;line-height:1.35}
.property-status{display:flex;gap:7px;margin-top:7px}
.asset-status{font-size:11px;color:#b9cbd5;border-radius:20px;padding:4px 9px;background:#112537;border:1px solid #a8bac444}
.asset-status.available{color:#a6ebcf;border-color:#55c3a965;background:#2bbd9b10}
.asset-status.mine{color:#f3d19b;border-color:#e6c58a65;background:#efd39112}
.business-disclaimer{border:1px solid #e9c98a40;border-radius:14px;padding:11px 13px;
 background:#d6ab6010;color:#c8d6de;font-size:12px;line-height:1.7;margin:12px 0}
.management-drawer{border:1px solid #bd9b694d;border-radius:17px;background:#112536;margin:15px 0}
.management-drawer>summary{cursor:pointer;font-weight:750;color:#f0d7aa;padding:14px 16px;list-style-position:inside}
.management-drawer>summary span{display:block;font-size:11px;font-weight:500;color:#b7c7d4;margin:4px 20px 0}
.management-drawer-body{padding:0 12px 5px}
.profile-head{display:flex;align-items:center;gap:13px}
.profile-mark{width:65px;height:65px;border-radius:17px;border:1px solid #efce947c;object-fit:cover;flex:none}
.profile-head h2{margin:3px 0;font-size:20px}
.bottom{background:#091c2cef;border-top:1px solid #e8c7874a;box-shadow:0 -10px 34px #0005}
.bottom button{min-height:54px;font-weight:600}
.bottom button.active:not(.center){background:#e7c58217}
.bottom button.center{border-radius:17px}
@media(min-width:540px){.content{padding-inline:18px}}
@media(max-width:360px){.hero{padding-inline:13px}.content{padding-inline:11px}.feature-body{width:95%}.city-wallet-content{padding:18px 15px}.property-card .buttons{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.property-thumb{transition:none}}

/* Refinements: no second frame around the approved emblem; focused form remains accessible */
.boot-panel .boot-emblem:before{inset:-22px;border:0;border-radius:50%;
 background:radial-gradient(circle,#dfb86c4b 0%,#c994430e 50%,transparent 71%);box-shadow:none}
.boot-panel .boot-emblem .boot-logo{border:1px solid #efc77e6b;box-shadow:0 18px 44px #000b}
.work-intro{background:linear-gradient(120deg,#1d3c51,#0b2031);border-color:#d0ad7066}
.work-intro img{width:74%;max-width:300px;bottom:-33px;left:-28px;opacity:.9}
.work-dashboard{border-color:#dfbd826e}
.work-dashboard .work-present{font-variant-numeric:tabular-nums}
.work-dashboard .work-actions button:not(:disabled):focus-visible{outline:2px solid #f7db9f}
.work-income>div{border-color:#dbba8650}
@media(max-height:510px) {
 /* Only when the keyboard consumes the viewport: scroll the form itself, never the page. */
 #app.auth-mode:not(.signup-mode) .login-shell{justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain}
 #app.auth-mode .login-foot{margin-bottom:5px}
}
@media(hover:hover){.property-card:hover .property-thumb{transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){.property-card:hover .property-thumb{transform:none}}

/* Workroom v13: visual progress is server-authoritative */
.work-dashboard{background:linear-gradient(151deg,#243d51,#14293b 71%,#101f30);border-color:#d9b77f91}
.work-dashboard h2{font-size:22px;font-weight:850}
.work-journey{padding:12px 0 0;margin:0 0 8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:5px;border-top:1px solid #f3d08f32}
.work-step{position:relative;display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;font-size:10px;color:#92a8b9;line-height:1.5;min-width:0}
.work-step:before{content:"";position:absolute;top:16px;right:-50%;width:100%;height:1px;background:#c1a77546}
.work-step:first-child:before{display:none}
.work-step-number{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;border:1px solid #90a0af4d;background:#091a29;color:#a8b9c4;font-weight:800;font-variant-numeric:tabular-nums;font-size:14px}
.work-step.done .work-step-number{background:#a3dbc321;border-color:#70d4ae77;color:#bbf1d3}
.work-step.current .work-step-number{background:linear-gradient(135deg,#f0d49e,#cb9c57);border-color:#f7dca9;color:#102238;box-shadow:0 0 17px #f3c9813a}
.work-step.done,.work-step.current{color:#f6e1b6}
.work-phase{font-size:12px;line-height:1.7;color:#e4d5b4;margin:10px 0 15px;padding:11px 12px;background:#091a2b81;border:1px solid #daba7f45;border-radius:12px}
.work-score .work-present{font-size:clamp(43px,11vw,53px)}
.work-score .work-percent{background:#f1d59b13;border:1px solid #dec18d49;border-radius:10px;padding:5px 8px;font-size:17px}
.work-start-panel{background:linear-gradient(140deg,#1e384a,#102638);border:1px solid #dfb77964;border-radius:20px;padding:19px 18px;text-align:center;box-shadow:0 12px 28px #0003;margin-bottom:14px}
.work-start-sign{margin:2px auto 11px;display:grid;place-items:center;width:50px;height:50px;border:1px solid #ddb87881;background:#f1d29312;color:#f3d398;border-radius:16px}
.work-start-panel h2{font-size:21px;margin:4px 0 7px}
.work-start-panel p{font-size:13px;color:#c8d7df;line-height:1.7;margin:4px 0 11px}
.work-start-foot{display:block;font-size:11px;color:#f2d7a7}
@media(max-width:375px){.work-step{font-size:9px}.work-step-number{width:30px;height:30px}.work-actions{display:grid;grid-template-columns:1fr}.work-actions>div{min-width:0}}

/* Live seconds are an estimate (blue extension); gold is server-confirmed. */
.work-confirmed{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;
 margin:0 0 11px;color:#c4d7e3;font-size:12px}
.work-confirmed strong{font-size:15px;font-variant-numeric:tabular-nums;color:#b5e8d8}
.work-track{position:relative;isolation:isolate}
.work-track #work-preview-fill{position:absolute;inset:0 0 0 auto;background:linear-gradient(270deg,#3f93a9,#79c7dc);
 box-shadow:0 0 11px #79c7dc66;opacity:.85;z-index:1}
.work-track #work-fill{position:relative;z-index:2}
.work-present{font-variant-numeric:tabular-nums}
@media(max-width:355px){.work-score>div{align-items:flex-start}.work-score small{max-width:150px}}
@media(prefers-reduced-motion:reduce){.work-track #work-preview-fill{transition:none}}


/* City Zero v16: one shared cinematic background. Imagery in cards is only for assets. */
body:has(#app.screen:not(.auth-mode)){
 background-color:#071321;
 background-image:linear-gradient(180deg,rgba(4,14,25,.57),rgba(5,19,33,.76) 48%,rgba(4,12,22,.87)),
   url('/play/media/story_arrival.webp');
 background-position:center center;
 background-size:cover;
 background-repeat:no-repeat;
 background-attachment:fixed;
}
#app.screen:not(.auth-mode){
 background:linear-gradient(160deg,rgba(7,24,39,.58),rgba(7,18,32,.76));
 border-inline-color:rgba(235,200,139,.14);
 box-shadow:0 0 46px rgba(0,0,0,.18);
}
#app.screen:not(.auth-mode) .hero{
 background:linear-gradient(150deg,rgba(17,38,54,.9),rgba(8,27,43,.79));
 border-color:rgba(227,190,125,.22);
 padding:calc(11px + env(safe-area-inset-top)) 17px 13px;
}
#app.screen:not(.auth-mode) .hero:before{display:none}
#app.screen:not(.auth-mode) .hero-headline{margin-top:8px}
#app.screen:not(.auth-mode) .hero-headline .title{font-size:clamp(22px,6vw,26px)}
#app.screen:not(.auth-mode) .hero-headline .sub{font-size:11px}
#app.screen:not(.auth-mode) .hero-seal{display:none}
#app.screen:not(.auth-mode) .content{padding:12px 14px calc(108px + env(safe-area-inset-bottom));min-height:0}
#app.screen:not(.auth-mode) .section-title{margin:20px 1px 9px}
#app.screen:not(.auth-mode) .section-title h2{font-size:18px}
#app.screen:not(.auth-mode) .panel{
 background:linear-gradient(145deg,rgba(29,52,70,.91),rgba(10,28,44,.94));
 border-color:rgba(221,186,127,.28);
 box-shadow:0 11px 30px rgba(1,9,17,.25);
}
#app.screen:not(.auth-mode) .item{
 background:linear-gradient(135deg,rgba(17,42,58,.91),rgba(10,29,43,.9));
 border-color:rgba(218,193,152,.21);
}
#app.screen:not(.auth-mode) .city-wallet{min-height:158px;background:#0f293b}
#app.screen:not(.auth-mode) .city-wallet-art{display:none}
#app.screen:not(.auth-mode) .city-wallet-content{min-height:158px;padding:18px 19px}
#app.screen:not(.auth-mode) .wallet-foot{margin-top:10px}
#app.screen:not(.auth-mode) .next-step{background:linear-gradient(145deg,rgba(28,54,72,.92),rgba(11,29,44,.95))}
#app.screen:not(.auth-mode) .city-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#app.screen:not(.auth-mode) .city-shortcuts .button{min-width:0;width:100%;padding-inline:5px;font-size:12px}
#app.screen:not(.auth-mode) .work-section-kicker{margin:1px 2px 9px;color:#d6c5a5;font-size:11px;font-weight:650;line-height:1.5}
#app.screen:not(.auth-mode) .work-section-kicker span{margin-inline:4px;color:#ae8d5e}
#app.screen:not(.auth-mode) .work-dashboard{margin:0 0 14px;padding:15px;border:1px solid rgba(230,197,132,.56);border-radius:20px;
 background:linear-gradient(150deg,rgba(32,57,74,.96),rgba(13,33,49,.97))}
#app.screen:not(.auth-mode) .work-dashboard h2{margin-bottom:3px;font-size:21px}
#app.screen:not(.auth-mode) .work-dashboard>.muted{margin-bottom:10px}
#app.screen:not(.auth-mode) .work-journey{padding-top:10px;margin:0 0 6px}
#app.screen:not(.auth-mode) .work-phase{margin:8px 0 11px;padding:8px 10px}
#app.screen:not(.auth-mode) .work-score{margin:13px 0 9px}
#app.screen:not(.auth-mode) .work-confirmed{margin-bottom:9px}
#app.screen:not(.auth-mode) .work-track{height:10px}
#app.screen:not(.auth-mode) .work-track span{transition:width .85s cubic-bezier(.22,1,.36,1)}
#app.screen:not(.auth-mode) .work-facts{margin-top:13px;gap:8px}
#app.screen:not(.auth-mode) .work-facts>div{padding:11px 10px}
#app.screen:not(.auth-mode) .work-rules{margin-top:11px}
#app.screen:not(.auth-mode) .work-empty{padding:15px 12px;background:rgba(12,29,43,.72);min-height:75px;display:grid;place-items:center}
#app.screen:not(.auth-mode) .work-empty p{margin:0;line-height:1.8}
#app.screen:not(.auth-mode) .estate-summary{margin:0 0 12px}
#app.screen:not(.auth-mode) .estate-summary>div{background:rgba(27,52,70,.85);padding:10px 12px}
#app.screen:not(.auth-mode) .estate-chips{padding-bottom:7px;margin-bottom:0}
#app.screen:not(.auth-mode) .property-visual{aspect-ratio:16/6.6;max-height:166px;border-radius:13px;overflow:hidden}
#app.screen:not(.auth-mode) .property-thumb{object-fit:cover;object-position:center 45%}
#app.screen:not(.auth-mode) .property-card{padding:11px 12px 13px}
#app.screen:not(.auth-mode) .property-card .buttons{margin-top:9px}
#app.screen:not(.auth-mode) .business-disclaimer{margin:2px 0 12px}
#app.screen:not(.auth-mode) .bottom{background:rgba(7,24,40,.94);border-top:1px solid rgba(235,203,152,.32)}
#app.screen:not(.auth-mode) .content> :where(.city-wallet,.next-step,.mission-list,.estate-summary,.work-dashboard,.work-start-panel,.work-income,.business-disclaimer),
#app.screen:not(.auth-mode) .content>.section-title{animation:cityContentEnter .22s ease-out both}
@keyframes cityContentEnter{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:375px){
 #app.screen:not(.auth-mode) .hero{padding-inline:12px}
 #app.screen:not(.auth-mode) .content{padding-inline:11px}
 #app.screen:not(.auth-mode) .work-dashboard{padding:12px}
 #app.screen:not(.auth-mode) .property-visual{aspect-ratio:16/7.5}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .content> :where(.city-wallet,.next-step,.mission-list,.estate-summary,.work-dashboard,.work-start-panel,.work-income,.business-disclaimer),
 #app.screen:not(.auth-mode) .content>.section-title{animation:none}
 #app.screen:not(.auth-mode) .work-track span{transition:none}
}


/* v17: compact contextual property illustrations, never repetitive full-width banners. */
#app.screen:not(.auth-mode) .property-card{
 display:grid;grid-template-columns:minmax(96px,27%) minmax(0,1fr);gap:4px 12px;align-items:start;
}
#app.screen:not(.auth-mode) .property-card>.property-visual{
 grid-column:1;grid-row:1 / span 5;width:100%;height:122px;min-height:0;max-height:none;
 aspect-ratio:auto;margin:0;border-radius:12px;border:1px solid rgba(224,189,132,.2);background:rgba(13,32,47,.8);
}
#app.screen:not(.auth-mode) .property-card .property-thumb{
 width:100%;height:100%;object-fit:contain;object-position:center;padding:3px;transform:none;background:#11293b;
}
#app.screen:not(.auth-mode) .property-card> :is(.tag,h3,p,.property-status){grid-column:2;min-width:0}
#app.screen:not(.auth-mode) .property-card>.tag{
 justify-self:start;font-size:10px;padding:3px 6px;margin:0 0 2px;
}
#app.screen:not(.auth-mode) .property-card>h3{font-size:15px;line-height:1.45;margin:1px 0}
#app.screen:not(.auth-mode) .property-card>p{font-size:11px;line-height:1.5}
#app.screen:not(.auth-mode) .property-card>.buttons{grid-column:1/-1;margin:10px 0 0}
#app.screen:not(.auth-mode) .property-card:focus-within .property-thumb,
#app.screen:not(.auth-mode) .property-card:hover .property-thumb{transform:none}
#app.screen:not(.auth-mode) .content .list>.property-card{animation:cityContentEnter .2s ease-out both}
@media(max-width:345px){
 #app.screen:not(.auth-mode) .property-card{grid-template-columns:minmax(88px,32%) minmax(0,1fr);gap:4px 9px}
 #app.screen:not(.auth-mode) .property-card>.property-visual{height:105px}
 #app.screen:not(.auth-mode) .property-card>h3{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .content .list>.property-card{animation:none}
}


/* City Zero property scene atlas v19: 3 lightweight real art renders (ready, brick, shell).
   The existing architecture-specific SVG beneath each layer is a permanent fallback. */
#app.screen:not(.auth-mode) .property-card>.property-visual.property-scene{
 position:relative;isolation:isolate;background:#0b2235;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-scene::after{
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
 background-image:url('/play/media/property-scenes.webp');
 background-size:300% 100%;
 background-repeat:no-repeat;
 background-position:0% center;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-scene-brick::after{
 background-position:50% center;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-scene-shell::after{
 background-position:100% center;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-scene .property-thumb{
 opacity:.99; /* Falls back to the architecture SVG if WebP cannot load. */
}


/* PWA v25: property image readability and accurate visual stage captions. */
#app.screen:not(.auth-mode) .property-card{
 grid-template-columns:minmax(132px,39%) minmax(0,1fr);
 gap:5px 13px;
}
#app.screen:not(.auth-mode) .property-card>.property-visual{
 position:relative;overflow:hidden;height:128px;background:#0e273b;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-illustration{
 background:radial-gradient(circle at 75% 18%,rgba(211,164,104,.2),transparent 48%),#152e40;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-illustration .property-thumb{
 object-fit:contain;object-position:center;
 padding:8px 5px 25px;background:transparent;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-scene .property-thumb{
 background-color:#0d2537;
}
#app.screen:not(.auth-mode) .property-card>.property-visual .property-picture-phase{
 position:absolute;z-index:2;bottom:6px;right:6px;left:auto;
 color:#fff6e5;background:rgba(4,20,32,.9);
 border:1px solid rgba(235,201,148,.4);border-radius:9px;
 padding:3px 7px;font-size:10px;font-weight:700;line-height:1.35;
 box-shadow:0 2px 10px #07131f66;pointer-events:none;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-scene::after{
 border-radius:11px;filter:saturate(1.02) contrast(1.04);
}
#app.screen:not(.auth-mode) .property-card h3{line-height:1.55}
#app.screen:not(.auth-mode) .property-card .buttons{margin-top:8px;gap:7px}
#app.screen:not(.auth-mode) .property-card .buttons>.button{min-height:40px}
@media(max-width:400px){
 #app.screen:not(.auth-mode) .property-card{grid-template-columns:minmax(112px,36%) minmax(0,1fr);gap:5px 10px}
 #app.screen:not(.auth-mode) .property-card>.property-visual{height:118px}
}
@media(max-width:345px){
 #app.screen:not(.auth-mode) .property-card{grid-template-columns:minmax(91px,34%) minmax(0,1fr);gap:4px 9px}
 #app.screen:not(.auth-mode) .property-card>.property-visual{height:110px}
 #app.screen:not(.auth-mode) .property-card>.property-visual .property-picture-phase{font-size:9px;padding:2px 4px}
}


/* PWA v25: clearer property art and calmer, consistent small-screen controls. */
#app.screen:not(.auth-mode) .property-card>.property-visual.property-art-land,
#app.screen:not(.auth-mode) .property-card>.property-visual.property-art-apartment{
 background:#193349;
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-art-land .property-thumb,
#app.screen:not(.auth-mode) .property-card>.property-visual.property-art-apartment .property-thumb{
 object-fit:cover;object-position:center;padding:0;background:#122c40;
}
#app.screen:not(.auth-mode) .property-card{
 border-radius:17px;gap:5px 12px;
}
#app.screen:not(.auth-mode) .property-card .tag{font-size:11px;line-height:1.45}
#app.screen:not(.auth-mode) .property-card h3{font-size:16px;color:#fff6e7}
#app.screen:not(.auth-mode) .property-card p.muted{font-size:12px;color:#cbd9e3;line-height:1.6}
#app.screen:not(.auth-mode) .property-card .property-status{margin-top:3px}
#app.screen:not(.auth-mode) .estate-chips{
 gap:8px;scroll-snap-type:x proximity;scroll-padding-inline:5px;
}
#app.screen:not(.auth-mode) .estate-chips button{
 scroll-snap-align:start;padding-inline:13px;font-size:12px;flex-shrink:0;
}
#app.screen:not(.auth-mode) .estate-hint{
 margin:7px 1px 14px;padding:10px 12px;line-height:1.7;
 font-size:12px;color:#ccdbe2;background:rgba(18,40,54,.82);
 border:1px solid rgba(220,190,139,.25);border-radius:12px;
}
#app.screen:not(.auth-mode) .content .empty{
 padding:18px 14px;background:rgba(13,32,48,.82);
 border:1px dashed rgba(231,199,144,.25);line-height:1.8;
}
#app.screen:not(.auth-mode) .bottom button.center:not(.active){
 background:transparent;border-color:transparent;color:#b7c5cf;
}
#app.screen:not(.auth-mode) .bottom button:focus-visible,
#app.screen:not(.auth-mode) .estate-chips button:focus-visible,
#app.screen:not(.auth-mode) .button:focus-visible{
 outline:2px solid #f4dcac;outline-offset:2px;
}
#app.screen:not(.auth-mode) .bottom button.active{font-weight:800}
#app.screen:not(.auth-mode) .work-actions>#work-finish-holder{
 flex:1 1 100%;min-width:0;
}
#app.screen:not(.auth-mode) .work-facts small{font-size:12px}
#app.screen:not(.auth-mode) .profile-head{margin-bottom:9px}
#app.screen:not(.auth-mode) .profile-head h2{line-height:1.5}
#app.screen:not(.auth-mode) .stat>div{min-width:0;border:1px solid rgba(255,255,255,.06)}
#app.screen:not(.auth-mode) .stat b{font-variant-numeric:tabular-nums}
#app.screen:not(.auth-mode) .management-drawer>summary{min-height:48px}
@media(max-width:380px){
 #app.screen:not(.auth-mode) .property-card{grid-template-columns:minmax(112px,36%) minmax(0,1fr);gap:4px 9px}
 #app.screen:not(.auth-mode) .property-card h3{font-size:14px}
 #app.screen:not(.auth-mode) .property-card p.muted{font-size:11px}
 #app.screen:not(.auth-mode) .property-card>.property-visual{height:116px}
 #app.screen:not(.auth-mode) .property-card .buttons .button{font-size:12px;padding-inline:7px}
 #app.screen:not(.auth-mode) .bottom button{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .estate-chips{scroll-snap-type:none}
}

/* PWA v25 — housing/land photo art; original SVG stays behind each atlas panel as fallback. */
#app.screen:not(.auth-mode) .property-card>.property-visual.property-housing-scene{position:relative;isolation:isolate;background:#0b2235}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-housing-scene::after{
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
 background-image:url('/play/media/property-housing-scenes.webp');
 background-size:200% 100%;background-repeat:no-repeat;background-position:0% center;
 border-radius:11px;filter:saturate(1.07) contrast(1.05);
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-housing-apartment::after{background-position:0% center}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-housing-land::after{background-position:100% center}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-housing-scene .property-thumb{object-fit:cover;padding:0;background:#122c40}
#app.auth-mode.signup-mode .login-shell{overflow-y:auto;justify-content:flex-start;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
#app.auth-mode.signup-mode .login-main{width:100%;max-width:420px}
#app.auth-mode.signup-mode .login-header{margin:7px 0 3px}
#app.auth-mode.signup-mode .login-shell h1{margin:5px 0}
#app.auth-mode.signup-mode .login-shell .lead{font-size:12px}
#app.auth-mode.signup-mode .signup-form{padding:15px;margin:0;text-align:right}
#app.auth-mode.signup-mode .signup-form .field{margin:7px 0}
#app.auth-mode.signup-mode .signup-form .field span{font-size:12px;color:#ebd9bb}
#app.auth-mode.signup-mode .signup-form input:not([type=checkbox]){min-height:43px;height:43px;font-size:16px}
#app.auth-mode.signup-mode .signup-form .signup-rules{margin:11px 0;font-size:11px}
#app.auth-mode.signup-mode .signup-explain{font-size:11px;line-height:1.65;color:#ccd9df;margin:9px 0}
#app.auth-mode.signup-mode .signup-status{padding:10px 12px;border:1px solid #dabf8861;background:#d5af7612;border-radius:12px;font-size:12px;line-height:1.7;color:#f6d9a5;margin:5px 0 10px}
#app.auth-mode.signup-mode .signup-status.ready{color:#bbebd7;border-color:#7ac4a165;background:#153f383d}
#app.auth-mode.signup-mode .signup-back{margin:9px 0}
#app.auth-mode .login-options{grid-template-columns:1fr}
#app.auth-mode.signup-mode #register-submit:disabled{background:#364a57;color:#bdc7ca;border-color:#687b84;box-shadow:none;opacity:.8}
@media(max-height:630px){#app.auth-mode.signup-mode .login-mark{width:48px;height:48px}#app.auth-mode.signup-mode .signup-form{padding:11px}}

/* PWA v25: realistic residential stages. SVG fallback remains underneath. */
#app.screen:not(.auth-mode) .property-card>.property-visual.property-residential-stage{position:relative;isolation:isolate;background:#152c3b}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-residential-stage::after{
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
 background-image:url('/play/media/property-residential-stages.webp');
 background-size:200% 100%;background-repeat:no-repeat;background-position:0% center;
 border-radius:11px;filter:saturate(1.04) contrast(1.035);
}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-residential-brick::after{background-position:100% center}
#app.screen:not(.auth-mode) .property-card>.property-visual.property-residential-stage .property-thumb{object-fit:cover;object-position:center;padding:0;background:#142b3b}
/* Signup scroll belongs to the page, never to an internal pane. */
html:has(#app.auth-mode.signup-mode),body:has(#app.auth-mode.signup-mode){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:auto}
#app.auth-mode.signup-mode{position:relative;inset:auto;display:flex;justify-content:center;align-items:flex-start;width:100%;height:auto;min-height:100svh;min-height:100dvh;max-width:none;overflow:visible}
#app.auth-mode.signup-mode .login-shell{height:auto;min-height:100svh;min-height:100dvh;max-height:none;overflow:visible;width:min(100%,500px);margin:0 auto;padding:clamp(18px,3vh,35px) clamp(15px,3vw,22px) calc(30px + env(safe-area-inset-bottom));gap:12px;justify-content:flex-start}
#app.auth-mode.signup-mode .login-header{margin:0;flex:none}
#app.auth-mode.signup-mode .signup-form{padding:clamp(13px,2.5vw,19px);margin:0}
#app.auth-mode.signup-mode .signup-form .field{margin:0 0 12px}
#app.auth-mode.signup-mode .signup-form .field span{margin-bottom:4px}
#app.auth-mode.signup-mode .signup-form input:not([type=checkbox]){width:100%;max-width:100%}
#app.auth-mode.signup-mode .signup-status{margin:0 0 12px}
#app.auth-mode.signup-mode .signup-rules{margin:12px 0}
#app.auth-mode.signup-mode .signup-back{min-height:44px}
#app.auth-mode.signup-mode .login-foot{margin:4px 0 0;padding-bottom:0}
@media(min-width:980px) and (min-height:700px){
 #app.auth-mode.signup-mode .login-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;align-content:center;column-gap:clamp(26px,5vw,62px);row-gap:10px;width:min(93vw,920px);max-width:none;min-height:100dvh}
 #app.auth-mode.signup-mode .login-header{grid-column:1;grid-row:1;text-align:center}
 #app.auth-mode.signup-mode .login-mark{width:95px;height:95px}
 #app.auth-mode.signup-mode .login-main{grid-column:2;grid-row:1;max-width:none}
 #app.auth-mode.signup-mode .login-foot{grid-column:1/-1}
}
@media(max-width:420px){
 #app.auth-mode.signup-mode .login-shell{padding-inline:14px;gap:10px}
 #app.auth-mode.signup-mode .login-mark{width:58px;height:58px;margin-bottom:4px}
 #app.auth-mode.signup-mode .signup-form .field{margin-bottom:10px}
 #app.auth-mode.signup-mode .signup-form input:not([type=checkbox]){height:44px}
}

/* PWA v25 — compact two-field trial signup. */
#app.auth-mode.signup-mode .signup-form{max-width:100%}
#app.auth-mode.signup-mode .signup-form .field{margin-bottom:12px}
#app.auth-mode.signup-mode .signup-form .signup-explain{line-height:1.8}
#app.auth-mode .signup-pending{margin:0 0 10px;text-align:center}
@media(min-width:980px) and (min-height:700px){#app.auth-mode.signup-mode .login-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:880px}}

/* PWA v25: player-first signup and responsive five-tab audit. */
#app.auth-mode.signup-mode .signup-closed{margin:0 0 12px;padding:10px 12px;text-align:center;font-size:12px;border:1px solid #e0bb8066;background:#e0bb8015;color:#f4deb8;border-radius:12px}
#app.auth-mode.signup-mode .signup-form{width:100%;text-align:right}
#app.auth-mode.signup-mode .signup-form .field{margin:0 0 13px;min-width:0}
#app.auth-mode.signup-mode .signup-form input{width:100%;max-width:100%;font-size:16px}
#app.auth-mode.signup-mode .signup-form input[name=username]{direction:ltr;text-align:left}
#app.auth-mode.signup-mode .signup-form input[name=display_name]{text-align:start}
#app.auth-mode.signup-mode .login-foot{display:none}
#app.auth-mode.signup-mode .login-shell{width:min(100%,500px)}
/* Prevent narrow viewport overflow with long Arabic/Latin content and card actions. */
html,body{max-width:100%;overflow-x:clip}
#app.screen:not(.auth-mode){width:100%;max-width:540px;overflow-x:clip}
#app.screen:not(.auth-mode) :is(.content,.hero,.panel,.item,.list,.work-dashboard,.work-start-panel,.property-card,.city-wallet,.work-facts,.work-income,.stat){min-width:0}
#app.screen:not(.auth-mode) :is(.content,.panel,.item,.work-dashboard,.property-card,.stat>div,.work-facts>div,.work-income>div){overflow-wrap:anywhere}
#app.screen:not(.auth-mode) :is(.stat,.work-facts,.work-income){grid-template-columns:repeat(2,minmax(0,1fr))}
#app.screen:not(.auth-mode) :is(.work-score,.work-actions,.hero-headline,.topline){min-width:0;flex-wrap:wrap}
#app.screen:not(.auth-mode) :is(.buttons,.work-actions)>.button{min-width:0;white-space:normal;text-align:center}
#app.screen:not(.auth-mode) .property-card>.buttons{min-width:0}
#app.screen:not(.auth-mode) .bottom{width:min(100%,540px);grid-template-columns:repeat(5,minmax(0,1fr));padding-inline:max(4px,env(safe-area-inset-left)) max(4px,env(safe-area-inset-right))}
#app.screen:not(.auth-mode) .bottom button{min-width:0;min-height:52px;white-space:normal;overflow-wrap:anywhere;line-height:1.25;gap:4px;padding-inline:1px}
#app.screen:not(.auth-mode) .chips{-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
#app.screen:not(.auth-mode) .scene{max-width:100%}
#app.screen:not(.auth-mode) :is(input,select,textarea){min-width:0;max-width:100%;font-size:16px}
@media(max-width:380px){
 #app.screen:not(.auth-mode) .content{padding-inline:11px}
 #app.screen:not(.auth-mode) .panel{padding:12px}
 #app.screen:not(.auth-mode) .property-card{grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:6px 8px}
 #app.screen:not(.auth-mode) .property-card>.property-visual{height:108px}
 #app.screen:not(.auth-mode) .property-card>.buttons{grid-template-columns:minmax(0,1fr)}
 #app.screen:not(.auth-mode) .property-card>.buttons button{width:100%}
 #app.screen:not(.auth-mode) .bottom button{font-size:10px}
 #app.screen:not(.auth-mode) .scene{min-height:min(470px,72svh);padding:16px}
 #app.screen:not(.auth-mode) .scene h2{font-size:22px}
}
@media(max-height:550px) and (orientation:landscape){
 #app.screen:not(.auth-mode) .bottom{padding-block:4px calc(4px + env(safe-area-inset-bottom))}
 #app.screen:not(.auth-mode) .bottom button{min-height:42px;gap:2px}
 #app.screen:not(.auth-mode) .bottom button svg{height:18px;width:18px}
 #app.screen:not(.auth-mode) .content{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 #app.auth-mode.signup-mode .login-shell{min-height:100dvh}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* PWA v26: first-job ticket desk and real-person opt-in meeting. */
.work-desk{margin-block:15px;padding:17px;border:1px solid rgba(241,211,156,.36);background:linear-gradient(145deg,rgba(20,43,58,.98),rgba(9,30,48,.98))}
.work-desk-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.work-desk-head h2,.meet-intro h2{font-size:clamp(19px,5vw,23px);line-height:1.3;margin:6px 0}
.work-desk .muted{line-height:1.65}
.desk-progress{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:rgba(255,255,255,.05);border:1px solid var(--line);padding:10px;border-radius:12px;margin:13px 0}
.desk-progress strong{color:var(--gold)}
.desk-progress span{font-size:12px;color:var(--muted)}
.desk-feedback{padding:10px 12px;border-radius:12px;border:1px solid rgba(241,211,156,.24);background:rgba(241,211,156,.07);line-height:1.7}
.desk-ticket{margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:15px;background:rgba(3,19,32,.53)}
.desk-ticket h3{font-size:17px;line-height:1.6;margin:9px 0;color:var(--text)}
.desk-ticket p{color:var(--muted);margin:0 0 12px}
.desk-choices{display:grid;gap:9px}
.desk-choice{border:1px solid rgba(241,211,156,.33);border-radius:12px;padding:13px 14px;background:rgba(24,54,71,.94);color:var(--text);text-align:right;font-size:15px;min-height:47px;cursor:pointer;touch-action:manipulation}
.desk-choice:hover,.desk-choice:focus-visible{border-color:var(--gold);background:rgba(57,72,79,.97);outline-offset:3px}
.desk-choice:disabled{opacity:.6;cursor:wait}
.desk-finished{color:var(--gold);line-height:1.7;padding:14px;border-radius:12px;background:rgba(241,211,156,.07)}
.meet-intro{margin-bottom:16px;background:linear-gradient(140deg,rgba(20,49,69,.97),rgba(10,29,48,.98))}
.meet-intro p{line-height:1.8;color:var(--muted)}
.meet-status{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.meet-status>span:last-child{margin-inline-start:auto;color:var(--muted);font-size:13px}
.meet-dot{display:inline-block;width:9px;height:9px;background:#77d4ae;border-radius:50%;box-shadow:0 0 0 4px rgba(119,212,174,.13)}
.meet-players{display:grid;gap:10px;margin-bottom:15px}
.meet-player{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;padding:13px;border:1px solid var(--line);background:rgba(13,36,54,.95);border-radius:15px}
.meet-avatar{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:rgba(241,211,156,.12);border:1px solid rgba(241,211,156,.3);color:var(--gold);font-weight:800}
.meet-player>div{display:grid;gap:4px;flex:1;min-width:90px}
.meet-player strong{overflow-wrap:anywhere}
.meet-player small{color:var(--muted);font-size:12px}
.meet-player button{flex-shrink:0}
.meet-greetings{display:grid;gap:8px}
.meet-greetings p{margin:0;background:rgba(241,211,156,.08);border:1px solid rgba(241,211,156,.2);border-radius:12px;padding:12px;line-height:1.5}
@media(max-width:380px){.work-desk{padding:12px}.desk-ticket{padding:12px}.meet-player{gap:8px}.meet-player button{width:100%}}
@media(prefers-reduced-motion:reduce){.desk-choice{transition:none}}

/* PWA v27 — 10s flexible wages and useful player guidance. */
.work-policy{margin:12px 0 15px;display:grid;gap:7px;padding:13px 14px;background:rgba(239,207,141,.09);border:1px solid rgba(239,207,141,.24);border-radius:13px}
.work-policy strong{color:var(--gold);font-size:15px;line-height:1.5}
.work-policy span{font-size:12px;color:var(--muted);line-height:1.7}
.work-policy-legacy{padding:11px 12px;border-radius:12px;color:var(--muted);background:rgba(255,255,255,.045);line-height:1.7;font-size:12px}
.work-facts strong{font-variant-numeric:tabular-nums}
.work-dashboard .work-score small{line-height:1.5}
.work-dashboard .work-hint{margin-bottom:8px}
.rent-reminders{display:grid;gap:10px}
.rent-reminder{padding:14px;background:linear-gradient(140deg,rgba(31,51,64,.96),rgba(10,31,47,.96));border:1px solid rgba(241,211,156,.26);border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.rent-reminder h3{margin:5px 0;font-size:16px}
.rent-reminder p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.rent-reminder button{flex-shrink:0}
.property-help{border:1px solid rgba(241,211,156,.23);border-radius:13px;padding:12px 14px;margin-bottom:14px;background:rgba(10,31,48,.89)}
.property-help summary{cursor:pointer;color:var(--gold);font-weight:700;line-height:1.6}
.property-help p{color:var(--muted);font-size:13px;line-height:1.8;margin-bottom:0}
@media(max-width:360px){.rent-reminder{align-items:stretch;flex-direction:column}.rent-reminder button{width:100%}.work-policy{padding:11px}}

/* Public city chat / wallet HUD / hands-on job desk. Mobile-first. */
#app.screen:not(.auth-mode){overflow:visible}
.always-wallet{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:11px;padding:8px 13px;border-bottom:1px solid rgba(241,211,156,.23);background:rgba(7,22,34,.97);backdrop-filter:blur(14px);min-height:54px;max-width:100%}
.always-wallet-name{max-width:33%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.always-wallet strong{margin-inline-start:auto;color:var(--gold);font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.always-wallet small{font-size:10px}
.always-chat{display:flex;align-items:center;gap:4px;background:rgba(241,211,156,.12);border:1px solid rgba(241,211,156,.3);border-radius:11px;color:var(--gold);padding:5px 9px;white-space:nowrap;font-size:12px}
.always-chat svg{width:17px;height:17px}
.chat-intro p{color:var(--muted);line-height:1.7;margin:4px 0}
.chat-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px}
.chat-room{padding:13px}
.chat-messages{min-height:220px;max-height:min(52svh,500px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:9px;padding:7px 2px 12px}
.chat-message{background:rgba(5,22,35,.72);border:1px solid var(--line);border-radius:13px;padding:10px 12px;overflow-wrap:anywhere}
.chat-meta{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.chat-meta strong{color:var(--gold)}
.chat-meta small{color:var(--muted)}
.chat-message p{white-space:pre-wrap;margin:5px 0 0;font-size:14px;line-height:1.65}
.chat-report{display:block;margin:6px 0 0 auto;border:0;background:none;color:var(--muted);font-size:11px;padding:2px 4px;text-decoration:underline}
.chat-compose{display:flex;gap:7px;align-items:stretch;border-top:1px solid var(--line);padding-top:12px}
.chat-compose input{min-width:0;flex:1;min-height:44px;border-radius:11px;border:1px solid var(--line);background:rgba(5,18,28,.9);color:var(--text);padding:9px 11px;font-size:16px}
.chat-compose button{flex-shrink:0}
.chat-help{margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.work-desk .desk-arcade-title{color:var(--gold);font-size:11px}
.desk-arcade{margin-top:14px}
.desk-conveyor{height:220px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:17px;border:1px solid rgba(241,211,156,.24);background:repeating-linear-gradient(90deg,#162d3b 0,#162d3b 12px,#1d3947 12px,#1d3947 18px)}
.desk-conveyor::before{content:'';position:absolute;inset:15px 0;background:repeating-linear-gradient(90deg,transparent 0,transparent 27px,#ffffff0e 28px,transparent 33px);animation:desk-belt 6s linear infinite;pointer-events:none}
.desk-conveyor-label{position:absolute;top:9px;right:12px;color:var(--gold);font-size:11px;z-index:1}
.desk-envelope{position:relative;z-index:2;width:min(240px,83%);padding:15px;border:1px solid #c9ad80;box-shadow:0 16px 30px #0008;background:linear-gradient(145deg,#e9d8b8,#d2bc94);border-radius:12px;color:#26313b;display:grid;place-items:center;gap:5px;text-align:center;cursor:grab;touch-action:none;user-select:none;animation:desk-arrival .55s ease-out}
.desk-envelope-icon{font-size:29px}
.desk-envelope strong{font-size:15px}
.desk-envelope small{font-size:12px;color:#38434d;line-height:1.45}
.desk-drag-hint{font-size:11px;font-weight:800}
.desk-envelope.desk-is-moving{cursor:grabbing;z-index:6;animation:none;opacity:.87}
.desk-stations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:13px}
.desk-station{display:grid;place-items:center;gap:6px;min-height:104px;padding:11px 5px;border:1px solid rgba(241,211,156,.39);background:#0c2a3d;color:var(--text);border-radius:12px;text-align:center;overflow-wrap:anywhere}
.desk-station strong{font-size:12px;line-height:1.4}
.station-icon{font-size:23px;color:var(--gold)}
.station-hint{font-size:10px;color:var(--muted)}
.desk-station:hover,.desk-station:focus-visible{border-color:var(--gold);background:#1b445a}
.desk-arcade-help{text-align:center;color:var(--muted);font-size:11px;margin:11px 0 0}
@keyframes desk-belt{to{transform:translateX(-35px)}}
@keyframes desk-arrival{from{transform:translateY(-12px);opacity:.6}to{transform:translateY(0);opacity:1}}
@media(max-width:380px){.always-wallet{gap:5px;padding-inline:8px}.always-wallet-name{font-size:11px}.always-wallet strong{font-size:15px}.chat-compose{gap:4px}.chat-room{padding:9px}.desk-stations{gap:4px}.desk-station{padding:9px 2px}}
@media(prefers-reduced-motion:reduce){.desk-conveyor::before,.desk-envelope{animation:none}}

/* v29 — player skill tiers and better property management. */
.career-skills{background:linear-gradient(142deg,rgba(44,58,73,.96),rgba(15,40,58,.97));border-color:rgba(241,211,156,.33)}
.career-skill-top{display:flex;align-items:center;justify-content:space-between;gap:11px}
.career-skill-top h3{margin:5px 0 0;font-size:18px}
.career-skills p{color:var(--muted);line-height:1.7}
.skill-level{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid rgba(241,211,156,.4);background:rgba(241,211,156,.1);padding:6px 9px;border-radius:30px;color:var(--gold);font-weight:700;font-size:12px}
.skill-max{color:var(--gold);font-size:14px}
.career-advanced-list{display:grid;gap:10px}
.career-advanced .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.career-advanced h3{margin:0}
.career-advanced .work-rate{margin-inline-start:auto}
.estate-owner-help{font-size:13px;line-height:1.8}
.estate-owner-help h3{font-size:17px}
.estate-owner-help p{color:var(--muted)}
@media(max-width:360px){.career-skill-top{align-items:flex-start}.career-advanced .row{align-items:start;flex-direction:column}.career-advanced .work-rate{margin-inline-start:0}}

/* v29: a stable, large second counter. No progress track or entrance flash on snapshot refresh. */
#app.jobs-mode .work-dashboard,#app.jobs-mode .content>.section-title,#app.jobs-mode .content>.work-income{animation:none!important}
#app.jobs-mode .work-clock{min-height:70px;align-items:center;margin:16px 0 11px}
#app.jobs-mode .work-clock .work-present{font-variant-numeric:tabular-nums;min-width:2.3ch;display:inline-block}

/* v30: compact credit history reachable directly from the always-visible balance. */
#app .always-wallet-button{display:inline-flex;align-items:center;gap:6px;min-width:0;border:1px solid rgba(231,194,130,.38);border-radius:12px;background:rgba(232,198,133,.08);padding:5px 10px;color:var(--gold);cursor:pointer}
#app .always-wallet-button strong{font-size:clamp(13px,3.7vw,17px);font-variant-numeric:tabular-nums;white-space:nowrap}
#app .always-wallet-button small{font-size:10px;color:var(--muted)}
#app .always-wallet-button:focus-visible,#app .profile-wallet-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#app .profile-wallet-link{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:43px;padding:3px 0;background:none;border:none;color:var(--gold);font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
#app .profile-wallet-link span{font-size:11px;font-weight:650;color:var(--muted)}
#app .wallet-intro{padding:24px 20px;text-align:center;background:linear-gradient(145deg,#263e4f,#0c2031);border-color:rgba(232,199,142,.43)}
#app .wallet-intro h2{font-size:23px}
#app .wallet-main-balance{display:block;font-size:clamp(29px,8vw,44px);font-variant-numeric:tabular-nums;line-height:1.3;margin:10px auto;color:#fae1a7}
#app .wallet-main-balance small{font-size:13px;font-weight:500;color:var(--muted)}
#app .wallet-entries{display:grid;gap:10px}
#app .wallet-entry{padding:15px;border:1px solid rgba(201,222,233,.17);border-radius:17px;background:linear-gradient(140deg,#162d3f,#0d2030);overflow-wrap:anywhere}
#app .wallet-entry-top{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap}
#app .wallet-delta{direction:ltr;font-size:20px;font-variant-numeric:tabular-nums}
#app .wallet-delta.incoming{color:#9ee8cb}
#app .wallet-delta.outgoing{color:#f6c7aa}
#app .wallet-direction{color:var(--muted);font-size:12px}
#app .wallet-entry h3{margin:10px 0 3px;font-size:16px}
#app .wallet-memo{font-size:13px;color:#d7e2ea;margin:2px 0 11px}
#app .wallet-entry-foot{display:flex;gap:9px;justify-content:space-between;flex-wrap:wrap;font-size:11px;color:var(--muted);direction:rtl}
#app .wallet-entry-foot time{direction:ltr}
#app .wallet-loadmore{margin:15px 0}
#app .wallet-error{color:#ffd0bd;border:1px solid #d8766080;border-radius:13px;background:#492d2988;padding:12px}
@media(max-width:360px){#app .always-wallet-button{gap:3px;padding:4px 5px}#app .wallet-entry{padding:12px}#app .wallet-intro{padding:19px 13px}}

#app .always-wallet-button{margin-inline-start:auto}
#app .always-wallet-button strong{margin-inline-start:0}


/* Player inbox: compact always-visible bell, scoped message/applicant cards. */
.always-notices{position:relative;display:grid;place-items:center;flex:0 0 38px;width:38px;height:37px;border:1px solid rgba(241,211,156,.3);border-radius:11px;background:rgba(241,211,156,.08);color:var(--gold);cursor:pointer}
.always-notices svg{width:20px;height:20px}
.always-notices:focus-visible,.notice-item:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.notice-count{position:absolute;top:-5px;left:-4px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#f1d39c;color:#132536;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}
.notice-count[hidden]{display:none}
.notice-intro h2{margin:5px 0 10px}
.notice-intro p{color:var(--muted);line-height:1.7}
.notice-list{display:grid;gap:9px;margin-bottom:22px}
.notice-item{width:100%;text-align:start;display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:15px;background:rgba(9,27,41,.94);color:var(--text);padding:14px 12px;cursor:pointer}
.notice-unread{border-color:rgba(241,211,156,.56);background:linear-gradient(145deg,rgba(28,51,64,.98),rgba(10,32,47,.98))}
.notice-item-icon{display:grid;place-items:center;flex:0 0 28px;color:var(--gold)}
.notice-item-copy{min-width:0;flex:1;display:grid;gap:5px;overflow-wrap:anywhere}
.notice-item-copy strong{font-size:14px}
.notice-item-copy small{font-size:13px;color:var(--muted);line-height:1.6;white-space:normal}
.notice-item-copy time{font-size:11px;color:var(--muted);direction:ltr;justify-self:start}
.notice-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--gold);margin-top:8px}
@media(max-width:380px){.always-wallet{gap:5px;padding-inline:7px}.always-wallet-name{max-width:19%;font-size:10px}.always-notices{width:34px;flex-basis:34px;height:35px}.always-chat{padding:5px 6px}.always-wallet-button strong{font-size:14px}}

/* v31: genuinely draggable cabinet file, finger hover feedback and tidy ledger. */
#app .desk-envelope.desk-is-moving{pointer-events:none;will-change:transform;transition:none;box-shadow:0 22px 35px #000a;filter:brightness(1.06)}
#app .desk-station.desk-drop-ready{border-color:#f9d99c;background:#2d5766;box-shadow:0 0 0 2px #f7d49a4d inset;transform:translateY(-2px)}
#app .always-wallet-button{border:0;background:transparent;padding:5px 8px}
#app .wallet-entry{line-height:1.5}
#app .wallet-entry h3{margin:10px 0 4px}
#app .wallet-memo{margin:4px 0 12px;background:#ffffff09;padding:8px 10px;border-radius:9px}

/* v31: mobile question challenges and clear early-exit clauses. */
#app .work-quiz{padding:16px;border-color:#d0aa7794;background:linear-gradient(145deg,#253f52,#11263b)}
#app .work-quiz h2{font-size:21px;margin:5px 0}
#app .work-quiz .muted{line-height:1.7;font-size:13px}
#app .quiz-question{background:#081b2e;border:1px solid #d1c1a53d;border-radius:16px;padding:14px 12px}
#app .quiz-question h3{font-size:16px;line-height:1.7;margin:0 0 14px}
#app .quiz-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#app .quiz-choice{background:#224155;color:#f7eddb;border:1px solid #e6c68b7f;border-radius:12px;min-height:56px;padding:9px 4px;font-size:16px;font-weight:850;font-variant-numeric:tabular-nums;transition:background .15s}
#app .quiz-choice:disabled{opacity:.45}
#app .quiz-choice:not(:disabled):hover,#app .quiz-choice:focus-visible{background:#3c6371;outline:2px solid #e9d4ae;outline-offset:2px}
#app .quiz-feedback{background:rgba(233,203,153,.09);border:1px solid rgba(233,203,153,.34);border-radius:12px;color:#f4dea8;padding:10px;margin:12px 0}
#app .quiz-wait{color:#e9cd9b}
#app .contract-penalty{font-size:12px;line-height:1.7;color:#f1d9ab;margin:10px 0;padding:9px 12px;background:#b8854930;border:1px solid #e2c18c55;border-radius:9px}
@media(max-width:360px){#app .work-quiz{padding:12px}#app .quiz-options{gap:5px}#app .quiz-choice{min-height:53px}}
@media(prefers-reduced-motion:reduce){#app .quiz-choice{transition:none}}

/* Work hub redesign: compact, mobile-first; no changes to server-confirmed pay. */
#app.jobs-mode .content{padding-top:13px}
#app .work-hub-head{position:relative;overflow:hidden;border:1px solid rgba(225,194,139,.47);border-radius:23px;background:linear-gradient(130deg,#243f51 0%,#152d40 55%,#0d2132 100%);padding:19px 17px 17px;box-shadow:0 16px 36px #0004;margin-bottom:12px;isolation:isolate}
#app .work-hub-head:before{content:"";position:absolute;inset:auto -45px -115px auto;width:225px;height:225px;border:1px solid #e1be7d22;border-radius:50%;box-shadow:0 0 0 29px #e1be7d0b,0 0 0 66px #e1be7d08;z-index:-1;pointer-events:none}
#app .work-hub-eyebrow{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#e8cc9e;font-size:12px;font-weight:750}
#app .work-hub-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;font-weight:750;border-radius:30px;padding:4px 9px;border:1px solid #e1ca9b45;background:#f4daa713;color:#f0d8ab}
#app .work-hub-status:before{content:"";height:6px;width:6px;border-radius:50%;background:#e1bc83}
#app .work-hub-status.working{color:#b7efd5;border-color:#77d9a65d;background:#3dc88b0b}
#app .work-hub-status.working:before{background:#86e3b5}
#app .work-hub-head h2{font-size:clamp(22px,6vw,27px);line-height:1.3;margin:12px 0 3px;font-weight:850}
#app .work-hub-head>p{color:#c7d6df;font-size:13px;margin:0 0 15px}
#app .work-hub-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border-top:1px solid #e6cda536;padding-top:13px}
#app .work-hub-summary>div{display:flex;flex-direction:column;justify-content:center;min-height:50px;padding:8px 7px;background:#081b2b73;border:1px solid #bfd1db19;border-radius:10px;min-width:0}
#app .work-hub-summary small{color:#9fb7c6;font-size:10px;line-height:1.4}
#app .work-hub-summary strong{display:block;margin-top:4px;color:#f0d9ae;font-size:clamp(11px,2.9vw,13px);font-weight:850;line-height:1.5;font-variant-numeric:tabular-nums}
#app .work-view-tabs{position:sticky;top:54px;z-index:11;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px;margin:0 0 17px;border:1px solid #e0bd844d;background:#0d2234f2;border-radius:15px;backdrop-filter:blur(12px)}
#app .work-view-tab{min-width:0;min-height:45px;border:1px solid transparent;border-radius:11px;padding:8px 5px;color:#b8cbd8;font-size:clamp(11px,3vw,13px);font-weight:800;line-height:1.4;cursor:pointer;background:transparent}
#app .work-view-tab.selected{background:linear-gradient(120deg,#f1d99e,#caa76f);color:#142538;box-shadow:0 3px 12px #0005}
#app .work-view-tab:focus-visible{outline:2px solid #e9cf9f;outline-offset:2px}
#app .work-view-content{min-height:220px}
#app .work-view-content>.section-title{padding:0 2px;margin:19px 0 10px}
#app .work-view-content>.section-title h2{font-size:18px;line-height:1.4}
#app .work-view-content .list{gap:9px}
#app .work-view-content .item{border-radius:15px;background:linear-gradient(145deg,#172f42,#0e2436)}
#app .work-view-content .work-contract{padding:15px}
#app .work-view-content .career-skills{padding:17px}
#app .work-view-content .work-history{padding:13px}
#app .work-dashboard{padding:17px;border-radius:22px;background:linear-gradient(160deg,#253e52,#11283a 67%,#0e2033)}
#app .work-dashboard .work-card-head{gap:8px}
#app .work-dashboard h2{font-size:clamp(23px,5.8vw,27px);margin:13px 0 4px}
#app .work-dashboard-intro{font-size:12px;color:#c7d8e2;line-height:1.7;margin:0 0 13px}
#app .work-steps-fold{margin:7px 0 12px;border-bottom:1px solid #dec59b2e}
#app .work-steps-fold>summary{cursor:pointer;list-style:none;padding:8px 0 12px;color:#d5dfdf;font-size:11px}
#app .work-steps-fold>summary::-webkit-details-marker{display:none}
#app .work-steps-fold>summary:after{content:"⌄";display:inline-block;margin-inline-start:8px;color:#f0d3a3}
#app .work-steps-fold[open]>summary:after{transform:rotate(180deg)}
#app .work-steps-fold .work-journey{margin:2px 0 6px}
#app .work-steps-fold .work-phase{margin:5px 0 11px}
#app .work-dashboard .work-clock{margin:0 0 13px;min-height:110px;display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid #e1c28d59;background:radial-gradient(ellipse at 50% 0%,#f5d79e16,transparent 75%),#081b2bbd;border-radius:18px;padding:17px 10px}
#app .work-dashboard .work-clock .work-present{font-size:clamp(57px,18vw,83px);font-weight:900;letter-spacing:-2px;line-height:1.1;min-width:2ch;color:#ffe9b9;font-variant-numeric:tabular-nums;display:block}
#app .work-dashboard .work-clock small{display:block;color:#c7d8df;margin-top:7px;font-size:12px}
#app .work-dashboard .work-confirmed{margin:0 3px 12px}
#app .work-dashboard .work-facts{gap:8px}
#app .work-dashboard .work-facts>div{padding:13px 9px;background:#0619298c;border:1px solid #bbd1d62b;border-radius:13px}
#app .work-dashboard .work-facts small{font-size:10px;line-height:1.6;color:#a9c1cf}
#app .work-dashboard .work-facts strong{font-size:17px;color:#fae0ab;line-height:1.6}
#app .work-dashboard .work-policy{margin:12px 0;padding:11px 12px;background:#f0d2980c}
#app .work-dashboard .work-policy span{font-size:11px}
#app .work-dashboard .work-actions{margin-top:11px}
#app .work-dashboard .work-actions button{min-height:51px;width:100%;font-size:14px;font-weight:850}
#app .work-dashboard .work-hint{font-size:11px;color:#bdd0da;text-align:center;margin:8px 0}
#app .work-dashboard .work-rules{border-top:1px solid #e3c18f30;padding-top:8px;margin-top:7px}
#app .work-dashboard .work-rules summary{font-size:12px}
#app .work-quiz{margin:15px 0;border-radius:21px;padding:18px 16px;background:linear-gradient(160deg,#233f50,#11283a 80%)}
#app .work-quiz .work-desk-head h2{font-size:23px}
#app .work-quiz .desk-arcade-title{font-size:10px;color:#d8b981;white-space:nowrap}
#app .quiz-stakes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0 14px}
#app .quiz-stakes span{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 7px;font-size:12px;border:1px solid #a1c6bc55;padding:10px;border-radius:11px;background:#82cdab0d;color:#b1edce}
#app .quiz-stakes .quiz-bad{border-color:#dba48a57;background:#d17e6e0b;color:#f2c9b4}
#app .quiz-stakes strong{font-size:13px;font-variant-numeric:tabular-nums}
#app .quiz-question{padding:16px 12px 12px;border-color:#d5c08e64;background:#091c2d}
#app .quiz-category{display:inline-flex;align-items:center;border:1px solid #ebcfa35c;background:#edc78f16;padding:4px 10px;border-radius:20px;color:#f0d6a8;font-size:11px;font-weight:750}
#app .quiz-question h3{font-size:clamp(16px,4.4vw,18px);line-height:1.75;margin:12px 0 15px;font-weight:800}
#app .quiz-options{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
#app .quiz-choice{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:12px;text-align:right;white-space:normal;min-height:57px;border-radius:13px;background:#20394f;font-size:13px;line-height:1.6;font-weight:700;padding:10px 11px}
#app .quiz-choice-key{flex:0 0 30px;height:30px;display:grid;place-items:center;border:1px solid #dcbf895e;border-radius:9px;background:#f6d89d15;color:#f0d7a7;font-size:13px;font-weight:850}
#app .quiz-choice:hover:not(:disabled){background:#325267}
#app .quiz-feedback{font-size:13px;line-height:1.7}
#app .work-desk{border-radius:21px}
#app .work-income>div{padding:12px}
#app .work-alert{line-height:1.7}
@media(max-width:380px){
 #app .work-hub-head{padding:16px 12px;border-radius:18px}
 #app .work-hub-summary{gap:5px}
 #app .work-hub-summary>div{padding:7px 5px}
 #app .work-view-tabs{gap:3px;padding:4px;top:52px}
 #app .work-view-tab{min-height:42px;font-size:11px;padding:5px 3px}
 #app .work-dashboard{padding:13px}
 #app .quiz-question{padding:12px 9px}
 #app .quiz-choice{min-height:60px;padding:8px}
 #app .quiz-stakes span{padding:8px 6px}
}
@media(prefers-reduced-motion:reduce){#app .work-view-tab,#app .quiz-choice{transition:none!important}}


/* v33: game-paper documents, independent chat unread state and company roster */
.always-chat{position:relative}
.chat-count{position:absolute;top:-6px;right:-5px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;background:#f0d29d;color:#152637;border-radius:99px;font-size:10px;font-weight:800}
.chat-count[hidden]{display:none}
.notice-last-sync{font-size:12px;color:var(--muted)}
.business-ledger-entry .row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.business-ledger-entry p{margin:7px 0}
.business-ledger-entry small{color:var(--muted)}
.paper-open{margin-top:7px}
#paper-contract{border:none;border-radius:20px;padding:0;max-width:min(94vw,720px);width:100%;max-height:90vh;overflow:auto;background:#fefcf6;color:#1b2731;box-shadow:0 24px 80px rgba(0,0,0,.5);direction:rtl}
#paper-contract::backdrop{background:rgba(2,13,24,.78)}
.paper-document{padding:30px 28px 18px;font-family:Tahoma,Arial,sans-serif;line-height:1.8}
.paper-brand{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:3px double #283746;padding-bottom:13px;font-size:13px}
.paper-brand strong{font-size:23px}
.paper-document h2{text-align:center;color:#202e3a;margin:24px 0 5px;font-size:23px}
.paper-reference{text-align:center;font-size:12px;color:#5f6871}
.paper-terms{margin:25px 0;border:1px solid #b6b5ac}
.paper-line{display:grid;grid-template-columns:minmax(125px,38%) 1fr;border-bottom:1px solid #d5d2c9;min-width:0}
.paper-line:last-child{border-bottom:0}
.paper-line strong,.paper-line span{padding:9px 12px;overflow-wrap:anywhere;font-size:14px}
.paper-line strong{background:#f4f1e8;border-left:1px solid #d5d2c9}
.paper-evidence{padding:12px;background:#e8eee9;border-right:4px solid #315f56;font-weight:700}
.paper-note{font-size:13px;color:#3d4b55}
.paper-footer{margin-top:35px;padding-top:14px;border-top:1px solid #bcb8ae;display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#56606c}
.paper-actions{display:flex;gap:10px;justify-content:flex-end;padding:16px 25px;border-top:1px solid #d8d3c9}
.paper-actions button{border-radius:10px;padding:12px 20px;cursor:pointer;border:1px solid #d0c8b8}
#paper-print{background:#162f3e;color:#fff}
@media(max-width:440px){.paper-document{padding:18px 14px}.paper-line strong,.paper-line span{padding:7px;font-size:12px}.paper-line{grid-template-columns:minmax(95px,38%) 1fr}.paper-footer{flex-direction:column}}



/* v35 player experience pass: contextual journey, quiet ownership, single-purpose tabs */
#app.home-mode .hero-headline{display:none}
#app.home-mode .hero{padding-bottom:12px}
#app .journey-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:23px;border:1px solid #e1c38c70;padding:19px 16px 16px;background:linear-gradient(134deg,#203c4c,#10283b 62%,#091e2f);box-shadow:0 16px 36px #0006}
#app .journey-hero:before{content:"";position:absolute;z-index:-1;inset:auto -70px -130px auto;width:250px;height:250px;border-radius:50%;border:1px solid #d4b47730;box-shadow:0 0 0 29px #d4b4770d,0 0 0 67px #d4b47708}
#app .journey-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
#app .journey-head .overline{font-size:11px;color:#eccb93}
#app .journey-street{font-size:10px;color:#bed3dd}
#app .journey-hero h2{font-size:clamp(21px,6vw,27px);line-height:1.35;margin:12px 0 6px;color:#fff2d7}
#app .journey-hero>p{margin:0 0 14px;color:#c5d9e4;font-size:12px;line-height:1.7;max-width:380px}
#app .journey-counter{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edd2a03c;border-bottom:1px solid #edd2a03c;padding:9px 2px;margin:8px 0 13px}
#app .journey-counter span{color:#c9dce4;font-size:12px}
#app .journey-counter strong{font-size:24px;color:#f5d59c;font-weight:900;font-variant-numeric:tabular-nums;line-height:1}
#app .journey-counter small{font-size:12px;font-weight:500;color:#b5d0d8}
#app .journey-milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#app .journey-milestone{min-width:0;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 3px;background:#091c2ea8;border:1px solid #b1c9d733;border-radius:13px;text-align:center;color:#9eb7c5;font-size:10px;line-height:1.45}
#app .journey-milestone.achieved{border-color:#d4b67973;background:#c9a36d12;color:#ffe7ba}
#app .journey-milestone-mark{height:27px;width:27px;display:grid;place-items:center;border-radius:50%;border:1px solid #afbbc45e;font-size:12px;font-weight:900;font-variant-numeric:tabular-nums}
#app .journey-milestone.achieved .journey-milestone-mark{background:#e7c688;color:#142637;border-color:#eed6a9}
#app .journey-action{display:flex;flex-direction:column;gap:13px;border-color:#dfb87870;border-radius:18px;background:linear-gradient(125deg,#1c394c,#102638);padding:17px}
#app .journey-action .next-step-copy{width:100%;max-width:none}
#app .journey-action .next-step-copy h3{margin:5px 0 6px;font-size:19px;color:#f6e4c1}
#app .journey-action .next-step-copy p{color:#bdceda;line-height:1.65;font-size:13px;margin:0}
#app .journey-action .next-step-actions{width:100%;margin:0;display:flex;justify-content:stretch}
#app .journey-action .next-step-actions button{width:100%;min-height:45px;font-weight:800}
#app .journey-missions-details{border:1px solid #ddbe864e;background:#152e41aa;border-radius:14px;padding:12px;margin:10px 0 20px}
#app .journey-missions-details>summary{font-size:13px;cursor:pointer;color:#edd3a5;font-weight:800}
#app .journey-missions-details .mission-list{margin-top:12px}
#app .estate-ownership-note{background:linear-gradient(130deg,#263d4a,#102538);border:1px solid #e0bf8454;border-radius:15px;padding:14px 15px;margin:9px 0 13px}
#app .estate-ownership-note strong{font-size:15px;color:#efd3a5}
#app .estate-ownership-note p{font-size:12px;line-height:1.7;margin:6px 0 0;color:#c6d7df}
#app .business-activity-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 20px}
#app .business-activity-strip span{border:1px solid #ead0993d;border-radius:11px;background:#132f41;padding:10px 5px;text-align:center;color:#c9dce2;font-size:10px;line-height:1.55;min-width:0}
#app .business-activity-strip strong{display:block;font-size:20px;color:#f3d5a4;font-variant-numeric:tabular-nums}
#app .business-activity-strip .open{color:#9be1b9;border-color:#94d8b34b}
#app .business-activity-strip .closed{color:#ffcfaa;border-color:#ecb5925c}
#app .business-legal,#app .business-ledger-more{margin:12px 0;border:1px solid #d6b67a44;border-radius:13px;padding:11px 12px;background:#0f2638ae}
#app .business-legal summary,#app .business-ledger-more summary{cursor:pointer;font-size:12px;color:#ebd2ac;font-weight:700}
#app .business-legal p{margin:11px 0 2px;font-size:12px;line-height:1.75;color:#c1d1da}
#app .business-ledger-more .list{margin-top:12px}
#app .profile-identity{padding:18px;border:1px solid #dfbd886b;border-radius:21px;background:linear-gradient(140deg,#243b50,#0f283b)}
#app .profile-identity .profile-head{align-items:center}
#app .profile-identity .profile-head .muted{font-size:12px;margin:5px 0 0}
#app .profile-progress{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e6c89635;padding:12px 2px;margin-top:16px;color:#c6d4df;font-size:12px}
#app .profile-progress strong{color:#f0d59c;font-size:17px;font-variant-numeric:tabular-nums}
#app .profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#app .profile-facts>div{display:grid;gap:4px;padding:12px 7px;border:1px solid #fff2;border-radius:11px;background:#091c2ca8;text-align:center}
#app .profile-facts small{color:#b6c8d5;font-size:11px}
#app .profile-facts strong{font-size:23px;color:#f7ddae;font-variant-numeric:tabular-nums}
#app .profile-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#app .profile-quick-links button{width:100%;min-height:52px;text-align:center;white-space:normal;font-weight:750}
#app .profile-install{margin:18px 0}
#app .profile-settings{margin-top:18px;border:1px solid #e5c18d57;background:#10283ae3;border-radius:17px;padding:13px}
#app .profile-settings>summary{font-size:15px;font-weight:850;cursor:pointer;color:#efd6a7;line-height:1.6}
#app .profile-settings>summary span{display:block;font-size:11px;font-weight:500;color:#a9becc;margin-top:3px}
#app .profile-settings-body{display:grid;gap:10px;padding-top:15px}
#app .profile-settings-body>.panel{margin:0}
@media(max-width:350px){
 #app .journey-hero{padding:15px 10px}
 #app .journey-milestones{gap:5px}
 #app .journey-milestone{font-size:9px;padding-inline:2px}
 #app .business-activity-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .profile-quick-links{gap:6px}
}
@media(prefers-reduced-motion:reduce){#app .journey-hero *,#app .journey-action *{transition:none!important;animation:none!important}}

/* Municipal counter PWA v35 */
.council-hall{margin:15px 0;padding:14px;border:1px solid rgba(237,203,142,.36);border-radius:16px;background:linear-gradient(155deg,rgba(13,32,48,.96),rgba(39,40,45,.96))}
.council-intro .overline{color:var(--gold)}.council-intro h2{margin:7px 0;font-size:21px}
.council-intro p,.council-help{font-size:13px;line-height:1.8;color:var(--muted)}
.council-start{display:grid;gap:10px;margin:12px 0}.council-start .field{min-width:0}
.council-cases{display:grid;gap:10px;margin-top:14px}.council-case{padding:12px;margin:0}
.council-case-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.council-case-header h3{font-size:16px;margin:4px 0}
.council-case-header p,.council-case-header small{font-size:12px;color:var(--muted)}.council-case-header .pill{white-space:normal}
.council-drag-area{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:13px 0}
.council-paper,.council-tray,.council-stamp{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px dashed rgba(237,203,142,.6);border-radius:12px;background:rgba(11,31,41,.94);color:#ffebb9;min-height:100px;font:inherit;font-size:14px;padding:12px;touch-action:none;cursor:pointer}
.council-paper{position:relative;z-index:1}.council-paper.council-selected{border-style:solid;background:rgba(93,70,38,.48)}
.council-paper small,.council-stamp small{font-size:11px;line-height:1.5;color:var(--muted)}.council-tray{border-color:#718e9d;color:#d7e5ed}
.council-signature{display:block;width:100%;height:140px;touch-action:none;background:rgba(248,226,184,.07);border:1px solid rgba(237,203,142,.48);border-radius:10px;margin:11px 0}
.council-a11y{display:block;margin:10px 0}.council-stamp{margin:12px auto;width:min(100%,270px);height:132px;border-radius:50%;border-style:solid;background:radial-gradient(circle,rgba(146,71,62,.56),rgba(35,27,35,.91))}
.council-stamp.council-holding{transform:scale(.96);background:radial-gradient(circle,rgba(216,109,83,.85),rgba(54,22,31,.95))}
.council-receipt{padding:14px;line-height:1.8;font-size:13px;border:1px dashed rgba(237,203,142,.55);border-radius:10px}
@media(max-width:360px){.council-hall{padding:10px}.council-drag-area{gap:6px}.council-paper,.council-tray{padding:8px 5px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.council-stamp{transition:none!important}}


/* v36: skill personality, utility statements and constitution */
.attribute-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}
.attribute-card{padding:16px!important;display:flex;flex-direction:column;gap:10px}
.attribute-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.attribute-head h3{margin:0;font-size:17px}
.attribute-head strong{color:#ead49e;white-space:nowrap}
.attribute-rail{height:8px;border-radius:99px;background:rgba(255,255,255,.13);overflow:hidden}
.attribute-rail span{display:block;height:100%;background:linear-gradient(90deg,#7cc9b1,#e7cc8a);border-radius:99px;transition:width .3s ease}
.attribute-card p{font-size:13px;flex:1}
.attribute-requirements{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.attribute-requirements span{font-size:12px;border:1px solid rgba(238,211,157,.3);color:#e9d6aa;background:rgba(18,29,40,.42);padding:6px 10px;border-radius:99px}
.skill-employer-fields{padding:15px;border:1px solid rgba(221,193,132,.25);border-radius:16px;background:rgba(13,27,43,.4);margin:12px 0}
.skill-employer-fields>strong{display:block;margin-bottom:4px}
.skill-employer-fields p{font-size:12px}
.utility-rates{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:15px 0}
.utility-rate{padding:12px;border:1px solid rgba(224,207,166,.2);border-radius:13px;display:flex;flex-direction:column;gap:5px;background:rgba(11,25,41,.4)}
.utility-rate strong{font-size:14px}
.utility-rate span{font-weight:800;color:#e7d09b}
.utility-rate small{color:#becedc;font-size:12px}
.utility-invoices{display:grid;gap:10px}
.utility-invoice{border:1px solid rgba(227,203,148,.25);border-radius:13px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.utility-invoice small{display:block;font-size:11px;color:#bbcad5;margin-top:5px}
.constitution-intro{background:linear-gradient(135deg,rgba(25,51,67,.93),rgba(15,31,47,.96))}
.constitution-sections{display:grid;gap:10px;margin-bottom:26px}
.constitution-rule{padding:0!important;overflow:hidden}
.constitution-rule summary{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none}
.constitution-rule summary::-webkit-details-marker{display:none}
.constitution-rule summary strong{flex:1;font-size:15px}
.constitution-rule summary:after{content:'⌄';font-size:21px;color:#e6ce9a}
.constitution-rule[open] summary:after{transform:rotate(180deg)}
.constitution-number{font-weight:800;color:#e4ca90;font-size:13px}
.constitution-rule>p{padding:0 16px 17px;margin:0;color:#cedae4;line-height:1.85;font-size:14px}
@media(max-width:375px){.attribute-grid,.utility-rates{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.attribute-rail span{transition:none}}


/* v39 — property actions: direct access without fake or unauthorized economic controls */
.estate-action-hub{padding:13px;margin:3px 0 14px;border:1px solid rgba(235,200,136,.3);border-radius:16px;background:linear-gradient(155deg,rgba(19,38,52,.96),rgba(9,24,39,.97))}
.estate-action-head h2{font-size:19px;line-height:1.4;margin:0 0 4px;color:var(--text)}
.estate-action-head p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 12px}
.estate-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.estate-action-jump{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:78px;border:1px solid rgba(197,208,212,.22);border-radius:11px;text-align:right;padding:10px 12px;background:rgba(20,41,54,.96);color:var(--text);font-family:inherit;cursor:pointer}
.estate-action-jump strong{font-size:13px;line-height:1.5;color:#f3dab0}
.estate-action-jump small{font-size:11px;line-height:1.5;color:#b7c7cf;font-weight:400}
.estate-action-jump:focus-visible{outline:2px solid #e4ba77;outline-offset:3px}
.estate-action-jump:last-child{grid-column:1/-1}
.estate-scroll-anchor{display:block;height:1px;scroll-margin-top:82px}
.estate-operation-note,.estate-locked{background:rgba(8,29,44,.86);border:1px solid rgba(228,191,122,.3);border-radius:12px;padding:10px 12px;margin:12px 0;color:#e7d1b1;font-size:12px;line-height:1.85}
.estate-operation-note strong{display:block;font-size:14px}.estate-operation-note p{margin:4px 0;color:var(--muted)}
.estate-asset-limit{font-size:12px;line-height:1.65;color:#b8cad1;margin:9px 0}
@media(max-width:360px){.estate-action-hub{padding:10px}.estate-action-jump{padding:9px;min-height:82px}.estate-action-jump strong{font-size:12px}.estate-action-jump small{font-size:10px}}
@media(hover:hover){.estate-action-jump:hover{background:rgba(42,61,73,.94);border-color:rgba(238,202,143,.57)}}
@media(prefers-reduced-motion:reduce){.estate-action-jump{transition:none}}


/* v39 · safe-area-first shell, focused navigation and chaptered city constitution */
:root{
 --city-safe-top:env(safe-area-inset-top,0px);
 --city-safe-bottom:env(safe-area-inset-bottom,0px);
 --city-safe-left:env(safe-area-inset-left,0px);
 --city-safe-right:env(safe-area-inset-right,0px);
 --city-wallet-height:calc(54px + var(--city-safe-top));
}
#app.screen:not(.auth-mode){width:100%;max-width:540px;overflow-x:clip}
#app.screen:not(.auth-mode)>.always-wallet{
 position:sticky;top:0;z-index:24;
 min-height:var(--city-wallet-height);
 padding-top:calc(7px + var(--city-safe-top));
 padding-bottom:7px;
 padding-inline-start:max(12px,var(--city-safe-right));
 padding-inline-end:max(12px,var(--city-safe-left));
 gap:clamp(5px,2vw,11px);
}
#app .always-wallet-name{min-width:0;max-width:22%;flex:0 1 22%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .always-wallet-button{min-width:0;flex:0 1 auto;white-space:nowrap}
#app .always-notices,#app .always-chat{flex-shrink:0}
#app.screen:not(.auth-mode)>.always-wallet+.hero{
 padding-top:14px;
 padding-inline-start:max(15px,var(--city-safe-right));
 padding-inline-end:max(15px,var(--city-safe-left));
}
#app.screen:not(.auth-mode)>.content{
 padding-inline-start:max(13px,var(--city-safe-right));
 padding-inline-end:max(13px,var(--city-safe-left));
 padding-bottom:calc(106px + var(--city-safe-bottom));
 overflow-wrap:anywhere;
}
#app.screen:not(.auth-mode) .work-view-tabs{top:var(--city-wallet-height)}
#app.screen:not(.auth-mode) .bottom{
 width:min(100%,540px);
 padding-inline-start:max(5px,var(--city-safe-right));
 padding-inline-end:max(5px,var(--city-safe-left));
 padding-bottom:calc(9px + var(--city-safe-bottom));
 z-index:25;
}
#app.screen:not(.auth-mode) .bottom button{min-width:0;min-height:48px;touch-action:manipulation}
#app.screen:not(.auth-mode) .bottom button:focus-visible{outline:2px solid var(--gold);outline-offset:-1px}
#app .profile-resources{display:grid;gap:10px;margin:18px 0}
#app .profile-resources>.button{width:100%;min-height:46px}
#app .profile-guide-entry{
 width:100%;display:flex;align-items:center;gap:12px;text-align:right;
 padding:14px;color:#f8ecda;border:1px solid #ebce9066;border-radius:19px;
 background:linear-gradient(130deg,#254559,#11293b);min-height:74px;
 box-shadow:0 11px 27px #0003;
}
#app .profile-guide-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;
 border-radius:12px;border:1px solid #efd49a55;background:#e8cc9820;color:#efd5a1}
#app .profile-guide-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
#app .profile-guide-copy strong{font-size:16px}
#app .profile-guide-copy small{font-size:12px;line-height:1.65;color:#c4d7e0;white-space:normal}
#app .profile-guide-arrow{font-size:25px;color:#e6ca92}
#app .business-billing-link{margin:12px 0}
#app .business-billing-link>.button{width:100%;min-height:48px}
#app .tenancy-contract .row{min-width:0;flex-wrap:wrap}
#app .tenancy-contract .row h3{min-width:0;flex:1}
#app .tenancy-contract .buttons button{min-height:44px}
#app .calendar-summary{padding:0;margin:12px 0;border-color:#c8b28248;background:#0e2637}
#app .calendar-summary>summary{list-style:none;display:flex;gap:12px;align-items:center;cursor:pointer;padding:13px 15px;min-height:65px}
#app .calendar-summary>summary::-webkit-details-marker{display:none}
#app .calendar-symbol{width:35px;height:35px;display:grid;place-items:center;
 color:#efcf91;border-radius:11px;background:#ecce9816;border:1px solid #efcf9141;font-size:20px}
#app .calendar-summary>summary>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}
#app .calendar-summary strong{font-size:14px;color:#f5e4bd}
#app .calendar-summary small{font-size:12px;color:#b7cad4}
#app .calendar-more{font-size:11px;color:#e6c88d}
#app .calendar-summary-detail{border-top:1px solid #d9c99c29;padding:8px 15px 12px}
#app .calendar-summary-detail p{margin:6px 0;color:#cad9e3;font-size:12px}
/* Handbook: one cover, four concise searchable chapters, small-screen-first */
#app .constitution-layout{min-width:0;padding-bottom:22px}
#app .constitution-cover{position:relative;isolation:isolate;overflow:hidden;border:1px solid #dfc28c6e;
 border-radius:22px;padding:22px 18px 16px;margin-bottom:17px;
 background:linear-gradient(145deg,#254354 0%,#142c3d 52%,#0c2233 100%)}
#app .constitution-cover-mark{position:absolute;z-index:-1;font:900 154px/1 Georgia,serif;
 inset:auto -14px -20px auto;color:#e8c78a0c;pointer-events:none}
#app .constitution-cover h2{margin:7px 0;font-size:clamp(22px,6.3vw,28px);line-height:1.35;color:#ffe8bd}
#app .constitution-cover p:not(.overline){font-size:13px;color:#c8d8e2;line-height:1.8;max-width:350px;margin:0}
#app .constitution-cover-foot{border-top:1px solid #e9d4a73c;display:flex;gap:9px 14px;flex-wrap:wrap;margin-top:18px;padding-top:11px}
#app .constitution-cover-foot span{font-size:11px;color:#e7cfaa;white-space:normal}
#app .constitution-search{display:block;margin:0 0 12px}
#app .constitution-search span{display:block;font-size:12px;font-weight:750;color:#dfc99b;margin-bottom:7px}
#app .constitution-search input{min-height:50px;font-size:16px!important;border-radius:13px;
 border:1px solid #e2c38b55;background:#0c2232;color:#faf0df;direction:rtl;padding:12px 15px}
#app .constitution-search input::placeholder{color:#a3b8c7;opacity:1}
#app .constitution-filters{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;
 padding:3px 1px 10px;scrollbar-width:none;scroll-snap-type:x proximity}
#app .constitution-filters::-webkit-scrollbar{display:none}
#app .constitution-filters button{border-radius:99px;padding:9px 14px;min-height:44px;flex:none;
 white-space:nowrap;font-size:12px;font-weight:800;border:1px solid #dec18b54;background:#0d283a;color:#c7d6df;
 scroll-snap-align:start;touch-action:manipulation}
#app .constitution-filters button.selected{background:#f2d59b;color:#152637;border-color:#f2d59b}
#app .constitution-found{font-size:12px;color:#b9cdd7;margin:1px 2px 13px;min-height:18px}
#app .constitution-sections{display:grid;gap:18px;margin-bottom:15px}
#app .constitution-chapter{min-width:0}
#app .constitution-chapter-head{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding-inline:2px}
#app .constitution-chapter-number{width:39px;height:39px;flex:none;display:grid;place-items:center;
 background:#c6aa7921;color:#e9cc94;border:1px solid #e2c38954;border-radius:12px;font-size:13px;font-weight:900}
#app .constitution-chapter-head h3{margin:0 0 2px;font-size:17px;font-weight:850;color:#f6e7cb}
#app .constitution-chapter-head p{margin:0;font-size:11px;color:#aebfcb}
#app .constitution-rule{margin:0 0 8px!important;padding:0!important;border:1px solid #d4c9b047;
 background:#122b3bcf;border-radius:15px;box-shadow:none;overflow:hidden}
#app .constitution-rule summary{display:flex;align-items:center;gap:10px;padding:13px 14px;
 cursor:pointer;list-style:none;min-height:54px}
#app .constitution-rule summary::-webkit-details-marker{display:none}
#app .constitution-rule-title{font-weight:800;font-size:14px;color:#f3e4c9;flex:1;min-width:0}
#app .constitution-chevron{border:solid #dfc48d;border-width:0 2px 2px 0;
 transform:rotate(45deg);width:8px;height:8px;flex:none;transition:transform .15s ease}
#app .constitution-rule[open] .constitution-chevron{transform:rotate(225deg)}
#app .constitution-rule-content{padding:0 15px 14px;border-top:1px solid #e2ca9630}
#app .constitution-rule-content p{font-size:13px;color:#d0dce4;line-height:1.9;margin:11px 0}
#app .constitution-rule-location{padding:8px 10px;background:#e8ce9f0b;color:#ebd3a7;
 border-right:3px solid #d8b779;border-radius:7px;font-size:11px;line-height:1.7}
#app .constitution-chapter[hidden],#app .constitution-rule[hidden],#app .constitution-empty[hidden]{display:none!important}
#app .constitution-empty{padding:15px;border:1px dashed #dfc58e5e;border-radius:14px;text-align:center;color:#cfdae3}
#app .constitution-footnote{margin-top:17px;border-top:1px solid #cdb88940;padding:12px 3px 0;
 font-size:12px;color:#abc2cf;line-height:1.7}
#app .constitution-filters button:focus-visible,#app .constitution-rule summary:focus-visible,
#app .profile-guide-entry:focus-visible{outline:2px solid #f6dca5;outline-offset:3px}
/* Notch and dynamic-island spacing for all standalone states and modal overlays */
#app.auth-mode .login-shell{
 padding-top:max(16px,calc(12px + var(--city-safe-top)));
 padding-bottom:max(18px,calc(12px + var(--city-safe-bottom)));
 padding-inline-start:max(14px,var(--city-safe-right));
 padding-inline-end:max(14px,var(--city-safe-left));
}
#boot-overlay .boot-panel{
 padding-top:max(20px,calc(14px + var(--city-safe-top)));
 padding-bottom:max(16px,calc(12px + var(--city-safe-bottom)));
}
#app.screen:not(.auth-mode) .scene{margin-inline:auto}
#paper-contract,#confirm,#notification-prompt{
 max-height:calc(100dvh - var(--city-safe-top) - var(--city-safe-bottom) - 28px);
 max-width:calc(100vw - var(--city-safe-left) - var(--city-safe-right) - 22px);
}
#paper-contract .paper-actions{position:sticky;bottom:0;background:#faf7ee;
 padding-bottom:calc(13px + var(--city-safe-bottom));z-index:2}
#paper-contract .paper-actions button{min-height:44px}
.toast{top:calc(12px + var(--city-safe-top));max-width:calc(100vw - var(--city-safe-left) - var(--city-safe-right) - 24px)}
@media(max-width:350px){
 #app .constitution-cover{padding:17px 14px}
 #app .constitution-cover h2{font-size:22px}
 #app .constitution-filters button{font-size:11px;padding:8px 11px}
 #app .constitution-rule summary{padding-inline:11px}
 #app .always-wallet-name{display:none}
 #app .always-wallet-button{margin-inline-start:auto}
 #app .profile-guide-entry{padding:12px 10px}
}
@media(orientation:landscape) and (max-height:500px){
 #app.screen:not(.auth-mode)>.always-wallet{padding-top:calc(5px + var(--city-safe-top));padding-bottom:5px}
 #app.screen:not(.auth-mode) .content{padding-bottom:calc(95px + var(--city-safe-bottom))}
}
@media(prefers-reduced-motion:reduce){#app .constitution-chevron{transition:none}}

/* v39 finishing details: remove legacy duplicate accordion arrow and clarify estate actions */
#app .constitution-rule summary::after{display:none}
#app .constitution-chapter[hidden],#app .constitution-rule[hidden]{display:none!important}
#app .estate-action-hub .estate-action-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;cursor:pointer;list-style:none;min-height:44px}
#app .estate-action-hub .estate-action-toggle::-webkit-details-marker{display:none}
#app .estate-action-hub .estate-action-toggle strong{color:#efd5a8;font-size:15px}
#app .estate-action-hub .estate-action-toggle small{color:#adbfcb;font-size:11px;line-height:1.6}
#app .estate-action-hub .estate-action-grid{margin-top:14px;padding-top:12px;border-top:1px solid rgba(238,207,148,.25)}
#app .estate-action-hub[open] .estate-action-toggle{color:#edd1a5}
#app .estate-action-hub .estate-action-toggle:focus-visible{outline:2px solid #efd5a0;outline-offset:3px}

/* Profession-specific task skins; answers remain server graded. */
#app .role-activity-hint{font-size:12px;line-height:1.7;margin:3px 0 13px;color:#bed5e2}
#app .role-activity-cashier{border-color:#d0bc795e;background:linear-gradient(155deg,#364238,#112b38)}
#app .role-activity-archive{border-color:#d8bb8b5f;background:linear-gradient(155deg,#344354,#122b3c)}
#app .role-activity-safety{border-color:#dcad876e;background:linear-gradient(155deg,#443e39,#122b3b)}
#app .role-activity-manager{border-color:#a9c8c760;background:linear-gradient(155deg,#294556,#102939)}
#app .role-activity-service{border-color:#bbcaad60;background:linear-gradient(155deg,#284655,#142938)}
#app .role-activity-cashier .quiz-question{border-left:4px solid #dec176}
#app .role-activity-archive .quiz-question{border-left:4px solid #b8d3d8}
#app .role-activity-safety .quiz-question{border-left:4px solid #ddac86}
#app .role-activity-manager .quiz-question{border-left:4px solid #9fc8bf}
#app .role-activity-service .quiz-question{border-left:4px solid #b1ccaf}

/* Server-verified questions load automatically. */
#app .quiz-load-status{margin:12px 0 0;padding:13px 14px;border:1px solid #c4d6df40;border-radius:12px;background:#0d2334;color:#c4dce8;font-size:13px;line-height:1.65}
#app .quiz-load-error{margin:10px 0 0;padding:12px 14px;border:1px solid #d58e8e99;border-radius:12px;background:#622c3140;color:#ffdad4;font-size:12px;line-height:1.75}


/* v47 · private support mailbox, fit inside a small phone with RTL safe areas */
#app .feedback-intro{padding:clamp(15px,4vw,24px);border:1px solid rgba(230,194,124,.32)}
#app .feedback-intro h2{font-size:clamp(21px,5vw,27px);margin:3px 0 9px}
#app .feedback-form{display:grid;gap:14px;margin-top:17px}
#app .feedback-form .field{margin:0;min-width:0}
#app .feedback-form input,#app .feedback-form select,#app .feedback-form textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;font:inherit}
#app .feedback-form textarea{min-height:126px;resize:vertical;line-height:1.8}
#app .feedback-error{border:1px solid rgba(250,153,137,.55);color:#ffd1c8;padding:12px;border-radius:11px;margin-top:10px}
#app .feedback-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:13px}
#app .feedback-toolbar h3{margin:0;font-size:18px}
#app .feedback-ticket{border:1px solid rgba(215,184,123,.22);border-radius:16px;padding:14px;margin:13px 0;overflow-wrap:anywhere;background:rgba(8,28,42,.55)}
#app .feedback-ticket-head{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
#app .feedback-status{font-size:12px;font-weight:700;color:#ecd0a2}
#app .feedback-ticket h4{font-size:16px;margin:10px 0 6px}
#app .feedback-ticket p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
#app .feedback-ticket small{display:block;color:var(--muted);font-size:11px}
#app .feedback-reply{padding:10px 13px;margin:12px 0;border-inline-start:3px solid #e6c389;background:rgba(229,191,120,.1);border-radius:8px}
#app .feedback-reply strong{color:#f5d99e;font-size:13px}
#app .feedback-reply p{margin:4px 0 0}
@media (display-mode:fullscreen) and (orientation:portrait){
 :root{--city-safe-top:max(env(safe-area-inset-top,0px),42px)}
}
@media (display-mode:standalone) and (orientation:portrait){
 :root{--city-safe-top:max(env(safe-area-inset-top,0px),20px)}
}
#app.screen:not(.auth-mode)>.always-wallet{padding-inline-start:max(12px,var(--city-safe-right));padding-inline-end:max(12px,var(--city-safe-left))}
#app .always-notices{min-width:38px;min-height:38px}
#app .notice-count{top:0;left:0}
@media(max-width:370px){#app .always-wallet-name{display:none}#app .always-chat{padding-inline:6px}#app .always-notices{min-width:36px}}
@media(prefers-reduced-motion:reduce){#app .mini-tile,#app .feedback-ticket{transition:none}}

/* PWA v50: keep every transient toast BELOW the sticky credits/chat/bell bar.
   Wallet height includes the display cutout; JavaScript refines this to its real rectangle. */
#toast.toast{
 z-index:40;
 max-height:min(50dvh,calc(100dvh - var(--city-safe-top) - var(--city-safe-bottom) - 24px));
 overflow-y:auto;
 overflow-wrap:anywhere;
}
body:has(#app.screen:not(.auth-mode)) > #toast.toast{
 top:calc(var(--city-wallet-height) + 12px);
}

/* v51 light UI polish: actions stand out without extra game screens. */
.estate-market-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.estate-market-actions>.button{flex:1 1 190px}
.business-attention{padding:10px 12px;border-radius:12px;border:1px solid #f0ca824f;background:#273b42;color:#efdbae;font-size:12px;line-height:1.7;margin:10px 0}
.work-history .muted{line-height:1.75}
.chat-meta small{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:365px){.estate-market-actions{display:grid;grid-template-columns:1fr}.business-attention{font-size:11px}}

/* Estate v54: one task per screen, safe 6-way navigation on narrow notched phones. */
#app .estate-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;gap:7px;scrollbar-width:thin;padding-bottom:10px;scroll-snap-type:x proximity}
#app .estate-chips>button{white-space:nowrap;flex:none;min-height:43px;scroll-snap-align:center}
#app .estate-brief{border:1px solid #d8b7794d;border-radius:15px;background:#173044dc;padding:13px 14px;margin:9px 0 13px;display:grid;gap:4px;font-size:12px;line-height:1.75}
#app .estate-brief strong{color:#ecd3a4;font-size:15px}
#app .estate-brief span{color:#d0dce1}
#app .estate-management{border:1px solid #e0bc854a;border-radius:16px;background:#11283bc9;margin:14px 0;padding:12px}
#app .estate-management>summary{cursor:pointer;font-weight:750;color:#efd7a5;padding:6px 3px;list-style-position:inside}
#app .estate-management-body{padding-top:13px;border-top:1px solid #e0bc8540;margin-top:10px}
#app .estate-summary{margin-top:5px}
@media(max-width:370px){#app .estate-chips>button{font-size:12px;padding-inline:13px}#app .estate-brief{padding:11px}}

/* Municipal services and decision receipts v54. */
#app .council-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}
#app .council-services article{background:#0a2134d9;border:1px solid #d2b78855;border-radius:12px;padding:11px;display:grid;gap:4px;font-size:12px;line-height:1.6}
#app .council-services strong{color:#f0d5a6}
#app .council-services span{color:#cad7df}
#app .council-services article:last-child{grid-column:1/-1}
#app .council-approved{border-color:#72c9a5;color:#d2f6e7}
#app .council-rejected{border-color:#ce908d;color:#f1d0cc}
@media(max-width:370px){#app .council-services{grid-template-columns:1fr}#app .council-services article:last-child{grid-column:auto}}

#app .estate-kind-filter{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 13px}
#app .estate-kind-filter button{border:1px solid #d9be8559;border-radius:999px;background:#152c3ddc;color:#d5e0e5;min-height:40px;padding:7px 15px;font:inherit;font-size:12px;cursor:pointer}
#app .estate-kind-filter button.selected{background:#ebd4a1;color:#17263a;font-weight:800}
#app .estate-more{margin:12px 0}

/* PWA v55: six equally accessible primary destinations, no crowding on notched phones. */
#app.screen:not(.auth-mode) .bottom{grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding-inline:max(2px,env(safe-area-inset-left)) max(2px,env(safe-area-inset-right))}
#app.screen:not(.auth-mode) .bottom button{font-size:10px;min-width:0;line-height:1.15;padding-inline:1px;letter-spacing:-.1px}
#app.screen:not(.auth-mode) .bottom button svg{width:19px;height:19px}
#app .gov-service{margin:14px 0;padding:14px}
#app .gov-service h2{font-size:18px;margin:0 0 8px}
#app .gov-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-top:6px}
#app .gov-doc-grid button{max-width:100%;min-height:44px;white-space:normal;line-height:1.5;overflow-wrap:anywhere}
#app .gov-disclaimer{font-size:12px;line-height:1.7;color:var(--muted);margin:16px 0 20px}
#app .housing-identity{display:flex;gap:9px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-bottom:1px solid #d9ba8250;padding-bottom:12px;margin-bottom:14px}
#app .housing-identity>div{display:grid;gap:3px}
#app .housing-identity small{color:#b7cdd8}
#app .housing-identity strong{font-size:17px}
#app .housing-tariffs{margin:10px 0;border:1px solid #d8bc8b4c;border-radius:12px;padding:11px}
#app .housing-tariffs summary{font-size:12px;color:#f0d9ad;cursor:pointer}
#app .housing-tariffs .utility-rates{margin-top:10px}
#app .finance-board{padding:15px;margin:2px 0 16px}
#app .finance-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
#app .finance-head h2{font-size:20px;line-height:1.35;margin:3px 0 12px}
#app .finance-head>small{font-size:11px;padding:4px 10px;border-radius:20px;background:#f0cf931c;color:#ecd1a5;white-space:nowrap}
#app .finance-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#app .finance-totals>div{background:#0b2538ee;border:1px solid #d5b78044;border-radius:13px;padding:12px;display:grid;gap:4px;min-width:0}
#app .finance-totals small,#app .finance-budget small{font-size:11px;color:#bcd0d9}
#app .finance-totals strong{font-size:25px;color:#f0d6a2;line-height:1.1;font-variant-numeric:tabular-nums}
#app .finance-totals span{font-size:11px;color:#c6d5de;line-height:1.5}
#app .finance-totals .finance-net{grid-column:1/-1;background:#172f40}
#app .finance-totals .finance-net strong{font-size:30px}
#app .finance-net.negative strong,#app .finance-budget-net.negative strong{color:#ffb9ae}
#app .finance-net.positive strong,#app .finance-budget-net.positive strong{color:#a5e6ca}
#app .finance-board h3{margin:18px 0 10px;font-size:16px}
#app .finance-budget{display:grid;gap:0;border:1px solid #dbbc8544;border-radius:12px;overflow:hidden}
#app .finance-budget>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-bottom:1px solid #dcc18d27}
#app .finance-budget>div:last-child{border-bottom:0;background:#122c3a}
#app .finance-budget strong{font-size:16px;color:#efd5a1;font-variant-numeric:tabular-nums}
#app .finance-explain{font-size:12px;line-height:1.75;color:#d0dce1;margin:13px 0}
@media(max-width:365px){#app.screen:not(.auth-mode) .bottom button{font-size:9px}#app.screen:not(.auth-mode) .bottom button svg{width:17px;height:17px}#app .gov-doc-grid{grid-template-columns:1fr}#app .finance-totals strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){#app .finance-board *{transition:none}}

/* Mandatory version updates and readable employer wage accounting — v56 */
#required-player-update{position:fixed;z-index:9000;inset:auto max(10px,env(safe-area-inset-right)) calc(80px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));max-width:520px;margin-inline:auto;display:grid;gap:8px;background:#102638;color:#f5e1b9;border:1px solid #ebce946b;border-radius:15px;box-shadow:0 12px 45px #000b;padding:14px;direction:rtl;text-align:right;font:14px/1.55 system-ui,sans-serif}
#required-player-update strong{font-size:15px}
#required-player-update span{font-size:12px;color:#e0ebef}
#required-player-update button{border:0;border-radius:9px;padding:10px 12px;background:#ecd096;color:#182330;font-weight:800;font-size:13px;cursor:pointer}
body.must-update #app.screen:not(.auth-mode){pointer-events:none;filter:brightness(.55)}
#app .business-payroll-summary{margin:14px 0;padding:14px;background:#142b3e;border:1px solid #dfc28b65;border-radius:15px}
#app .business-payroll-summary h3{margin:0 0 10px}
#app .business-payroll-summary .stat{margin-bottom:10px}
#app .business-payroll-summary p{margin:6px 0 0;font-size:12px;line-height:1.7}
#app .business-payroll-pending{font-size:12px;border-radius:12px;border:1px solid #b9966c55;padding:9px 12px}
@media(max-width:370px){#required-player-update{bottom:calc(73px + env(safe-area-inset-bottom));padding:10px}}

/* v57: short, dismissing toast above bottom menu instead of covering title/notch. */
body:has(#app.screen:not(.auth-mode)) > #toast.toast {
  top:auto;
  bottom:calc(84px + env(safe-area-inset-bottom));
  z-index:35;
  max-height:min(35dvh,260px);
  width:min(calc(100% - 28px),490px);
  box-shadow:0 6px 28px #000a;
}
@media(max-width:370px){
 body:has(#app.screen:not(.auth-mode)) > #toast.toast{
  bottom:calc(76px + env(safe-area-inset-bottom));
  padding:10px 13px;
  font-size:12px;
 }
}

/* v61: keep mobile overscroll inside the PWA. A swipe should refresh the
   authenticated game snapshot, not navigate/reload the PHP session page. */
html,body{overscroll-behavior-y:contain}
#app.screen:not(.auth-mode){overscroll-behavior-y:contain}
#mobile-pull-status{
 position:fixed;z-index:1200;top:calc(env(safe-area-inset-top) + 11px);
 left:50%;transform:translateX(-50%);
 max-width:min(90vw,360px);padding:9px 17px;
 border-radius:999px;background:#112e43;color:#f6e4bd;
 border:1px solid rgba(228,188,113,.55);
 box-shadow:0 5px 23px rgba(0,0,0,.25);
 font:600 12px/1.4 system-ui,sans-serif;text-align:center;
 pointer-events:none;white-space:normal;
}
#mobile-pull-status[hidden]{display:none}

/* v63: readable, mobile-first explanations of verified credit movements. */
#app .credit-explained{display:grid;gap:6px;text-align:right}
#app .credit-explained h3{margin:1px 0 2px;font-size:15px;line-height:1.6;color:#ffe2a8}
#app .credit-explained p{margin:0;font-size:12px;line-height:1.75;overflow-wrap:anywhere}
#app .credit-explained p strong{color:#e7d0a6;font-weight:700}
#app .credit-explained .wallet-entry-top{display:flex;gap:9px;justify-content:space-between;align-items:center;flex-wrap:wrap}
#app .credit-explained .credit-route{color:#cfdae1}
#app .credit-explained .credit-why{color:#f1f3ec}
#app .credit-explained .credit-refund,#app .credit-explained .credit-when{color:#ced8d9}
#app .credit-explained .wallet-entry-foot{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;font-size:11px;border-top:1px solid rgba(228,205,161,.16);padding-top:6px}
#app .credit-intro{margin:4px 0 12px;font-size:12px;line-height:1.75}
#app .wallet-entry.credit-explained{padding:15px}
#app .business-ledger-entry.credit-explained{padding:13px 14px}
@media(max-width:390px){
 #app .credit-explained h3{font-size:14px}
 #app .credit-explained p{font-size:12px}
 #app .credit-explained .wallet-entry-foot{font-size:10px}
}

/* v65: transaction cards have a short receipt; nuanced terms expand on demand. */
#app .credit-compact{gap:4px;padding:12px 13px}
#app .credit-compact h3{margin:0;font-size:14px;line-height:1.5}
#app .credit-compact .credit-route{font-size:12px;color:#d8e4ec;line-height:1.65}
#app .credit-compact .credit-note{font-size:11px;color:#d9c9a7;line-height:1.5}
#app .credit-compact .wallet-entry-top{margin-bottom:3px}
#app .credit-compact .wallet-entry-foot{margin-top:5px;padding-top:7px;font-size:10px;opacity:.88}
#app .credit-compact .credit-details{margin-top:6px;padding:7px 9px;border:1px solid #d6b67a36;border-radius:9px;background:#0b2031a8}
#app .credit-compact .credit-details summary{color:#f2d19b;cursor:pointer;font-size:12px;font-weight:700;line-height:1.6}
#app .credit-compact .credit-details summary:focus-visible{outline:2px solid #f2d19b;outline-offset:3px}
#app .credit-compact .credit-details p{margin:7px 0 0;line-height:1.65;font-size:12px;color:#dce4e7}
#app .credit-compact .credit-details p strong{color:#edd0a1}

/* v66: short weekly earned-income versus spending, with optional explanation. */
#app .finance-board .finance-simple{margin-top:9px}
#app .finance-board .finance-simple>div{padding:13px 11px}
#app .finance-board .finance-simple small{font-size:11px;line-height:1.55}
#app .finance-board .finance-simple strong{font-size:26px}
#app .finance-board .finance-simple span{font-size:11px}
#app .finance-week-result{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:13px 0 4px;color:#d7e4e8;font-size:13px}
#app .finance-week-result strong{font-size:17px;color:#a5e6ca}
#app .finance-week-result strong.negative{color:#ffb9ae}
#app .finance-week-result small{display:block;flex-basis:100%;color:#abc2cb;font-size:10px;line-height:1.4}
#app .finance-breakdown{margin-top:12px;border:1px solid #d6b67a44;border-radius:12px;background:#0c2435cf}
#app .finance-breakdown>summary{cursor:pointer;padding:10px 13px;color:#eed4a4;font-size:12px;font-weight:700}
#app .finance-breakdown>summary:focus-visible{outline:2px solid #efd5a0;outline-offset:2px}
#app .finance-breakdown-body{display:grid;gap:9px;padding:0 12px 13px}
#app .finance-breakdown-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #cbb88e26;font-size:12px}
#app .finance-breakdown-line span{flex:1;min-width:0}
#app .finance-breakdown-line strong{color:#f3dbb2;white-space:nowrap}
#app .finance-breakdown-body p{margin:3px 0;font-size:12px;line-height:1.75}
@media(max-width:390px){#app .finance-board .finance-simple strong{font-size:22px}}

/* Recurring seven-day budget: a missing business yield is not a fake zero. */
#app .fixed-budget-cards .budget-unknown{font-size:16px;line-height:1.4;color:#f0d6a2}
#app .finance-week-result .budget-unknown{font-size:15px;color:#f0d6a2}
#app .finance-breakdown-line .fixed-budget-note{display:block;font-size:11px;line-height:1.55;color:#bdcbd2;margin-top:3px}
#app .fixed-budget-warning{font-size:12px;line-height:1.65;margin:2px 0;border-inline-start:2px solid #d6b475;padding-inline-start:9px;color:#f0d6a2}
#app .fixed-budget-warning strong{color:#f8e6bf}
@media(max-width:380px){#app .fixed-budget-cards>div{padding:11px 9px}#app .fixed-budget-cards strong{font-size:22px}}

/* v70 — honest business-growth preview, compact until the owner opens it. */
#app .business-growth{margin:12px 0;border:1px solid #d6b57a49;border-radius:15px;background:linear-gradient(145deg,#183248ed,#0b202fcf);overflow:hidden}
#app .business-growth>summary{cursor:pointer;padding:13px 14px;font-size:13px;line-height:1.6;color:#f3dfba;font-weight:750}
#app .business-growth>summary small{display:block;color:#c6d9e2;font-weight:400;font-size:11px;margin-top:2px}
#app .business-growth>summary:focus-visible{outline:2px solid #f4dda9;outline-offset:-4px}
#app .business-growth-body{padding:0 13px 14px}
#app .business-growth-body h3{font-size:13px;margin:13px 0 7px;color:#f7daa1}
#app .business-growth-gate{color:#dce4df;font-size:12px;line-height:1.7;margin:7px 0 12px}
#app .business-growth-list{display:grid;gap:7px}
#app .business-growth-entry{border-radius:10px;padding:10px 11px;background:#07192780;border:1px solid #b8cddd26}
#app .business-growth-entry strong{display:block;font-size:13px;color:#e8f1f4}
#app .business-growth-entry p{color:#bfd1da;font-size:12px;line-height:1.6;margin:4px 0 0}
#app .growth-utilities{display:grid;gap:6px;margin:6px 0 8px}
#app .growth-utilities>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
#app .growth-utilities strong{color:#f1d4a0;white-space:nowrap}
#app .business-growth-body>.muted{font-size:11px;line-height:1.7}

/* v72: truly useful, buyer-confirmed products at licensed player shops. */
#app .business-shop-front{display:grid;gap:10px;margin:12px 0}
#app .business-shop-front>h2{font-size:16px;margin:0}
#app .business-shop-front>.muted{font-size:12px;line-height:1.6;margin:0}
#app .business-shop-card{border-radius:12px;padding:12px;background:#0b2031d9;border:1px solid rgba(232,202,147,.25);display:grid;gap:8px}
#app .business-shop-card h3{margin:0;color:#f2d7a7;font-size:14px}
#app .business-shop-card>.muted{margin:0;font-size:11px}
#app .business-shop-offer{background:#192d3c;border-radius:9px;padding:11px;display:grid;gap:5px}
#app .business-shop-offer>strong{font-size:13px}
#app .business-shop-offer>p{font-size:12px;line-height:1.65;margin:0}
#app .business-shop-offer-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}
#app .business-shop-offer-foot>span{color:#efd5a4;font-weight:750}
#app .business-shop-offer-foot small{font-size:11px;color:#c2cdd3}
#app .business-shop-perk{border:1px solid #90c7af55;background:#123a36a6;padding:11px;border-radius:10px}
#app .business-shop-perk strong{color:#b7f1d4;font-size:13px}
#app .business-shop-perk p{font-size:12px;line-height:1.6;margin:5px 0}
#app .business-shop-perk small{color:#b9d3c8;font-size:11px}
@media(max-width:380px){#app .business-shop-offer-foot{align-items:start;flex-direction:column}}

/* v74 — owner-first shop management: real staff seats before future feature previews. */
#app .business-readiness{padding:15px;border-color:#c2a46c61}
#app .business-ready-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:8px}
#app .business-ready-head h3{margin:2px 0 0;font-size:18px}
#app .business-ready-head small{display:block;color:#bed1d9;font-size:11px}
#app .business-ready-status{border-radius:30px;padding:5px 10px;font-size:11px;font-weight:750;white-space:nowrap}
#app .business-ready-status.ready{background:#163b32;color:#b8efcf;border:1px solid #85d4af6d}
#app .business-ready-status.waiting{background:#3c3025;color:#ffe3ac;border:1px solid #e3c1825c}
#app .business-role-list{display:grid;gap:6px;margin-top:11px}
#app .business-role-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:41px;padding:8px 10px;border:1px solid #cdd6d52c;border-radius:11px;background:#091b29a1}
#app .business-role-row strong{font-size:13px}
#app .business-role-row span{font-size:11px;flex-shrink:0}
#app .business-role-row .good{color:#a8e4bc}
#app .business-role-row .pending{color:#f7d695}
#app .business-role-row .bad{color:#ffaca5}
#app .business-hiring{margin:0 0 13px;border:1px solid #e7c27e9c;border-radius:17px;overflow:hidden;background:linear-gradient(145deg,#283c41,#122b3d)}
#app .business-hiring>summary{cursor:pointer;list-style-position:inside;display:block;position:relative;padding:14px 37px 14px 14px;min-height:65px;color:#ffdfa5}
#app .business-hiring>summary:before{content:"+";position:absolute;right:14px;top:15px;font-size:22px;line-height:1}
#app .business-hiring[open]>summary:before{content:"−"}
#app .business-hiring>summary strong{display:block;font-size:15px}
#app .business-hiring>summary small{display:block;color:#cdd9db;font-size:11px;margin-top:3px}
#app .business-hiring-body{padding:4px 12px 12px}
#app .business-hiring-body .panel.inner{margin:8px 0;padding:13px}
#app .business-private-hire,#app .business-team{border:1px solid #c3ac8055;background:#102637;border-radius:13px;margin:12px 0;overflow:hidden}
#app .business-private-hire>summary,#app .business-team>summary{padding:12px 13px;color:#edd5a9;font-size:13px;font-weight:700;cursor:pointer}
#app .business-private-hire>form,#app .business-team>.section-title,#app .business-team>.list{margin:10px 12px}
#app .business-team>.list{margin-bottom:13px}
#app .business-market-unavailable{margin:14px 0;padding:0 12px;border:1px solid #c2a57653;border-radius:14px;background:#12283a}
#app .business-market-unavailable>summary{cursor:pointer;padding:11px 2px;font-size:13px;font-weight:750;color:#f0d7a2}
#app .business-market-unavailable>summary small{display:block;font-size:11px;font-weight:400;color:#bad0d9}
#app .business-market-unavailable>.muted{margin:0 2px 12px;line-height:1.7}
#app .business-growth-future{margin-top:12px;border-top:1px solid #d6b57a3a;padding-top:8px}
#app .business-growth-future>summary{color:#dec699;cursor:pointer;font-size:12px;padding:8px 0}
#app .business-growth-future .business-growth-list{margin-top:8px}
@media(max-width:380px){
 #app .business-readiness{padding:12px}
 #app .business-hiring>summary strong{font-size:14px}
 #app .business-role-row{padding:8px}
}

/* v75 — single useful diagnosis, existing fix one tap away. */
#app .business-overview{padding:13px 14px}
#app .business-quick-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#app .business-quick-head h2{font-size:19px;margin:2px 0}
#app .business-quick-head .muted{margin:2px 0;line-height:1.5}
#app .business-quick-balance{display:flex;flex-direction:column;flex-shrink:0;text-align:center;min-width:80px;border-inline-start:1px solid #c3d4db38;padding-inline-start:13px}
#app .business-quick-balance strong{font-size:25px;line-height:1.3;color:#efd4a0;font-variant-numeric:tabular-nums}
#app .business-quick-balance small{font-size:10px;color:#c8d3d8}
#app .smart-coach{border:1px solid #c9af7e81;padding:16px;background:linear-gradient(145deg,#1a3548,#122636)}
#app .smart-coach-kicker{font-size:11px;color:#eecf96;font-weight:700;margin-bottom:4px}
#app .smart-coach h3{font-size:18px;margin:0 0 5px;color:#fff5e2}
#app .smart-coach p{font-size:13px;line-height:1.65;margin:0 0 11px;color:#cddde4}
#app .smart-coach .smart-action{width:100%;min-height:46px;font-size:14px}
#app .smart-other{margin-top:12px;border-top:1px solid #bdcfce33;padding-top:7px}
#app .smart-other>summary{cursor:pointer;color:#c8d7de;padding:7px 0;font-size:12px}
#app .smart-other-list{display:grid;gap:9px;margin-top:7px}
#app .smart-other-row{padding:9px 10px;border:1px solid #b4c6c02b;border-radius:12px;background:#092032ad}
#app .smart-other-row strong{font-size:13px}
#app .smart-other-row p{margin:4px 0 8px;font-size:12px}
#app .smart-other-row .smart-action{min-height:37px;font-size:12px}
#app .smart-home-tip{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:12px;border:1px solid #b9bfae5a;border-radius:14px;margin:0 0 12px;background:#102837}
#app .smart-home-tip strong{font-size:13px;color:#eed7ad}
#app .smart-home-tip p{font-size:11px;line-height:1.6;margin:3px 0 0;color:#c7d9df}
#app .smart-home-tip .button{flex-shrink:0;min-width:96px;font-size:12px;padding:8px}
#app .smart-healthy{font-size:12px;color:#c6dad7;margin:8px 0 12px}
#app .business-staff-summary,#app .business-finance-report{margin:12px 0;border:1px solid #a5b8ba48;border-radius:15px;background:#122739}
#app .business-staff-summary>summary,#app .business-finance-report>summary{cursor:pointer;padding:12px 14px;font-size:13px;font-weight:700;color:#f0d8ae}
#app .business-staff-summary>.muted,#app .business-staff-summary>.business-role-list{margin:0 13px 13px}
#app .business-finance-body{padding:4px 12px 12px}
#app .business-finance-body .business-payroll-summary{margin:9px 0}
#app .business-hire-options{border-top:1px solid #a7babe4b;margin-top:8px;padding-top:7px}
#app .business-hire-options>summary{cursor:pointer;font-size:12px;color:#dcc798;padding:8px 0}
#app .business-hire-options .field{margin:8px 0}
#app .business-hiring:has([data-action="career_publish"]) {border-color:#bca17191}
#app [id^="business-"]{scroll-margin-top:calc(90px + env(safe-area-inset-top))}
@media(max-width:380px){
 #app .business-quick-head{align-items:flex-start;gap:8px}
 #app .business-quick-head h2{font-size:17px}
 #app .business-quick-balance{min-width:72px;padding-inline-start:9px}
 #app .business-quick-balance strong{font-size:22px}
 #app .smart-home-tip{align-items:flex-start;flex-direction:column}
 #app .smart-home-tip .button{width:100%}
}

/* v77 — NPC lab is visually separate from real paid jobs and business staff. */
#app .npc-beta-panel{margin:13px 0;border:1px dashed #b6c7c28a;border-radius:14px;background:#10283b}
#app .npc-beta-panel>summary{padding:11px 13px;cursor:pointer;color:#d5e4e4;font-size:13px;font-weight:750}
#app .npc-beta-panel>summary small{display:block;font-size:11px;font-weight:400;color:#b2c2cb}
#app .npc-beta-body{padding:0 12px 13px}
#app .npc-beta-body>p{font-size:12px;color:#beced8;line-height:1.7}
#app .npc-beta-body h3{font-size:13px;margin:12px 0 8px}
#app .npc-beta-item{display:flex;gap:8px;justify-content:space-between;align-items:center;
  flex-wrap:wrap;padding:10px 9px;margin-top:6px;background:#081c2ba6;border:1px solid #afc3bf34;border-radius:10px}
#app .npc-beta-item strong{font-size:12px}
#app .npc-beta-item small{color:#adbdc9;font-size:11px}
#app .npc-beta-item .button{border-color:#b5c9bb6b;color:#e2e7da}
@media(max-width:380px){#app .npc-beta-item .button{width:100%}}


/* Starter v78: profession choice is a guided, non-financial first step. */
#app.profession-onboarding{min-height:100dvh;display:flex;flex-direction:column}
#app .profession-onboard-top{position:sticky;top:0;z-index:12;display:flex;justify-content:space-between;align-items:center;gap:12px;
 min-height:58px;padding:calc(10px + env(safe-area-inset-top)) 17px 10px;background:#0b1c2df2;border-bottom:1px solid #dfc68a52;
 color:#d4e1e7;font-size:12px;font-weight:700;backdrop-filter:blur(12px)}
#app .profession-onboard-top strong{white-space:nowrap;color:#f3dba7;font-size:14px;font-variant-numeric:tabular-nums}
#app .profession-onboard-content{width:100%;flex:1;max-width:580px;margin:0 auto;padding:20px 15px calc(26px + env(safe-area-inset-bottom))}
#app .profession-welcome{display:flex;flex-direction:column;gap:17px}
#app .profession-welcome-heading{padding:0 2px}
#app .profession-welcome-heading>span{display:inline-flex;padding:5px 11px;border:1px solid #e4c78f70;border-radius:999px;color:#e9d3a5;font-size:11px;font-weight:800}
#app .profession-welcome-heading h1{font-size:clamp(22px,6.3vw,29px);line-height:1.4;margin:11px 0 6px;color:#fff2da}
#app .profession-welcome-heading p{font-size:13px;line-height:1.85;color:#c9d8df;margin:0}
#app .profession-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#app .profession-choice-card{display:flex;flex-direction:column;justify-content:space-between;gap:13px;padding:16px 14px;min-width:0;border-radius:17px;
 background:linear-gradient(145deg,#203a4eeb,#0e2437f5);border:1px solid #d4ba8e5c;box-shadow:0 12px 20px #0002}
#app .profession-kind{font-size:11px;color:#e8ca99;font-weight:800;display:block;margin-bottom:8px}
#app .profession-choice-card h3{margin:0;color:#fff0d4;font-size:19px;font-weight:850}
#app .profession-choice-card p{margin:8px 0 0;color:#c7d7df;font-size:12px;line-height:1.7}
#app .profession-choice-card .button{width:100%;min-height:43px;white-space:normal;line-height:1.4;padding:9px 6px}
#app .profession-choice-note{margin:0;border:1px solid #d0bd9657;border-radius:12px;background:#182d3dba;padding:13px 14px;color:#d4e2e5;font-size:12px;line-height:1.85}
@media(max-width:355px){#app .profession-choice-grid{grid-template-columns:minmax(0,1fr)}
 #app .profession-choice-card{flex-direction:row;align-items:center}
 #app .profession-choice-card .button{max-width:130px;flex-shrink:0}
 #app .profession-onboard-content{padding:15px 12px calc(20px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){#app .profession-choice-card{transition:none}}

/* v79 — real living NPC agents, distinct from human players and legacy test lab. */
#app .npc-city-panel{margin:12px 0;border:1px solid #d8b98268;background:#132d3b;border-radius:15px;overflow:hidden}
#app .npc-city-panel>summary{cursor:pointer;padding:12px 14px;color:#f0d7a1;font-size:13px;font-weight:750}
#app .npc-city-panel>summary small{display:block;font-size:11px;color:#bcd2d8;font-weight:400}
#app .npc-city-inner{padding:1px 13px 13px}
#app .npc-city-inner>p,#app .npc-city-market>.muted{color:#c5d2db;font-size:12px;line-height:1.65}
#app .npc-city-inner>strong{display:block;font-size:13px;margin:12px 0 7px}
#app .npc-city-entry{display:flex;gap:9px;justify-content:space-between;align-items:center;border:1px solid #c1d2d644;background:#0b1f2e;border-radius:12px;margin:7px 0;padding:10px;flex-wrap:wrap}
#app .npc-city-entry strong{display:block;font-size:13px}
#app .npc-city-entry small{display:block;color:#bfcbd2;font-size:11px;margin-top:3px}
#app .npc-city-entry .button{min-height:37px}
#app .npc-city-summary{display:grid;gap:3px;background:#193443;border:1px solid #b8a47766;padding:11px 13px;border-radius:13px;margin:9px 0 12px}
#app .npc-city-summary strong{font-size:13px;color:#efdab0}
#app .npc-city-summary span{font-size:11px;color:#c2d2da}
#app .npc-city-market{margin:10px 0 16px}
#app .npc-city-market h3{font-size:16px;color:#f1d8a9;margin:8px 0}
#app .npc-city-market .item{padding:12px}
#app .npc-city-market .buttons{display:flex;gap:8px;flex-wrap:wrap}
#app .npc-city-market .button{min-height:39px}
@media(max-width:390px){
 #app .npc-city-entry .button,#app .npc-city-market .button{width:100%}
 #app .npc-city-market .buttons{display:grid;grid-template-columns:1fr}
}

/* v83 — one-screen owner storefront with optional detail drawers. */
#app .owner-storefront{padding:16px;margin:12px 0;border:1px solid rgba(234,202,147,.46);background:linear-gradient(150deg,#182f40,#102638)}
#app .owner-storefront-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
#app .owner-storefront-heading small{color:#e8cca0;font-weight:700;font-size:11px}
#app .owner-storefront-heading h3{margin:3px 0 0;font-size:18px;color:#fff7e8}
#app .owner-storefront-state{flex-shrink:0;border-radius:30px;padding:5px 9px;font-size:11px;font-weight:750}
#app .owner-storefront-state.is-live{border:1px solid #7ed6ab66;color:#a7efc7;background:#17433370}
#app .owner-storefront-state.is-waiting{border:1px solid #ecd09a66;color:#eed09d;background:#453b2666}
#app .owner-storefront-explain{font-size:12px;line-height:1.75;color:#cee0e5;margin:12px 0}
#app .owner-products{display:grid;gap:8px}
#app .owner-product{display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:12px;border:1px solid #abc1c334;background:#0a1d2d86;padding:10px 12px;min-width:0}
#app .owner-product>div{min-width:0}
#app .owner-product strong{font-size:13px;display:block;color:#f3ead8}
#app .owner-product small{display:block;font-size:11px;line-height:1.5;color:#aebfcb;margin-top:3px}
#app .owner-product>span{font-size:11px;flex-shrink:0;text-align:center}
#app .owner-product .is-live{color:#acebc8;font-weight:700}
#app .owner-product .is-waiting{color:#e7c99b}
#app .owner-sales{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}
#app .owner-sales>div{background:#112a3b;border:1px solid #b8c4c633;padding:11px;border-radius:12px;min-width:0}
#app .owner-sales small{font-size:10px;color:#b9ccd5;display:block;line-height:1.4}
#app .owner-sales strong{font-size:22px;color:#f4d6a0;display:block;margin-top:4px;font-variant-numeric:tabular-nums}
#app .owner-sales strong em{font-size:11px;font-style:normal}
#app .owner-sales-note{font-size:11px;color:#b6c7d0;line-height:1.6;margin:10px 0 0}
#app .owner-extra{border:1px solid #b2c3c33e;border-radius:14px;background:#122737;margin:10px 0;overflow:hidden}
#app .owner-extra>summary{cursor:pointer;list-style-position:inside;font-size:13px;font-weight:750;color:#e9cf9f;padding:13px 14px;min-height:46px}
#app .owner-extra>summary small{display:block;font-size:11px;font-weight:400;color:#b9cdd2;margin:3px 18px 0}
#app .owner-extra[open]{padding-bottom:12px}
#app .owner-extra[open]>:not(summary){margin-inline:12px}
#app .business-finance-report>summary small{display:block;font-size:11px;font-weight:400;color:#aebec9;margin-top:2px}
@media(max-width:380px){
 #app .owner-storefront{padding:12px}
 #app .owner-storefront-heading h3{font-size:16px}
 #app .owner-storefront-state{font-size:10px;padding:5px 7px}
 #app .owner-product{align-items:flex-start;gap:8px;padding:9px}
 #app .owner-product>span{max-width:82px;white-space:normal}
 #app .owner-sales strong{font-size:19px}
}

/* PWA v84 — short, accessible institution tabs and finite stock purchase. */
#app .owner-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0;padding:5px;border:1px solid #cbb78255;background:#0b2132;border-radius:16px;position:sticky;top:calc(55px + env(safe-area-inset-top));z-index:6}
#app .owner-tabs button{font:inherit;font-size:12px;font-weight:760;color:#bed0d9;border:0;background:transparent;border-radius:11px;min-height:43px;cursor:pointer;line-height:1.25}
#app .owner-tabs button.is-active{background:#233b4d;color:#ffe6aa;box-shadow:inset 0 0 0 1px #d0a86f88}
#app .owner-tabs button:focus-visible{outline:2px solid #eccb86;outline-offset:2px}
#app .owner-tab-panel[hidden]{display:none!important}
#app .owner-tab-panel{animation:owner-reveal .16s ease-out;min-width:0}
@keyframes owner-reveal{from{opacity:.75;transform:translateY(3px)}to{opacity:1;transform:none}}
#app .owner-supply{border:1px solid #cdb47a70;padding:15px;margin:12px 0;background:linear-gradient(135deg,#183448,#112636)}
#app .owner-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
#app .owner-section-heading small{font-size:11px;color:#e7cb93}
#app .owner-section-heading h3{font-size:17px;margin:4px 0;color:#fff0d0}
#app .owner-supply-count{font-size:11px;white-space:nowrap;background:#284050;border:1px solid #d4ba8954;border-radius:25px;padding:6px 10px;color:#f1d9a9}
#app .owner-supply>.muted{font-size:12px;line-height:1.75;margin:12px 0}
#app .owner-supply-items{display:grid;gap:10px}
#app .owner-supply-item,#app .owner-supply-offer{border:1px solid #d1cbaf36;background:#0b2132a8;border-radius:13px;padding:11px;margin:9px 0}
#app .owner-supply-item strong,#app .owner-supply-offer strong{display:block;font-size:13px;color:#f8e9c6}
#app .owner-supply-numbers{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#app .owner-supply-numbers span{border-radius:8px;padding:6px 7px;background:#19374b;font-size:11px;color:#d4e5e8}
#app .owner-supply-item .game-form,#app .owner-supply-offer .game-form{margin:7px 0 0;padding:9px;border:1px solid #b3c4c440;border-radius:10px;background:#0d2534}
#app .owner-supply-item .game-form>h3,#app .owner-supply-offer .game-form>h3{font-size:13px}
#app .owner-supply-item .game-form .muted,#app .owner-supply-offer .game-form .muted{font-size:11px;line-height:1.65}
#app .owner-supply-empty{font-size:12px;background:#102e42;padding:11px;border-radius:10px}
#app .owner-supply-offers{border:1px solid #c6be9d46;border-radius:13px;background:#102738;margin-top:12px}
#app .owner-supply-offers>summary{padding:13px;cursor:pointer;color:#e9d6b2;font-weight:750;font-size:13px}
#app .owner-supply-offers>.muted{padding:0 13px}
#app .owner-supply-offers>.owner-supply-offer{margin:9px 10px}
#app .owner-supply-offer>.muted{font-size:11px;line-height:1.7}
@media(max-width:370px){#app .owner-tabs{gap:3px;padding:4px}#app .owner-tabs button{font-size:11px;min-height:42px}#app .owner-supply{padding:11px}#app .owner-section-heading h3{font-size:15px}}
@media(prefers-reduced-motion:reduce){#app .owner-tab-panel{animation:none}}


/* v86: unchanged cards should never flash or re-enter on live data polls. */
#app.screen.live-sync .content *,#app.screen.live-sync .hero *{animation:none!important;transition:none!important}
#app.screen.live-sync .content,#app.screen.live-sync .hero{animation:none!important;transition:none!important}


/* v88: no repeated entrance animations across snapshots, tabs or live patches.
   v86 temporarily disabled animation then re-enabled it a frame later; that
   restarted cityContentEnter on every poll (the reported screen flash). */
#app.screen:not(.auth-mode) .content> :where(.city-wallet,.next-step,.mission-list,.estate-summary,.work-dashboard,.work-start-panel,.work-income,.business-disclaimer),
#app.screen:not(.auth-mode) .content>.section-title,
#app.screen:not(.auth-mode) .content .list>.property-card,
#app.screen:not(.auth-mode) .owner-tab-panel {
 animation:none!important;
}
/* Keep desk activity and meaningful button/track transitions intact. */

/* NPC rehire v88: one clear team card, no stacked accordion. */
#app .owner-tab-panel .npc-city-panel{margin:8px 0 12px;border-radius:13px}
#app .npc-city-panel .npc-city-inner{padding:13px 12px}
#app .npc-city-panel .npc-city-inner>h3{margin:0 0 7px;color:#f2d7a6;font-size:15px;font-weight:750}
#app .npc-city-panel .npc-city-inner>p{margin:4px 0 12px}
#app .npc-city-panel .npc-city-entry{min-width:0}
#app .npc-city-panel .npc-city-entry .button{min-height:43px}
@media(max-width:380px){#app .npc-city-panel .npc-city-entry .button{width:100%}}

/* v90 unified business workers: the same card for human and NPC contracts */
#app .team-roster{margin:10px 0 12px;padding:13px;border:1px solid #c5b28060;background:linear-gradient(145deg,#192f42,#0f2637);border-radius:15px}
#app .team-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 12px}
#app .team-section-title h3{margin:0;font-size:16px;color:#f7e0b5}
#app .team-section-title>span{font-size:11px;color:#c4d7d9;background:#233e50;border:1px solid #98ada344;border-radius:30px;padding:5px 9px}
#app .team-people-list{display:grid;gap:9px;min-width:0}
#app .team-person-card{margin:0;border:1px solid #acc6cc3e;background:#0a2030;border-radius:12px;padding:12px;min-width:0}
#app .team-person-main{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
#app .team-person-main>div{min-width:0}
#app .team-person-card h3{margin:0 0 5px;font-size:14px;color:#fff1d5;line-height:1.5}
#app .team-person-card .muted{font-size:11px;line-height:1.65;margin:0}
#app .team-npc-label{display:inline-block;vertical-align:middle;border:1px solid #b49a6188;background:#2a3845;border-radius:6px;padding:1px 5px;color:#ead39b;font-size:10px;font-weight:750;direction:ltr}
#app .team-person-status{white-space:nowrap;font-size:10px;color:#b3e8cf;flex-shrink:0}
#app .team-contract-note{font-size:11px;color:#c7d4d9;line-height:1.75;margin:9px 0}
#app .team-person-card .buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
#app .team-person-card .buttons button{min-height:42px}
#app .business-hiring .team-people-list{margin:0 0 14px}
#app .business-hiring .team-section-title{margin-top:8px}
@media(max-width:380px){#app .team-roster{padding:10px}#app .team-person-card{padding:10px}#app .team-person-status{white-space:normal;text-align:left;font-size:9px}#app .team-person-card .buttons button{flex:1 1 145px}}

/* Living-market v93 beta: small honest market board; no fake candles/percentages. */
.market-beta{border-color:rgba(214,182,116,.29);background:linear-gradient(146deg,#182d3e,#0d202c)}
.market-beta-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:9px}
.market-beta-head h2{font-size:17px;margin:0}
.market-beta-head small{display:block;color:var(--gold);font-size:11px}
.market-beta-mode{border:1px solid rgba(229,197,129,.36);color:#ead09f;background:#edc77a10;border-radius:9px;padding:5px 9px;font-size:11px;white-space:nowrap}
.market-beta-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:11px 0}
.market-beta-summary span{border-radius:12px;border:1px solid var(--line);background:#091e2ca8;padding:8px 10px;display:flex;flex-direction:column;gap:2px;color:var(--muted);font-size:11px}
.market-beta-summary b{font-variant-numeric:tabular-nums;color:var(--text);font-size:18px}
.market-beta-line{display:flex;gap:8px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:11px 0}
.market-beta-line strong{display:block;font-size:13px;line-height:1.65}
.market-beta-line small{display:block;color:var(--muted);font-size:11px;line-height:1.65}
.market-beta-price{flex-shrink:0;text-align:left}
.market-beta-price strong{color:var(--gold);font-variant-numeric:tabular-nums}
.market-beta-note{color:var(--muted);font-size:11px;border-top:1px solid var(--line);margin:0;padding-top:10px}
@media(max-width:360px){.market-beta-line{align-items:flex-start}.market-beta-price{max-width:43%}.market-beta-summary b{font-size:16px}}

/* PWA scroll stability: static game cards never animate back into view when
   fresh snapshots update text. Keep animations only on intentional gameplay. */
#app.screen:not(.auth-mode) .content>.panel,
#app.screen:not(.auth-mode) .content .list>.item,
#app.screen:not(.auth-mode) .content .feedback-ticket,
#app.screen:not(.auth-mode) .content .notice-item,
#app.screen:not(.auth-mode) .content .chat-message,
#app.screen:not(.auth-mode) .content .estate-brief,
#app.screen:not(.auth-mode) .content .finance-board,
#app.screen:not(.auth-mode) .content .market-exchange-card,
#app.screen:not(.auth-mode) .hero{
 animation:none!important;
}

/* v96: compact, action-led explanation when the beta market is blocked. */
.market-business-next{margin:11px 0 12px;padding:12px;border:1px solid rgba(217,187,126,.28);border-radius:13px;background:rgba(8,24,37,.55)}
.market-business-next strong{display:block;color:var(--gold);font-size:13px}
.market-business-next p{margin:5px 0 8px;color:var(--muted);font-size:12px;line-height:1.75}
.market-business-next .button{margin-top:2px}
.market-beta .market-beta-note{line-height:1.8}

/* v98: scalable "My Businesses" — no duplicate market/inventory walls. */
#app .owner-portfolio{padding:14px;margin-bottom:12px;border:1px solid #c6ad7955;background:linear-gradient(145deg,#152e40,#102637)}
#app .owner-portfolio-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
#app .owner-portfolio-heading h2{margin:2px 0 0;font-size:18px;line-height:1.3}
#app .owner-portfolio-heading small{font-size:10px;color:#e5c993}
#app .owner-portfolio-heading>span{font-size:12px;color:#ead7b9;white-space:nowrap}
#app .owner-portfolio-hint{margin:8px 0 12px;color:#c6d4dd;font-size:11px;line-height:1.7}
#app .owner-company-picker{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:2px 0 10px;scrollbar-width:thin;max-width:100%;touch-action:pan-x pan-y}
#app .owner-company-option{flex:0 0 min(72%,235px);scroll-snap-align:start;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:5px;text-align:start;padding:12px;border:1px solid #bdc9cd46;border-radius:13px;background:#0e2232;color:#e9f1f4;cursor:pointer;min-height:110px;font:inherit}
#app .owner-company-option strong{font-size:15px;overflow-wrap:anywhere}
#app .owner-company-option small{font-size:11px;color:#b5cbd6;line-height:1.55}
#app .owner-company-option span{margin-top:auto;font-size:12px;color:#ebd19b;font-variant-numeric:tabular-nums}
#app .owner-company-option.is-active{border-color:#e2c287;background:#263b4c;box-shadow:inset 0 0 0 1px #e2c28751}
#app .owner-company-option:focus-visible{outline:2px solid #ffdf9d;outline-offset:2px}
#app .owner-exchange,#app .owner-supply-wrap{margin:11px 0;border:1px solid #bdcbd045;border-radius:15px;background:#142b3a;overflow:hidden}
#app .owner-exchange>summary,#app .owner-supply-wrap>summary{cursor:pointer;min-height:54px;padding:12px 15px;color:#f0d6a6;font-size:14px;font-weight:750}
#app .owner-exchange>summary small,#app .owner-supply-wrap>summary small{display:block;font-weight:400;color:#c2d1d9;font-size:11px;margin-top:3px}
#app .owner-exchange>.market-beta,#app .owner-supply-wrap>.owner-supply{margin:0 9px 11px}
#app .owner-supply-wrap>.owner-supply{border:0;box-shadow:none;background:transparent}
#app .owner-tabs{scroll-margin-top:calc(80px + env(safe-area-inset-top))}
@media(max-width:380px){
 #app .owner-portfolio{padding:11px}
 #app .owner-portfolio-heading>span{font-size:11px}
 #app .owner-company-option{flex-basis:84%;min-height:103px}
 #app .owner-exchange>summary,#app .owner-supply-wrap>summary{padding:11px}
}
@media(min-width:680px){
 #app .owner-company-option{flex-basis:200px}
}


/* Work v98: make the next action visible without hiding real contracts or wages. */
#app.jobs-mode .work-hub-compact{padding:13px 15px 11px;margin-bottom:9px;border-radius:17px;box-shadow:0 8px 22px #0003}
#app .work-hub-compact:before{opacity:.45}
#app .work-hub-compact h2{font-size:clamp(19px,5vw,23px);margin:7px 0 2px;line-height:1.3}
#app .work-hub-compact>p{font-size:12px;margin:0;line-height:1.65}
#app .work-hub-compact .work-pending-note{color:#edd5a6;border-top:1px solid #e1c28d2e;margin-top:8px;padding-top:7px}
#app .work-view-tabs{margin-bottom:11px;border-radius:13px}
#app .work-view-tab{min-height:44px}
#app .work-view-content>.section-title{margin:13px 0 7px}
#app .work-idle-card{padding:19px 16px;border:1px solid #dab88284;border-radius:19px;background:linear-gradient(150deg,#243e50,#102536 76%);display:flex;flex-direction:column;align-items:stretch;gap:9px;margin-bottom:14px;min-width:0}
#app .work-idle-card h2{margin:0;font-size:clamp(23px,6vw,28px);line-height:1.3;color:#ffebc4}
#app .work-idle-card .work-idle-employer{font-size:13px;color:#d4e1ea;margin:0}
#app .work-idle-card .work-idle-rate{margin:2px 0 1px;padding:9px 11px;border:1px solid #f1d0973b;background:#091b2a80;color:#f3d7a3;border-radius:11px;font-size:12px;line-height:1.7}
#app .work-idle-card .button{display:block;width:100%;min-height:49px;font-size:15px;font-weight:850;margin-top:4px}
#app .work-idle-card .work-idle-note,#app .work-idle-empty>p{font-size:11px;line-height:1.7;color:#bdd0db;margin:0}
#app .work-idle-empty>p{font-size:13px}
#app .work-archive{margin:13px 0 7px;border:1px solid #b3c6ca37;border-radius:14px;background:#12283acc;overflow:hidden}
#app .work-archive>summary{cursor:pointer;min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 14px;color:#f0d8b0;font-size:13px;font-weight:750;list-style:none}
#app .work-archive>summary::-webkit-details-marker{display:none}
#app .work-archive>summary:after{content:"⌄";margin-inline-start:auto;color:#dbbf8e;font-size:18px;transition:transform .2s ease}
#app .work-archive[open]>summary:after{transform:rotate(180deg)}
#app .work-archive>summary small{font-size:11px;color:#adc2cf;font-weight:600}
#app .work-archive>.section-title,#app .work-archive>.panel,#app .work-archive>.list,#app .work-archive>.muted,#app .work-archive>.empty{margin-inline:12px}
#app .work-archive>.list{margin-bottom:12px}
#app .work-archive>.section-title{margin-top:4px}
#app .work-view-content .work-history{padding:11px 12px}
#app .work-view-content .work-history h3{font-size:13px;margin:0}
#app .work-view-content .work-history p{margin:5px 0;font-size:11px;line-height:1.6}
#app .work-dashboard{margin-bottom:12px}
#app .work-dashboard h2{margin:8px 0 3px;font-size:22px}
#app .work-dashboard .work-clock{min-height:88px;padding:10px 8px;margin:0 0 8px}
#app .work-dashboard .work-clock .work-present{font-size:clamp(49px,15vw,69px)}
#app .work-dashboard .work-facts{margin-top:7px}
#app .work-dashboard .work-actions{margin-top:13px}
#app .work-dashboard .work-rules .work-policy{margin-top:9px}
@media(max-width:380px){
 #app.jobs-mode .work-hub-compact{padding:12px}
 #app .work-idle-card{padding:15px 12px}
 #app .work-archive>summary{padding:12px 10px}
 #app .work-view-tab{font-size:11px;line-height:1.35}
}
@media(prefers-reduced-motion:reduce){#app .work-archive>summary:after{transition:none}}

/* PWA v99 — compact business management and calm NPC-payroll status. */
#app .owner-products-detail{margin:10px 0;border:1px solid #aebfc34b;background:#102738;border-radius:12px;overflow:hidden}
#app .owner-products-detail>summary{cursor:pointer;padding:12px 13px;font-size:12px;font-weight:700;color:#e9d09f}
#app .owner-products-detail>.owner-products{margin:0 8px 9px}
#app .owner-storefront-heading{gap:8px}
#app .owner-storefront-explain{font-size:12px;line-height:1.65}
#app .business-finance-body{min-width:0;padding:0 2px}
#app .business-finance-body>.business-payroll-summary{margin-top:4px}
#app .business-finance-body>.business-activity-strip{margin-block:10px}
#app .team-person-card{padding:12px}
#app .team-person-card .team-contract-note{line-height:1.6}
#app .smart-coach.is-info{padding:12px 14px;border-color:#8abcb05c;background:#152d3a}
#app .smart-coach.is-info h3{font-size:15px}
#app .smart-coach.is-info p{font-size:12px;margin-bottom:0}
#app .owner-tabs+ .owner-tab-panel{min-width:0}
@media(max-width:380px){
 #app .team-person-card{padding:10px}
 #app .owner-products-detail>summary{min-height:44px}
}


/* Work follow-up: reduce card walls while keeping actionable opportunities visible. */
#app.jobs-mode .work-view-tabs{scroll-margin-top:calc(var(--city-wallet-height) + 8px)}
#app.jobs-mode .work-view-content>.section-title:first-child{margin-top:6px}
#app.jobs-mode .work-pending-note{font-size:12px;margin:5px 3px 8px;padding:8px 11px;border:1px solid #d5b67d51;border-radius:11px;background:#efcf9010;color:#e8cf9c}
#app .work-open-opportunity{padding:13px 14px}
#app .work-open-opportunity .work-offer-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#app .work-open-opportunity .work-offer-head h3{margin:0;font-size:16px}
#app .work-open-opportunity .work-offer-employer{color:#c9dde8;font-size:12px;margin:4px 0}
#app .work-open-opportunity .work-offer-rate{color:#f0d49d;font-size:12px;line-height:1.6;margin:5px 0}
#app .work-open-opportunity .buttons{margin-top:9px}
#app .work-open-opportunity .button{min-height:43px}
#app .work-other-postings .work-other-note{font-size:12px;color:#c2d4de;line-height:1.6;margin:1px 13px 10px}
#app .work-compact-list{margin:0 10px 11px;display:grid;gap:6px}
#app .work-compact-offer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;background:#0a2031;border:1px solid #bfd0da24;border-radius:11px;min-width:0}
#app .work-compact-offer>div{min-width:0;flex:1}
#app .work-compact-offer h3{font-size:14px;margin:0 0 2px;line-height:1.5}
#app .work-compact-offer p{color:#b9ceda;font-size:11px;margin:0 0 2px}
#app .work-compact-offer small{color:#b4c9d3;font-size:10px;line-height:1.6;display:block}
#app .work-offer-locked{font-size:10px;color:#e6c998;border:1px solid #d6b7783d;border-radius:9px;padding:5px 7px;max-width:128px;line-height:1.5;text-align:center}
#app .profession-daily-compact{padding:14px 13px;display:grid;gap:10px}
#app .profession-daily-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#app .profession-daily-head h3{font-size:16px;margin:0}
#app .profession-daily-head span{color:#b9cede;font-size:11px}
#app .profession-daily-status{color:#f2d59d;border:1px solid #d4b77b59;border-radius:20px;padding:4px 8px;text-align:center;flex:0 0 auto}
#app .profession-next-level{font-size:12px;color:#e5d3ae;margin:0}
#app .profession-complete-note{font-size:12px;color:#b8e3d0;background:#6cbda31a;border:1px solid #6cbda347;border-radius:10px;padding:9px 10px;margin:0}
#app .profession-practice{border-top:1px solid #d3bb8538;padding-top:9px}
#app .profession-practice h3{font-size:16px;margin:0}
#app .profession-practice>.muted{font-size:12px}
#app .profession-event-inline{padding:9px 10px;border:1px solid #b8c5d83e;background:#0c2132;border-radius:11px}
#app .profession-event-inline strong{font-size:13px;color:#f3dfb5}
#app .profession-event-inline .muted{font-size:11px;margin:4px 0 8px}
#app .profession-event-inline .button{min-height:40px}
#app .profession-help{border-top:1px solid #d6b77934;padding-top:8px}
#app .profession-help>summary{color:#e2c691;cursor:pointer;font-size:12px;font-weight:750}
#app .profession-help p{color:#bdd0db;font-size:11px;line-height:1.75;margin:7px 0}
#app.jobs-mode .work-history{padding:10px 12px;margin:0;display:grid;gap:2px}
#app.jobs-mode .work-history .row{gap:8px}
#app.jobs-mode .work-history h3{font-size:13px;line-height:1.5}
#app.jobs-mode .work-history .muted{font-size:11px;line-height:1.6;margin:2px 0}
#app.jobs-mode .work-history>strong{color:#f3d399;font-size:12px}
#app.jobs-mode .work-history .pill{font-size:10px}
@media(max-width:360px){
 #app .work-open-opportunity{padding:11px}
 #app .work-compact-offer{align-items:flex-start;flex-direction:column}
 #app .work-offer-locked{max-width:none}
 #app .profession-daily-head{align-items:flex-start}
 #app .profession-daily-status{white-space:normal}
}
@media(prefers-reduced-motion:reduce){#app .work-compact-offer,#app .profession-daily-compact{transition:none}}

/* Government closure: compact registry and actionable municipal cases (v101). */
#app .gov-service{margin:10px 0;padding:15px;border-radius:18px}
#app .gov-head{display:flex;align-items:start;justify-content:space-between;gap:8px;padding:0 0 11px;border-bottom:1px solid rgba(210,186,134,.18)}
#app .gov-head h2{margin:0;font-size:17px;line-height:1.35;color:#f5dfb6}
#app .gov-head p{font-size:12px;line-height:1.6;color:#b9cbd5;margin:4px 0 0}
#app .gov-council .council-hall{padding:0;margin:0;border:0;border-radius:0;background:transparent}
#app .gov-subtitle{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:12px 0 7px;font-size:12px;color:#ebd3a7}
#app .gov-subtitle span{font-size:11px;background:#1e394a;padding:3px 9px;border-radius:22px;color:#cee0e4}
#app .gov-doc-list{display:grid;gap:7px;padding-top:4px}
#app .gov-doc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:10px 11px;background:#10283a;border:1px solid rgba(202,215,223,.15);border-radius:12px}
#app .gov-doc-info{min-width:0;display:grid;gap:1px;overflow-wrap:anywhere}
#app .gov-doc-info small{font-size:10px;color:#d9c79c}
#app .gov-doc-info strong{font-size:12px;line-height:1.5;color:#f3f0e9;font-weight:700}
#app .gov-doc-row .paper-open{margin:0;flex:0 0 auto;min-height:40px;min-width:64px;padding:8px 11px;font-size:12px}
#app .gov-expand{border:1px solid rgba(213,187,139,.27);border-radius:13px;margin-top:11px;background:#0b2031a1;overflow:hidden}
#app .gov-expand>summary{list-style:none;cursor:pointer;padding:12px;min-height:44px;font-size:12px;font-weight:750;color:#f2d7a7}
#app .gov-expand>summary::-webkit-details-marker{display:none}
#app .gov-expand>summary:after{content:'⌄';float:left;color:#c8d3d8}
#app .gov-expand[open]>summary:after{content:'⌃'}
#app .gov-expand>summary:focus-visible{outline:2px solid #e9c992;outline-offset:-3px}
#app .gov-expand .gov-doc-list,#app .gov-expand .council-cases,#app .gov-expand>.council-help{margin:0 10px 11px}
#app .gov-expand>.game-form{margin:0 12px 14px}
#app .gov-council .council-help{font-size:12px;line-height:1.65;margin:10px 0;color:#bdd0da}
#app .gov-council .council-case{margin:0;border:1px solid rgba(211,189,146,.28);background:#10283a;border-radius:12px;padding:11px}
#app .gov-council .council-case-header h3{font-size:13px;margin:2px 0}
#app .gov-council .council-case-header small,#app .gov-council .council-case-header p{font-size:11px;margin:1px 0}
#app .gov-council .council-case-header .pill{flex:0 1 auto;font-size:10px;text-align:center}
#app .gov-council .council-case-result{margin:9px 0 0;font-size:12px;line-height:1.65;color:#dce6e6}
#app .gov-council .council-drag-area{margin:9px 0}
#app .gov-council .council-start{margin:0 12px 14px}
#app .gov-disclaimer{font-size:11px;margin:11px 5px 18px}
@media(max-width:360px){
 #app .gov-service{padding:12px}
 #app .gov-doc-row{padding:9px;gap:6px}
 #app .gov-doc-row .paper-open{min-width:56px;padding:7px 8px}
 #app .gov-council .council-case-header{flex-wrap:wrap}
}


/* Work first-session focus: active shift + real server task before optional contracts. */
#app.jobs-mode .work-dashboard.work-dashboard-play{margin:0 0 9px;padding:13px 14px 11px;border-radius:18px;box-shadow:0 8px 20px #0003}
#app .work-dashboard-play .work-card-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
#app .work-dashboard-play .work-card-head .overline{font-size:10px;letter-spacing:.25px}
#app .work-dashboard-play .work-connection{font-size:10px;max-width:75%;line-height:1.4}
#app .work-playing-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0 10px}
#app .work-dashboard-play .work-playing-title h2{font-size:20px;line-height:1.4;margin:0}
#app .work-playing-title>span{font-size:11px;color:#c4d8e2;max-width:45%;text-align:left;overflow-wrap:anywhere}
#app .work-glance{display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:8px;min-width:0}
#app .work-dashboard.work-dashboard-play .work-glance .work-clock{min-height:83px;margin:0;padding:8px;border-radius:13px;background:radial-gradient(ellipse at 40% 0%,#d8bf8534,transparent 88%),#081b2b;border:1px solid #e1c28d64}
#app .work-dashboard.work-dashboard-play .work-clock .work-present{font-size:clamp(34px,11vw,45px);font-weight:850;line-height:1.05;letter-spacing:-1px;color:#ffebbd}
#app .work-dashboard.work-dashboard-play .work-clock small{font-size:10px;line-height:1.3;margin:2px 0 0}
#app .work-glance-pay{border:1px solid #bfd3dd3b;border-radius:13px;padding:9px 10px;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;background:#061c2d8a}
#app .work-glance-pay>small{font-size:10px;color:#b9d0db}
#app .work-glance-pay>strong{font-size:20px;color:#f5dba8;line-height:1.3;font-variant-numeric:tabular-nums}
#app .work-glance-pay .work-confirmed{font-size:10px;color:#b3cddd;line-height:1.4;margin:0}
#app .work-progress-track{height:7px;background:#061826;border:1px solid #e1c28d35;border-radius:999px;overflow:hidden;margin-top:11px}
#app .work-progress-track>span{display:block;height:100%;background:linear-gradient(90deg,#9fd6ad,#e9d39b);border-radius:999px;transition:width .4s ease}
#app .work-progress-caption{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;color:#d4e2e6;margin:5px 1px 2px}
#app .work-progress-caption>strong{color:#f0d5a0;font-size:12px;font-variant-numeric:tabular-nums}
#app .work-dashboard.work-dashboard-play .work-actions{margin-top:9px}
#app .work-dashboard.work-dashboard-play .work-actions button{min-height:43px;font-size:13px;border-radius:12px}
#app .work-dashboard.work-dashboard-play .work-actions button:disabled{opacity:.63;background:#d1c5a8;color:#24313a}
#app .work-dashboard.work-dashboard-play .work-hint{font-size:10px;line-height:1.5;margin:5px 0 8px}
#app .work-support{border-top:1px solid #d6c39438;padding:5px 0 0;margin-top:7px}
#app .work-support>summary{font-size:11px;color:#c2d6df;cursor:pointer;padding:6px 2px;list-style-position:inside}
#app .work-support-content{padding:8px 0 0}
#app .work-support-content>p{font-size:11px;line-height:1.7;color:#b8ccda;margin:3px 0 8px}
#app .work-support-content .work-journey{margin:12px 0 3px}
#app .work-support-content .work-facts{margin:6px 0}
#app .work-support-content .work-facts>div{padding:9px 8px}
#app .work-support-content .work-facts strong{font-size:12px}
#app .work-support-content .work-policy{margin:10px 0;padding:9px}
#app .work-support-content .work-rules{padding-top:8px}
#app.jobs-mode .work-quiz{margin:0 0 11px;padding:14px;border-radius:18px}
#app .work-activity-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#app .work-activity-heading h2{font-size:clamp(18px,4.9vw,21px);line-height:1.35;margin:3px 0}
#app .work-activity-live{font-size:10px;color:#e9d29e;border:1px solid #d9c19158;background:#e9cb9610;border-radius:18px;padding:4px 9px;white-space:nowrap}
#app .work-quiz .role-activity-hint{font-size:11px;line-height:1.6;margin:4px 0 9px}
#app .work-quiz .quiz-stakes{display:flex;justify-content:space-between;gap:7px;margin:5px 0 11px}
#app .work-quiz .quiz-stakes span{flex:1;min-width:0;display:flex;justify-content:space-between;align-items:center;gap:6px;padding:7px 9px;font-size:10px;line-height:1.5;border-radius:10px}
#app .work-quiz .quiz-stakes strong{font-size:11px;white-space:nowrap}
#app .work-quiz .quiz-question{padding:12px;border-radius:14px}
#app .work-quiz .quiz-question h3{margin:10px 0 6px;line-height:1.6;font-size:clamp(15px,4vw,18px)}
#app .work-activity-prompt{font-size:11px;font-weight:750;color:#e9d29e;margin:0 0 8px}
#app .work-quiz .quiz-options{gap:7px}
#app .work-quiz .quiz-choice{min-height:46px;padding:9px 11px;font-size:13px;border-radius:11px}
#app .work-quiz .quiz-choice-key{flex:0 0 27px;height:27px}
#app .work-activity-wait{border:1px dashed #d5c39168;border-radius:12px;padding:11px 13px;text-align:center;background:#0b2232}
#app .work-activity-wait>strong{font-size:13px;color:#ffebba}
#app .work-activity-wait>p{font-size:11px;color:#c0d0db;margin:4px 0;line-height:1.6}
#app .role-activity-cafe{border-color:#b6d6c16a;background:linear-gradient(155deg,#294947,#10283c)}
#app .role-activity-stock{border-color:#c5b98b6a;background:linear-gradient(155deg,#414639,#12283a)}
@media(max-width:360px){
 #app.jobs-mode .work-dashboard.work-dashboard-play{padding:12px 10px}
 #app .work-dashboard-play .work-connection{max-width:100%}
 #app .work-glance{grid-template-columns:minmax(0,39%) minmax(0,1fr);gap:6px}
 #app .work-glance-pay{padding:7px}
 #app .work-glance-pay>strong{font-size:18px}
 #app.jobs-mode .work-quiz{padding:11px}
 #app .work-quiz .quiz-stakes span{padding:6px;font-size:9px}
 #app .work-quiz .quiz-stakes strong{font-size:10px}
}
@media(prefers-reduced-motion:reduce){#app .work-progress-track>span{transition:none}}


/* Keep long NPC/player ineligible listings inspectable but grouped by job role. */
#app .work-role-groups{display:grid;gap:7px;margin:0 10px 11px}
#app .work-role-group{border:1px solid #b5c6ce44;border-radius:12px;background:#102538;overflow:hidden}
#app .work-role-group>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:10px 11px;min-height:43px;list-style:none}
#app .work-role-group>summary::-webkit-details-marker{display:none}
#app .work-role-group>summary strong{font-size:13px;color:#ebd3a7}
#app .work-role-group>summary small{font-size:11px;color:#b7cbd7;margin-inline-start:auto}
#app .work-role-group>summary:before{content:"⌄";font-size:14px;color:#dcc48d}
#app .work-role-group[open]>summary:before{transform:rotate(180deg)}
#app .work-role-group .work-compact-list{margin:0 7px 7px}


/* Registry document redesign v104: compact readable modal, without altering game records. */
#paper-contract{
 width:min(92vw,600px);max-width:min(600px,calc(100vw - var(--city-safe-left) - var(--city-safe-right) - 24px));
 max-height:min(86dvh,720px);border-radius:18px;margin:auto;
 background:#faf8f2;color:#1f3040;overflow:auto;overscroll-behavior:contain
}
#paper-contract .paper-document{padding:22px 22px 14px;line-height:1.6}
#paper-contract .paper-brand{padding:0 0 10px;gap:10px;flex-wrap:wrap;border-bottom:1px solid #d9c9aa}
#paper-contract .paper-brand strong{font-size:17px;color:#172d42}
#paper-contract .paper-brand span{font-size:11px;color:#6b716d}
#paper-contract .paper-type{display:inline-flex;align-items:center;margin:15px 0 2px;padding:4px 10px;border-radius:20px;background:#e7e4d8;color:#40566a;font-size:11px;font-weight:750}
#paper-contract .paper-document h2{text-align:right;font-size:18px;line-height:1.45;color:#162e42;margin:5px 0 9px}
#paper-contract .paper-reference{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px 16px;text-align:right;margin:0;color:#68717b;font-size:10px;line-height:1.6}
#paper-contract .paper-reference b{font-weight:600}
#paper-contract .paper-terms{margin:16px 0 13px;border:1px solid #e0dace;border-radius:13px;overflow:hidden}
#paper-contract .paper-line{display:grid;grid-template-columns:minmax(106px,35%) minmax(0,1fr);min-width:0;border-bottom:1px solid #e9e4d9}
#paper-contract .paper-line:last-child{border-bottom:none}
#paper-contract .paper-line:nth-child(even){background:#f5f2eb}
#paper-contract .paper-line strong,#paper-contract .paper-line span{
 min-width:0;padding:8px 11px;font-size:12px;line-height:1.55;overflow-wrap:anywhere
}
#paper-contract .paper-line strong{background:transparent;border-left:1px solid #e8e0d4;color:#42576a;font-weight:700}
#paper-contract .paper-line span{color:#172d40;font-weight:600;font-variant-numeric:tabular-nums}
#paper-contract .paper-line span[dir="ltr"]{text-align:right;unicode-bidi:isolate}
#paper-contract .paper-evidence{margin:0;padding:11px 12px;border-radius:11px;border-right:3px solid #6a8193;background:#eaf0f2;color:#274053;font-weight:400}
#paper-contract .paper-evidence strong{font-size:12px;color:#1b3b50}
#paper-contract .paper-evidence p{margin:3px 0 0;font-size:11px;line-height:1.65}
#paper-contract .paper-note{font-size:11px;line-height:1.7;color:#51616f;margin:12px 0}
#paper-contract .paper-footer{display:block;margin-top:15px;padding:10px 0 0;font-size:10px;color:#63707a;border-top:1px solid #e0dace}
#paper-contract .paper-actions{padding:10px 22px calc(10px + var(--city-safe-bottom));background:#faf8f2}
#paper-contract .paper-actions button{min-height:42px;background:#193349;color:#fff;border:1px solid #193349;border-radius:10px;padding:8px 22px}
#paper-contract .paper-actions button:focus-visible{outline:2px solid #bb8f51;outline-offset:2px}
@media(max-width:440px){
 #paper-contract{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:14px}
 #paper-contract .paper-document{padding:16px 13px 8px}
 #paper-contract .paper-document h2{font-size:17px}
 #paper-contract .paper-line{grid-template-columns:minmax(100px,40%) minmax(0,1fr)}
 #paper-contract .paper-line strong,#paper-contract .paper-line span{font-size:11px;padding:8px}
 #paper-contract .paper-actions{padding:9px 13px calc(9px + var(--city-safe-bottom))}
}
@media(prefers-reduced-motion:reduce){#paper-contract{scroll-behavior:auto}}

/* v105: one scrollable paper body, fixed action footer, no background scrolling. */
html:has(#paper-contract[open]){overflow:hidden!important;overscroll-behavior:none}
body:has(#paper-contract[open]){overscroll-behavior:none}
#paper-contract[open]{
 display:flex;flex-direction:column;overflow:hidden;
 max-height:min(86dvh,720px);overscroll-behavior:contain
}
#paper-contract[open] .paper-document{
 flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 scrollbar-width:thin;scrollbar-color:#a5b0b6 transparent
}
#paper-contract[open] .paper-actions{
 flex:0 0 auto;position:relative;bottom:auto;border-top:1px solid #e0dace;
 z-index:2
}
@media(max-width:440px){
 #paper-contract[open]{max-height:calc(100dvh - var(--city-safe-top) - var(--city-safe-bottom) - 24px)}
}

/* v106 — explicit NPC work shifts; compact controls on narrow phones. */
.npc-shift-picker{margin:.5rem 0;padding:.65rem .8rem;border:1px solid var(--line,rgba(146,166,187,.28));border-radius:12px;background:rgba(11,28,46,.25)}
.npc-shift-picker>summary{cursor:pointer;font-weight:700;min-height:34px;outline-offset:3px}
.npc-shift-picker>.muted{margin:.6rem 0;font-size:.86rem;line-height:1.7}
.npc-shift-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.npc-shift-options .button,.npc-shift-unfunded{width:100%;min-width:0;white-space:normal;line-height:1.4;text-align:center;min-height:42px}
.npc-shift-unfunded{display:flex;justify-content:center;align-items:center;border:1px dashed rgba(146,166,187,.38);border-radius:8px;padding:.4rem;font-size:.83rem;opacity:.8}
@media(max-width:340px){.npc-shift-options{grid-template-columns:1fr}}


/* v107: optional mini-workgame in the existing shift, no separate screen */
#app .work-mode-choice{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;margin:11px 0;border:1px solid #d0b68555;border-radius:13px;background:#091c2a}
#app .work-mode-choice>button{appearance:none;min-height:44px;padding:9px;border:0;border-radius:10px;color:#d1dfeb;background:transparent;font:inherit;font-size:13px;font-weight:800;cursor:pointer;touch-action:manipulation}
#app .work-mode-choice>button.selected{background:linear-gradient(125deg,#efd9a3,#cbab72);color:#142335;box-shadow:0 2px 8px #0004}
#app .work-mode-choice>button:focus-visible{outline:2px solid #f8e0ae;outline-offset:2px}
#app .mini-cafe-game{min-width:0;border-radius:16px;border:1px solid #afcfc65c;background:linear-gradient(160deg,#122f38,#091f33);padding:12px}
#app .mini-cafe-stage{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:12px;align-items:center;min-height:141px}
#app .mini-order-ticket{align-self:stretch;display:flex;flex-direction:column;gap:6px;justify-content:center;padding:13px;background:linear-gradient(160deg,#f4e3bd,#dfc995);border-radius:13px;color:#172a35;box-shadow:0 5px 15px #0002}
#app .mini-order-ticket>span{font-size:11px;font-weight:800;opacity:.75}
#app .mini-order-ticket>strong{font-size:clamp(19px,5vw,24px);line-height:1.2}
#app .mini-order-ticket>p{font-size:12px;line-height:1.5;margin:1px 0 0}
#app .mini-order-ticket>small{font-size:11px;margin-top:3px}
#app .mini-drink-wrap{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border-radius:13px;background:radial-gradient(circle at 40% 10%,#e9ca8f30,transparent 75%),#061a2a}
#app .mini-drink-wrap>span{font-size:12px;font-weight:850;color:#efdaa5;font-variant-numeric:tabular-nums}
#app .mini-cup{width:53px;height:69px;border:4px solid #dec9a1;border-top:6px solid #f1dfba;border-radius:3px 3px 14px 14px;position:relative;transform:perspective(70px) rotateX(-4deg);overflow:visible;background:#0b2831}
#app .mini-cup:after{content:"";position:absolute;top:11px;inset-inline-end:-18px;width:17px;height:31px;border:4px solid #dec9a1;border-inline-start:0;border-radius:0 12px 12px 0}
#app .mini-cup-fill{position:absolute;bottom:1px;inset-inline:1px;border-radius:0 0 9px 9px;background:linear-gradient(180deg,#d2a567,#8a5f45);transition:height .22s ease}
#app .mini-tray{margin:11px 0 10px;padding:9px 10px;border:1px solid #c5d4d240;background:#061c2b8c;border-radius:11px}
#app .mini-tray>span{font-size:11px;font-weight:800;color:#ecdaae}
#app .mini-tray-steps{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;min-height:23px}
#app .mini-tray-steps small{font-size:11px;color:#a9c2cf}
#app .mini-tray-step{font-size:11px;border:1px solid #c2d9bd66;background:#82ae8e20;border-radius:8px;padding:5px 8px;color:#daf0da}
#app .mini-station-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#app .mini-station{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:55px;text-align:right;font:inherit;font-weight:750;font-size:13px;color:#e6eff5;padding:9px 10px;border-radius:12px;background:linear-gradient(155deg,#264356,#112b3e);border:1px solid #adcad467;cursor:pointer;touch-action:manipulation}
#app .mini-station:hover:not(:disabled),#app .mini-station:focus-visible{border-color:#f1d298;background:#355366;outline:none}
#app .mini-station:active:not(:disabled){transform:scale(.98)}
#app .mini-station:disabled{opacity:.55;cursor:default}
#app .mini-station-symbol{width:31px;height:31px;display:inline-grid;place-items:center;flex-shrink:0;background:#e9d5ad1c;border:1px solid #f3d9a677;border-radius:9px;position:relative}
#app .mini-station-symbol:before{content:"";display:block;width:17px;height:16px;border:2px solid #ebd5a9;border-radius:3px 3px 7px 7px;background:#8a674c}
#app .mini-station-coffee .mini-station-symbol:before{background:#846046}
#app .mini-station-milk .mini-station-symbol:before,#app .mini-station-foam .mini-station-symbol:before{background:#f2e6d0}
#app .mini-station-ice .mini-station-symbol:before{border-radius:4px;transform:rotate(24deg);background:#92cddd}
#app .mini-station-chocolate .mini-station-symbol:before{background:#693d2e;border-radius:1px}
#app .mini-station-pastry .mini-station-symbol:before{background:#c59450;border-radius:50% 10% 50% 10%;transform:rotate(-26deg)}
#app .mini-station-warm .mini-station-symbol:before{border:0;border-radius:50%;background:radial-gradient(circle,#f7d29e,#bc6751)}
#app .mini-station-serve .mini-station-symbol:before{background:transparent;border-color:#a0d6a4;transform:rotate(45deg);width:13px;height:7px;border-top:0;border-left:0;border-radius:0}
#app .mini-game-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);gap:6px;margin-top:12px}
#app .mini-game-actions>.button{min-height:45px;margin:0;padding:8px 5px;font-size:12px;white-space:normal}
#app .mini-game-actions>.button.primary{font-weight:850}
#app .mini-game-note{font-size:10px;color:#b5ccd6;margin:9px 1px 0;line-height:1.55}
@media(max-width:360px){#app .mini-cafe-game{padding:9px}#app .mini-cafe-stage{grid-template-columns:minmax(0,1fr) 78px;gap:8px}#app .mini-order-ticket{padding:10px}#app .mini-cup{transform:scale(.82)}#app .mini-station{padding:7px;gap:7px;font-size:12px}#app .mini-game-actions>.button{font-size:11px}}
@media(prefers-reduced-motion:reduce){#app .mini-cup-fill{transition:none}#app .mini-station:active:not(:disabled){transform:none}}


/* v109: polished seven-destination bottom dock; safe on narrow RTL mobile screens. */
#app.screen:not(.auth-mode) .bottom{
 width:min(100%,540px);
 display:grid;
 grid-template-columns:repeat(7,minmax(0,1fr));
 align-items:stretch;
 gap:2px;
 padding:8px max(5px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));
 border:1px solid rgba(233,202,147,.28);
 border-bottom:0;
 border-radius:19px 19px 0 0;
 background:linear-gradient(180deg,rgba(18,42,57,.98),rgba(6,23,35,.98));
 box-shadow:0 -12px 34px #0008,inset 0 1px 0 #ffffff0b;
 backdrop-filter:blur(18px);
 -webkit-backdrop-filter:blur(18px);
 isolation:isolate;
 z-index:25;
}
#app.screen:not(.auth-mode) .bottom button{
 min-width:0;
 min-height:53px;
 display:flex;
 flex-direction:column;
 justify-content:center;
 align-items:center;
 gap:4px;
 padding:7px 0 5px;
 border:1px solid transparent;
 border-radius:12px;
 background:transparent;
 box-shadow:none;
 color:#a9baca;
 font-weight:650;
 font-size:clamp(9px,2.5vw,10.5px);
 letter-spacing:0;
 line-height:1.15;
 white-space:nowrap;
 overflow-wrap:normal;
 text-align:center;
 touch-action:manipulation;
 transition:background .16s ease,color .16s ease,border-color .16s ease;
}
#app.screen:not(.auth-mode) .bottom button svg{
 width:22px;
 height:22px;
 flex:none;
 stroke-width:1.85;
}
#app.screen:not(.auth-mode) .bottom button.active:not(.center){
 color:#f9dfa6;
 background:linear-gradient(165deg,#d5ab6435,#bb92551b);
 border-color:#e4c28a44;
 box-shadow:inset 0 2px 0 #e4c28a9c;
}
#app.screen:not(.auth-mode) .bottom button.center,
#app.screen:not(.auth-mode) .bottom button.center:not(.active){
 transform:translateY(-4px);
 background:linear-gradient(150deg,#284457,#172e42);
 color:#f1dfb7;
 border:1px solid #d8bc8670;
 border-radius:14px;
 min-height:57px;
 padding:8px 0 6px;
 box-shadow:0 4px 10px #0004;
}
#app.screen:not(.auth-mode) .bottom button.center.active{
 color:#142638;
 background:linear-gradient(145deg,#f5dda7,#d9b87b);
 border-color:#f2dcae;
 box-shadow:0 5px 16px #0006;
}
#app.screen:not(.auth-mode) .bottom button:focus-visible{
 outline:2px solid #f3dba4;
 outline-offset:-2px;
}
#app.screen:not(.auth-mode)>.content{
 padding-bottom:calc(102px + env(safe-area-inset-bottom));
}
@media(max-width:360px){
 #app.screen:not(.auth-mode) .bottom{gap:0;padding-inline:3px}
 #app.screen:not(.auth-mode) .bottom button{font-size:9px;gap:3px;min-height:50px}
 #app.screen:not(.auth-mode) .bottom button svg{width:20px;height:20px}
 #app.screen:not(.auth-mode) .bottom button.center,
 #app.screen:not(.auth-mode) .bottom button.center:not(.active){min-height:54px}
}
@media(max-height:550px) and (orientation:landscape){
 #app.screen:not(.auth-mode) .bottom{padding-block:4px calc(3px + env(safe-area-inset-bottom))}
 #app.screen:not(.auth-mode) .bottom button{min-height:42px;gap:1px;padding-block:4px}
 #app.screen:not(.auth-mode) .bottom button.center,
 #app.screen:not(.auth-mode) .bottom button.center:not(.active){min-height:45px;transform:none}
 #app.screen:not(.auth-mode)>.content{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .bottom button{transition:none}
}

/* Existing read-only goods exchange as a clean, independent player destination. */
#app .market-watch-summary{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:2px 0 9px
}
#app .market-watch-summary>div{
 display:flex;flex-direction:column;gap:2px;min-width:0;padding:14px;
 border-radius:17px;border:1px solid #c7aa7452;
 background:linear-gradient(145deg,#203c4e,#10283a)
}
#app .market-watch-summary small{color:#b9cbd4;font-size:11px}
#app .market-watch-summary strong{font-size:25px;color:#f5d59d;line-height:1.4;font-variant-numeric:tabular-nums}
#app .market-watch-summary span{font-size:11px;color:#b4c8d5}
#app .market-watch-time{font-size:11px;color:#bdcdd7;margin:0 3px 13px}
#app .market-beta-page{padding:17px;border-radius:19px}
#app .market-beta-page .market-beta-head{padding-bottom:12px;border-bottom:1px solid #ddbf8650;flex-wrap:wrap}
#app .market-beta-page .market-beta-line{gap:12px}
#app .market-watch-guide{
 border:1px solid rgba(201,182,148,.31);border-radius:14px;
 background:rgba(13,35,50,.82);padding:13px 15px;margin:1px 0 16px;
}
#app .market-watch-guide strong{color:#f0d8ad;font-size:13px}
#app .market-watch-guide p{color:#c3d0d8;font-size:12px;line-height:1.75;margin:5px 0 0}
@media(max-width:360px){
 #app .market-watch-summary>div{padding:11px}
 #app .market-beta-page{padding:12px}
 #app .market-beta-page .market-beta-line{gap:7px}
}


/* v109: six distinct, low-cost interactive work stations. No external assets. */
#app .mini-game-cashier .mini-station-symbol:before{content:"¤";color:#f2dcaa;font-size:17px;font-weight:900;background:transparent;border:0;text-align:center;height:auto}
#app .mini-cash-register{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:9px}
#app .mini-cash-screen{border:1px solid #88b89e;border-radius:12px;padding:10px 12px;background:#0a231f;display:grid;gap:5px;color:#d9f0d9}
#app .mini-cash-screen>span,#app .mini-cash-drawer>span{font-size:10px;color:#a9cdbd}
#app .mini-cash-screen>strong{font-size:16px;line-height:1.4}
#app .mini-cash-screen>div{display:flex;gap:8px;justify-content:space-between;font-size:11px;line-height:1.5}
#app .mini-cash-screen>div strong{font-size:12px;color:#e7f6d2}
#app .mini-cash-screen>.mini-cash-due{border-top:1px solid #adc9b558;padding-top:7px;margin-top:3px}
#app .mini-cash-screen>.mini-cash-due strong{color:#f2d49a;font-size:16px}
#app .mini-cash-drawer{border-radius:12px;padding:13px 9px;background:repeating-linear-gradient(0deg,#172f44,#172f44 17px,#21394b 18px);border:1px solid #9ab7c04b;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px}
#app .mini-cash-drawer>strong{font-size:20px;color:#f1d59c}
#app .mini-cash-drawer>p{font-size:10px;line-height:1.6;color:#c2d7e1;margin:0}
#app .mini-cash-slot{width:65%;height:7px;background:#081421;border:1px solid #89a7b469;border-radius:8px;margin-top:4px}
#app .mini-game-cashier .mini-station{background:linear-gradient(145deg,#183e36,#0c2930);border-color:#8bbba68c;justify-content:center}
#app .mini-grid-cashier{grid-template-columns:repeat(3,minmax(0,1fr))}
#app .mini-grid-cashier .mini-station{flex-direction:column;gap:4px;min-height:66px;text-align:center;padding:7px 3px}
#app .mini-scene{display:grid;gap:9px;background:#0a1d2e;border:1px solid #c0b58c69;border-radius:14px;padding:12px}
#app .mini-scene-header{display:flex;flex-direction:column;gap:3px}
#app .mini-scene-header>span{font-size:10px;color:#edcb8c;font-weight:750}
#app .mini-scene-header>strong{font-size:18px;color:#f3e0bb;line-height:1.4}
#app .mini-scene-header>p{font-size:11px;line-height:1.6;color:#bacee1;margin:0}
#app .mini-next-card{padding:12px;background:linear-gradient(140deg,#e6d4a8,#cbb07b);border-radius:12px;color:#1c3036;display:grid;gap:7px;min-height:89px}
#app .mini-next-card>span{font-size:11px;font-weight:700}
#app .mini-next-card>strong{font-size:16px;line-height:1.6}
#app .mini-scene-progress{display:flex;justify-content:space-between;align-items:center;gap:11px;font-size:11px;color:#c2d8e3}
#app .mini-scene-progress>div{height:6px;flex:1;background:#051524;border-radius:99px;overflow:hidden}
#app .mini-scene-progress>div span{height:100%;display:block;background:linear-gradient(90deg,#8ebea1,#f0d399);border-radius:99px;transition:width .18s}
#app .mini-game-reception .mini-scene{background:linear-gradient(150deg,#233b52,#102538)}
#app .mini-game-reception .mini-next-card{background:linear-gradient(150deg,#dae4e6,#aac4d6)}
#app .mini-queue-dots{display:flex;gap:6px;align-items:center}
#app .mini-queue-dots span{width:15px;height:15px;background:#d1b98244;border:1px solid #dac08a8a;border-radius:50%}
#app .mini-queue-dots span.done{background:#93c7ab;border-color:#c7e9d6}
#app .mini-grid-reception .mini-station-symbol:before{content:"";border:2px solid #dbc99a;width:15px;height:15px;border-radius:3px;background:#17364a;box-shadow:inset 0 -5px #d5d6c0}
#app .mini-game-stock .mini-scene{background:linear-gradient(150deg,#354134,#172a31);border-color:#b2c49b66}
#app .mini-game-stock .mini-next-card{background:linear-gradient(150deg,#d4e0c3,#b5d09e)}
#app .mini-stock-shelves{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
#app .mini-stock-shelves span{border:1px solid #c3d6b87b;min-height:35px;padding:7px 2px;border-radius:5px;background:repeating-linear-gradient(0deg,#24413c,#24413c 8px,#395751 9px);color:#e0f0df;text-align:center;font-size:10px}
#app .mini-grid-stock .mini-station{background:linear-gradient(155deg,#394a34,#1a363a);border-color:#aac19b8c}
#app .mini-grid-stock .mini-station-symbol:before{border-radius:2px;background:#b99868;box-shadow:0 4px #876742}
#app .mini-game-waiter .mini-scene{background:linear-gradient(150deg,#443b32,#212d3e);border-color:#d0b48866}
#app .mini-waiter-tables{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#app .mini-waiter-tables>span{width:100%;aspect-ratio:1.8;border-radius:50%;background:radial-gradient(circle,#765d49 49%,#dcc49e 51%,#7b5946 59%,transparent 60%);display:grid;place-items:center;font-size:10px;color:#fff1ce;text-shadow:0 1px 2px #000;font-weight:800}
#app .mini-grid-waiter .mini-station{background:linear-gradient(155deg,#514034,#283442);border-color:#cead867c}
#app .mini-grid-waiter .mini-station-symbol:before{border-radius:50%;background:radial-gradient(circle,#f6eed5,#c29d6b);border-color:#e9d7b3}
#app .mini-game-services .mini-scene{background:linear-gradient(150deg,#403c36,#192936);border-color:#d9c28d70}
#app .mini-service-board{display:grid;grid-template-columns:1fr;gap:5px}
#app .mini-service-alert{border:1px solid #d3ba8865;padding:8px 11px;border-radius:9px;background:#dcba7920;color:#f4dfb2;font-size:12px;line-height:1.5}
#app .mini-grid-services .mini-station{background:linear-gradient(160deg,#44403a,#253642);border-color:#d9c19872}
#app .mini-grid-services .mini-station-symbol:before{border-radius:2px;transform:rotate(45deg);background:#e5b86a;border-color:#f1d49c}
#app .mini-game-services .mini-game-note{color:#e4cba4}
@media(max-width:390px){
 #app .mini-cash-register{grid-template-columns:minmax(0,1fr) 100px}
 #app .mini-grid-cashier{grid-template-columns:repeat(3,minmax(0,1fr))}
 #app .mini-cash-drawer{padding:10px 5px}
 #app .mini-next-card>strong{font-size:14px}
 #app .mini-station{font-size:12px}
}
@media(max-width:330px){
 #app .mini-cash-register{grid-template-columns:1fr}
 #app .mini-grid-cashier{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .mini-waiter-tables>span{font-size:9px}
}
@media(prefers-reduced-motion:reduce){#app .mini-scene-progress>div span{transition:none}}


/* Market price-board redesign: truthful retail / wholesale / configured / settled prices. */
#app .market-board-time{margin:4px 3px 11px;color:#acc4d0;font-size:11px}
#app .market-board{background:linear-gradient(165deg,#183247 0%,#102638 75%);border:1px solid #bc9b6060;padding:15px;border-radius:20px}
#app .market-board-head{display:flex;align-items:start;justify-content:space-between;gap:10px;padding:0 0 12px;border-bottom:1px solid #d2b67b30}
#app .market-board-head small{font-size:10px;color:#edce91}
#app .market-board-head h2{font-size:19px;line-height:1.4;color:#fff3dd;margin:3px 0}
#app .market-board-head p{font-size:11px;line-height:1.6;color:#aec6d3;margin:3px 0 0;max-width:275px}
#app .market-board-count{flex:none;font-size:10px;font-weight:750;color:#f1dcae;background:#c1a16d1a;border:1px solid #b99d7170;padding:5px 9px;border-radius:99px;white-space:nowrap}
#app .market-board-list{display:grid;gap:11px;margin-top:13px}
#app .market-board-item{background:#0a1d2c;border:1px solid #9eb8c43b;border-radius:17px;overflow:hidden;padding:13px;box-shadow:0 7px 21px #050f181f}
#app .market-board-item-head{display:flex;justify-content:space-between;align-items:start;gap:9px}
#app .market-board-item-head>div{min-width:0}
#app .market-board-item-head small{color:#b4c8d4;font-size:10px}
#app .market-board-item-head h3{font-size:16px;line-height:1.45;color:#f7ebd5;margin:2px 0 0;overflow-wrap:anywhere}
#app .market-board-status{flex:none;border-radius:99px;font-size:10px;font-weight:700;padding:4px 9px;background:#ffffff0d;border:1px solid #adc1cd40;color:#cbdbe1;white-space:nowrap}
#app .market-board-status.live{color:#a8f1c9;background:#43ac7d19;border-color:#69c59a5d}
#app .market-board-benefit{color:#c2d3d9;font-size:11px;line-height:1.65;margin:7px 0 0}
#app .market-board-hero{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:11px 12px;border-radius:13px;background:linear-gradient(120deg,#173b4c,#203d4c);border:1px solid #a9c6c340}
#app .market-board-hero>div{min-width:0}
#app .market-board-hero small{display:block;color:#d6e1dc;font-size:11px}
#app .market-board-hero strong{font-size:32px;line-height:1.25;font-variant-numeric:tabular-nums;color:#ffe0a2;display:inline-block;margin:3px 0 0}
#app .market-board-hero strong.no-price{font-size:20px;color:#c6d5de}
#app .market-board-hero em{font-style:normal;font-size:11px;color:#d7c4a1;margin-inline-start:6px}
#app .market-board-hero p{margin:0;max-width:140px;flex:0 1 140px;text-align:left;color:#bfd0d5;font-size:10px;line-height:1.5}
#app .market-board-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
#app .market-board-sources>span{display:flex;flex-direction:column;gap:3px;background:#ffffff07;border:1px solid #9ab3be25;border-radius:9px;padding:8px 9px;min-width:0}
#app .market-board-sources small{font-size:10px;line-height:1.4;color:#b4c7d1}
#app .market-board-sources b{font-size:12px;color:#ece6d5;line-height:1.4;font-variant-numeric:tabular-nums}
#app .market-board-activity{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;border-top:1px solid #acc6ca20;padding-top:10px;margin-top:11px;font-size:10px;color:#aabfcb}
#app .market-board-shop,#app .market-board-stock,#app .market-board-change{margin:7px 0 0;font-size:10px;line-height:1.6;color:#b6cdd8}
#app .market-board-shop{color:#e9d19f}
#app .market-board-context{font-size:11px;line-height:1.7;color:#d8cba7;background:#dbb67510;border:1px solid #d8b77735;border-radius:10px;padding:10px;margin:11px 0 0}
#app .market-board-empty{text-align:center;padding:16px;color:#bdd1db;font-size:12px}
#app .market-board-disclaimer{font-size:10px;color:#bbcad2;line-height:1.65;border-top:1px solid #acc6ca22;margin:14px 0 0;padding-top:11px}
@media(max-width:390px){
 #app .market-board{padding:12px}
 #app .market-board-item{padding:10px}
 #app .market-board-head p{font-size:10px}
 #app .market-board-count{font-size:9px;padding:4px 7px}
 #app .market-board-hero{padding:10px}
 #app .market-board-hero strong{font-size:29px}
 #app .market-board-hero p{max-width:105px;flex-basis:105px}
}
@media(max-width:330px){
 #app .market-board-head{flex-wrap:wrap}
 #app .market-board-item-head{flex-wrap:wrap}
 #app .market-board-sources{grid-template-columns:1fr}
 #app .market-board-hero p{max-width:105px}
}


/* Market v116: concise mobile-first exchange, no decorative fake pricing. */
#app .market-beta-page{padding:12px;background:linear-gradient(155deg,#142b3d 0%,#0d1e2e 100%)}
#app .market-board-head{align-items:center;gap:8px;padding-bottom:10px}
#app .market-board-head h2{font-size:19px}
#app .market-board-head p{max-width:none;font-size:11px}
#app .market-board-count{font-size:10px;flex:0 0 auto}
#app .market-board-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
#app .market-board-counters>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;padding:10px 4px;min-width:0;border-radius:12px;background:#0b2031;border:1px solid #92b4c039}
#app .market-board-counters strong{font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums;color:#edd4a4}
#app .market-board-counters span{font-size:10px;color:#bed0da;line-height:1.4}
#app .market-board-guidance{border:1px solid #d9b77b6b;border-radius:12px;padding:10px 12px;background:linear-gradient(110deg,#65502a46,#233d4a85);margin:9px 0}
#app .market-board-guidance strong{font-size:12px;color:#ffe1ae}
#app .market-board-guidance p{font-size:11px;color:#d1dde0;margin:4px 0 0;line-height:1.65}
#app .market-board-filters{display:flex;gap:7px;overflow-x:auto;padding:5px 0 9px;scrollbar-width:none}
#app .market-board-filters button{flex:1 0 auto;min-height:38px;border-radius:10px;border:1px solid #95aab84a;color:#cedce4;background:#0a1d2e;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
#app .market-board-filters button.is-active{background:#dfc18a;color:#122637;border-color:#e7cd9e}
#app .market-board-filters button:focus-visible{outline:2px solid #f6ddb0;outline-offset:2px}
#app .market-board-list{gap:9px;margin-top:4px}
#app .market-board-item{padding:12px;border-radius:15px;background:linear-gradient(115deg,#0d2333,#102638)}
#app .market-board-benefit{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:5px}
#app .market-board-hero{margin-top:9px;padding:10px 12px;background:#193849;align-items:center}
#app .market-board-hero strong{font-size:30px}
#app .market-board-hero strong.no-price{font-size:18px}
#app .market-board-hero p{max-width:45%;flex:0 1 45%;font-size:10px}
#app .market-quote-retail .market-board-hero{border-color:#8fceab60;background:linear-gradient(120deg,#1c473f,#17394a)}
#app .market-quote-retail .market-board-hero strong{color:#c4f2d6}
#app .market-quote-missing .market-board-hero{background:#172a39}
#app .market-board-why{font-size:11px;color:#c4d1da;margin:7px 2px 0;line-height:1.6}
#app .market-board-details{border-top:1px solid #92abb82b;margin-top:10px}
#app .market-board-details>summary{display:flex;align-items:center;justify-content:space-between;gap:9px;list-style:none;font-size:11px;color:#e2ca99;padding:10px 1px 0;cursor:pointer;min-height:34px}
#app .market-board-details>summary::-webkit-details-marker{display:none}
#app .market-board-details[open]>summary span{transform:rotate(180deg)}
#app .market-board-details>summary span{font-size:15px;transition:transform .15s}
#app .market-board-activity{margin-top:9px}
#app .market-board-buy{margin-top:10px;background:#162d3a;border:1px solid #d6b87959;border-radius:14px;padding:0 11px}
#app .market-board-buy>summary{cursor:pointer;font-size:13px;color:#f1d7a8;padding:12px 2px;line-height:1.5;font-weight:750}
#app .market-board-buy>summary small{display:block;color:#bfd2db;font-size:10px;font-weight:400}
#app .market-board-buy .business-shop-front{margin-top:6px;padding:11px}
#app .market-board-footstep{font-size:11px;line-height:1.7;color:#c3d2d9;margin:12px 2px 0;padding:11px;border:1px solid #9fb5be40;background:#122a3a;border-radius:12px}
@media(max-width:390px){
 #app .market-beta-page{padding:10px}
 #app .market-board-head{flex-wrap:wrap}
 #app .market-board-counters strong{font-size:19px}
 #app .market-board-hero{padding:10px}
 #app .market-board-hero strong{font-size:27px}
 #app .market-board-hero p{font-size:10px;max-width:43%;flex-basis:43%}
 #app .market-board-filters button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#app .market-board-details>summary span{transition:none}}


/* Profession progression v116: server-confirmed work achievements, never a daily login reward. */
#app .work-performance-live{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:7px 0 10px}
#app .work-performance-live>span{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border:1px solid #d1bb8f49;border-radius:10px;padding:8px 4px;font-size:10px;color:#bed3dd;background:#132b3999}
#app .work-performance-live strong{font-size:15px;color:#f2d9a6;font-variant-numeric:tabular-nums}
#app .work-xp-award,#app .work-level-up,#app .profession-goal-done{border-radius:10px;border:1px solid #8cbea46c;background:#40695435;color:#c5ead4;font-size:11px;font-weight:700;line-height:1.65;padding:8px 11px;margin:5px 0}
#app .work-level-up{border-color:#e4cb976b;background:#715f3233;color:#f5dba9}
#app .work-goal-hint{font-size:11px;line-height:1.6;margin:4px 0 10px;color:#c6d7df}
#app .profession-growth-today{border:1px solid #b8a87666;border-radius:13px;background:linear-gradient(140deg,#1a3542,#0c2333);padding:12px;margin:11px 0}
#app .profession-growth-top{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#f2dbac;font-size:13px}
#app .profession-growth-top>span{font-size:12px;color:#d1e1e7;font-variant-numeric:tabular-nums}
#app .profession-growth-track{margin:8px 0 7px;background:#071824;height:8px;border-radius:99px;overflow:hidden;border:1px solid #e4ce9642}
#app .profession-growth-track>span{display:block;height:100%;background:linear-gradient(90deg,#91c2a9,#d7c18d);border-radius:99px;transition:width .22s}
#app .profession-growth-today>p{font-size:11px;line-height:1.7;color:#bad1dc;margin:5px 0 0}
#app .work-history-performance{font-size:11px;color:#e6d4a9;margin:7px 0}
@media(max-width:360px){#app .work-performance-live{gap:4px}#app .work-performance-live>span{font-size:9px;padding:7px 3px}}
@media(prefers-reduced-motion:reduce){#app .profession-growth-track>span{transition:none}}


/* v120 Work clarity: a single readable next action, real progression and compact salary history. */
#app .profession-simple{display:grid;gap:12px;border-color:#bba67683;overflow:hidden}
#app .profession-simple .profession-daily-head{margin:0}
#app .profession-simple .profession-daily-head h3{font-size:23px;line-height:1.4;margin:3px 0}
#app .profession-simple .profession-daily-status{font-size:10px;max-width:42%;text-align:center;line-height:1.5}
#app .profession-simple-block,#app .profession-simple-offer{padding:12px;border-radius:13px;background:#112637d9;border:1px solid #c5a7755c}
#app .profession-simple-block .profession-growth-top{display:flex;gap:6px;align-items:center;justify-content:space-between}
#app .profession-simple-block p,#app .profession-simple-offer p{color:#cbdce4;font-size:12px;line-height:1.7;margin:7px 0 0}
#app .profession-simple-offer{display:grid;gap:9px}
#app .profession-simple-offer>strong{color:#f1d49c;font-size:14px}
#app .profession-simple-offer .button,#app .profession-play-cta{min-height:43px;width:100%;justify-content:center}
#app .profession-simple .profession-growth-today{margin:0;padding:12px}
#app .profession-simple .profession-growth-today .profession-growth-top bdi{direction:ltr;unicode-bidi:isolate;display:inline-block;font-variant-numeric:tabular-nums;font-size:14px;color:#f5dba9}
#app .profession-simple .profession-growth-track{width:100%;height:8px;display:block;overflow:hidden;direction:ltr;text-align:left;background:#0c1b29;border-radius:99px}
#app .profession-simple .profession-growth-track>span{display:block;height:100%;min-width:0;max-width:100%;margin:0;border-radius:99px}
#app .profession-optional-training{border:1px solid #bbad824e;border-radius:11px;background:#0b203066;margin:8px 0;padding:10px}
#app .profession-optional-training summary{cursor:pointer;font-size:12px;color:#dec99e;font-weight:700;line-height:1.5}
#app .profession-optional-training p{margin:8px 0;color:#cbdae2;font-size:11px}
#app .profession-optional-training .profession-practice{margin-top:9px}
#app .profession-simple .profession-help{border-top:1px solid #aeb7bd33;padding-top:10px;margin-top:3px}
#app .profession-simple .profession-help summary{font-size:12px;color:#e5cda2}
#app .work-history-simple{padding:12px 13px;min-height:0}
#app .work-history-simple-head{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}
#app .work-history-simple-head strong{font-size:14px;color:#ebd6b0}
#app .work-history-simple-facts{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#bfcedc}
#app .work-history-simple-facts strong{color:#e9d5a5;font-size:13px}
#app .work-history-simple .work-alert{font-size:11px;padding:8px;margin:8px 0 0}
#app .work-history-details{font-size:11px;color:#bbd0d9;margin-top:8px}
#app .work-history-details summary{cursor:pointer;color:#e1c996}
#app .work-more-shifts{margin-top:7px}
#app .work-more-shifts>.list{margin-top:9px}
@media(max-width:350px){
 #app .profession-simple-block,#app .profession-simple-offer{padding:10px}
 #app .profession-simple .profession-daily-head h3{font-size:20px}
 #app .work-history-simple-facts{font-size:11px}
}


/* v120 — City chat + player inbox. A compact conversation, not a tall stack of admin cards. */
#app .notice-hub{display:grid;gap:12px;margin-bottom:22px}
#app .notice-hub-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border:1px solid #c6ab7760;border-radius:17px;background:linear-gradient(125deg,#1d3546,#0f2636)}
#app .notice-hub-summary>div{min-width:0}
#app .notice-hub-summary small{display:block;color:#eccf96;font-size:11px}
#app .notice-hub-summary strong{display:block;font-size:27px;color:#f7e0b0;line-height:1.35;font-variant-numeric:tabular-nums}
#app .notice-hub-summary strong span{font-size:14px;color:#d9e0dc;font-weight:650}
#app .notice-hub-summary p{font-size:11px;line-height:1.65;color:#bbced8;margin:3px 0 0}
#app .notice-hub-refresh{display:flex;flex:0 0 auto;gap:6px;align-items:center;justify-content:center;min-height:41px;border-radius:11px;border:1px solid #d7bb855e;background:#e1c58c16;color:#f1d9a9;padding:9px;font-family:inherit;font-size:12px;font-weight:650;cursor:pointer}
#app .notice-hub-refresh svg{width:17px;height:17px}
#app .notice-list{display:grid;gap:8px;margin:0}
#app .notice-item{display:flex;align-items:center;gap:11px;border-radius:13px;background:#0c2131;border:1px solid #9bafbd36;padding:12px;min-height:85px;box-shadow:none}
#app .notice-item.notice-unread{background:linear-gradient(120deg,#203b4b,#122d40);border-color:#e8cb9272;box-shadow:inset -3px 0 #e1c286}
#app .notice-item-icon{width:39px;height:39px;flex:0 0 39px;background:#e6c99012;border:1px solid #d9bd8840;border-radius:12px}
#app .notice-item-icon svg{width:19px;height:19px}
#app .notice-item-copy{gap:3px}
#app .notice-item-eyebrow{font-size:10px;color:#e4c98f;font-weight:700}
#app .notice-item-copy strong{font-size:13px;line-height:1.5}
#app .notice-item-copy small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#bfd0d9;font-size:11px;line-height:1.65}
#app .notice-item-copy time{font-size:10px;color:#8faabb;direction:auto;justify-self:start}
#app .notice-dot{margin:0 0 auto 0;flex-basis:7px;width:7px;height:7px}
#app .notice-hub-empty,#app .notice-empty{border-radius:14px;padding:23px 14px;border:1px dashed #adc3c149;text-align:center;background:#0d2333}
#app .notice-hub-empty strong,#app .notice-empty strong{color:#f5d9aa;font-size:14px}
#app .notice-hub-empty p,#app .notice-empty p{font-size:12px;color:#b5cad5;line-height:1.8;margin:7px 0}
#app .notice-hub-foot{font-size:10px;color:#adc4cf;line-height:1.7;margin:0 3px}
#app .notice-inline-error{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #d9b7787a;border-radius:12px;background:#60452b45;padding:11px 12px;color:#f9e2b7;font-size:11px;line-height:1.6}
#app .notice-inline-error button{font-family:inherit;flex:none;border:1px solid #ebd3a87b;border-radius:9px;background:#152e3d;color:#f8e3bd;padding:7px 11px;cursor:pointer}

#app .chat-room{padding:0;display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:linear-gradient(160deg,#112b3c,#091d2c);border:1px solid #a1bbbc4a}
#app .chat-top{display:flex;align-items:center;justify-content:space-between;gap:11px;margin:0;padding:14px 15px;border-bottom:1px solid #97b1b02d;background:#173247}
#app .chat-top>div{display:flex;flex-direction:column;gap:2px;min-width:0}
#app .chat-top small{font-size:10px;color:#e3c792}
#app .chat-top strong{font-size:17px;color:#f3ebd7;line-height:1.35}
#app .chat-top span{font-size:10px;color:#b8cbd4}
#app .chat-refresh{border:1px solid #d8c09070;background:#ffffff0c;color:#f0dbb3;border-radius:10px;padding:8px 13px;min-height:38px;cursor:pointer;font-family:inherit;font-size:12px;font-weight:650}
#app .chat-messages{height:clamp(290px,51svh,590px);min-height:290px;max-height:none;display:flex;flex-direction:column;gap:12px;overflow:auto;overscroll-behavior:contain;padding:18px 12px 22px;background:radial-gradient(ellipse at 50% 20%,#24405250,transparent 68%)}
#app .chat-message{display:flex;gap:7px;align-items:flex-end;max-width:91%;width:fit-content;padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}
#app .chat-message.mine{align-self:flex-start;flex-direction:row-reverse}
#app .chat-message.theirs{align-self:flex-end;flex-direction:row}
#app .chat-avatar{height:29px;width:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:11px;background:#36566a;border:1px solid #98bfc25a;color:#e2e8dc;font-size:13px;font-weight:800}
#app .chat-bubble{max-width:100%;min-width:95px;border:1px solid #a0b8c043;border-radius:15px 15px 15px 4px;background:#1b3749;padding:9px 12px;overflow-wrap:anywhere}
#app .chat-message.mine .chat-bubble{background:linear-gradient(135deg,#365348,#27433f);border-color:#95c6a978;border-radius:15px 15px 4px 15px}
#app .chat-meta{display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:11px}
#app .chat-meta strong{font-size:11px;color:#efcf91;font-weight:750}
#app .chat-message.mine .chat-meta strong{color:#bce6c8}
#app .chat-meta time{white-space:nowrap;color:#afc3cc;font-size:10px;font-variant-numeric:tabular-nums}
#app .chat-message p{margin:5px 0 0;line-height:1.7;font-size:13px;color:#f2f6f4;white-space:pre-wrap}
#app .chat-report{margin:5px 0 0;padding:4px 0 0 9px;border:0;background:none;font-size:10px;color:#a9bec9;text-decoration:none;cursor:pointer}
#app .chat-report:hover{text-decoration:underline}
#app .chat-empty{margin:auto;text-align:center;padding:32px 12px}
#app .chat-empty strong{color:#f3d8a5;font-size:15px}
#app .chat-empty p{font-size:12px;color:#acc4d1}
#app .chat-connection{padding:22px 16px}
#app .chat-connection strong{color:#efd4a3}
#app .chat-connection p{color:#aec5d2;font-size:12px}
#app .chat-inline-error{display:flex;align-items:center;gap:10px;justify-content:space-between;color:#f8e2bd;background:#57442e55;border-bottom:1px solid #c69c6e55;padding:9px 12px;font-size:11px;line-height:1.65}
#app .chat-inline-error button{flex:0 0 auto;font-family:inherit;color:#f0d8a9;border-radius:8px;padding:6px 9px;border:1px solid #d5be8757;background:#142f3e}
#app .chat-compose{display:flex;gap:8px;align-items:center;padding:11px 12px 4px;margin:0;border-top:1px solid #95b6b942;background:#122c3c}
#app .chat-compose-field{min-width:0;flex:1}
#app .chat-compose input{display:block;width:100%;height:45px;min-height:45px;border-radius:11px;background:#071d2b;border:1px solid #9ab3bb53;color:#f0f5f4;padding:8px 12px;font-size:16px;outline:none}
#app .chat-compose input:focus{border-color:#e4ce9b;box-shadow:0 0 0 2px #e4ce9b24}
#app .chat-send{min-height:45px;padding:9px 15px;flex:0 0 auto}
#app .chat-send:disabled{opacity:.48;cursor:not-allowed}
#app .chat-compose-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 14px 12px;background:#122c3c;font-size:10px;color:#aac3ce;line-height:1.5}
#app .chat-char-count{white-space:nowrap;font-variant-numeric:tabular-nums;color:#e4d5b6}
@media(max-width:390px){
 #app .chat-messages{height:clamp(280px,43svh,500px);padding:12px 8px 18px}
 #app .chat-message{max-width:94%}
 #app .chat-bubble{padding:8px 10px}
 #app .chat-avatar{height:26px;width:26px;flex-basis:26px}
 #app .chat-meta time{font-size:9px}
 #app .chat-compose{padding-inline:8px}
 #app .chat-send{padding:8px 11px}
 #app .chat-compose-footer{padding-inline:10px}
 #app .notice-hub-summary{padding:12px}
 #app .notice-hub-summary strong{font-size:24px}
 #app .notice-item{padding:10px 9px}
 #app .notice-item-icon{width:34px;height:34px;flex-basis:34px}
}
@media(prefers-reduced-motion:reduce){#app .notice-item,#app .chat-message{scroll-behavior:auto}}

#app .notice-hub-actions{display:flex;justify-content:flex-start;margin:-3px 0}
#app .notice-hub-actions button{font-family:inherit;font-size:11px;font-weight:650;border:1px solid #aabfbd58;background:#132d3b;color:#e7d2ab;border-radius:9px;padding:8px 11px;cursor:pointer}
#app .notice-hub-actions button:focus-visible{outline:2px solid #f1dca4;outline-offset:2px}

#app .chat-compose-field .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* v122: full-height social screens: input must sit ABOVE the 7-tab mobile dock. */
#app.screen.social-mode:not(.auth-mode)>.hero{display:none}
#app.screen.social-mode:not(.auth-mode)>.content{padding-top:9px}
#app.social-mode .chat-room{
 height:min(710px,calc(100dvh - var(--city-wallet-height) - 98px - var(--city-safe-bottom) - 22px));
 min-height:300px;
 display:flex;flex-direction:column;margin:0;
}
#app.social-mode .chat-top{padding:10px 13px;flex:0 0 auto}
#app.social-mode .chat-top h1{margin:1px 0;font-size:17px;color:#fff0d5;line-height:1.35}
#app.social-mode .chat-top>div{gap:1px}
#app.social-mode .chat-messages{
 flex:1 1 auto;height:auto;min-height:0;max-height:none;
 padding:12px 12px 16px;scrollbar-width:thin;scrollbar-color:#91aab06b transparent;
}
#app.social-mode .chat-compose{flex:0 0 auto;padding:9px 10px 3px;position:relative}
#app.social-mode .chat-compose-footer{flex:0 0 auto;padding:3px 12px 9px}
#app.social-mode .chat-compose input{height:42px;min-height:42px}
#app.social-mode .chat-send{min-height:42px}
#app.social-mode .chat-message p{margin-top:4px}
#app.social-mode .chat-bubble{padding:8px 10px;min-width:75px}
#app.social-mode .chat-message{max-width:85%}
#app.social-mode .chat-meta{gap:7px;flex-wrap:wrap}
#app.social-mode .chat-meta time{font-size:9px}
#app.social-mode .notice-hub{gap:9px;margin-bottom:10px}
#app.social-mode .notice-hub-summary{padding:10px 13px;align-items:center}
#app.social-mode .notice-hub-summary h1{font-size:18px;color:#fff0d5;margin:0;line-height:1.35}
#app.social-mode .notice-hub-summary strong{font-size:20px;line-height:1.25}
#app.social-mode .notice-hub-summary strong span{font-size:12px}
#app.social-mode .notice-hub-summary p{margin:0;font-size:10px}
#app.social-mode .notice-hub-filters{padding:0 1px 3px;gap:5px}
#app.social-mode .notice-hub-filters button{min-height:34px;padding:5px 10px;font-size:11px}
#app.social-mode .notice-list{gap:6px}
#app.social-mode .notice-item{min-height:67px;padding:9px 10px;gap:9px}
#app.social-mode .notice-item-icon{width:33px;height:33px;flex-basis:33px;border-radius:10px}
#app.social-mode .notice-item-copy{gap:2px}
#app.social-mode .notice-item-copy strong{font-size:12px}
#app.social-mode .notice-item-copy small{font-size:11px;line-height:1.45}
#app.social-mode .notice-item-copy time{font-size:10px}
#app.social-mode .notice-hub-foot{padding:3px 1px;font-size:10px}
@media(max-width:390px){
 #app.social-mode .chat-room{height:calc(100dvh - var(--city-wallet-height) - 91px - var(--city-safe-bottom) - 16px);min-height:280px}
 #app.social-mode .chat-messages{height:auto;min-height:0;max-height:none;padding:9px 8px 14px}
 #app.social-mode .chat-message{max-width:91%}
 #app.social-mode .notice-hub-summary{padding:9px 11px}
 #app.social-mode .notice-hub-summary h1{font-size:16px}
}
@media(max-height:550px){
 #app.social-mode .chat-room{min-height:200px;max-height:none}
 #app.social-mode .chat-messages{min-height:0}
}


/* v123: one-purpose City Chat — no visit requests, legacy cards or double headers. */
#app.screen.social-mode:not(.auth-mode)>.content:has(.chat-room){
 padding-inline:clamp(8px,2.5vw,13px);
 padding-top:8px;
 padding-bottom:calc(92px + env(safe-area-inset-bottom));
}
#app.social-mode .chat-room{
 border-radius:17px;
 background:#0c2030;
 border:1px solid #b8c4bd45;
 box-shadow:0 12px 32px #0000002b,inset 0 1px #ffffff0c;
 overflow:hidden;
 isolation:isolate;
}
#app.social-mode .chat-top{
 border-bottom:1px solid #c3d0c02a;
 background:linear-gradient(110deg,#193748,#142a3b 65%,#0f2434);
 padding:12px 13px;
 min-height:63px;
}
#app.social-mode .chat-room-title{display:flex;align-items:center;gap:10px;min-width:0}
#app.social-mode .chat-room-title>div{display:flex;flex-direction:column;gap:2px;min-width:0}
#app.social-mode .chat-room-mark{
 display:grid;place-items:center;flex:none;width:36px;height:36px;
 background:#c4a76e16;border:1px solid #e0bd7d54;
 border-radius:13px;
}
#app.social-mode .chat-room-mark::after{
 content:"";width:13px;height:13px;border-radius:4px;
 border:2px solid #f1d394;box-shadow:4px 3px 0 -2px #f1d394;
 transform:rotate(-9deg);
}
#app.social-mode .chat-top h1{font-size:16px;line-height:1.3;font-weight:800;letter-spacing:0}
#app.social-mode .chat-top span{color:#afc9d1;font-size:11px}
#app.social-mode .chat-refresh{
 display:flex;align-items:center;justify-content:center;
 background:#ffffff0b;color:#e8d4ae;border:1px solid #b5bfaf50;
 min-height:35px;padding:7px 11px;border-radius:10px;white-space:nowrap;
}
#app.social-mode .chat-messages{
 background:radial-gradient(ellipse at 20% 100%,#2b485c35,transparent 60%),#0c2030;
 gap:9px;
 scrollbar-width:thin;scrollbar-color:#a1adb370 transparent;
}
#app.social-mode .chat-message{gap:7px;max-width:86%}
#app.social-mode .chat-bubble{
 position:relative;
 border:1px solid #91acb351;
 background:#1b3546;
 border-radius:15px 15px 15px 5px;
 padding:9px 11px;
 box-shadow:0 3px 10px #06121c30;
}
#app.social-mode .chat-message.mine .chat-bubble{
 background:linear-gradient(145deg,#314e48,#24403c);
 border:1px solid #96c5a16b;
 border-radius:15px 15px 5px 15px;
}
#app.social-mode .chat-avatar{
 background:#2b485a;border-color:#9eb5b74b;
 color:#f4dcae;border-radius:11px;
 font-size:12px;
}
#app.social-mode .chat-meta{align-items:center;gap:5px 11px;min-width:0}
#app.social-mode .chat-meta strong{color:#efd6aa;font-size:11px}
#app.social-mode .chat-message.mine .chat-meta strong{color:#cbeedb}
#app.social-mode .chat-meta time{font-size:10px;color:#a8bdc6}
#app.social-mode .chat-message p{
 color:#f7f6ef;line-height:1.65;font-size:13px;
 overflow-wrap:anywhere;white-space:pre-wrap;
 margin-top:5px;
}
#app.social-mode .chat-report{
 margin:4px 0 0;padding:3px 0;
 color:#a9c6d4;font-size:10px;text-decoration:none;
 min-height:22px;
}
#app.social-mode .chat-report:focus-visible,#app.social-mode .chat-refresh:focus-visible{
 outline:2px solid #f3dbae;outline-offset:2px;
}
#app.social-mode .chat-compose{
 background:#122b3a;border-top:1px solid #a1bac448;
 gap:8px;padding:10px 11px 4px;
}
#app.social-mode .chat-compose input{
 width:100%;border-radius:12px;background:#091c29;border-color:#c2c9bf48;
 min-height:46px;height:46px;padding:9px 12px;
}
#app.social-mode .chat-compose input::placeholder{color:#95afba}
#app.social-mode .chat-send{
 border-radius:12px;min-height:46px;
 background:linear-gradient(135deg,#f4dfb5,#d5b474);
 color:#1b2830;font-weight:800;border:1px solid #f9e9c4;
 box-shadow:none;
}
#app.social-mode .chat-send:disabled{background:#8e846c;color:#192b35;opacity:.65}
#app.social-mode .chat-compose-footer{
 background:#122b3a;gap:8px;
 color:#aebfc8;font-size:10px;padding:2px 13px 10px;
}
#app.social-mode .chat-char-count{direction:ltr;unicode-bidi:isolate}
@media(max-width:390px){
 #app.social-mode .chat-top{padding:10px 11px}
 #app.social-mode .chat-room-mark{width:31px;height:31px;border-radius:10px}
 #app.social-mode .chat-message{max-width:93%}
 #app.social-mode .chat-messages{gap:8px}
 #app.social-mode .chat-compose{padding-inline:8px}
 #app.social-mode .chat-compose-footer{padding-inline:10px}
}


/* v124: wholesale is a small real shop, not a stack of administration forms. */
#app .owner-supply{padding:13px 12px;margin:10px 0;background:linear-gradient(155deg,#193549,#0e2637);border-color:#c9af7f72}
#app .owner-shop-heading{align-items:center;gap:9px}
#app .owner-shop-heading h3{font-size:19px;line-height:1.35;margin:2px 0;color:#f9e7c6}
#app .owner-shop-note{font-size:12px;line-height:1.7;color:#bdd0d8;margin:8px 1px 13px}
#app .owner-shop-grid{display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
#app .owner-shop-card{min-width:0;border-radius:16px;border:1px solid #d1c09a55;background:linear-gradient(160deg,#20384a,#102839);padding:13px;box-shadow:0 9px 22px #00000022}
#app .owner-shop-card-top{display:flex;align-items:center;gap:10px}
#app .owner-shop-card-top>div{flex:1;min-width:0}
#app .owner-shop-card-top small{display:block;font-size:10px;color:#a9c3d0;font-weight:650}
#app .owner-shop-card-top h4{font-size:15px;line-height:1.4;margin:2px 0;color:#ffeed2}
#app .owner-shop-symbol{flex:none;width:39px;height:39px;border:1px solid #ebcf9275;background:#dabb8020;color:#f4dab0;border-radius:12px;display:grid;place-items:center;font-weight:850;font-size:18px}
#app .owner-shop-availability{font-size:10px;font-weight:700;white-space:nowrap;padding:5px 8px;border-radius:99px;color:#b9ebd2;background:#1743348a;border:1px solid #84c9a455}
#app .owner-shop-benefit{font-size:12px;line-height:1.75;color:#cfe0e6;margin:11px 0;background:#0b2334a8;border-radius:10px;border:1px solid #b8c5bb30;padding:9px 10px}
#app .owner-shop-benefit strong{color:#f1d9a9}
#app .owner-shop-merchant{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:7px;border-top:1px solid #d4c8a82c;padding:10px 0 9px;font-size:11px;color:#bfd2da}
#app .owner-shop-price{white-space:nowrap;color:#f8dba2}
#app .owner-shop-price strong{font-size:21px;font-weight:850;font-variant-numeric:tabular-nums}
#app .owner-shop-buy{display:grid;gap:9px;margin:0;padding:0;background:transparent;border:0}
#app .owner-shop-qty{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#f4e0bc;font-size:12px;font-weight:700}
#app .owner-shop-qty small{font-weight:400;color:#b4c9d1;display:block;font-size:10px;line-height:1.5}
#app .owner-shop-qty input{width:104px;min-width:0;min-height:43px;border-radius:10px;background:#0a1e2d;color:#fff;padding:8px 10px;text-align:center;font-size:16px;font-weight:800;border:1px solid #9db7bd73}
#app .owner-shop-checkout{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#0b2333ad;border-radius:11px;padding:8px 8px 8px 11px}
#app .owner-shop-checkout>span{font-size:11px;color:#cadde2;line-height:1.55}
#app .owner-shop-checkout strong{font-size:15px;color:#f6dc9e;font-weight:850}
#app .owner-shop-checkout .button{flex:0 0 auto;min-width:127px;min-height:44px;font-size:13px;border-radius:10px}
#app .owner-shop-blocked,#app .owner-shop-empty{background:#1e2f3d;border:1px solid #e4c58f59;border-radius:10px;padding:12px;font-size:12px;line-height:1.7;color:#ecd5af}
#app .owner-shop-inventory{margin-top:13px;border:1px solid #b8c5c051;border-radius:13px;background:#102738;overflow:hidden}
#app .owner-shop-inventory>summary{min-height:55px;padding:11px 13px;display:flex;align-items:center;cursor:pointer;color:#fae4bd}
#app .owner-shop-inventory>summary::-webkit-details-marker{display:none}
#app .owner-shop-inventory>summary:before{content:'⌄';font-size:22px;margin-inline-end:10px;color:#ebd1a0}
#app .owner-shop-inventory[open]>summary:before{transform:rotate(180deg)}
#app .owner-shop-inventory>summary span{display:flex;flex-direction:column;gap:3px}
#app .owner-shop-inventory>summary strong{font-size:13px}
#app .owner-shop-inventory>summary small{font-size:10px;line-height:1.5;color:#b8cdd5;font-weight:400}
#app .owner-shop-inventory>.owner-shop-note{margin:10px}
#app .owner-shop-inventory-list{display:grid;gap:9px;padding:0 9px 10px}
#app .owner-shop-stock{min-width:0;padding:11px;background:#0b2132;border-radius:11px;border:1px solid #adbeae42}
#app .owner-shop-stock>div:first-child>strong{color:#f5e2bc;font-size:14px}
#app .owner-shop-stock>div:first-child>small{display:block;font-size:11px;line-height:1.6;color:#a9c6d3;margin-top:3px}
#app .owner-shop-stock-meta{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}
#app .owner-shop-stock-meta span{font-size:10px;color:#c8dae0;padding:5px 7px;border-radius:7px;background:#1c3849}
#app .owner-shop-price-form{margin:5px 0;display:flex;gap:8px;align-items:end;border:0;background:transparent;padding:0}
#app .owner-shop-price-form label{min-width:0;flex:1;display:grid;gap:5px;color:#ddc99f;font-size:11px}
#app .owner-shop-price-form input{width:100%;height:43px;padding:8px;border-radius:9px;background:#091c2b;color:#ffefd2;border:1px solid #9db7bd66;font-size:15px}
#app .owner-shop-price-form .button{min-height:43px;flex:none;max-width:48%;font-size:12px}
#app .owner-shop-price-hint{display:block;color:#aec5d0;font-size:10px;line-height:1.6;margin-top:7px}
#app .owner-shop-buy input:focus-visible,#app .owner-shop-price-form input:focus-visible,#app .owner-shop-inventory>summary:focus-visible{outline:2px solid #efcb82;outline-offset:2px}
@media(max-width:355px){#app .owner-shop-card{padding:10px}#app .owner-shop-checkout .button{min-width:105px}#app .owner-shop-heading h3{font-size:17px}#app .owner-shop-availability{font-size:9px}}
@media(min-width:740px){#app .owner-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v124: present the owner’s next real decision before long explanations. */
#app .owner-venue-compact{padding:0;margin:8px 0;border:1px solid #aab9b747;background:#10283a;border-radius:12px}
#app .owner-venue-compact>summary{cursor:pointer;min-height:42px;padding:9px 12px;display:flex;justify-content:space-between;gap:8px;align-items:center;list-style:none;font-size:12px;color:#c3e3d3}
#app .owner-venue-compact>summary::-webkit-details-marker{display:none}
#app .owner-venue-compact>summary>span{font-size:10px;color:#b7cbd3}
#app .owner-venue-compact>.muted{font-size:11px;line-height:1.6;margin:0;padding:0 12px 8px}
#app .owner-venue-compact>.buttons{margin:0;padding:0 12px 12px}
#app .owner-sales-help{border:1px solid #bac4b353;border-radius:13px;margin:10px 0;overflow:hidden;background:#102739}
#app .owner-sales-help>summary{display:block;cursor:pointer;padding:12px 14px;color:#f2dbac;font-size:13px;font-weight:750}
#app .owner-sales-help>summary small{display:block;font-size:10px;line-height:1.5;font-weight:400;margin-top:3px;color:#adc4ce}
#app .owner-sales-help>.owner-storefront{margin:8px;border:0;box-shadow:none}
#app .owner-sales-help>.smart-guide-business,#app .owner-sales-help>.smart-guide-panel{margin:8px}
#app .owner-sales-help>summary:focus-visible,#app .owner-venue-compact>summary:focus-visible{outline:2px solid #f2d39b;outline-offset:-2px}


/* PWA v125 — honest, automatic mandatory update progress above the bottom dock. */
#required-player-update{
 width:calc(100% - 20px);
 max-width:520px;
 gap:9px;
 padding:13px 15px 12px;
 border:1px solid #f0d6a678;
 background:linear-gradient(125deg,#172e40,#102537);
 box-shadow:0 16px 46px #010e19bb;
 contain:layout;
}
#required-player-update .release-title{
 display:flex;align-items:center;gap:9px;min-width:0;
}
#required-player-update .release-title strong{
 font-size:14px;color:#ffe4ad;line-height:1.5;
}
#required-player-update #required-release-status{
 display:block;color:#d8e5eb;font-size:11px;line-height:1.65;
}
#required-player-update .release-spinner{
 width:19px;height:19px;flex:0 0 19px;border-radius:50%;
 border:2px solid #f7d9aa44;border-top-color:#f5d49a;
 animation:release-wheel .9s linear infinite;
}
@keyframes release-wheel{to{transform:rotate(360deg)}}
#required-player-update .release-progress{
 width:100%;height:9px;border-radius:30px;overflow:hidden;
 border:1px solid #efcd9b78;background:#061929;
}
#required-player-update .release-progress>span{
 display:block;height:100%;width:0%;border-radius:30px;
 background:linear-gradient(90deg,#b59255,#f1d399,#ffeab9);
 transition:width .25s ease;
 box-shadow:0 0 14px #eed19b65;
}
#required-player-update .release-progress.is-indeterminate>span{
 width:35%!important;animation:release-wait 1.7s ease-in-out infinite;
}
@keyframes release-wait{
 0%{transform:translateX(-290%)}
 100%{transform:translateX(320%)}
}
#required-player-update #required-release-count{
 font-size:10px;line-height:1.45;color:#bbd1dc;
 font-variant-numeric:tabular-nums;direction:rtl;
}
@media(max-width:390px){
 #required-player-update{padding:11px 12px;gap:7px;bottom:calc(76px + env(safe-area-inset-bottom))}
 #required-player-update .release-title strong{font-size:13px}
 #required-player-update #required-release-status{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 #required-player-update .release-spinner,
 #required-player-update .release-progress.is-indeterminate>span{animation:none}
 #required-player-update .release-progress>span{transition:none}
}


/* v126 — one-screen owner console: compact, scan-friendly, RTL and mobile-first. */
#app.business-mode>.hero{padding:9px 15px 7px!important;min-height:auto;border-bottom:1px solid #d4bc8530}
#app.business-mode>.hero .topline{display:none}
#app.business-mode>.hero .hero-headline{padding:0;min-height:auto;align-items:center;gap:7px}
#app.business-mode>.hero .hero-headline .title{font-size:20px;line-height:1.35;margin:0}
#app.business-mode>.hero .hero-headline .sub{font-size:10px;line-height:1.4;margin:0}
#app.business-mode>.hero .hero-seal{display:none}
#app.business-mode>.content{padding-top:8px}
#app .owner-company-hero{padding:13px;border-radius:17px;border:1px solid #c0b99d59;background:linear-gradient(130deg,#1d3648,#102739);margin:0 0 9px;box-shadow:0 5px 18px #0002}
#app .owner-company-hero-main{display:flex;gap:10px;justify-content:space-between;align-items:center;min-width:0}
#app .owner-company-hero-main>div:first-child{min-width:0}
#app .owner-company-hero-main small{font-size:11px;color:#f0d4a6;line-height:1.5}
#app .owner-company-hero-main h2{font-size:20px;line-height:1.35;color:#fff1d3;margin:0}
#app .owner-company-hero-main p{font-size:11px;line-height:1.5;margin:3px 0 0;color:#b7ced6;max-width:300px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#app .owner-company-cash{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;min-width:80px;border-right:1px solid #c1baa047;padding-right:10px}
#app .owner-company-cash strong{color:#f7d99b;font-size:23px;font-weight:850;line-height:1.1;font-variant-numeric:tabular-nums}
#app .owner-company-cash span{color:#b9ccd6;font-size:10px}
#app .owner-company-hero-foot{margin-top:10px;padding-top:9px;border-top:1px solid #b8c9c528;display:flex;align-items:center;justify-content:space-between;gap:10px}
#app .owner-company-state{border:1px solid #e0ba7659;background:#50402538;padding:4px 9px;border-radius:99px;color:#f4d6a0;font-size:11px;font-weight:800;line-height:1.6}
#app .owner-company-state.is-ready{border-color:#72d0a75f;background:#18503c40;color:#9be9bf}
#app .owner-company-location{font-size:11px;color:#bbcfd6;min-width:0}
#app .owner-company-location>summary{cursor:pointer;list-style:none;padding:5px;color:#bdd1d9}
#app .owner-company-location>summary::-webkit-details-marker{display:none}
#app .owner-company-location[open]{flex:1}
#app .owner-company-location>p{font-size:11px;line-height:1.55;margin:6px 0}
#app .owner-company-location>.button{min-height:35px;font-size:11px}
#app.business-mode .owner-tabs{margin:0 0 9px;border-color:#b7c2b444;background:#0e2233;padding:4px;border-radius:13px}
#app.business-mode .owner-tabs button{min-height:42px;font-size:12px}
#app.business-mode .owner-tabs button.is-active{background:#283f50;color:#f9dfaa}
#app .owner-sales-snapshot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 9px}
#app .owner-sales-snapshot>div{padding:10px 12px;border:1px solid #b9c8bf3b;background:#142c3e;border-radius:12px;display:flex;flex-direction:column;gap:3px}
#app .owner-sales-snapshot small{color:#b0cbd4;font-size:10px}
#app .owner-sales-snapshot strong{font-size:20px;color:#f2d79e;line-height:1.2;font-variant-numeric:tabular-nums}
#app .owner-sales-snapshot strong span{font-size:10px;color:#e0c78e}
#app.business-mode .owner-supply{margin:0 0 8px;padding:11px;border-radius:15px;background:#132c3d}
#app.business-mode .owner-shop-heading h3{font-size:17px}
#app .owner-buy-panel,#app .owner-shop-inventory{border:1px solid #bdc5b852;border-radius:12px;margin:8px 0;background:#0d2334;overflow:hidden}
#app .owner-buy-panel>summary,#app .owner-shop-inventory>summary{display:flex;align-items:center;list-style:none;cursor:pointer;padding:12px 13px;min-height:58px;color:#f6dda9}
#app .owner-buy-panel>summary::-webkit-details-marker,#app .owner-shop-inventory>summary::-webkit-details-marker{display:none}
#app .owner-buy-panel>summary:before{content:'⌄';font-size:22px;line-height:1;margin-inline-end:10px;color:#ebce8e}
#app .owner-buy-panel[open]>summary:before{transform:rotate(180deg)}
#app .owner-buy-panel>summary span{display:grid;gap:2px}
#app .owner-buy-panel>summary strong,#app .owner-shop-inventory>summary strong{font-size:13px}
#app .owner-buy-panel>summary small,#app .owner-shop-inventory>summary small{font-size:10px;font-weight:450;line-height:1.5;color:#bdd0d8}
#app .owner-shop-grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:9px;padding:0 9px 10px}
#app .owner-shop-product{min-width:0}
#app .owner-shop-product>.owner-shop-card{margin:0}
#app .owner-shop-card{padding:11px 12px}
#app .owner-shop-benefit{margin:8px 0;font-size:11px;line-height:1.65}
#app .owner-shop-merchant{padding:7px 0;font-size:11px}
#app .owner-other-suppliers{margin:7px 0 0;background:#0b2131;border:1px solid #c8c6ad45;border-radius:10px;overflow:hidden}
#app .owner-other-suppliers>summary{padding:10px 12px;cursor:pointer;font-size:11px;color:#f2d8a7}
#app .owner-other-suppliers-list{display:grid;gap:6px;padding:0 7px 8px}
#app .owner-other-suppliers-list .owner-shop-card{box-shadow:none;padding:9px;border-radius:10px}
#app .owner-shop-alt .owner-shop-merchant{margin:0;padding-top:2px}
#app .owner-shop-card .owner-shop-qty{font-size:11px}
#app .owner-shop-checkout{padding:6px 8px}
#app .owner-shop-inventory-list{padding:0 9px 9px}
#app .owner-extra{margin:8px 0}
#app .owner-sales-help>.owner-storefront{margin:6px}
#app .owner-growth>summary{cursor:pointer;min-height:46px;padding:12px;color:#eed4a9;font-weight:750}
#app .owner-growth>summary small{display:block;color:#b4cad2;font-weight:400;font-size:10px}
#app .owner-staff-card{padding:11px 12px!important;border-radius:13px;margin:0!important;border:1px solid #b6c4bb40;background:#142b3c}
#app .owner-staff-main{display:flex;align-items:center;gap:9px;min-width:0}
#app .owner-staff-avatar{width:32px;height:32px;flex:none;border:1px solid #e1c88a65;border-radius:10px;background:#dcc38f14;display:grid;place-items:center;color:#f0d8a8;font-size:14px;font-weight:800}
#app .owner-staff-copy{flex:1;min-width:0;display:grid;gap:2px}
#app .owner-staff-copy strong{font-size:14px;color:#fff0d6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .owner-staff-copy small{font-size:11px;color:#bfd0d8;line-height:1.4}
#app .owner-staff-status{font-size:10px;font-weight:700;color:#a6e5c1;border:1px solid #79bd9a64;border-radius:99px;padding:4px 7px;white-space:nowrap}
#app .owner-staff-status.is-paused{color:#e5c28a;border-color:#d9ac6f68}
#app .owner-staff-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;padding-top:7px;border-top:1px solid #aebcb72b}
#app .owner-staff-info{font-size:11px;min-width:0}
#app .owner-staff-info>summary{cursor:pointer;color:#b8cbd4;list-style:none;padding:5px 0}
#app .owner-staff-info>summary::-webkit-details-marker{display:none}
#app .owner-staff-info p{margin:6px 0;line-height:1.65;color:#b4cad3;font-size:11px}
#app .owner-staff-info[open]{flex:1}
#app .owner-staff-foot .buttons,#app .owner-staff-action{margin:0}
#app .owner-staff-action .button{min-height:35px;padding:7px 10px;font-size:11px}
#app .owner-finance-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}
#app .owner-finance-kpis>div{min-width:0;padding:12px 10px;border:1px solid #bcc7b545;border-radius:13px;background:#162e3f;display:flex;flex-direction:column;gap:3px}
#app .owner-finance-kpis small{font-size:10px;color:#bad0d8}
#app .owner-finance-kpis strong{color:#f9dda4;font-size:21px;font-weight:850;font-variant-numeric:tabular-nums}
#app .owner-finance-kpis span{font-size:10px;color:#aac2cb;line-height:1.4}
#app .owner-finance-small-note{font-size:11px;line-height:1.65;color:#bfd0d8;padding:7px 10px;margin:4px 0}
#app .owner-finance-drawer{border:1px solid #b9c6b046;background:#132b3b;border-radius:13px;margin:8px 0;overflow:hidden}
#app .owner-finance-drawer>summary{display:flex;justify-content:space-between;gap:9px;align-items:center;list-style:none;min-height:49px;padding:10px 13px;cursor:pointer}
#app .owner-finance-drawer>summary::-webkit-details-marker{display:none}
#app .owner-finance-drawer>summary strong{font-size:13px;color:#f1daa9}
#app .owner-finance-drawer>summary span{font-size:10px;color:#aac5cf}
#app .owner-finance-transfers{display:grid;gap:6px;padding:0 8px 10px}
#app .owner-finance-transfers .item{margin:0;padding:10px}
#app .owner-finance-utility>.button{display:flex;justify-content:center;width:100%;min-height:44px;font-size:12px}
#app .owner-finance-utility{margin:9px 0 0}
#app .owner-buy-panel>summary:focus-visible,#app .owner-other-suppliers>summary:focus-visible,#app .owner-finance-drawer>summary:focus-visible,#app .owner-company-location>summary:focus-visible{outline:2px solid #f3d59a;outline-offset:-2px}
@media(max-width:370px){
 #app .owner-company-hero-main h2{font-size:18px}
 #app .owner-company-cash strong{font-size:20px}
 #app .owner-staff-action .button{font-size:10px;padding:6px}
 #app .owner-staff-status{font-size:9px}
}
@media(prefers-reduced-motion:reduce){#app .owner-shop-card,#app .owner-company-hero{animation:none;transition:none}}


/* v127: a single job at a time: company stock/pricing OR company wholesale purchasing. */
#app .owner-trade-console{padding:10px!important;border-radius:14px}
#app .owner-trade-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;background:#0b2030;padding:5px;border-radius:14px;margin:0 0 10px;border:1px solid #b6bfb33d}
#app .owner-trade-nav button{min-width:0;min-height:67px;border:1px solid transparent;border-radius:11px;background:#172e40;color:#bed0d8;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 5px;cursor:pointer;line-height:1.4}
#app .owner-trade-nav button strong{font-size:13px;line-height:1.45;font-weight:790;text-align:center}
#app .owner-trade-nav button small{font-size:10px;color:#b5cbd4}
#app .owner-trade-nav button.is-active{border-color:#e1be7e;background:linear-gradient(150deg,#3a4550,#273d4b);color:#ffe2ab;box-shadow:0 0 0 1px #e1be7e25}
#app .owner-trade-nav button.is-active small{color:#e7cea3}
#app .owner-trade-panel[hidden]{display:none!important}
#app .owner-buy-panel.owner-trade-panel,#app .owner-shop-inventory.owner-trade-panel{margin:0;border:1px solid #b7c6b548;border-radius:12px;background:#102637;padding:0;min-width:0}
#app .owner-trade-head{padding:12px 12px 10px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #bec8b13a}
#app .owner-trade-head strong{font-size:15px;line-height:1.45;color:#f5dba8}
#app .owner-trade-head small{font-size:11px;color:#b5cdd5;line-height:1.5}
#app .owner-shop-inventory-list,#app .owner-shop-grid{padding:10px!important}
#app .owner-trade-empty{padding:25px 13px;text-align:center}
#app .owner-trade-empty strong{display:block;font-size:16px;color:#f2d9aa}
#app .owner-trade-empty p{font-size:12px;line-height:1.7;color:#bbd1d8}
#app .owner-trade-empty .button{min-height:45px;max-width:240px;width:100%}
#app .owner-trade-warning{font-size:11px;line-height:1.7;color:#f2d5a3;background:#382e234f;border:1px solid #cdb48057;border-radius:11px;padding:10px 12px;margin:9px 0}
#app .owner-trade-warning .button{display:inline-block;margin:6px 0 0}
#app .owner-trade-panel .owner-shop-price-form{display:flex;align-items:end;gap:8px}
#app .owner-trade-panel .owner-shop-price-hint{margin-top:5px}
#app .owner-trade-nav button:focus-visible,#app .owner-trade-empty .button:focus-visible{outline:2px solid #f1d292;outline-offset:2px}
#app .owner-sales-snapshot{margin-bottom:7px}
#app .owner-shop-benefit{margin:8px 0}
#app .market-beta-page .market-board-head h2{font-size:21px}
#app .market-beta-page .market-board-head p{font-size:12px;line-height:1.7}
#app .market-beta-page .market-board-disclaimer{font-size:11px;line-height:1.7}
@media(max-width:365px){
 #app .owner-trade-nav button strong{font-size:12px}
 #app .owner-trade-nav button{min-height:65px}
}

/* v132: inline guide — never obscures real controls, shop inventory or job tasks. */
#app .guided-tour-dock{
 position:relative;inset:auto;z-index:auto;display:block;width:100%;max-width:none;margin:0 0 16px;
 padding:16px 17px 14px;border-radius:19px;direction:rtl;isolation:isolate;overflow:hidden;
 border:1px solid rgba(237,199,128,.65);background:linear-gradient(145deg,#213b4d,#11293b 70%,#0d2333);
 color:#f7f0df;box-shadow:0 10px 28px rgba(1,9,21,.25);
}
#app .guided-tour-dock::before{content:'';position:absolute;inset-inline-start:-36px;top:-47px;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle,#e7c58b18,transparent 75%);pointer-events:none}
#app .guided-tour-top{display:flex;align-items:center;gap:10px;justify-content:flex-start;position:relative}
#app .guided-tour-avatar{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:12px;border:1px solid #f4d7a07a;background:linear-gradient(145deg,#e7c78c,#bb9564);color:#172a3c;font-size:22px;font-weight:900}
#app .guided-tour-guide{display:flex;flex:1;min-width:0;flex-direction:column;gap:1px}
#app .guided-tour-guide strong{font-size:13px;color:#ffe2ac}
#app .guided-tour-guide small{font-size:11px;color:#bcd0dc}
#app .guided-tour-top button{font:inherit;font-size:11px;min-height:36px;padding:6px 10px;border-radius:10px;border:1px solid #aec0c04d;background:#ffffff08;color:#d2e1e8;cursor:pointer}
#app .guided-tour-meter{display:flex;align-items:center;gap:11px;margin:13px 0 12px}
#app .guided-tour-count{flex:0 0 auto;font-size:11px;color:#ead1a6;font-weight:750}
#app .guided-tour-progress{height:5px;flex:1;border-radius:50px;background:#a3bdca29;overflow:hidden}
#app .guided-tour-progress span{display:block;height:100%;background:linear-gradient(90deg,#f5d79c,#b68b52);border-radius:50px;transition:width .2s ease}
#app .guided-tour-title{margin:0 0 6px;font-size:19px;line-height:1.4;color:#ffe5b5}
#app .guided-tour-copy{margin:0;color:#edf2f4;font-size:13px;line-height:1.8}
#app .guided-tour-context{margin:10px 0 0;padding:10px 11px;border-inline-start:3px solid #dab979;border-radius:9px;background:#e3ca9b12;color:#e1e8e8;font-size:12px;line-height:1.7}
#app .guided-tour-note{margin:10px 0 0;color:#b7ccd7;font-size:10px;line-height:1.6}
#app .guided-tour-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px}
#app .guided-tour-actions .button{min-height:42px;padding:9px 15px;border-radius:12px;font-weight:800;font-size:12px}
#app .guided-tour-step-dots{display:flex;gap:5px;direction:ltr;align-items:center}
#app .guided-tour-step-dots i{display:block;height:6px;width:12px;border-radius:10px;background:#92abb34c}
#app .guided-tour-step-dots i.is-done{background:#bdccae}
#app .guided-tour-step-dots i.is-current{width:23px;background:#f1c778}
#app .guided-tour-dock button:focus-visible{outline:2px solid #f9d38b;outline-offset:3px}
#app .guided-tour-focus{outline:2px solid #f8d28a!important;outline-offset:-3px!important;box-shadow:0 0 12px #dfb16a45}
#app .bottom button.guided-tour-focus{background:#daba7850!important;color:#ffe6b3!important}
@media(max-width:360px){
 #app .guided-tour-dock{padding:12px;margin-bottom:12px}
 #app .guided-tour-title{font-size:17px}
 #app .guided-tour-copy{font-size:12px;line-height:1.75}
 #app .guided-tour-context{font-size:11px}
 #app .guided-tour-actions .button{padding:9px 12px}
}
@media(prefers-reduced-motion:reduce){#app .guided-tour-progress span{transition:none}}

/* v132: one notification timeline, with understated emphasis until genuinely seen. */
#app .notice-scan-tip{font-size:11px;line-height:1.7;color:#b8ced8;margin:4px 2px 12px}
#app .notice-list{gap:7px}
#app .notice-item{background:#0d2333;border-color:#7996a136;min-height:76px;transition:background-color .2s ease,border-color .2s ease}
#app .notice-item:not(.notice-unread){opacity:.94}
#app .notice-item.notice-unread{background:linear-gradient(120deg,#273f4c,#183549);border-color:#d9bd8a7d;box-shadow:inset -3px 0 #e5c17b}
#app .notice-item .notice-item-eyebrow.is-fresh{color:#f3dba9}
#app .notice-item .notice-item-copy strong{color:#f1eee7}
#app .notice-item.notice-unread .notice-item-copy strong{color:#ffe4b2}
#app .notice-hub-summary{padding:13px 14px}
#app .notice-hub-summary strong{font-size:22px}
@media(prefers-reduced-motion:reduce){#app .notice-item{transition:none}}

/* Shop → backpack: compact, tap-friendly, and no repeated exchange wall. */
#app .market-shopping-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 15px}
#app .market-shopping-tabs button{min-width:0;min-height:65px;padding:11px 9px;color:#d2e0e9;background:#0d2538;border:1px solid rgba(208,226,236,.23);border-radius:15px;font-weight:800;text-align:center;line-height:1.4}
#app .market-shopping-tabs button small{display:block;color:#9db7c9;font-size:11px;font-weight:500;margin-top:3px}
#app .market-shopping-tabs button.is-active{background:linear-gradient(155deg,#f1d49b,#c8a268);color:#102538;border-color:#f5d99f;box-shadow:0 7px 19px #0005}
#app .market-shopping-tabs button.is-active small{color:#344757}
#app .shop-front-head,#app .bag-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
#app .shop-front-head h2,#app .bag-head h2{margin:2px 0 4px}
#app .shop-front-head small,#app .bag-head small{color:#a9bfd1;font-size:11px}
#app .shop-front-head .button{flex-shrink:0;font-size:12px;padding:9px 11px}
#app .bag-count{color:#e7c991;font-size:11px;border:1px solid #dfb97955;border-radius:20px;padding:6px 10px;white-space:nowrap}
#app .bag-warning{font-size:12px;line-height:1.75;color:#efd1a0;background:#47341975;border:1px solid #dfb97955;border-radius:12px;padding:11px}
#app .bag-list{display:grid;gap:10px;margin:15px 0}
#app .bag-item{display:flex;align-items:center;justify-content:space-between;gap:11px;background:#061b2b;border:1px solid #ffffff26;border-radius:15px;padding:14px 12px}
#app .bag-item>div{min-width:0;flex:1}
#app .bag-item strong,#app .bag-active strong{display:block;color:#f9e2b6;font-size:15px}
#app .bag-item p,#app .bag-active p{font-size:12px;color:#d1e0ec;line-height:1.75;margin:5px 0}
#app .bag-item small,#app .bag-active small{font-size:11px;line-height:1.65;color:#acbac5;display:block}
#app .bag-item .button{flex-shrink:0;min-height:44px;font-size:13px}
#app .bag-active{border:1px solid #f0c97988;background:linear-gradient(140deg,#273e4d,#102537);border-radius:16px;padding:15px;margin:13px 0}
#app .bag-status{display:block;color:#ead4ad;font-size:11px;margin-bottom:5px}
#app .bag-wait{font-size:11px;line-height:1.6;color:#c5b591;max-width:75px;text-align:center}
#app .bag-market-link{width:100%;margin:12px 0 5px}
#app .bag-history{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
#app .bag-history summary{font-size:12px;color:#c5d6e3;cursor:pointer;padding:8px 0}
#app .bag-history-row{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #ffffff14;font-size:12px}
#app .bag-history-row span{color:#aabbc7}
#app .always-bag{position:relative;flex:0 0 37px;display:grid;place-items:center;width:37px;height:37px;border:1px solid #e1c08655;background:#eccb8610;color:var(--gold);border-radius:11px}
#app .always-bag svg{width:20px;height:20px}
#app .bag-quick-count{position:absolute;top:-4px;inset-inline-end:-4px;min-width:16px;height:16px;padding:0 3px;border-radius:10px;background:#e8c88f;color:#152638;font-size:10px;font-weight:800;line-height:16px;text-align:center}
#app .always-bag:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:390px){
 #app .always-wallet{gap:4px;padding-inline:6px}
 #app .always-bag,#app .always-notices{width:32px;height:34px;flex-basis:32px}
 #app .always-bag svg{width:18px;height:18px}
 #app .always-wallet-button{padding-inline:3px}
 #app .always-chat{padding-inline:4px}
 #app .bag-item{align-items:flex-start;flex-direction:column}
 #app .bag-item .button{width:100%}
 #app .shop-front-head .button{padding-inline:7px}
}

/* v131: compact and unmistakable learning/news choices for returning players. */
#app .profile-tour-entry,#app .profile-updates-entry{
 min-height:72px;border:1px solid rgba(240,205,142,.56);
 background:linear-gradient(130deg,rgba(211,169,101,.15),rgba(15,46,64,.88));
}
#app .profile-tour-entry strong,#app .profile-updates-entry strong{color:#ffdfaa;font-size:15px}
#app .profile-tour-entry small,#app .profile-updates-entry small{line-height:1.55}
#app .updates-intro{padding:20px 17px;background:linear-gradient(148deg,#203e52,#0d2236);border:1px solid #d9b98270}
#app .updates-intro h2{font-size:clamp(22px,6vw,28px);margin:6px 0;color:#f5d69f}
#app .updates-intro p{line-height:1.8;color:#d9e6ee;font-size:13px;margin:8px 0 15px}
#app .updates-intro small{display:block;color:#b9cad8;margin-top:11px;font-size:12px;line-height:1.6}
#app .updates-actions{display:flex;gap:8px;flex-wrap:wrap}
#app .updates-actions button{flex:1;min-width:130px;min-height:44px;font-size:12px}
#app .updates-list{display:grid;gap:12px;margin:15px 0}
#app .updates-item{padding:17px;border:1px solid rgba(194,217,230,.22);border-radius:17px;background:linear-gradient(145deg,#152e42,#0b2031)}
#app .updates-item-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#ddc08e}
#app .updates-item-top small{font-size:10px;color:#b2c9d7}
#app .updates-item h3{font-size:16px;margin:8px 0 6px;color:#f8e3bf}
#app .updates-item p{line-height:1.85;font-size:13px;color:#ccdfea;margin:0 0 12px}
#app .updates-item .button{min-height:40px;font-size:12px}
#app .updates-list+.button{margin:12px 0 calc(18px + env(safe-area-inset-bottom,0px));min-height:45px}
@media(max-width:360px){
 #app .updates-intro{padding:14px 12px}
 #app .updates-item{padding:13px}
 #app .updates-actions{flex-direction:column}
 #app .updates-actions button{width:100%}
}


/* v133: Work consumables — server-confirmed effects, no invented rewards. */
#app .work-product-hint,
#app .work-product-protection,
#app .work-product-ready{border-radius:12px;margin:10px 0;padding:11px 13px;font-size:12px;line-height:1.7}
#app .work-product-hint{background:#153d34;border:1px solid #8bbfa47d;color:#d8f3e5}
#app .work-product-hint strong{color:#fff0bc}
#app .work-product-protection{background:#453721;border:1px solid #e0c17c8a;color:#f9e0b0}
#app .work-product-ready{background:#163c36;border:1px solid #76bfa16b;color:#d9f5e4}
#app .work-product-hint-button{display:block;width:100%;min-height:46px;margin:10px 0;border:1px solid #d5ba82;color:#f7e1b0;background:#233948;border-radius:12px;font-size:12px;font-weight:750;white-space:normal}
#app .work-product-hint-button:focus-visible{outline:2px solid #fff0bb;outline-offset:3px}

/* v133 — City storefront, exchange terminal and player vault. Read-only UI. */
#app .market-shopping-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px;padding:3px;border:1px solid rgba(228,197,137,.22);border-radius:20px;background:#081d2e}
#app .market-shopping-tabs button{min-height:64px;border-radius:16px;border:1px solid transparent;background:transparent;color:#b7cfde;padding:10px 6px;line-height:1.35;box-shadow:none}
#app .market-shopping-tabs button strong{display:block;font-size:15px;font-weight:850;color:inherit}
#app .market-shopping-tabs button small{display:block;color:#8fa8ba;font-size:11px;margin-top:5px}
#app .market-shopping-tabs button.is-active{color:#192938;background:linear-gradient(125deg,#f8e4b7,#cda567);border-color:#ffdfa2;box-shadow:0 8px 18px #0004}
#app .market-shopping-tabs button.is-active small{color:#42515d}
#app .market-shopping-tabs button:focus-visible,#app .storefront-bag-link:focus-visible{outline:2px solid #f5d38f;outline-offset:2px}
/* Retail landing: product once, seller comparison inside. */
#app .market-storefront{border:0;background:none;padding:0;margin:0;box-shadow:none}
#app .storefront-masthead{position:relative;display:flex;align-items:center;justify-content:space-between;gap:13px;isolation:isolate;overflow:hidden;padding:23px 19px 26px;border:1px solid #dbb77963;border-radius:23px 23px 12px 12px;background:radial-gradient(circle at 90% 12%,#ffe5a61c,transparent 35%),linear-gradient(150deg,#1f4050,#102a38 60%,#092131)}
#app .storefront-masthead:after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,transparent,#ebc887,transparent)}
#app .storefront-eyebrow,#app .vault-eyebrow,#app .exchange-eyebrow{font-size:11px;letter-spacing:.035em;color:#edd09a;font-weight:780}
#app .storefront-masthead h2{font-size:clamp(25px,6vw,32px);margin:5px 0 7px;color:#fff5df;letter-spacing:-.6px}
#app .storefront-masthead p{color:#c8d9e3;font-size:12px;line-height:1.8;margin:0;max-width:280px}
#app .storefront-deco{width:76px;min-width:76px;height:76px;border-radius:22px;display:grid;place-items:center;border:1px solid #f8d99770;background:linear-gradient(135deg,#e9c68223,#030e1e80);box-shadow:inset 0 0 21px #e9c68223,0 10px 20px #030d1b85;transform:rotate(-7deg)}
#app .storefront-deco span{font:800 38px/1 Georgia,serif;color:#f9dda6;transform:rotate(7deg)}
#app .storefront-overview{display:grid;grid-template-columns:1fr 1fr 1.24fr;gap:8px;margin:10px 0 16px}
#app .storefront-overview>div,#app .storefront-bag-link{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;background:#10293b;border:1px solid #ffffff1f;border-radius:14px;min-height:72px;text-align:center;padding:8px 5px}
#app .storefront-overview>div strong{font-size:24px;line-height:1.15;color:#f0d199;font-variant-numeric:tabular-nums}
#app .storefront-overview span{font-size:11px;color:#bdcdd6}
#app .storefront-bag-link{appearance:none;color:#ffe2a8;background:#d9b66f14;border-color:#dfbd7d57;flex-direction:row;flex-wrap:wrap;gap:4px 6px;font-weight:800;cursor:pointer}
#app .storefront-bag-link svg{width:21px;height:21px}
#app .storefront-bag-link b{font-size:11px;border-radius:50px;background:#eacb90;color:#13263a;padding:0 6px;font-variant-numeric:tabular-nums}
#app .storefront-bag-link span{color:#eacb90}
#app .storefront-guide{display:flex;align-items:center;gap:6px;margin:4px 0 14px;padding:0 3px;color:#9fb6c7;font-size:11px}
#app .storefront-guide-step{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;border:1px solid #d9b46f7a;color:#e9c68e;font:800 11px/1 system-ui}
#app .storefront-guide i{height:1px;flex:1;min-width:5px;background:#a0b4c33b}
#app .storefront-product{background:linear-gradient(155deg,#173448,#102536);border:1px solid #b8ced332;border-radius:21px;overflow:hidden;margin-bottom:13px;box-shadow:0 10px 28px #020a123d}
#app .storefront-product-head{padding:15px 14px;display:flex;align-items:center;gap:11px;background:linear-gradient(115deg,#ffffff0c,transparent);border-bottom:1px solid #ffffff15}
#app .market-product-glyph{width:54px;height:54px;min-width:54px;border-radius:16px;display:grid;place-items:center;color:#f6d699;background:linear-gradient(135deg,#e5bc6840,#6f573214);border:1px solid #e0bf7a69;font-size:25px;font-weight:800;box-shadow:inset 0 0 21px #0003}
#app .market-product-glyph.glyph-event_tea{color:#b2ead9;background:linear-gradient(140deg,#28675780,#0c2a3850);border-color:#70d1b457}
#app .market-product-glyph.glyph-practice_notebook{color:#cadbff;background:linear-gradient(140deg,#46618f94,#1b3049);border-color:#abc5ed50}
#app .storefront-product-head>div:nth-child(2){flex:1;min-width:0}
#app .storefront-product-head small{font-size:10px;color:#b7c5d2}
#app .storefront-product-head h3{font-size:17px;line-height:1.45;color:#fff2d9;margin:1px 0 0}
#app .storefront-product-head>div:nth-child(2)>span{font-size:11px;color:#a3bdcb}
#app .storefront-from{flex:0 0 auto;min-width:66px;text-align:center;border-right:1px solid #f2cb8e4d;padding-right:10px}
#app .storefront-from small,#app .storefront-from span{display:block;color:#bdcbd4;font-size:10px}
#app .storefront-from strong{font-size:26px;line-height:1.05;color:#eed09c;font-variant-numeric:tabular-nums}
#app .storefront-benefit{padding:12px 14px 10px}
#app .storefront-benefit strong{color:#e6c995;font-size:11px}
#app .storefront-benefit p{margin:4px 0 0;font-size:12px;line-height:1.85;color:#d8e5ed}
#app .storefront-sellers-label{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:2px 14px 0;padding:9px 0;border-top:1px solid #ffffff20}
#app .storefront-sellers-label strong{font-size:12px;color:#f6e7c8}
#app .storefront-sellers-label span{font-size:10px;color:#a6bdcb}
#app .storefront-sellers{display:grid;gap:1px;background:#071c2b;margin:0 8px 8px;border-radius:13px;overflow:hidden}
#app .storefront-seller{display:flex;align-items:center;gap:9px;padding:11px 10px;min-width:0;background:#142c3b}
#app .storefront-seller+.storefront-seller{border-top:1px solid #ffffff11}
#app .storefront-seller-info{flex:1;min-width:0}
#app .storefront-seller-info strong{font-size:12px;color:#e9f0f4;display:block;overflow-wrap:anywhere}
#app .storefront-seller-info small{font-size:10px;color:#95adbe;display:block}
#app .storefront-seller-cost{text-align:center;flex:0 0 50px}
#app .storefront-seller-cost strong{display:block;font-size:20px;color:#f6dca8;line-height:1.15;font-variant-numeric:tabular-nums}
#app .storefront-seller-cost small{font-size:10px;color:#aab9c4}
#app .storefront-seller .button{flex:0 0 auto;min-width:76px;min-height:43px;border-radius:11px;font-size:12px;padding:7px 10px}
#app .storefront-owner-note{font-size:10px;color:#b9b8b5;text-align:center;flex:0 0 80px;line-height:1.4}
#app .storefront-footer{padding:14px 16px;border-radius:15px;border:1px solid #c6ae7760;background:#bb9b5510}
#app .storefront-footer strong{color:#f0ce90;font-size:12px}
#app .storefront-footer p{font-size:11px;line-height:1.8;color:#bfd0dd;margin:4px 0 0}
#app .storefront-empty{border:1px dashed #b8c6c54a;border-radius:16px;padding:27px 17px;text-align:center;margin:16px 0}
#app .storefront-empty h3{color:#f4d9a5;font-size:17px}
#app .storefront-empty p{color:#b5c8d6;font-size:12px}
/* Exchange hall: timestamped quotes, never fake percentage moves. */
#app .exchange-terminal{padding:0;overflow:hidden;background:#0b1e2b;border:1px solid #bd9b655c;border-radius:23px;box-shadow:0 14px 30px #0006}
#app .exchange-masthead{display:block;padding:19px 17px 16px;background:linear-gradient(135deg,#213d4a,#0a202f 67%);border-bottom:1px solid #e8c68a3d;position:relative;overflow:hidden}
#app .exchange-masthead:before{content:"";position:absolute;right:-34px;top:-48px;width:175px;height:175px;border:1px solid #ebce8b2a;border-radius:50%;box-shadow:0 0 0 21px #e7bd7d0a,0 0 0 44px #e7bd7d0a;pointer-events:none}
#app .exchange-status-dot,#app .vault-pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d6b879;box-shadow:0 0 0 3px #e1be7440;margin-left:7px}
#app .exchange-masthead-row{position:relative;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}
#app .exchange-masthead-row h2{font-size:clamp(22px,6vw,30px);line-height:1.3;letter-spacing:-.7px;color:#f8e5ba;margin:0 0 5px}
#app .exchange-masthead-row p{font-size:13px;margin:0;color:#c5d3dd}
#app .exchange-emblem{display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;min-width:80px;height:85px;border:1px solid #e4c38964;border-radius:16px;background:linear-gradient(145deg,#efd89e2e,#172f3a99);box-shadow:inset 0 0 20px #e6c37c13}
#app .exchange-emblem span{font:800 39px/1.2 Georgia,serif;color:#f0d19a}
#app .exchange-emblem small{font-size:8px;letter-spacing:1px;color:#a6c0ca}
#app .exchange-timestamp{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #ffffff1a;margin-top:14px;padding-top:10px;font-size:11px;color:#a9c0ca}
#app .exchange-timestamp strong{font-size:11px;color:#eacb95;overflow-wrap:anywhere}
#app .exchange-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:13px 10px;background:#0b2131}
#app .exchange-metrics>div{display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:12px 8px;background:#132d3e;border:1px solid #ffffff18;border-radius:13px}
#app .exchange-metrics>div>span{color:#bdd0dc;font-size:10px;line-height:1.6}
#app .exchange-metrics>div strong{font-size:26px;line-height:1.25;color:#eed199;font-variant-numeric:tabular-nums}
#app .exchange-metrics>div small{font-size:9px;line-height:1.45;color:#91abba}
#app .exchange-tape-label,#app .exchange-table-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:15px 15px 7px}
#app .exchange-tape-label strong,#app .exchange-table-heading strong{font-size:13px;color:#f6ddae}
#app .exchange-tape-label small,#app .exchange-table-heading span{font-size:10px;color:#99b5c7;text-align:left}
#app .exchange-ticker{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#a68c60 #102433;padding:7px 14px 12px}
#app .exchange-ticker-tile{display:grid;gap:1px;flex:0 0 133px;scroll-snap-align:start;background:#101f2b;border:1px solid #557b8873;border-top:3px solid #d4ae70;border-radius:12px;padding:10px 12px;color:#dce7ec}
#app .exchange-ticker-tile.is-selling{border-top-color:#65bdab}
#app .exchange-ticker-tile small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app .exchange-ticker-tile strong{font-size:25px;color:#e7f6dc;font-variant-numeric:tabular-nums;line-height:1.25}
#app .exchange-ticker-tile span{font-size:10px;color:#a5b7c1}
#app .exchange-price-list{display:grid;gap:7px;background:none;padding:2px 11px 15px}
#app .exchange-price-row{border-radius:14px;border:1px solid #51708269;background:#122a38;padding:0;box-shadow:none}
#app .exchange-price-main{display:flex;align-items:center;gap:10px;padding:12px 11px}
#app .exchange-product-mark{display:grid;place-items:center;flex:0 0 37px;width:37px;height:40px;border:1px solid #e7cc8a58;border-radius:10px;background:#d2b27415;color:#e4c994;font-size:17px;font-weight:800}
#app .exchange-product-name{flex:1;min-width:0}
#app .exchange-product-name small{display:block;font-size:10px;color:#aac2d0}
#app .exchange-product-name h3{font-size:14px;line-height:1.4;margin:0 0 4px;color:#f2e5d3;overflow-wrap:anywhere}
#app .exchange-price-row .market-board-status{display:inline-block;position:static;font-size:10px;padding:2px 7px;border-radius:99px}
#app .exchange-price-amount{min-width:60px;text-align:left;white-space:nowrap}
#app .exchange-price-amount strong{display:block;font-size:25px;line-height:1.15;font-variant-numeric:tabular-nums;color:#b7eacc}
#app .exchange-price-amount small{font-size:10px;color:#b7cad0}
#app .exchange-price-details{margin:0;padding:0 12px 12px;border-top:1px solid #ffffff13}
#app .exchange-price-details summary{font-size:11px;color:#d3c6a9;padding:10px 0 3px;cursor:pointer}
#app .exchange-price-details p{font-size:11px;line-height:1.75;color:#c2d5dc;margin:6px 0}
#app .exchange-price-details .market-board-activity{display:flex;flex-wrap:wrap;gap:8px;color:#adc4d0;font-size:10px}
#app .exchange-footer{margin:0 12px 14px;background:#c4a66a12;border:1px solid #d4b57e4b;border-radius:13px;padding:12px}
#app .exchange-footer strong{color:#edd29a;font-size:12px}
#app .exchange-footer p{font-size:11px;line-height:1.8;color:#b4c6d2;margin:4px 0 10px}
#app .exchange-shop-link{width:100%;min-height:42px;font-size:12px;border-color:#d3b77e63}
#app .exchange-empty{margin:12px 13px 16px;padding:22px;font-size:12px}
#app .exchange-terminal .market-board-context{font-size:11px;margin:8px 13px;color:#becdda}
/* Bag/vault — no economics or activation behavior hidden by styling. */
#app .player-vault{padding:0;overflow:hidden;border:1px solid #bba07658;background:#0e2333;border-radius:23px}
#app .vault-masthead{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:23px 18px;background:radial-gradient(circle at 95% 0,#eccb8630,transparent 42%),linear-gradient(150deg,#234153,#132a3b);border-bottom:1px solid #dfbf8660}
#app .vault-masthead h2{font-size:30px;color:#ffe5b6;margin:2px 0 3px}
#app .vault-masthead p{color:#c8d8e2;font-size:12px;margin:0}
#app .vault-emblem{width:70px;min-width:70px;height:70px;border:1px solid #e5bc805c;border-radius:19px;display:grid;place-items:center;background:#e2be8328;box-shadow:inset 0 0 23px #f0cc9a1d}
#app .vault-emblem svg{width:37px;height:37px;color:#f4d29a}
#app .vault-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;background:#0c2334}
#app .vault-summary>div{text-align:center;background:#193245;border:1px solid #ffffff1b;border-radius:13px;padding:12px 6px}
#app .vault-summary strong{display:block;font-size:23px;color:#f3d29e;line-height:1.2;font-variant-numeric:tabular-nums}
#app .vault-summary span{font-size:10px;color:#bad0de;line-height:1.6;display:block}
#app .player-vault .bag-warning{margin:12px}
#app .vault-active-effect{margin:12px 12px 5px;border-radius:17px;border:1px solid #7abfa36c;background:linear-gradient(145deg,#1b483e,#112c33);padding:14px}
#app .vault-active-head{color:#b4eac7;display:flex;align-items:center;gap:4px;font-size:12px;margin-bottom:12px}
#app .vault-pulse{background:#86dbac;box-shadow:0 0 0 3px #6ecaa538}
#app .vault-active-main{display:flex;gap:12px;align-items:flex-start}
#app .vault-active-main>div{min-width:0;flex:1}
#app .vault-active-main h3{margin:2px 0;color:#effbe8;font-size:17px}
#app .vault-active-main p{font-size:12px;line-height:1.8;color:#c5ddd1;margin:3px 0 7px}
#app .vault-active-main small{color:#b0dac7;font-size:11px}
#app .vault-active-note{font-size:11px;color:#aedac0;border-top:1px solid #9bcfb237;padding-top:9px;margin:12px 0 0}
#app .vault-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:17px 16px 10px}
#app .vault-section-heading h3{font-size:17px;color:#fae6c1;margin:0}
#app .vault-section-heading span{color:#b3c7d0;font-size:11px}
#app .vault-item-list{display:grid;gap:10px;margin:0 12px 14px}
#app .vault-item{display:block;padding:14px;background:linear-gradient(140deg,#20394a,#152c3d);border:1px solid #afc9d338;border-radius:16px}
#app .vault-item-top{display:flex;align-items:center;gap:11px}
#app .vault-item-copy{min-width:0}
#app .vault-item-copy h4{font-size:17px;color:#f8e3c1;margin:0 0 3px}
#app .vault-item-state{display:inline-block;padding:2px 8px;border-radius:30px;background:#dbbe8240;border:1px solid #d8b97968;color:#f0d6a2;font-size:10px}
#app .vault-item-benefit{font-size:12px;line-height:1.85;color:#e0e9ec;margin:12px 0}
#app .vault-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 0;border-top:1px solid #ffffff1c;font-size:11px}
#app .vault-dates small{font-size:10px;color:#a8c0d1;line-height:1.6}
#app .vault-dates b{display:block;color:#e4cfab;font-size:11px;font-weight:650}
#app .vault-item-action{padding-top:10px}
#app .vault-item-action .button{min-height:47px;width:100%;font-size:13px;border-radius:12px}
#app .vault-item-locked{background:#263a4859;color:#bfcbd2;padding:9px 10px;border-radius:10px;font-size:11px;line-height:1.7}
#app .vault-empty{text-align:center;padding:24px 19px 18px;margin:0 12px 10px;border:1px dashed #b3c4b95f;background:#10293a;border-radius:17px}
#app .vault-empty-art{display:grid;place-items:center;width:74px;height:74px;margin:0 auto 12px;border:1px solid #e8c58468;background:#f3d28f1e;border-radius:23px;color:#f0d69e}
#app .vault-empty-art svg{width:36px;height:36px}
#app .vault-empty h3{font-size:17px;color:#f8e4bf;margin:0 0 4px}
#app .vault-empty p{font-size:12px;line-height:1.85;color:#bbcbd7;margin:0}
#app .vault-footer{padding:10px 13px 15px}
#app .vault-footer p{font-size:11px;color:#afc5d1;text-align:center;margin:0 0 11px}
#app .vault-footer .bag-market-link{width:100%;display:flex;gap:8px;justify-content:center;align-items:center;border-color:#e3c18166;font-size:13px;min-height:46px;margin:0}
#app .vault-history{margin:0 12px 15px;padding:12px 2px 2px}
#app .vault-history summary{display:flex;justify-content:space-between;align-items:center;color:#e8d9b8;padding:5px 1px;font-size:12px}
#app .vault-history summary span{color:#a5bdcb}
@media(max-width:390px){
 #app .storefront-overview{gap:5px}
 #app .storefront-masthead{padding:20px 14px}
 #app .storefront-deco{width:60px;min-width:60px;height:60px;border-radius:17px}
 #app .storefront-deco span{font-size:32px}
 #app .storefront-product-head{gap:8px;padding:12px 10px}
 #app .market-product-glyph{width:47px;min-width:47px;height:47px}
 #app .storefront-from{min-width:50px;padding-right:7px}
 #app .storefront-seller{gap:6px;padding:9px 8px}
 #app .storefront-seller .button{min-width:68px;padding:6px 8px}
 #app .exchange-ticker-tile{flex-basis:123px}
 #app .exchange-metrics{gap:5px;padding:10px 7px}
 #app .exchange-metrics>div{padding:10px 6px}
 #app .exchange-metrics>div strong{font-size:22px}
 #app .vault-masthead{padding:19px 14px}
}
@media(prefers-reduced-motion:reduce){
 #app .exchange-ticker{scroll-behavior:auto}
}

/* v135 · player-first home: one priority and quiet, factual financial context. */
#app.home-mode .content{padding-top:8px}
#app .home-dashboard{display:grid;gap:14px;padding-bottom:calc(15px + env(safe-area-inset-bottom,0px))}
#app .home-masthead{position:relative;overflow:hidden;padding:17px;border:1px solid rgba(225,193,137,.6);border-radius:21px;background:linear-gradient(144deg,#254256 0%,#183247 42%,#0b2134 100%);box-shadow:0 12px 32px #0005;isolation:isolate}
#app .home-masthead::before{content:'';position:absolute;pointer-events:none;z-index:-1;inset:-85px auto auto -75px;width:270px;height:270px;border-radius:50%;border:1px solid #e8c89022;box-shadow:0 0 0 31px #e8c89009,0 0 0 68px #e8c89008}
#app .home-masthead-top{display:flex;gap:12px;justify-content:space-between;align-items:start;margin-bottom:15px}
#app .home-masthead-top .overline{font-size:10px;font-weight:800;color:#ead09f}
#app .home-masthead-top h2{margin:6px 0 3px;color:#fff1d8;line-height:1.35;font-size:clamp(21px,5vw,26px);overflow-wrap:anywhere}
#app .home-masthead-top p{font-size:12px;color:#c4d7e1;line-height:1.6;margin:0}
#app .home-city-emblem{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;border:1px solid #e8c99475;background:#e4c38322;border-radius:14px;color:#f6d9a5}
#app .home-city-emblem svg{width:23px;height:23px}
#app .home-focus{padding:15px;border-radius:17px;border:1px solid #e8c5858a;background:linear-gradient(155deg,#183148,#0e2338);box-shadow:inset 0 1px #ffffff13}
#app .home-focus-eyebrow{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:#f1d59e}
#app .home-focus-icon{height:26px;width:26px;display:grid;place-items:center;background:#edc9871c;border-radius:8px;border:1px solid #e8bd7852}
#app .home-focus-icon svg{width:15px;height:15px}
#app .home-focus h3{font-size:20px;line-height:1.35;color:#ffe8bd;margin:8px 0 6px}
#app .home-focus p{color:#d3e0e8;font-size:12px;line-height:1.8;margin:0}
#app .home-focus-cta{margin-top:12px}
#app .home-focus-cta button{width:100%;min-height:46px;border-radius:12px;font-size:13px;font-weight:850}
#app .home-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px}
#app .home-facts>div{min-width:0;display:flex;flex-direction:column;gap:4px;padding:11px 10px;border-radius:13px;background:#061b2b80;border:1px solid #d5c49d37}
#app .home-facts small{font-size:10px;color:#b8cdda;line-height:1.5}
#app .home-facts strong{font-size:clamp(15px,4vw,21px);line-height:1.45;font-weight:900;color:#fae0ac;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#app .home-facts strong em{font-style:normal;font-size:12px;font-weight:600;color:#a7becb}
#app .home-facts span{font-size:10px;line-height:1.65;color:#aac3d2}
#app .home-section-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 10px}
#app .home-section-head h2{font-size:17px;line-height:1.4;margin:0;color:#f1ddbb}
#app .home-section-head>span{font-size:10px;color:#e8c894;background:#d9b97c1c;border-radius:30px;padding:4px 8px;white-space:nowrap}
#app .home-section-head .overline{font-size:10px;color:#b9cbd4}
#app .home-section-head .overline+h2{margin-top:5px}
#app .home-rewards,#app .home-due-section,#app .home-weekly{padding:15px 14px;background:linear-gradient(150deg,#1a3347,#0d2436);border:1px solid #a3b7ba4b;border-radius:18px}
#app .home-reward{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid #b1c9d527}
#app .home-reward>div{display:grid;min-width:0;gap:4px}
#app .home-reward strong{font-size:13px;color:#fae5bd}
#app .home-reward small{font-size:11px;color:#bbcedb;line-height:1.5}
#app .home-reward .button{flex:0 0 auto;font-size:11px;min-height:41px}
#app .home-business-alert>.smart-home-tip{margin:0}
#app .home-due-list{display:grid;gap:9px}
#app .home-due-row{display:flex;gap:9px;align-items:center;padding:10px;background:#0c2434b5;border-radius:11px;border:1px solid #a9bbbd36}
#app .home-due-icon{height:33px;width:33px;display:grid;place-items:center;flex:0 0 33px;background:#e5c88d16;color:#e7c998;border:1px solid #d4b57c56;border-radius:9px}
#app .home-due-icon svg{width:17px;height:17px}
#app .home-due-row>div{display:grid;gap:3px;min-width:0;flex:1}
#app .home-due-row strong{font-size:12px;color:#f3e4c7;overflow-wrap:anywhere}
#app .home-due-row small{font-size:10px;color:#aac2d0;line-height:1.5}
#app .home-due-price{flex:0 0 auto;display:grid;text-align:left;color:#f6d79a;font-size:14px;font-weight:850;font-variant-numeric:tabular-nums}
#app .home-due-section>.button{width:100%;min-height:40px;margin-top:11px;font-size:12px}
#app .home-weekly-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#app .home-weekly-numbers>div{display:grid;gap:7px;min-width:0;border:1px solid #a6bdc43e;background:#0b2435;padding:12px 10px;border-radius:12px}
#app .home-weekly-numbers small{font-size:10px;color:#bdced9;line-height:1.55}
#app .home-weekly-numbers strong{font-size:clamp(15px,4vw,20px);line-height:1.4;color:#f4dbac;overflow-wrap:anywhere}
#app .home-weekly>p{color:#bbcbd5;font-size:11px;line-height:1.7;margin:11px 1px}
#app .home-weekly-disclosure{border-top:1px solid #e3c38a36;padding-top:9px;margin-top:10px}
#app .home-weekly-disclosure>summary{cursor:pointer;list-style:disclosure-closed;font-size:12px;color:#f3d7a4;font-weight:800;padding:5px 0;line-height:1.6}
#app .home-weekly-disclosure[open]>summary{margin-bottom:11px}
#app .home-weekly-disclosure>.finance-board{margin:0;background:#0b2535b5;box-shadow:none;padding:12px}
#app .home-weekly-disclosure .finance-head h2{font-size:15px}
#app .home-journey-details{margin:0;border:1px solid #b1c6c450;border-radius:15px;background:#0e2739}
#app .home-journey-details>summary{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 15px;cursor:pointer;color:#e8d4b2}
#app .home-journey-details>summary strong{font-size:13px}
#app .home-journey-details>summary span{font-size:11px;color:#b6cbd4}
#app .home-journey-details>.journey-milestones{padding:0 12px 12px}
#app .home-pending-missions{padding:0 13px 13px;display:grid;gap:7px}
#app .home-pending-missions>div{display:grid;gap:2px;border-top:1px solid #b4c9cc25;padding:9px 0}
#app .home-pending-missions strong{font-size:12px;color:#e6d5af}
#app .home-pending-missions small{font-size:11px;color:#b8cad4;line-height:1.6}
@media(max-width:355px){
 #app .home-masthead{padding:12px}
 #app .home-focus{padding:12px}
 #app .home-facts{gap:6px}
 #app .home-facts>div{padding:9px 8px}
 #app .home-rewards,#app .home-due-section,#app .home-weekly{padding:12px 10px}
 #app .home-reward{flex-wrap:wrap}
 #app .home-reward .button{width:100%}
}
@media(prefers-reduced-motion:reduce){#app .home-dashboard *{transition:none}}

/* v136 | cohesive mobile UI: typography, thumb targets, and calm visual hierarchy.
   Presentation only. Keep estate/status, shift, shop and finance truth sourced from API. */
#app.screen:not(.auth-mode){
 --ui-readable:#cadbe5;
 --ui-hairline:rgba(228,205,165,.28);
}
#app.screen:not(.auth-mode)>.hero .title{
 font-size:clamp(21px,5.3vw,25px);
 line-height:1.32;
 letter-spacing:-.25px;
}
#app.screen:not(.auth-mode)>.hero .sub{
 font-size:12.5px;
 line-height:1.6;
 color:#c1d3de;
}
#app.screen:not(.auth-mode) .content{
 overflow-wrap:anywhere;
}
#app.screen:not(.auth-mode) .content :is(.panel,.item,.profile-identity,.property-card){
 min-width:0;
}
#app.screen:not(.auth-mode) .content :is(.panel,.item,.property-card):focus-within{
 border-color:rgba(235,201,140,.67);
}
#app.screen:not(.auth-mode) .content .muted{
 color:var(--ui-readable);
 line-height:1.72;
}
#app.screen:not(.auth-mode) .content :is(h2,h3,h4){
 text-wrap:pretty;
 overflow-wrap:anywhere;
}
#app.screen:not(.auth-mode) .content :is(button,.button,input,select,textarea,summary){
 -webkit-tap-highlight-color:transparent;
}
#app.screen:not(.auth-mode) .content :is(.button,.chips button,.work-view-tab,.chat-refresh,.chat-send){
 min-height:44px;
 touch-action:manipulation;
}
#app.screen:not(.auth-mode) .content .button.tiny{
 min-height:42px;
}
#app.screen:not(.auth-mode) .content :is(.button,button,summary):focus-visible{
 outline:2px solid #ffdf9c;
 outline-offset:3px;
}
#app.screen:not(.auth-mode) .content :is(input,select,textarea):focus-visible{
 border-color:#e5bf82;
 outline:2px solid #e5bf82;
 outline-offset:1px;
 box-shadow:0 0 0 4px #e5bf821a;
}
#app.screen:not(.auth-mode) .content :is(.profile-guide-entry,.estate-action-jump,.owner-trade-nav button){
 touch-action:manipulation;
}
#app.screen:not(.auth-mode) .content :is(.profile-guide-copy small,.owner-sales-help>summary small,.work-view-content .work-history p){
 font-size:12px;
 line-height:1.7;
}
#app.screen:not(.auth-mode) .content :is(.home-masthead-top p,.home-focus p,.home-weekly>p,.home-pending-missions small){
 font-size:12.5px;
 line-height:1.72;
}
#app.screen:not(.auth-mode) .content :is(.home-facts small,.home-facts span,.home-due-row small,.home-weekly-numbers small){
 font-size:11.5px;
 line-height:1.65;
}
#app.screen:not(.auth-mode) .content :is(.storefront-benefit p,.storefront-footer p,.vault-item-benefit,.vault-active-main p,.exchange-footer p){
 font-size:12.5px;
 line-height:1.75;
}
#app.screen:not(.auth-mode) .content :is(.storefront-seller-info small,.storefront-seller-cost small,.vault-dates small,.vault-history summary span,.exchange-product-name small,.exchange-ticker-tile span){
 font-size:11px;
 line-height:1.55;
}
#app.screen:not(.auth-mode) .content :is(.exchange-metrics>div>span,.exchange-metrics>div small,.vault-summary span){
 font-size:11px;
 line-height:1.55;
}
#app.screen:not(.auth-mode) .content :is(.storefront-seller,.home-reward,.home-due-row,.vault-item-top,.work-view-tab){
 min-width:0;
}
#app.screen:not(.auth-mode) .content :is(.storefront-seller-info,.exchange-product-name,.vault-item-copy){
 min-width:0;
 overflow-wrap:anywhere;
}
#app.screen:not(.auth-mode) .content :is(.storefront-seller .button,.vault-item-action .button,.exchange-shop-link){
 min-height:44px;
}
#app.screen:not(.auth-mode) .content :is(.home-weekly-disclosure>summary,.home-journey-details>summary,.vault-history>summary,.owner-sales-help>summary,.owner-buy-panel>summary,.owner-shop-inventory>summary){
 min-height:45px;
 align-content:center;
}
#app.screen:not(.auth-mode) .bottom{
 gap:2px;
}
#app.screen:not(.auth-mode) .bottom button{
 color:#c7d5df;
 font-size:11px;
 min-height:62px;
 gap:4px;
 line-height:1.2;
 white-space:normal;
 padding:6px 2px;
}
#app.screen:not(.auth-mode) .bottom button span{
 max-width:100%;
 display:block;
 white-space:normal;
 text-wrap:balance;
 overflow-wrap:normal;
}
#app.screen:not(.auth-mode) .bottom button.center,
#app.screen:not(.auth-mode) .bottom button.center:not(.active){
 min-height:64px;
}
#app.screen:not(.auth-mode)>.content{
 padding-bottom:calc(116px + env(safe-area-inset-bottom));
}
@media(max-width:360px){
 #app.screen:not(.auth-mode) .bottom{gap:1px;padding-inline:3px}
 #app.screen:not(.auth-mode) .bottom button{font-size:10px;min-height:60px;gap:3px}
 #app.screen:not(.auth-mode) .bottom button.center,
 #app.screen:not(.auth-mode) .bottom button.center:not(.active){min-height:62px}
 #app.screen:not(.auth-mode) .content :is(.storefront-benefit p,.vault-item-benefit,.home-focus p){font-size:12px}
}
@media(max-height:550px) and (orientation:landscape){
 #app.screen:not(.auth-mode) .bottom button{font-size:10px;min-height:46px;gap:1px;padding-block:3px}
 #app.screen:not(.auth-mode) .bottom button.center,
 #app.screen:not(.auth-mode) .bottom button.center:not(.active){min-height:48px;transform:none}
 #app.screen:not(.auth-mode)>.content{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .content :is(.button,.chips button,.work-view-tab){transition:none}
}

/* v137 · City-market visual finish. No game rules, prices or purchase handlers. */
#app .market-storefront,#app .player-vault,#app .exchange-terminal{font-variant-numeric:tabular-nums}
#app .market-shopping-tabs{position:relative;gap:4px;padding:5px;background:#091b2a;border:1px solid #c6a56645;border-radius:17px}
#app .market-shopping-tabs button{min-height:58px;padding:8px 6px;border-radius:12px}
#app .market-shopping-tabs button strong{font-size:15px;line-height:1.35}
#app .market-shopping-tabs button small{margin-top:2px}
#app .storefront-masthead{min-height:127px;padding:18px 18px 19px;border-radius:18px;background:radial-gradient(ellipse at 92% 12%,#edcf9950,transparent 47%),linear-gradient(135deg,#1d3c4c,#102735)}
#app .storefront-masthead h2{font-size:26px;line-height:1.3;margin:4px 0 3px}
#app .storefront-masthead p{font-size:12px;line-height:1.7}
#app .storefront-deco{width:58px;min-width:58px;height:58px;border-radius:17px}
#app .storefront-deco span{font-size:31px}
#app .storefront-overview{margin:9px 0 12px;gap:6px}
#app .storefront-overview>div,#app .storefront-bag-link{min-height:65px;padding:7px 5px}
#app .storefront-overview>div strong{font-size:22px}
#app .storefront-guide{margin:4px 0 10px}
#app .storefront-product{margin-bottom:10px;border-radius:17px;background:#142e40;border-color:#99b7c344}
#app .storefront-product-head{padding:12px 12px 11px;background:linear-gradient(115deg,#223f52,#152f42)}
#app .market-product-glyph{width:48px;height:48px;min-width:48px;border-radius:14px;box-shadow:inset 0 1px 15px #f0cb8620;background:linear-gradient(150deg,#c7a26536,#0b2538);display:grid;place-items:center}
#app .market-product-glyph svg{display:block;width:27px;height:27px;stroke-width:1.8;filter:drop-shadow(0 2px 3px #0004)}
#app .market-product-glyph.glyph-event_tea svg{color:#b6f0de}
#app .market-product-glyph.glyph-focus_coffee svg{color:#ffe2a5}
#app .market-product-glyph.glyph-practice_notebook svg{color:#cadbff}
#app .storefront-product-head h3{font-size:16px;margin:0;line-height:1.35}
#app .storefront-product-head>div:nth-child(2)>span{display:block;line-height:1.3;margin-top:2px}
#app .storefront-from{min-width:64px;padding-right:9px}
#app .storefront-from strong{font-size:25px}
#app .storefront-benefit{padding:10px 13px 8px}
#app .storefront-benefit>p{font-size:12px;line-height:1.65;margin:0 0 5px;color:#d7e4e9;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#app .storefront-benefit-details{background:none;border:0;margin:0;padding:0}
#app .storefront-benefit-details summary,#app .vault-benefit-details summary{cursor:pointer;display:inline-flex;align-items:center;min-height:31px;gap:6px;color:#efd096;font-size:11px;font-weight:700;list-style:none}
#app .storefront-benefit-details summary:after,#app .vault-benefit-details summary:after{content:"⌄";font-size:15px;line-height:1}
#app .storefront-benefit-details[open] summary:after,#app .vault-benefit-details[open] summary:after{transform:rotate(180deg)}
#app .storefront-benefit-details summary::-webkit-details-marker,#app .vault-benefit-details summary::-webkit-details-marker{display:none}
#app .storefront-benefit-details p,#app .vault-benefit-details p{font-size:12px;line-height:1.8;color:#cbdfe8;padding:8px 10px;margin:4px 0 7px;border-inline-start:2px solid #d4b378;background:#ffffff07;border-radius:6px}
#app .storefront-sellers-label{padding:6px 0;margin:0 13px}
#app .storefront-sellers{margin:0 8px 8px;gap:0}
#app .storefront-seller{min-height:61px;padding:8px 10px;gap:7px}
#app .storefront-seller-info strong{line-height:1.45;font-size:12px}
#app .storefront-seller-info small{font-size:10px;line-height:1.45}
#app .storefront-seller-cost strong{font-size:19px}
#app .storefront-seller .button{min-height:44px;min-width:73px;font-size:12px}
#app .storefront-more-sellers{background:#11293b;border-top:1px solid #dde4e31a}
#app .storefront-more-sellers summary{min-height:47px;display:flex;align-items:center;justify-content:center;color:#e9cc94;font-size:12px;font-weight:700;cursor:pointer;list-style:none}
#app .storefront-more-sellers summary::-webkit-details-marker{display:none}
#app .storefront-more-sellers summary:after{content:"⌄";margin-inline-start:7px}
#app .storefront-more-sellers[open] summary:after{transform:rotate(180deg)}
#app .storefront-more-sellers .storefront-seller{border-top:1px solid #ffffff16}
#app .storefront-footer{padding:10px 12px}
#app .storefront-footer p{margin:2px 0 0}
/* Financial exchange hall: architectural framing, no fabricated movement or quotes. */
#app .exchange-terminal{border-color:#c49c5366;background:#071721;box-shadow:0 13px 39px #0009,0 0 0 1px #ffffff08 inset}
#app .exchange-masthead{padding:20px 16px 14px;min-height:188px;isolation:isolate;background:
 linear-gradient(180deg,#081a2d20,#081a2de8 98%),
 radial-gradient(ellipse at 75% 0,#ebcc8438,transparent 52%),
 repeating-linear-gradient(90deg,transparent 0 33px,#d7be7b18 34px 35px,transparent 36px 69px),
 linear-gradient(145deg,#203d4a,#0d2231)}
#app .exchange-masthead:before{z-index:-1;inset:auto 0 0;width:auto;height:100%;right:0;top:0;border:0;border-radius:0;box-shadow:none;background:
 linear-gradient(180deg,transparent 6%,#e2c17d26 6% 8%,transparent 8% 79%,#e2c17d26 79% 82%,transparent 82%),
 repeating-linear-gradient(90deg,transparent 0 44px,#ecd49c16 44px 49px,#222f3920 49px 53px,transparent 53px 94px);pointer-events:none}
#app .exchange-eyebrow{display:inline-flex;align-items:center;border:1px solid #e4c08373;border-radius:999px;background:#0c2235b8;padding:5px 11px;font-weight:800;font-size:10px;color:#f3d69f}
#app .exchange-masthead-row{align-items:center;min-height:100px}
#app .exchange-masthead-row h2{font-size:26px;text-shadow:0 3px 12px #000b}
#app .exchange-masthead-row p{font-size:12px;line-height:1.5;color:#d8e0dd}
#app .exchange-emblem{height:73px;width:68px;min-width:68px;background:linear-gradient(140deg,#ab884657,#101f34c9);border-color:#e2c17f69}
#app .exchange-timestamp{margin-top:7px;padding-top:8px;background:#071b2e70}
#app .exchange-metrics{padding:10px 9px}
#app .exchange-metrics>div{padding:10px 7px;min-height:91px;box-shadow:inset 0 1px 0 #ffffff12}
#app .exchange-metrics>div strong{font-size:23px}
#app .exchange-tape-label{padding:13px 12px 5px}
#app .exchange-ticker{padding:7px 11px 14px;scrollbar-width:thin}
#app .exchange-ticker-tile{flex-basis:126px;padding:10px;border-color:#567b836c;border-top-width:2px;background:linear-gradient(140deg,#172c3b,#0b1f2c)}
#app .exchange-ticker-tile strong{font-size:24px;color:#d4edcc}
#app .exchange-ticker-tile small{font-size:11px}
#app .exchange-orderbook{margin:0 11px 12px;background:#132b39;border:1px solid #a2b1a63b;border-radius:14px;overflow:hidden}
#app .exchange-orderbook>summary{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;padding:10px 12px;color:#f3dbad}
#app .exchange-orderbook>summary::-webkit-details-marker{display:none}
#app .exchange-orderbook>summary strong{font-size:13px}
#app .exchange-orderbook>summary span{font-size:11px;color:#c0d1d7}
#app .exchange-orderbook>summary:after{content:"⌄";font-size:18px;color:#ddc18b}
#app .exchange-orderbook[open]>summary:after{transform:rotate(180deg)}
#app .exchange-orderbook-body{padding:9px 4px;border-top:1px solid #ffffff1b}
#app .exchange-price-list{padding:0 4px 4px}
#app .exchange-price-row{margin-bottom:6px}
/* Stacked inventory with each receipt represented separately: no item merging server-side. */
#app .player-vault{background:linear-gradient(#112a3b,#0a1e2c)}
#app .vault-masthead{padding:17px 17px 15px;background:radial-gradient(circle at 80% 0,#e4ba7c20,transparent 50%),linear-gradient(130deg,#203a4b,#0e2736)}
#app .vault-masthead h2{font-size:26px}
#app .vault-masthead p{font-size:12px}
#app .vault-emblem{height:59px;width:59px;min-width:59px}
#app .vault-emblem svg{width:29px;height:29px}
#app .vault-summary{padding:8px;gap:6px}
#app .vault-summary>div{padding:8px 5px}
#app .vault-summary strong{font-size:21px}
#app .vault-section-heading{margin:12px 13px 7px}
#app .vault-item-list{margin:0 10px 9px;gap:8px}
#app .vault-item{padding:12px 12px 8px}
#app .vault-item-top{gap:9px}
#app .vault-item-copy{flex:1}
#app .vault-item-copy h4{font-size:16px;line-height:1.4}
#app .vault-stack-count{font-weight:850;font-size:17px;color:#f0d396;border:1px solid #d3b87970;border-radius:12px;background:#d4aa5a1a;min-width:43px;text-align:center;padding:5px 6px}
#app .vault-item-benefit{font-size:12px;line-height:1.65;margin:8px 0 0;color:#d5e5eb;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#app .vault-benefit-details{margin:3px 0 6px}
#app .vault-variants{display:grid;gap:0;border-top:1px solid #ffffff25;margin-top:8px}
#app .vault-unit{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:9px 0;min-width:0}
#app .vault-unit+.vault-unit{border-top:1px solid #ffffff19}
#app .vault-dates{flex:1;display:flex;flex-direction:column;min-width:0;gap:1px;padding:0;border:0}
#app .vault-dates small{font-size:10px;line-height:1.5}
#app .vault-dates b{display:inline;color:#f1d4a1;margin-inline-start:3px}
#app .vault-item-action{flex:0 0 auto;padding-top:0}
#app .vault-item-action .button{min-height:44px;width:auto;min-width:113px;padding:8px 12px;font-size:12px}
#app .vault-item-locked{flex:0 0 124px;padding:6px 7px;font-size:10px;text-align:center}
#app .vault-active-effect{padding:12px;margin:10px 10px 3px}
#app .vault-active-head{margin-bottom:8px}
#app .vault-active-main .market-product-glyph{width:46px;min-width:46px;height:46px}
#app .vault-active-main p{line-height:1.6;font-size:12px}
#app .vault-active-note{line-height:1.65}
#app .vault-footer{padding:6px 11px 12px}
#app .vault-history{margin:0 12px 13px}
@media(max-width:370px){
 #app .storefront-masthead{padding:15px 12px}
 #app .storefront-product-head{padding:10px}
 #app .storefront-product-head h3{font-size:15px}
 #app .market-product-glyph{width:42px;min-width:42px;height:42px}
 #app .market-product-glyph svg{width:25px;height:25px}
 #app .storefront-from{min-width:56px}
 #app .storefront-seller{padding:7px 8px}
 #app .storefront-seller .button{min-width:64px;padding:6px}
 #app .vault-unit{gap:6px}
 #app .vault-dates{gap:0}
 #app .vault-item-action .button{min-width:94px;padding:8px;font-size:11px}
 #app .exchange-masthead-row h2{font-size:23px}
 #app .exchange-eyebrow{font-size:10px}
}

/* PWA v139: company cash and verified owner dividends */
#app .owner-profit-panel{margin:13px 0;padding:16px;background:linear-gradient(145deg,#223b4e,#0e283c);border:1px solid #d8ba836e;border-radius:17px;display:grid;gap:11px}
#app .owner-profit-head{display:flex;justify-content:space-between;align-items:start;gap:10px}
#app .owner-profit-head .overline{font-size:11px;color:#e9ca9b}
#app .owner-profit-head h3{font-size:18px;margin:4px 0 0;color:#fbe0ae}
#app .owner-profit-head>small{font-size:10px;color:#bcd0dc;max-width:105px;text-align:left;line-height:1.7}
#app .owner-profit-help,#app .owner-profit-hint{font-size:12px;line-height:1.7;color:#c3d6de;margin:0}
#app .owner-profit-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#app .owner-profit-metrics>div{min-width:0;border:1px solid #bed0d43f;background:#0a2639dd;padding:12px 10px;border-radius:13px;display:grid;gap:6px}
#app .owner-profit-metrics small{font-size:10px;line-height:1.55;color:#b9cfdb}
#app .owner-profit-metrics strong{font-size:clamp(20px,5vw,26px);font-variant-numeric:tabular-nums;color:#fbe1ac;overflow-wrap:anywhere}
#app .owner-profit-take .button{width:100%;min-height:46px;font-size:13px;font-weight:800}
#app .owner-profit-panel .game-form{background:#122d40;border:1px solid #acbdbb55;margin:0;border-radius:14px}
#app .owner-profit-panel .game-form h3{font-size:15px}
#app .owner-profit-panel .game-form .button{min-height:45px}
@media(max-width:360px){#app .owner-profit-panel{padding:11px}#app .owner-profit-metrics{gap:6px}#app .owner-profit-metrics>div{padding:9px 7px}}

/* v141 | Mobile viewport reliability: visual layout only; no game mechanics.
   Retain all seven tabs, all financial actions, RTL, and existing safe-area rules. */
#boot-overlay{
 overflow-y:auto;
 overscroll-behavior-y:contain;
 align-items:flex-start;
 padding-block:max(14px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-bottom));
}
#boot-overlay .boot-panel{margin:auto;flex-shrink:0}
#app.auth-mode .login-shell{
 overflow-y:auto;
 overscroll-behavior-y:contain;
 scroll-padding-block-end:calc(24px + env(safe-area-inset-bottom));
}
#app.auth-mode .login-shell:focus-within{scroll-padding-block-end:calc(48px + env(safe-area-inset-bottom))}
#app.screen:not(.auth-mode)>.content{min-width:0;max-width:100%}
#app.screen:not(.auth-mode)>.content :is(.owner-profit-head,.storefront-product-head,.vault-item-top,.exchange-price-main,.exchange-timestamp)>*{min-width:0}
#app.screen:not(.auth-mode)>.content :is(img,video,canvas){max-width:100%}
#app.screen:not(.auth-mode) .content :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
dialog :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){font-size:16px}
#app.screen:not(.auth-mode) .content :is(.storefront-benefit-details summary,.vault-benefit-details summary){
 min-height:44px;
 font-size:12px;
 align-items:center;
}
#app .owner-profit-head{flex-wrap:wrap}
#app .owner-profit-head>small{max-width:100%;text-align:start}
#app .owner-profit-metrics strong{font-size:clamp(17px,5vw,24px);min-width:0;overflow-wrap:anywhere}
#app .exchange-metrics>div strong{font-size:clamp(17px,5vw,24px);overflow-wrap:anywhere}
#app .exchange-timestamp{flex-wrap:wrap}
#app .vault-item-copy,#app .vault-dates{overflow-wrap:anywhere}
dialog{
 max-width:calc(100vw - 24px);
 max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
 overflow-y:auto;
 overscroll-behavior:contain;
}
dialog .confirm-box{padding:clamp(14px,5vw,24px)}
dialog .confirm-actions{flex-wrap:wrap}
dialog .confirm-actions>.button{flex:1 1 120px;min-height:44px}
@media(max-height:590px){
 #app.auth-mode:not(.signup-mode) .login-shell{justify-content:flex-start}
 #boot-overlay .boot-panel{padding-block:8px}
}
@media(max-width:370px){
 #app .vault-unit{flex-wrap:wrap;align-items:stretch}
 #app .vault-unit .vault-dates{flex:1 1 100%;width:100%}
 #app .vault-unit .vault-item-action,
 #app .vault-unit .vault-item-locked{flex:1 1 100%;width:100%}
 #app .vault-unit .vault-item-action .button{width:100%;min-width:0}
 #app .vault-masthead h2{font-size:clamp(21px,7vw,26px)}
 #app .exchange-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .exchange-metrics>div:last-child:nth-child(3){grid-column:1/-1}
}
@media(max-width:355px){
 #app .owner-profit-metrics{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 #boot-overlay,#app.auth-mode .login-shell{scroll-behavior:auto}
}


/* v142 · city departments visual finishing — layout only, no game rules.
   Estate / Work / Municipal office / Player passport share one RTL visual system. */
#app.screen:not(.auth-mode) .content .section-title{margin:17px 2px 10px}
#app.screen:not(.auth-mode) .content .section-title h2{font-size:clamp(16px,4.3vw,19px);line-height:1.45;text-wrap:balance}
#app.screen:not(.auth-mode) .content :is(.estate-chips button,.estate-kind-filter button,.work-view-tab,.gov-doc-row .paper-open,.profile-guide-entry){min-height:44px;touch-action:manipulation}
#app.screen:not(.auth-mode) .content :is(.estate-chips button,.work-view-tab,.gov-doc-row .paper-open,.profile-guide-entry):focus-visible{outline:2px solid #f4d99e;outline-offset:3px}
/* Estate: architectural ownership ledger with legible totals and segmented filters. */
#app .estate-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:5px 0 13px}
#app .estate-summary>div{position:relative;min-width:0;overflow:hidden;padding:15px 12px;border:1px solid #d7b77c83;border-radius:17px;background:linear-gradient(150deg,#284a5a,#133247 65%,#0d2638);box-shadow:0 10px 22px #0003}
#app .estate-summary>div:nth-child(2){background:linear-gradient(150deg,#29463f,#153743 65%,#0c2739)}
#app .estate-summary>div::before{content:'';position:absolute;top:0;inset-inline:15px;height:2px;background:linear-gradient(90deg,transparent,#f0d394,transparent);pointer-events:none}
#app .estate-summary strong{font-size:clamp(28px,7.4vw,35px);line-height:1.1;color:#ffdf9f;margin-bottom:6px;font-variant-numeric:tabular-nums}
#app .estate-summary span{display:block;color:#e5eae3;font-size:12px;font-weight:750;line-height:1.55}
#app .estate-summary small{display:block;font-size:11px;line-height:1.55;color:#c1d6dd;margin-top:5px}
#app .estate-chips{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;padding:5px;margin-bottom:13px;background:#091e2ecc;border:1px solid #d5b78153;border-radius:15px}
#app .estate-chips::-webkit-scrollbar{display:none}
#app .estate-chips button{flex:1 0 auto;min-width:64px;min-height:47px;padding:8px 12px;border-radius:10px;border:1px solid transparent;background:transparent;color:#d4e2e7;font-size:12px;font-weight:760;box-shadow:none}
#app .estate-chips button.selected,#app .estate-chips button[aria-pressed="true"]{background:linear-gradient(140deg,#f8e2b3,#d3ae74);border-color:#f4d49b;color:#142839;box-shadow:0 3px 9px #0004}
#app .estate-kind-filter{gap:7px;margin:10px 0 14px}
#app .estate-kind-filter button{min-height:44px;border-radius:11px;background:#132e40;border-color:#bec8b64d}
#app .estate-kind-filter button.selected{background:#dcc08a;border-color:#f0d6a1;color:#162b3b}
#app .estate-brief{position:relative;padding:13px 15px;border:1px solid #e6c58b65;border-radius:15px;background:linear-gradient(145deg,#1b374a,#0f2839)}
#app .estate-brief::before{content:'';position:absolute;inset-block:13px;inset-inline-start:0;width:3px;border-radius:4px;background:#e2bc7e}
#app .estate-brief strong{font-size:15px;color:#f8ddb1}
#app .estate-brief span{font-size:12px;line-height:1.7;color:#d2dfe5}
#app .property-card{border:1px solid #d5bd896c;border-radius:18px;background:linear-gradient(145deg,#203c4c,#102838);box-shadow:0 9px 24px #0003;overflow:hidden}
#app .property-card h3{font-size:clamp(15px,4vw,18px);line-height:1.45;color:#fbe9c8}
#app .property-card .muted{font-size:12px;line-height:1.6}
#app .property-card>.property-visual{border-radius:12px;overflow:hidden}
#app .property-card .buttons{gap:7px}
#app .property-card .buttons button{min-height:44px;line-height:1.5;white-space:normal}
/* Work: more contrast between current shift, payroll and employment archives. */
#app .work-view-tabs{background:#0a2131e8;border:1px solid #d5b98473;border-radius:15px;padding:5px;gap:5px;box-shadow:0 9px 20px #0003}
#app .work-view-tab{min-height:48px;border-radius:10px;color:#cddfe6;font-size:clamp(11.5px,3vw,13px)}
#app .work-view-tab.selected,#app .work-view-tab[aria-pressed="true"]{background:linear-gradient(138deg,#f8e4b8,#d7af77);color:#15293b}
#app .work-idle-card{position:relative;overflow:hidden;padding:20px 16px;border:1px solid #dfc38eaa;border-radius:20px;background:radial-gradient(circle at 0 0,#d6b27b20,transparent 42%),linear-gradient(148deg,#2a4759,#112b3c 69%,#0b2435);box-shadow:0 12px 27px #0004}
#app .work-idle-card::before{content:'';position:absolute;inset-inline:15px;top:0;height:3px;background:linear-gradient(90deg,transparent,#f1d597,transparent);pointer-events:none}
#app .work-idle-card .work-idle-note{font-size:12px;line-height:1.7;color:#cadde4}
#app .work-idle-card .button{min-height:52px}
#app .work-income{gap:8px}
#app .work-income>div{padding:14px 12px;border:1px solid #d9c18852;border-radius:14px;background:linear-gradient(140deg,#1e3c4b,#102a3a)}
#app .work-income small{font-size:11.5px;line-height:1.55;color:#c8d8dd}
#app .work-income strong{font-size:clamp(21px,6vw,27px);color:#f7dda4;font-variant-numeric:tabular-nums}
/* Government: two distinct civic desks, not generic admin forms. */
#app .gov-service{position:relative;overflow:hidden;isolation:isolate;margin:12px 0;padding:15px;border:1px solid #dfc38a72;border-radius:20px;background:linear-gradient(150deg,#203c4c,#112c3d 65%,#0b2534);box-shadow:0 12px 25px #0003}
#app .gov-council::before,#app .gov-registry::before{content:'';position:absolute;top:-35px;inset-inline-end:-30px;width:150px;height:145px;z-index:-1;opacity:.11;pointer-events:none;transform:rotate(-13deg);background:repeating-linear-gradient(90deg,transparent 0 18px,#f3dcae 19px 23px,transparent 24px 35px)}
#app .gov-registry{background:linear-gradient(150deg,#1d3d41,#123039 65%,#0b2535)}
#app .gov-head{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-width:0;margin-bottom:10px;padding:0 0 13px;border-bottom:1px solid #e8c8914b}
#app .gov-head>div{min-width:0;flex:1}
#app .gov-head-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid #f4d39486;border-radius:13px;background:#dec08321;color:#f8deb2}
#app .gov-head-icon svg{width:25px;height:25px}
#app .gov-head-kicker{color:#d9c38f;font-size:10px;line-height:1.5;font-weight:800}
#app .gov-head h2{font-size:clamp(19px,5vw,22px);margin:2px 0 3px;color:#ffebc5}
#app .gov-head p{font-size:12px;line-height:1.6;color:#c9d8e0}
#app .gov-subtitle{font-size:13px;gap:8px;margin:12px 0 9px}
#app .gov-subtitle span{display:grid;place-items:center;min-width:28px;min-height:28px;border:1px solid #e4c78b80;background:#edcf9426;color:#f5dea8;font-variant-numeric:tabular-nums}
#app .gov-doc-list{gap:8px}
#app .gov-doc-row{gap:10px;padding:11px;border:1px solid #b6c8c34d;border-radius:12px;background:#0c2536e3}
#app .gov-doc-info{gap:4px}
#app .gov-doc-info small{font-size:11px;color:#e8cd9d}
#app .gov-doc-info strong{font-size:13px;line-height:1.5}
#app .gov-doc-row .paper-open{min-width:66px;min-height:44px;border-radius:10px}
#app .gov-disclaimer{border-inline-start:3px solid #bc9d68;border-radius:8px;background:#bba77b12;padding:11px 12px}
/* Identity: a passport-like summary, then compact tools; spotlight the guided tour. */
#app .profile-identity{position:relative;overflow:hidden;padding:18px 16px 16px;border:1px solid #ddbe8c92;border-radius:22px;background:radial-gradient(circle at 0 0,#e5be7d1e,transparent 46%),linear-gradient(145deg,#264658,#112e40 70%,#0c2435);box-shadow:0 13px 29px #0004}
#app .profile-identity::before{content:'';position:absolute;top:-50px;inset-inline-end:-38px;width:115px;height:115px;border:1px solid #e8c58c57;border-radius:50%;box-shadow:0 0 0 24px #e3c38a0e,0 0 0 52px #e3c38a08;pointer-events:none}
#app .profile-identity .profile-head{display:flex;align-items:center;gap:12px;min-width:0}
#app .profile-head>div{min-width:0}
#app .profile-head .profile-mark{width:56px;height:56px;flex:none;padding:4px;object-fit:cover;border-radius:15px;border:1px solid #e8c58c82;background:#0a2434}
#app .profile-identity .profile-head h2{font-size:clamp(19px,5.6vw,25px);line-height:1.35;color:#ffedcf;overflow-wrap:anywhere}
#app .profile-facts{gap:7px;margin-top:14px;padding-top:13px;border-top:1px solid #e1c28c45}
#app .profile-facts>div{min-width:0;border:1px solid #dec69e49;border-radius:12px;padding:11px 5px;background:#0b2637a9}
#app .profile-facts strong{font-size:clamp(20px,6vw,25px);color:#f9db9f}
#app .profile-facts small{font-size:11px;line-height:1.55;color:#cbdae1}
#app .profile-resources{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:16px 0 13px}
#app .profile-services-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;padding:0 2px 5px}
#app .profile-services-head h3{font-size:16px;color:#f3dbae;margin:0;line-height:1.4}
#app .profile-services-head p{font-size:11px;color:#c4d5df;line-height:1.6;margin:0}
#app .profile-guide-entry{min-height:67px;gap:11px;padding:12px;border-radius:14px;border:1px solid #b3c8c158;background:#132e3f;box-shadow:0 5px 13px #0002}
#app .profile-guide-entry.profile-tour-entry{min-height:80px;border:1px solid #e9c68b9d;border-radius:17px;background:linear-gradient(142deg,#2a4b5b,#193747)}
#app .profile-guide-entry.profile-updates-entry{background:linear-gradient(140deg,#1f3e4d,#122e3e);border-color:#dfc38e75}
#app .profile-guide-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px}
#app .profile-guide-copy strong{font-size:14px;line-height:1.45}
#app .profile-tour-entry .profile-guide-copy strong{font-size:16px}
#app .profile-guide-copy small{font-size:11.5px;line-height:1.6}
#app .profile-settings{background:#102a3be9;border-color:#d7bd896c;border-radius:16px}
#app .profile-settings>summary{min-height:48px;line-height:1.5}
#app .profile-settings>summary span{font-size:12px;line-height:1.6;color:#c4d4dc}
@media(max-width:370px){
 #app .estate-summary>div{padding:12px 9px}
 #app .estate-summary strong{font-size:27px}
 #app .estate-summary span{font-size:11px}
 #app .estate-chips button{padding-inline:8px;min-width:61px;font-size:11px}
 #app .gov-service{padding:12px}
 #app .gov-head-icon{width:40px;height:40px;flex-basis:40px}
 #app .profile-guide-entry{padding:10px}
 #app .work-idle-card{padding:16px 12px}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .content :is(.estate-chips button,.work-view-tab,.profile-guide-entry,.property-thumb){transition:none!important}
}

/* v143: work challenge difficulty and legible cashier totals on narrow phones. */
#app .work-difficulty-bar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:8px 0;color:#e3eadb}
#app .work-difficulty-bar span{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;background:#112e3e;border:1px solid #b5c7a54f;border-radius:10px;font-size:12px}
#app .work-difficulty-bar strong{font-variant-numeric:tabular-nums;color:#f0d29a}
#app .mini-game-cashier .mini-cash-screen{min-width:0}
#app .mini-game-cashier .mini-cash-screen>div{min-width:0;flex-wrap:wrap;align-items:baseline}
#app .mini-game-cashier .mini-cash-screen>div strong{white-space:nowrap;font-variant-numeric:tabular-nums}
#app .mini-game-cashier .mini-tray-steps{max-height:110px;overflow-y:auto;overscroll-behavior:contain}
#app .mini-grid-cashier .mini-station{min-height:54px;touch-action:manipulation}
@media(max-width:359px){
 #app .mini-cash-register{grid-template-columns:minmax(0,1fr)}
 #app .mini-cash-drawer{padding:9px;gap:4px}
 #app .mini-cash-slot{display:none}
 #app .work-difficulty-bar span{font-size:11px;padding:6px 8px}
 #app .mini-grid-cashier .mini-station{min-height:48px}
}

/* v144 | visual viewport phone keyboard: avoid hiding the chat composer.
   Temporary keyboard class is cleared after blur; no tabs removed permanently. */
#app.screen.mobile-keyboard-open:not(.auth-mode) .bottom{
 visibility:hidden;
 pointer-events:none;
}
#app.screen.mobile-keyboard-open.social-mode .chat-room{
 height:clamp(160px,calc(var(--city-visible-height,100dvh) - var(--city-wallet-height) - 24px),500px);
 min-height:0;
 max-height:none;
}
#app.screen.mobile-keyboard-open.social-mode>.content:has(.chat-room){
 padding-bottom:8px;
}
body.mobile-keyboard-open #required-player-update{
 opacity:0;
 pointer-events:none;
}
@media(max-height:500px){
 #app.screen.social-mode:not(.auth-mode) .chat-room{
  min-height:175px;
  height:clamp(175px,calc(100dvh - var(--city-wallet-height) - 82px),320px);
 }
 #app.screen.mobile-keyboard-open.social-mode .chat-room{
  min-height:0;
  height:clamp(160px,calc(var(--city-visible-height,100dvh) - var(--city-wallet-height) - 24px),500px);
 }
}
@media(max-width:360px){
 #app.screen:not(.auth-mode) .bottom{padding-inline:2px;gap:0}
 #app.screen:not(.auth-mode) .bottom button{min-width:0}
 #app.screen:not(.auth-mode) .bottom button span{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
 #app.screen.mobile-keyboard-open .chat-room{scroll-behavior:auto}
}


/* v143 · support screenshots and visual cleanup — feedback only */
#app .feedback-intro{margin-top:4px;padding:clamp(14px,3.6vw,21px);border-radius:21px;border:1px solid #d8bd8975;background:linear-gradient(155deg,#20374b,#132c3d 66%,#0c2436);box-shadow:0 13px 30px #0004}
#app .feedback-heading{padding:2px 1px 12px;border-bottom:1px solid #e6c48b2c}
#app .feedback-heading-kicker{font-size:11px;letter-spacing:.2px;font-weight:800;color:#e7cb99}
#app .feedback-heading h2{font-size:clamp(21px,5vw,26px);line-height:1.3;margin:4px 0 7px;color:#fff0d4}
#app .feedback-heading p{font-size:12.5px;line-height:1.7;margin:0;color:#cfdee6}
#app .feedback-form{gap:13px;margin-top:13px}
#app .feedback-fields-row{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
#app .feedback-form .field{display:grid;gap:7px;min-width:0}
#app .feedback-form .field>span{color:#f0d7a9;font-size:12.5px;font-weight:750}
#app .feedback-form :is(input:not([type=file]),select,textarea){min-width:0;width:100%;background:#0a2030!important;color:#f5f2e9!important;border:1px solid #a4bac14f!important;border-radius:12px;font-size:16px!important;padding:12px 13px;line-height:1.5;box-shadow:inset 0 1px 4px #0003}
#app .feedback-form select{appearance:auto;min-height:48px}
#app .feedback-form input{min-height:48px}
#app .feedback-form textarea{min-height:132px;max-height:310px;resize:vertical;line-height:1.75!important}
#app .feedback-form :is(input,textarea)::placeholder{color:#96acba;opacity:1}
#app .feedback-form :is(input,select,textarea):focus-visible{outline:2px solid #f0d69e!important;outline-offset:2px;border-color:#dfc58b!important}
#app .feedback-attachments{min-width:0;background:#091f2e9c;border:1px dashed #c5b08391;border-radius:16px;padding:13px 12px}
#app .feedback-attachments-heading{display:grid;gap:2px;margin-bottom:12px}
#app .feedback-attachments-heading strong{color:#f9e3bc;font-size:14px}
#app .feedback-attachments-heading strong span{font-size:11px;font-weight:550;color:#afc5d2}
#app .feedback-attachments-heading small{font-size:11px;line-height:1.5;color:#b5ccd6}
#app .feedback-attach-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#app .feedback-attach-buttons button{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;min-width:0;margin:0;white-space:normal;line-height:1.4;padding:9px 5px;font-size:12px;border-radius:11px;color:#e8dcc4;border:1px solid #d9c18a5b;background:#173448}
#app .feedback-attach-buttons button:focus-visible,#app .feedback-preview-item button:focus-visible,#app .feedback-append:focus-visible{outline:2px solid #f5d89e;outline-offset:2px}
#app .feedback-attach-hint{font-size:11px;line-height:1.65;color:#b9d0dd;margin:10px 0 2px}
#app .feedback-image-count{color:#efd7ac;font-size:11px;margin:7px 0 0}
#app .feedback-preview-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:9px}
#app .feedback-preview-list:empty{display:none}
#app .feedback-preview-item{position:relative;min-width:0;padding:4px;background:#183547;border:1px solid #c0ab7f62;border-radius:11px}
#app .feedback-preview-item img{display:block;width:100%;height:78px;object-fit:cover;border-radius:8px;background:#0b2231}
#app .feedback-preview-item button{position:absolute;top:1px;inset-inline-end:2px;height:29px;width:29px;display:grid;place-items:center;border:1px solid #ecd5b6b0;border-radius:50%;background:#3b222bdc;color:white;font-size:19px;line-height:1}
#app .feedback-preview-item small{display:block;font-size:10px;line-height:1.4;text-align:center;color:#d1e2e9;margin-top:3px}
#app .feedback-submit{min-height:51px;margin-top:1px;border-radius:12px;color:#142333;font-size:15px;font-weight:850}
#app .feedback-retry-info{border:1px solid #f0d3a761;background:#ebcb8a14;border-radius:12px;padding:11px}
#app .feedback-retry-info strong{color:#f6dbaf}
#app .feedback-retry-info p{font-size:12px;margin:4px 0 0;line-height:1.6;color:#c6d7de}
#app .feedback-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:11px 0}
#app .feedback-images a{display:block;min-width:0;border-radius:10px;overflow:hidden;border:1px solid #d7c18f85;min-height:68px}
#app .feedback-images img{display:block;width:100%;height:80px;object-fit:cover;background:#132d3f}
#app .feedback-append{min-height:43px;width:auto;max-width:100%;white-space:normal;font-size:12px;margin:8px 0 12px}
#app .feedback-ticket{border-color:#cbb88c59;border-radius:16px;background:#0d2638;margin:9px 0}
#app .feedback-ticket h4{margin:8px 0 5px;color:#f3e0bb;line-height:1.5}
#app .feedback-toolbar{margin:0 0 10px}
@media(max-width:360px){
 #app .feedback-intro{padding:13px}
 #app .feedback-attachments{padding:10px}
 #app .feedback-attach-buttons button{font-size:11px;padding:8px 3px}
 #app .feedback-preview-item img{height:60px}
}
@media(prefers-reduced-motion:reduce){#app .feedback-intro,#app .feedback-preview-item{transition:none!important}}

/* v146 | Screenshot desktop viewport — keep phone-first 540px untouched. */
@media (min-width:1024px) and (hover:hover) {
  #app.screen:not(.auth-mode) {
    width:min(940px,calc(100vw - 72px));
    max-width:940px;
    min-width:0;
    border-inline:1px solid rgba(235,205,152,.28);
    background:linear-gradient(155deg,#0c2437,#081b2a 54%,#0b2130);
    box-shadow:0 0 0 1px #08192780,0 20px 80px #000a;
  }
  #app.screen:not(.auth-mode)>.content {
    padding-inline:clamp(24px,3vw,38px);
    max-width:100%;
    min-width:0;
  }
  #app.screen:not(.auth-mode)>.always-wallet {
    padding-inline:clamp(20px,3vw,34px);
    gap:14px;
  }
  #app.screen:not(.auth-mode) .always-wallet-name {
    max-width:35%;
    flex-basis:35%;
  }
  #app.screen:not(.auth-mode) .bottom {
    width:min(940px,calc(100vw - 72px));
    grid-template-columns:repeat(7,minmax(0,1fr));
    padding-inline:25px;
    gap:8px;
    border-radius:18px 18px 0 0;
  }
  #app.screen:not(.auth-mode) .bottom button {
    font-size:12px;
    min-height:65px;
    gap:6px;
  }
  #app.screen:not(.auth-mode) .bottom button svg {
    width:22px;
    height:22px;
  }
  #app.home-mode .home-dashboard {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:16px;
  }
  #app.home-mode .home-dashboard> :is(.home-masthead,.home-rewards,.home-business-alert) {
    grid-column:1/-1;
  }
    #app.home-mode .home-dashboard:not(:has(>.home-due-section))>.home-weekly {
    grid-column:1/-1;
  }
  #app.home-mode .home-dashboard>.home-journey-details {
    grid-column:1/-1;
  }
#app.home-mode .home-dashboard> :is(.home-due-section,.home-weekly,.home-journey-details) {
    min-width:0;
  }
  #app.home-mode .home-masthead {
    padding:23px;
  }
  #app.home-mode .home-masthead .home-focus {
    padding:20px;
  }
  #app.screen:not(.auth-mode) .content :is(.panel,.home-weekly,.home-due-section,.home-rewards,.home-masthead) {
    max-width:100%;
    min-width:0;
  }
  #app.screen:not(.auth-mode) .content :is(.home-weekly-numbers,.home-facts,.finance-totals)>div {
    min-width:0;
    overflow-wrap:anywhere;
  }
  #app.screen:not(.auth-mode) .content :is(.home-weekly-numbers strong,.finance-totals strong) {
    font-size:clamp(16px,1.6vw,22px);
    overflow-wrap:anywhere;
  }
  #app.social-mode .chat-room {
    width:100%;
    max-width:100%;
  }
}
@media (min-width:1024px) and (hover:hover) and (max-height:620px) {
  #app.home-mode .home-dashboard {align-items:start}
  #app.screen:not(.auth-mode) .bottom button {min-height:51px}
}

/* v148 | Private in-game I-SCORE; narrow-screen safe, no sideways scroll. */
.credit-standing{background:linear-gradient(140deg,#152c3d,#0d2333);border:1px solid #d7b97955;min-width:0}
.credit-standing .row{align-items:center;gap:12px}
.credit-standing .row>div{min-width:0}
.credit-standing h3{margin:3px 0 0;font-size:17px}
.credit-standing-value{font-size:clamp(25px,8vw,35px);color:#e9d09d;font-variant-numeric:tabular-nums}
.credit-standing-track{height:12px;border-radius:999px;background:#081923;border:1px solid #ffffff20;width:100%}
.credit-standing details{margin-top:8px}
.credit-standing summary{cursor:pointer;color:#f2d9ae}
.credit-standing-history{display:grid;gap:7px;margin-top:9px}
.credit-standing-history>div{display:flex;align-items:start;justify-content:space-between;gap:9px;padding:8px;border-radius:9px;background:#091926}
.credit-standing-history span{font-size:12px;overflow-wrap:anywhere;min-width:0}
.credit-standing-history strong{color:#e5c68a;white-space:nowrap;flex-shrink:0}
@media(max-width:360px){.credit-standing{padding:13px}.credit-standing h3{font-size:15px}}

/* v150 | Read-when-visible city updates: compact editorial cards, badges,
 * and controls kept safely above the seven-tab navigation on phone/desktop. */
#app .updates-nav-count,#app .updates-entry-count,#app .updates-hero-count{
 display:inline-grid;place-items:center;flex:none;min-width:21px;height:21px;
 padding:0 5px;border-radius:999px;background:#e8c27c;color:#13263b;
 font-size:11px;font-weight:800;line-height:1;border:1px solid #fff3;
 font-variant-numeric:tabular-nums;box-shadow:0 2px 10px #0004;
}
#app .updates-nav-count[hidden],#app .updates-entry-count[hidden],
#app .updates-hero-count[hidden]{display:none!important}
#app .bottom button[data-tab="profile"]{position:relative}
#app .updates-nav-count{position:absolute;top:0;right:max(0px,calc(50% - 24px));
 min-width:19px;height:19px;font-size:10px;z-index:2}
#app .updates-entry-count{margin-inline:1px 2px}
#app .updates-intro{padding:18px;background:linear-gradient(145deg,#234557,#10283b);
 border-color:#e0c08870}
#app .updates-intro-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#app .updates-intro h2{font-size:clamp(21px,4.8vw,29px);line-height:1.4;
 margin:6px 0 3px;color:#ffe0a4}
#app .updates-hero-count{height:34px;min-width:34px;font-size:15px}
#app .updates-intro>p{max-width:68ch;margin:7px 0 13px;color:#d9e6ed}
#app .updates-controls{display:flex;justify-content:space-between;align-items:center;
 gap:12px;padding:11px 12px;margin:12px 0;border-radius:13px;
 background:#081a2ab8;border:1px solid #bed4dd2f}
#app #updates-unread-total{font-size:12px;color:#e3dbcc;line-height:1.65}
#app #updates-mark-read{min-height:39px;flex:none;font-size:12px}
#app .updates-actions{display:flex;gap:8px}
#app .updates-actions button{flex:1;min-height:40px;min-width:0}
#app .updates-list{gap:10px;margin:16px 0 calc(106px + env(safe-area-inset-bottom,0px))}
#app .updates-item{padding:16px 17px;border-radius:16px;
 background:linear-gradient(145deg,#152b3d,#102334);border-color:#b4ccd33b;
 box-shadow:none;transition:border-color .18s ease,background .18s ease}
#app .updates-item.is-unread{background:linear-gradient(145deg,#29495b,#162d40);
 border-color:#e6bc7399;box-shadow:inset 3px 0 #dbb777}
#app .updates-item-top{display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:8px;font-size:11px}
#app .updates-release{font-variant-numeric:tabular-nums;color:#c6d7e2}
#app .updates-item-state{color:#a9bac7;font-size:11px;font-weight:600}
#app .updates-item.is-unread .updates-item-state{color:#f9d38e}
#app .updates-item h3{font-size:15px;line-height:1.6;margin:8px 0 5px;color:#f6e3bf}
#app .updates-item-summary{font-size:13px;line-height:1.8;color:#e5eaf0;margin:0}
#app .updates-item-benefit{margin:9px 0 0;padding:9px 11px;
 border-radius:10px;background:#b4ddc30d;border:1px solid #bbd8c92d;
 font-size:12px;color:#cee4df;line-height:1.7}
#app .updates-item-benefit strong{display:inline-block;margin-inline-end:6px;color:#f7d8a0}
#app .updates-item-more{margin-top:9px;border-top:1px solid #c2d3e52a;padding-top:9px}
#app .updates-item-more summary{cursor:pointer;color:#cfbb94;font-size:12px;
 width:fit-content;max-width:100%;min-height:28px;line-height:1.8}
#app .updates-item-more p{padding:7px 0 0;font-size:12px;color:#d4e0e9;line-height:1.85}
#app .updates-visit-link{display:inline-flex;align-items:center;gap:7px;
 margin-top:10px;padding:8px 10px;min-height:38px;border:1px solid #c8aa7166;
 border-radius:10px;background:#d6b67f16;color:#f8d6a1;font-size:12px;font-weight:700}
#app .updates-visit-link:focus-visible,#app .updates-item-more summary:focus-visible{
 outline:2px solid #f2d497;outline-offset:3px}
@media(max-width:400px){
 #app .updates-intro{padding:14px 12px}
 #app .updates-controls{flex-wrap:wrap}
 #app #updates-mark-read{width:100%}
 #app .updates-item{padding:13px}
 #app .updates-actions{flex-direction:row}
 #app .updates-actions button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#app .updates-item{transition:none}}

/* v152 — server-verified shift completion report (dialog + retained receipt). */
#app .shift-receipt{margin:12px 0 18px;padding:17px;border:1px solid #d7b88285;
 border-radius:18px;background:linear-gradient(142deg,#294154,#10283c);color:#f7efdc;
 box-shadow:0 16px 34px #0002}
.shift-receipt-head .overline{font-size:11px;color:#f4d397}
.shift-receipt-head h2{margin:4px 0;font-size:clamp(18px,4.4vw,24px);color:#ffe0a4}
.shift-receipt-head p{font-weight:750;margin:0;color:#f3f5ed}
.shift-receipt-head small{display:block;margin:3px 0 0;color:#bacee0;font-size:12px}
.shift-receipt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}
.shift-receipt-grid>div{min-width:0;padding:12px;background:#0618280c;
 border:1px solid #cad7db35;border-radius:12px}
.shift-receipt-grid small{display:block;color:#c8d9e4;font-size:11px;margin-bottom:5px}
.shift-receipt-grid strong{display:block;color:#ffe0a6;font-size:clamp(14px,3.6vw,21px);overflow-wrap:anywhere;line-height:1.45}
.shift-receipt-grid strong span{font-size:12px;color:#d5e0df}
.shift-receipt-state{padding:11px 12px;border:1px solid #d7ba8059;
 border-radius:12px;background:#cbb17d12;line-height:1.7;font-size:12px;color:#f3deb5}
.shift-receipt-performance{font-size:12px;color:#d7e8ee;line-height:1.65}
.shift-receipt-meta{display:flex;gap:6px 15px;flex-wrap:wrap;color:#c2d5de;
 font-size:11px;font-variant-numeric:tabular-nums}
.shift-receipt-actions{display:flex;gap:9px;margin-top:13px;flex-wrap:wrap}
.shift-receipt-actions button{flex:1;min-width:120px;min-height:42px}
#app .work-history-receipt{margin-top:10px;min-height:38px;font-size:12px}
#shift-report-dialog{width:min(94vw,480px);max-height:min(90dvh,780px);
 overflow:auto;border-radius:21px;border:1px solid #e9ca8d83;
 background:#0a1b2b;color:#f8edda;padding:15px;box-shadow:0 28px 85px #000b;
 overscroll-behavior:contain}
#shift-report-dialog::backdrop{background:#020b14c9;backdrop-filter:blur(5px)}
#shift-report-dialog .shift-receipt{border:0;background:transparent;padding:4px;box-shadow:none;margin:0}
#shift-report-dialog .shift-receipt-grid{margin:17px 0}
.shift-receipt-modal-actions{display:flex;margin-top:12px}
.shift-receipt-modal-actions button{width:100%;min-height:46px}
@media(max-width:360px){
 #shift-report-dialog{width:calc(100vw - 18px);padding:11px}
 .shift-receipt-grid{gap:6px}
 .shift-receipt-grid>div{padding:9px}
 #app .shift-receipt{padding:13px}
}
@media(prefers-reduced-motion:reduce){#shift-report-dialog::backdrop{backdrop-filter:none}}

/* v154 | Account page: a single identity, useful shortcuts and a calm mobile grid. */
#app.screen.profile-mode:not(.auth-mode)>.hero{display:none!important}
#app.screen.profile-mode:not(.auth-mode)>.content{padding-top:12px}
#app.profile-mode .profile-identity{
 padding:17px 18px 14px;margin:0;
 background:radial-gradient(circle at 100% -18%,#e6c58b18,transparent 43%),
  linear-gradient(135deg,#244354 0%,#152e41 62%,#0e2434 100%);
 border:1px solid #d9bd8b88;border-radius:20px;
 box-shadow:0 10px 27px #0004;
}
#app.profile-mode .profile-identity::before{opacity:.4;top:-65px;inset-inline-end:-55px}
#app.profile-mode .profile-head{gap:12px;position:relative;z-index:1}
#app.profile-mode .profile-head .profile-mark{
 width:55px;height:55px;object-fit:contain;padding:5px;
 border:1px solid #e5c18a79;border-radius:15px;background:#081f30
}
#app.profile-mode .profile-person{flex:1;min-width:0}
#app.profile-mode .profile-person .overline{display:block;color:#ddcbaf;font-size:10px;margin:0 0 4px;line-height:1.6}
#app.profile-mode .profile-person h1{
 font-size:clamp(21px,4vw,26px);font-weight:850;line-height:1.3;margin:0;color:#ffead0;
 overflow-wrap:anywhere;
}
#app.profile-mode .profile-person .muted{margin:4px 0 0;font-size:12px;line-height:1.6}
#app.profile-mode .profile-facts{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;
 margin-top:16px;padding-top:14px;border-top:1px solid #d0bc964a;
}
#app.profile-mode .profile-fact{
 position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 width:100%;min-width:0;min-height:69px;padding:10px 14px;
 text-align:start;border-radius:12px;border:1px solid #bdd3d046;
 background:#071b2b85;color:#f5e3c7;cursor:pointer;
}
#app.profile-mode .profile-fact small{font-size:11px;color:#c0d4dc;line-height:1.45}
#app.profile-mode .profile-fact strong{
 font-size:clamp(19px,3.7vw,25px);line-height:1.3;color:#f7d69b;font-variant-numeric:tabular-nums
}
#app.profile-mode .profile-fact-arrow{position:absolute;inset-inline-end:13px;top:50%;transform:translateY(-50%);
 font-size:20px;color:#d4b981}
#app.profile-mode .profile-fact:hover,#app.profile-mode .profile-guide-entry:hover{
 border-color:#ead39db2;background-color:#d0b47d0b
}
#app.profile-mode .profile-fact:focus-visible,#app.profile-mode .profile-install-panel button:focus-visible{
 outline:2px solid #f3d59b;outline-offset:3px
}
/* Score is an in-game metric, not the dominant content on this page. */
#app.profile-mode .profile-credit{
 margin:12px 0 0;padding:14px 18px 12px;border-radius:17px;border:1px solid #d1c3a45c;
 background:linear-gradient(130deg,#162f42,#102538);box-shadow:none
}
#app.profile-mode .profile-credit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
#app.profile-mode .profile-credit-head>div:first-child{min-width:0}
#app.profile-mode .profile-credit-head .overline{font-size:10px;color:#e1c994;line-height:1.5}
#app.profile-mode .profile-credit-head h2{margin:4px 0 0;color:#f6e7ca;font-size:clamp(14px,3.8vw,17px);line-height:1.5}
#app.profile-mode .profile-credit-score{
 display:flex;align-items:baseline;gap:3px;color:#f3d19a;
 font-size:clamp(23px,5vw,28px);font-weight:850;font-variant-numeric:tabular-nums;line-height:1.2;
 flex-shrink:0;
}
#app.profile-mode .profile-credit-score small{font-size:11px;color:#c7d5dc;font-weight:600}
/* v171 score position from real server score; neutral 650 at center. */
#app.profile-mode .profile-credit .credit-standing-scale{position:relative;margin:12px 0 7px;padding:9px 0 8px;direction:ltr;min-width:0}
#app.profile-mode .profile-credit .credit-standing-track{height:12px;margin:0;border:1px solid rgba(255,255,255,.34);background:linear-gradient(to right,#3ab48b 0%,#57c5a2 28%,#dfc979 43%,#f0d27c 54%,#e9907e 73%,#cf5c67 100%)!important;box-shadow:inset 0 0 0 1px rgba(4,20,30,.33),0 3px 10px rgba(0,0,0,.28)}
#app.profile-mode .profile-credit .credit-standing-pointer{position:absolute;z-index:1;left:clamp(9px,var(--profile-score-position,50%),calc(100% - 9px));top:3px;width:4px;height:24px;border-radius:999px;background:#fff9e8;transform:translateX(-50%);box-shadow:0 0 0 2px #0a2130,0 1px 9px rgba(0,0,0,.75)}
#app.profile-mode .profile-credit .credit-standing-pointer::before{content:"";position:absolute;top:-5px;left:50%;transform:translateX(-50%);width:10px;height:7px;background:#fff9e8;clip-path:polygon(0 0,100% 0,50% 100%)}
#app.profile-mode .profile-credit .credit-standing-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));direction:ltr;gap:4px;font-size:10px;line-height:1.5;margin:0 0 7px;font-variant-numeric:tabular-nums}
#app.profile-mode .credit-standing-legend span:first-child{text-align:left;color:#93dfbe}
#app.profile-mode .credit-standing-legend span:nth-child(2){text-align:center;color:#efd18c}
#app.profile-mode .credit-standing-legend span:last-child{text-align:right;color:#f0a2a4}
#app.profile-mode .profile-credit-note{
 margin:0;color:#c2d4df;font-size:11px;line-height:1.65
}
#app.profile-mode .profile-credit-events{margin-top:8px}
#app.profile-mode .profile-credit-events summary{font-size:12px;min-height:34px}
#app.profile-mode .profile-resources{display:block;margin:16px 0 0}
#app.profile-mode .profile-services-head{margin:0 0 10px;padding:0 2px}
#app.profile-mode .profile-services-head h2{margin:0;font-size:16px;line-height:1.45;color:#f3d79f}
#app.profile-mode .profile-services-head p{margin:0;font-size:11px;color:#c0d3dd}
#app.profile-mode .profile-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#app.profile-mode .profile-tools-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:9px;margin-top:10px
}
#app.profile-mode .profile-guide-entry{
 min-width:0;margin:0;padding:12px 13px;gap:10px;text-align:start;
 min-height:65px;box-shadow:none;border:1px solid #aebfc04e;
 border-radius:14px;background:linear-gradient(130deg,#183549,#10283a);
}
#app.profile-mode .profile-guide-entry.profile-updates-entry{
 min-height:76px;background:linear-gradient(130deg,#294453,#173345);
 border-color:#e4bf818f;
}
#app.profile-mode .profile-guide-entry.profile-tour-entry{
 min-height:76px;background:linear-gradient(130deg,#1a394a,#10293d);
 border-color:#aebfc052;border-radius:14px
}
#app.profile-mode .profile-guide-icon{
 width:38px;height:38px;flex:0 0 38px;border-radius:11px
}
#app.profile-mode .profile-guide-copy{min-width:0;flex:1}
#app.profile-mode .profile-guide-copy strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#app.profile-mode .profile-guide-copy small{font-size:11px;line-height:1.55;color:#c5d8e1}
#app.profile-mode .profile-guide-arrow{flex:none;font-size:20px}
#app.profile-mode .profile-tool{min-height:65px}
#app.profile-mode .profile-tool .profile-guide-icon{width:34px;height:34px;flex-basis:34px}
#app.profile-mode .updates-entry-count{margin-inline:0 3px}
#app.profile-mode .profile-install-panel{
 display:flex;justify-content:space-between;align-items:center;gap:12px;
 padding:12px 15px;margin:15px 0 0;border-radius:14px;
 border:1px solid #b8c4ba4c;background:#132c3a8a;
}
#app.profile-mode .profile-install-panel>div{min-width:0}
#app.profile-mode .profile-install-panel h3{margin:0 0 3px;font-size:13px;color:#e4d5b7}
#app.profile-mode .profile-install-panel p{margin:0;font-size:11px;line-height:1.6;color:#c4d1d9}
#app.profile-mode .profile-install-panel button{min-height:42px;flex:none;font-size:12px}
#app.profile-mode .profile-settings{margin:12px 0 0;padding:10px 15px;border-color:#bdc5bc44;background:#10293bb8}
#app.profile-mode .profile-settings>summary{font-size:13px;min-height:42px;line-height:1.45}
#app.profile-mode .profile-settings>summary span{font-size:11px;margin-top:2px}
#app.profile-mode .profile-settings-body{padding-top:9px}
@media (max-width:610px){
 #app.profile-mode .profile-featured{grid-template-columns:minmax(0,1fr)}
 #app.profile-mode .profile-featured .profile-guide-entry{min-height:62px}
 #app.profile-mode .profile-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app.profile-mode .profile-tool{padding:10px 9px;gap:8px}
 #app.profile-mode .profile-tool .profile-guide-arrow{display:none}
 #app.profile-mode .profile-tool .profile-guide-icon{width:32px;height:32px;flex-basis:32px}
 #app.profile-mode .profile-tool .profile-guide-copy strong{font-size:12px}
 #app.profile-mode .profile-tool .profile-guide-copy small{font-size:10px;line-height:1.5}
}
@media (max-width:365px){
 #app.profile-mode .profile-identity{padding:12px 11px}
 #app.profile-mode .profile-person h1{font-size:20px}
 #app.profile-mode .profile-fact{padding:9px 7px;min-height:64px}
 #app.profile-mode .profile-fact-arrow{inset-inline-end:6px;font-size:17px}
 #app.profile-mode .profile-credit{padding:12px}
 #app.profile-mode .profile-featured{gap:8px}
 #app.profile-mode .profile-install-panel{align-items:stretch;flex-direction:column}
 #app.profile-mode .profile-install-panel button{width:100%}
}
@media(prefers-reduced-motion:reduce){
 #app.profile-mode .profile-guide-entry,#app.profile-mode .profile-fact{transition:none!important}
}

/* v155 — classic illustrated job cards restored; café grades ingredients ONLY.
   Older v153 oversized decorative header is intentionally removed. */
#app .mini-cafe-game{display:grid;gap:11px;min-width:0;overflow:hidden;padding:12px;
 border-radius:17px;border:1px solid #dfc38865;background:linear-gradient(160deg,#183347,#0d2637)}
#app .mini-legacy-title{display:flex;align-items:center;gap:8px;padding:1px 3px}
#app .mini-legacy-title:before{content:'';width:22px;height:3px;border-radius:4px;background:#ebcf99}
#app .mini-legacy-title span{font-size:12px;font-weight:850;color:#ecd6ac;line-height:1.5}
#app .mini-game-cashier .mini-legacy-title:before{background:#99ccaf}
#app .mini-game-reception .mini-legacy-title:before{background:#9fc0e9}
#app .mini-game-stock .mini-legacy-title:before{background:#bed296}
#app .mini-game-services .mini-legacy-title:before{background:#e6b578}
#app .mini-ingredient-stage{grid-template-columns:minmax(0,1fr) minmax(100px,30%);min-height:180px;gap:10px}
#app .mini-ingredient-stage .mini-order-ticket{position:relative;overflow:hidden;padding:17px 15px;gap:8px;
 background:radial-gradient(circle at 20% 10%,#fff9e2 0,transparent 63%),
 linear-gradient(130deg,#f8e9c7,#dcc38c);color:#26313b;box-shadow:inset 0 1px #fff8d4,0 8px 18px #0002}
#app .mini-ingredient-stage .mini-order-ticket:before{content:'';position:absolute;inset-block:10px;inset-inline-start:0;
 width:4px;background:linear-gradient(#ba8d49,#f0d5a3);border-radius:5px}
#app .mini-ingredient-stage .mini-order-ticket>strong{font-size:clamp(18px,4.8vw,26px);line-height:1.4}
#app .mini-ingredient-stage .mini-order-ticket>p{font-size:12px;line-height:1.8;max-width:46ch}
#app .mini-ingredient-stage .mini-order-ticket>small{font-size:10px;line-height:1.7;color:#394b50}
#app .mini-cup-orders{display:grid;gap:5px;margin-block:3px}
#app .mini-cup-orders>span{display:flex;align-items:center;gap:6px;background:#ffffff83;
 border:1px solid #ab916f55;border-radius:9px;padding:6px 7px;font-size:10px;min-width:0;
 font-weight:750;line-height:1.4;overflow-wrap:anywhere}
#app .mini-cup-orders b{display:grid;place-items:center;flex:0 0 19px;width:19px;height:19px;
 border-radius:50%;background:#3b514d;color:#fff8de;font-size:11px}
#app .mini-cup-orders small{white-space:nowrap;margin-inline-start:auto;opacity:.76;font-variant-numeric:tabular-nums}
#app .mini-cup-orders>.completed{background:#e7f5e5;border-color:#9fbb98}
#app .mini-cup-orders>.current{background:#fff9e9;border-color:#b68b44}
#app .mini-cup-orders>.upcoming{opacity:.68}
#app .mini-ingredient-stage .mini-drink-wrap{gap:9px;padding:11px 8px;
 background:radial-gradient(circle at 50% 28%,#d8c19722,#092030 78%);border:1px solid #bda47850}
#app .mini-ingredient-cup{width:65px;height:91px;box-shadow:inset 0 0 9px #0005,0 7px 16px #0004;
 border-color:#f3dcaf;background:linear-gradient(170deg,#193641,#0c2633)}
#app .mini-ingredient-cup:after{border-color:#f3dcaf}
#app .mini-ingredient-cup .mini-cup-fill{background:linear-gradient(180deg,#f5e9bd 0%,#bc8a5c 52%,#694939 100%);
 border-radius:0 0 9px 9px;box-shadow:inset -6px 0 7px #3f2d254a}
#app .mini-drink-highlight{position:absolute;z-index:2;inset-block:7px 10px;inset-inline-start:7px;width:5px;
 border-radius:9px;background:#fff7dd55;pointer-events:none}
#app .mini-drink-label{font-size:11px;color:#f8e4ba;line-height:1.5;font-weight:850;text-align:center;overflow-wrap:anywhere}
#app .mini-mix-ingredients{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-height:74px;
 overflow-y:auto;font-size:10px}
#app .mini-mix-ingredients small{color:#b9ced4;text-align:center}
#app .mini-mix-ingredient{font-size:10px;color:#e6f0e9;border-radius:7px;padding:3px 6px;background:#cedbc11d;
 border:1px solid #d5c4a441}
#app .mini-ingredients-heading{display:flex;align-items:baseline;justify-content:space-between;gap:7px;
 margin:3px 0 0;min-width:0}
#app .mini-ingredients-heading strong{font-size:14px;color:#f5ddb0}
#app .mini-ingredients-heading small{font-size:10px;color:#afc9d6;text-align:end;line-height:1.5}
#app .mini-cafe-game .mini-tray{margin:0;padding:10px;border-radius:11px;background:#092030;border:1px solid #d9c69d40}
#app .mini-cafe-game .mini-tray-step{font-size:11px;overflow-wrap:anywhere}
#app .mini-grid-cafe{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#app .mini-grid-cafe .mini-station{position:relative;min-width:0;display:flex;flex-direction:column;
 justify-content:center;align-items:center;min-height:90px;padding:10px 5px;gap:6px;text-align:center;
 border-color:#e8ca926c;border-radius:13px;background:linear-gradient(150deg,#28465a,#142d41);
 font-size:11px;font-weight:800;color:#f5e6ce;touch-action:manipulation}
#app .mini-grid-cafe .mini-station-symbol{width:45px;height:45px;display:grid;place-items:center;
 background:linear-gradient(160deg,#f5dcb32f,#e0b37e13);border:1px solid #e6ccab6d;border-radius:13px;
 color:#f1e1c0}
#app .mini-grid-cafe .mini-station-symbol:before{display:none;content:none}
#app .mini-grid-cafe .mini-station-symbol svg{width:32px;height:32px;display:block}
#app .mini-grid-cafe .mini-station-coffee{background:linear-gradient(150deg,#513d36,#263744)}
#app .mini-grid-cafe .mini-station-milk{background:linear-gradient(150deg,#3d5761,#244152)}
#app .mini-grid-cafe .mini-station-chocolate{background:linear-gradient(150deg,#664338,#332f38)}
#app .mini-grid-cafe .mini-station-ice{background:linear-gradient(150deg,#235b73,#213c54)}
#app .mini-grid-cafe .mini-station-foam{background:linear-gradient(150deg,#6c604b,#364251)}
#app .mini-grid-cafe .mini-station-vanilla{background:linear-gradient(150deg,#665b3c,#374150)}
#app .mini-grid-cafe .mini-station-caramel{background:linear-gradient(150deg,#755034,#443548)}
#app .mini-grid-cafe .mini-station-cinnamon{background:linear-gradient(150deg,#744d40,#3a3447)}
#app .mini-grid-cafe .mini-station-sugar{background:linear-gradient(150deg,#506175,#293a51)}
#app .mini-grid-cafe .mini-station:focus-visible{outline:3px solid #ffe1a5;outline-offset:2px}
#app .mini-grid-cafe .mini-station:active:not(:disabled){transform:scale(.97)}
#app .mini-game-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);gap:6px;margin:0}
#app .mini-game-actions>.button{min-width:0;min-height:48px;padding:8px 5px;line-height:1.4;white-space:normal}
#app .mini-game-note{margin:0;font-size:10px;text-align:center}
@media(max-width:480px){
 #app .mini-cafe-game{padding:10px}
 #app .mini-ingredient-stage{grid-template-columns:minmax(0,1fr) minmax(88px,30%);gap:7px}
 #app .mini-ingredient-stage .mini-order-ticket{padding:12px 10px}
 #app .mini-ingredient-stage .mini-order-ticket>p{font-size:11px}
 #app .mini-grid-cafe{gap:6px}
 #app .mini-grid-cafe .mini-station{min-height:77px;padding:7px 3px;gap:4px;font-size:10px}
 #app .mini-grid-cafe .mini-station-symbol{width:35px;height:35px}
 #app .mini-grid-cafe .mini-station-symbol svg{width:27px;height:27px}
}
@media(max-width:360px){
 #app .mini-ingredient-stage{grid-template-columns:minmax(0,1fr) 88px}
 #app .mini-ingredient-stage .mini-order-ticket>strong{font-size:17px}
 #app .mini-cup-orders>span{padding:4px}
 #app .mini-cup-orders small{font-size:9px}
 #app .mini-ingredient-cup{transform:scale(.85)}
 #app .mini-ingredients-heading{flex-direction:column;align-items:stretch}
 #app .mini-grid-cafe .mini-station{font-size:9.5px;min-height:73px}
}
@media(prefers-reduced-motion:reduce){
 #app .mini-grid-cafe .mini-station{transition:none}
 #app .mini-grid-cafe .mini-station:active:not(:disabled){transform:none}
}

/* v156: lean player profile, no standalone install billboard; clear top on navigation. */
#app.screen.profile-mode:not(.auth-mode)>.content{padding-top:max(12px,env(safe-area-inset-top,0px))}
#app.profile-mode .profile-identity{scroll-margin-top:calc(70px + env(safe-area-inset-top,0px))}
#app.profile-mode .profile-credit .profile-credit-events{border-top:1px solid #f4d6a02c;margin-top:9px;padding-top:4px}
#app.profile-mode .profile-credit-events>summary{display:list-item;cursor:pointer;color:#e7d5b7;font-size:11px;line-height:1.5}
#app.profile-mode .profile-credit-events p{margin:4px 0 8px;font-size:11px;line-height:1.7}
#app.profile-mode .profile-settings-body>.panel{margin:0}
#app.profile-mode .profile-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:380px){
 #app.profile-mode .profile-head .profile-mark{width:47px;height:47px}
 #app.profile-mode .profile-credit{margin-top:9px;padding:11px 13px}
 #app.profile-mode .profile-facts{margin-top:12px;padding-top:10px;gap:6px}
 #app.profile-mode .profile-fact{min-height:57px}
 #app.profile-mode .profile-resources{margin-top:12px}
}


/* PWA v158 | City-wide visual system. One rhythm for every in-game page.
   Preserve scene artwork, live game mechanics, dialog styling and every server value. */
#app.screen:not(.auth-mode){
 --ui-surface:linear-gradient(150deg,#183145 0%,#102638 100%);
 --ui-surface-soft:linear-gradient(155deg,#152c3e,#0d2132);
 --ui-stroke:rgba(206,223,227,.25);
 --ui-gold-stroke:rgba(223,191,135,.46);
 --ui-ink:#f6f0e5;
 --ui-secondary:#c1d0d9;
 --ui-radius:17px;
 --ui-radius-sm:12px;
 --ui-gap:12px;
 --ui-section-gap:22px;
}
#app.screen:not(.auth-mode)>.hero{
 background:radial-gradient(ellipse 80% 120% at 100% 0%,#d6b67a16,transparent 70%),
 linear-gradient(140deg,#132b3e,#0b1f30);
 border-bottom:1px solid var(--ui-stroke);
}
#app.screen:not(.auth-mode):not(.profile-mode)>.hero{padding:15px clamp(14px,3vw,30px) 14px;min-height:0}
#app.screen:not(.auth-mode)>.hero .topline{margin-bottom:7px}
#app.screen:not(.auth-mode)>.hero .brand{gap:8px;min-width:0}
#app.screen:not(.auth-mode)>.hero .brand img{width:36px;height:36px;flex:none;border-radius:11px}
#app.screen:not(.auth-mode)>.hero .brand b{font-size:13px;line-height:1.35}
#app.screen:not(.auth-mode)>.hero .brand small{font-size:10px;line-height:1.45}
#app.screen:not(.auth-mode)>.hero .hero-headline{min-height:0;gap:12px;padding:0;align-items:center}
#app.screen:not(.auth-mode)>.hero .hero-headline>div{min-width:0}
#app.screen:not(.auth-mode)>.hero .hero-headline .title{font-size:clamp(20px,2.3vw,25px);line-height:1.35;margin:0 0 3px;color:var(--ui-ink)}
#app.screen:not(.auth-mode)>.hero .hero-headline .sub{font-size:clamp(10px,1.7vw,12px);line-height:1.5;color:var(--ui-secondary);margin:0}
#app.screen:not(.auth-mode)>.hero .hero-seal{width:38px;height:38px;flex:0 0 38px;border:1px solid var(--ui-gold-stroke);border-radius:12px;background:#dbbc8412}
#app.screen:not(.auth-mode)>.content{padding:14px clamp(12px,2.3vw,28px) calc(112px + env(safe-area-inset-bottom));min-width:0}
#app.screen:not(.auth-mode)>.content>*{min-width:0;max-width:100%}
#app.screen:not(.auth-mode) .content :is(.panel,.item,.work-idle-card,.work-archive,.work-role-group,.work-empty,.empty,.work-history,.owner-company-hero){
 border:1px solid var(--ui-stroke);border-radius:var(--ui-radius);
 box-shadow:0 7px 22px #020a1426;
}
#app.screen:not(.auth-mode) .content :is(.panel,.item,.work-idle-card,.work-archive,.work-role-group,.owner-company-hero){background:var(--ui-surface)}
#app.screen:not(.auth-mode) .content :is(.empty,.work-empty){background:var(--ui-surface-soft);box-shadow:none}
#app.screen:not(.auth-mode) .content .panel{padding:clamp(13px,2.3vw,18px);margin-bottom:var(--ui-gap)}
#app.screen:not(.auth-mode) .content .item{padding:clamp(12px,2vw,16px)}
#app.screen:not(.auth-mode) .content :is(.list,.work-role-groups,.work-compact-list){gap:10px;min-width:0}
#app.screen:not(.auth-mode) .content .list>.item{margin:0}
#app.screen:not(.auth-mode) .content .section-title{
 display:flex;direction:rtl;flex-direction:row;align-items:center;justify-content:flex-start;
 text-align:right;gap:0;min-height:34px;margin:var(--ui-section-gap) 1px 12px;
 padding:0 0 8px;border:0;border-bottom:1px solid rgba(214,230,235,.18);
}
#app.screen:not(.auth-mode) .content .section-title:first-child,
#app.screen:not(.auth-mode) .work-view-content>.section-title:first-child{margin-top:10px}
#app.screen:not(.auth-mode) .content .section-title h2{flex:0 1 auto;max-width:100%;min-width:0;order:0;font-size:clamp(16px,2vw,20px);line-height:1.45;color:var(--ui-ink);text-align:right;margin:0;overflow-wrap:break-word}
#app.screen:not(.auth-mode) .content .section-title::before,#app.screen:not(.auth-mode) .content .section-title::after{content:none;display:none}
#app.screen:not(.auth-mode) .content :is(h2,h3,strong){overflow-wrap:break-word}
#app.screen:not(.auth-mode) .content :is(.muted,.work-other-note,.work-empty p){color:var(--ui-secondary);line-height:1.75}
#app.screen:not(.auth-mode) .content :is(.work-income>div,.work-facts>div,.stat>div,.estate-summary>div,.work-hub-summary>div){
 border:1px solid var(--ui-stroke);border-radius:var(--ui-radius-sm);
 background:var(--ui-surface-soft);box-shadow:none;min-width:0;
}
#app.screen:not(.auth-mode) .content :is(.work-income,.work-facts,.stat,.estate-summary){gap:9px;min-width:0}
#app.screen:not(.auth-mode) .content :is(.button,.chips button,.work-view-tab,.owner-view-tab,.market-tab){border-radius:var(--ui-radius-sm)}
#app.screen:not(.auth-mode) .content .button{min-height:43px;font-weight:750}
#app.screen:not(.auth-mode) .content .button.primary{background:linear-gradient(125deg,#f4dfb2,#d9b477);color:#162838;border-color:#e9ce96}
#app.screen:not(.auth-mode) .content :is(.button,.work-view-tab,.chips button):focus-visible,
#app.screen:not(.auth-mode) .content summary:focus-visible{outline:2px solid #f3d49a;outline-offset:3px}
#app.screen:not(.auth-mode) .content :is(.work-view-tabs,.estate-chips,.chips){max-width:100%;min-width:0}
#app.screen:not(.auth-mode) .work-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;margin-bottom:14px;border:1px solid var(--ui-gold-stroke);border-radius:15px;background:#0d2334f3;box-shadow:0 8px 22px #0002}
#app.screen:not(.auth-mode) .work-view-tab{min-width:0;min-height:44px;padding:8px 4px;font-size:clamp(11px,2vw,13px);font-weight:750;line-height:1.35;white-space:normal}
#app.screen:not(.auth-mode) .work-view-tab.selected,
#app.screen:not(.auth-mode) .work-view-tab[aria-pressed="true"]{background:linear-gradient(120deg,#f0daaa,#d5b17a);border-color:#f0d7a4;color:#182b3b}
#app.screen:not(.auth-mode) .work-view-content{min-width:0;display:flow-root}
#app.screen:not(.auth-mode) .work-view-content>.section-title{margin-top:19px}
#app.screen:not(.auth-mode) .work-view-content>.section-title:first-child{margin-top:4px}
#app.screen:not(.auth-mode) .work-view-content .work-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:19px 15px;min-height:132px}
#app.screen:not(.auth-mode) .work-empty-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--ui-gold-stroke);border-radius:13px;background:#e3c38b16;color:#efd49c}
#app.screen:not(.auth-mode) .work-empty-icon svg{width:22px;height:22px}
#app.screen:not(.auth-mode) .work-empty h3{margin:0;color:var(--ui-ink);font-size:15px}
#app.screen:not(.auth-mode) .work-empty p{font-size:12px;max-width:50ch;margin:0}
#app.screen:not(.auth-mode) .work-view-content :is(.work-idle-card,.work-history,.work-archive){margin-bottom:var(--ui-gap)}
#app.screen:not(.auth-mode) .work-view-content .work-income>div{padding:13px 14px}
#app.screen:not(.auth-mode) .work-view-content :is(.work-archive,.work-role-group){overflow:hidden}
#app.screen:not(.auth-mode) .work-view-content :is(.work-archive,.work-role-group,.work-history-details)>summary{
 min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:10px 13px;cursor:pointer;color:#f2d9a8;font-size:13px;font-weight:750;line-height:1.5;
}
#app.screen:not(.auth-mode) .work-view-content :is(.work-archive,.work-role-group)[open]>summary{border-bottom:1px solid var(--ui-stroke)}
#app.screen:not(.auth-mode) .work-view-content .work-role-group>summary:before{margin-inline-end:auto}
#app.screen:not(.auth-mode) .work-view-content .work-alert{border-radius:var(--ui-radius-sm);font-size:12px;line-height:1.65}
#app.screen:not(.auth-mode) .work-view-content .work-history-simple{padding:12px 14px}
#app.screen:not(.auth-mode) .work-view-content .work-history-simple-head{gap:10px;align-items:center}
#app.screen:not(.auth-mode) .work-view-content .work-history-simple-facts{gap:7px;flex-wrap:wrap}
#app.screen:not(.auth-mode) .work-view-content .work-more-shifts>.list{padding:8px}
#app.screen:not(.auth-mode) .content .property-card{border-radius:var(--ui-radius);overflow:hidden}
#app.screen:not(.auth-mode) .content :is(.owner-company-hero,.profile-credit,.profile-guide-entry,.wallet-entry,.market-product-card,.market-shop-card){border-radius:var(--ui-radius);border-color:var(--ui-stroke)}
#app.screen:not(.auth-mode) .content :is(.profile-tools-grid,.profile-featured,.home-facts,.owner-activity-grid){gap:10px;min-width:0}
#app.screen:not(.auth-mode) .content :is(.home-focus,.profile-identity,.mini-cafe-game){border-radius:calc(var(--ui-radius) + 2px)}
#app.screen:not(.auth-mode) .content :is(input,select,textarea){border-radius:var(--ui-radius-sm);max-width:100%}
#app.screen:not(.auth-mode) .bottom{border-top:1px solid var(--ui-stroke);background:#0b2031f7;box-shadow:0 -8px 32px #02091455}
#app.screen:not(.auth-mode) .bottom button{border-radius:13px;min-width:0}
#app.screen:not(.auth-mode) .bottom button.active{background:#f1d0961c;color:#ffe0a5}
#app.screen:not(.auth-mode) .content :is(.work-view-tab,.button,.item,.panel){transition:border-color .18s ease,background-color .18s ease}
@media(min-width:1024px){
 #app.screen:not(.auth-mode):not(.profile-mode)>.hero{padding-inline:clamp(24px,3vw,38px)}
 #app.screen:not(.auth-mode)>.content{padding-inline:clamp(24px,3vw,38px)}
 #app.screen:not(.auth-mode) .work-view-content .work-income{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 #app.screen:not(.auth-mode):not(.profile-mode)>.hero{padding:10px 13px}
 #app.screen:not(.auth-mode)>.hero .topline{margin-bottom:5px}
 #app.screen:not(.auth-mode)>.hero .brand img{width:30px;height:30px}
 #app.screen:not(.auth-mode)>.hero .brand b{font-size:12px}
 #app.screen:not(.auth-mode)>.hero .hero-headline .title{font-size:20px}
 #app.screen:not(.auth-mode)>.hero .hero-seal{width:32px;height:32px;flex-basis:32px}
 #app.screen:not(.auth-mode)>.content{padding:12px 12px calc(110px + env(safe-area-inset-bottom))}
 #app.screen:not(.auth-mode) .content .section-title{margin-top:17px}
 #app.screen:not(.auth-mode) .work-view-tabs{margin-bottom:11px}
 #app.screen:not(.auth-mode) .work-view-tab{min-height:42px}
 #app.screen:not(.auth-mode) .work-view-content .work-income>div{padding:11px}
}
@media(max-width:365px){
 #app.screen:not(.auth-mode)>.content{padding-inline:9px}
 #app.screen:not(.auth-mode) .work-view-tabs{padding:3px;gap:3px}
 #app.screen:not(.auth-mode) .work-view-tab{font-size:10.5px;padding-inline:2px}
 #app.screen:not(.auth-mode) .content :is(.work-income,.stat,.work-facts){grid-template-columns:repeat(2,minmax(0,1fr))}
 #app.screen:not(.auth-mode) .content :is(.work-income>div,.stat>div,.work-facts>div){padding:9px}
}
@media(prefers-reduced-motion:reduce){
 #app.screen:not(.auth-mode) .content :is(.button,.work-view-tab,.item,.panel){transition:none}
}

/* v159 RTL screenshot correction: headings right, no gold stripes. */
#app.screen:not(.auth-mode) .content .section-title,#app.screen:not(.auth-mode) .work-view-content>.section-title{direction:rtl;text-align:right;justify-content:flex-start;padding-inline:0;border-inline:0}
#app.screen:not(.auth-mode) .work-view-content>.section-title:first-child{margin-top:8px}
#app.screen:not(.auth-mode) .work-view-content .work-archive>.section-title{margin:8px 13px 11px}
#app.screen:not(.auth-mode) .work-view-content :is(.work-archive,.work-role-group)>summary{direction:rtl;text-align:right}
#app.screen:not(.auth-mode) .work-view-content .profession-daily-compact.profession-simple{gap:10px;padding:clamp(12px,2vw,16px);margin-bottom:12px}
#app.screen:not(.auth-mode) .work-view-content .profession-simple :is(.profession-simple-block,.profession-growth-today,.profession-simple-offer){border:1px solid rgba(214,227,222,.22);border-radius:12px;background:linear-gradient(140deg,#142b3c,#102436);padding:11px 12px}
#app.screen:not(.auth-mode) .work-view-content .profession-simple .profession-daily-head h3{font-size:clamp(19px,4.5vw,24px);line-height:1.35}
#app.screen:not(.auth-mode) .work-view-content .profession-simple .profession-daily-status{min-width:0;max-width:46%}
#app.screen:not(.auth-mode) .work-view-content .work-latest-report .shift-receipt{padding:clamp(12px,2vw,17px);border-radius:17px;box-shadow:none}
#app.screen:not(.auth-mode) .work-view-content .work-latest-report .shift-receipt-head h2{font-size:clamp(19px,4.5vw,24px);line-height:1.35}
#app.screen:not(.auth-mode) .work-view-content .work-history-list .item{padding:12px 13px}
@media(max-width:390px){#app.screen:not(.auth-mode) .work-view-content .profession-simple :is(.profession-simple-block,.profession-growth-today,.profession-simple-offer){padding:10px}
#app.screen:not(.auth-mode) .work-view-content .work-latest-report .shift-receipt-grid{gap:7px}
#app.screen:not(.auth-mode) .work-view-content .work-latest-report .shift-receipt-grid>div{padding:10px}}

/* v160 notification choices — accessible mobile-first account preferences. */
#app .notice-hub-buttons{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end}
#app .notice-settings{display:grid;gap:13px;padding:clamp(12px,3.8vw,20px);border-color:#bfa7786b;background:linear-gradient(155deg,#142d40,#0e2335)}
#app .notice-settings-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;direction:rtl}
#app .notice-settings-top>div{min-width:0;flex:1;text-align:right}
#app .notice-settings-top small{font-size:11px;color:#dec48f}
#app .notice-settings-top h1{font-size:clamp(19px,4.8vw,25px);line-height:1.35;margin:3px 0 0;color:#f4dfb9}
#app .notice-settings>p{margin:0;line-height:1.75;font-size:13px;color:#cfdae0}
#app .notice-settings .notice-settings-info,#app .notice-settings .notice-settings-warning,#app .notice-settings .notice-settings-feedback{padding:11px 12px;border:1px solid #c2a87561;border-radius:12px;background:#e4c88a10;color:#f0d9af;font-size:12px}
#app .notice-settings-options{display:grid;gap:9px;min-width:0}
#app .notice-settings-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 12px;border:1px solid #c2d3dc35;border-radius:13px;background:linear-gradient(145deg,#1b3447,#10283a);cursor:pointer;min-height:76px;direction:rtl}
#app .notice-settings-option:has(input:focus-visible){outline:2px solid #f0d7a2;outline-offset:2px}
#app .notice-settings-copy{min-width:0;flex:1;display:grid;gap:4px;text-align:right}
#app .notice-settings-copy strong{font-size:14px;color:#f7eee1}
#app .notice-settings-copy small{font-size:12px;line-height:1.55;color:#bed0d8;overflow-wrap:anywhere}
#app .notice-settings-option input[type=checkbox]{appearance:auto;flex:0 0 auto;width:23px;height:23px;accent-color:#e3c285;cursor:pointer}
#app .notice-settings-save{width:100%;min-height:48px}
@media(max-width:365px){#app .notice-hub-summary{flex-wrap:wrap}#app .notice-hub-buttons{width:100%;justify-content:stretch}#app .notice-hub-buttons button{flex:1;min-width:0}#app .notice-settings-option{padding:11px 10px;gap:8px}#app .notice-settings-copy small{font-size:11px}}


/* v161 — work page and shift receipt. Preserve all backend calculations and controls. */
#app.jobs-mode>.hero{background:radial-gradient(ellipse at 100% 0%,#d9be8b27,transparent 60%),linear-gradient(140deg,#163044,#0c2131);border-color:#d7b9823b}
#app.jobs-mode>.hero .hero-headline .title{font-size:clamp(23px,3vw,28px);font-weight:850}
#app.jobs-mode>.content{padding-top:14px}
#app.jobs-mode .work-view-tabs{padding:5px;gap:5px;margin:0 0 16px;min-height:58px;background:#0b2132f2;border:1px solid #d4c09672;border-radius:16px;box-shadow:0 10px 25px #0003}
#app.jobs-mode .work-view-tab{min-height:45px;border-radius:11px;font-weight:800;font-size:clamp(11px,1.4vw,14px)}
#app.jobs-mode .work-view-tab.selected{background:linear-gradient(128deg,#f2e0b8,#d7b57e);color:#142636;box-shadow:0 3px 13px #0004}
#app.jobs-mode .work-view-content>.section-title{margin:19px 1px 12px;padding-bottom:10px;border-color:#c9d8d32b}
#app.jobs-mode .work-view-content>.section-title:first-child{margin-top:7px}
#app.jobs-mode .work-view-content>.section-title h2{font-size:clamp(18px,2vw,21px);font-weight:850;text-align:right}
#app.jobs-mode .work-view-content .profession-daily-compact.profession-simple{padding:clamp(14px,2vw,20px);gap:11px;background:radial-gradient(ellipse at 100% 0%,#d3b88122,transparent 56%),linear-gradient(150deg,#1d364a,#11293b);border:1px solid #d7c08f6c;border-radius:19px;box-shadow:0 10px 28px #0003}
#app.jobs-mode .work-view-content .profession-simple :is(.profession-simple-block,.profession-growth-today,.profession-simple-offer){background:#0d2333d4;border:1px solid #c6d1cc38;border-radius:13px;padding:12px 14px;box-shadow:none}
#app.jobs-mode .work-view-content .profession-simple .profession-daily-head h3{font-size:clamp(21px,3vw,27px);color:#ffe6b4;line-height:1.35}
#app.jobs-mode .work-view-content .profession-simple .profession-daily-status{border:1px solid #d9c18d76;border-radius:999px;background:#e4c18b17;color:#ead7b3;padding:6px 10px}
#app.jobs-mode .work-view-content .profession-simple .profession-growth-track{height:8px;border:0;background:#071a2a}
#app.jobs-mode .work-view-content .profession-simple .profession-growth-track>span{background:linear-gradient(90deg,#9acfb4,#edd49f)}
#app.jobs-mode .work-idle-modern{position:relative;isolation:isolate;overflow:hidden;display:grid;gap:11px;padding:clamp(16px,2.5vw,23px);border:1px solid #dec5937e;border-radius:20px;background:radial-gradient(ellipse at 100% -18%,#c5ac7c2c,transparent 59%),linear-gradient(145deg,#223d52,#112b3c 78%);box-shadow:0 12px 30px #0003}
#app.jobs-mode .work-idle-modern:before{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:2px;background:linear-gradient(90deg,transparent,#e9cb94,transparent)}
#app.jobs-mode .work-idle-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#app.jobs-mode .work-idle-top .overline{font-size:11px;color:#f1d6a4}
#app.jobs-mode .work-idle-state{font-size:11px;color:#b7efd0;background:#5cb58b17;border:1px solid #81cba66a;border-radius:999px;padding:5px 10px;font-weight:800}
#app.jobs-mode .work-idle-modern h2{font-size:clamp(25px,4vw,32px);margin:0;color:#fff0cf}
#app.jobs-mode .work-idle-modern .work-idle-rate{padding:11px 13px;margin:3px 0;background:#071b2abb;border:1px solid #d5c8a249;border-radius:12px;color:#e9dfcc}
#app.jobs-mode .work-idle-modern .button{min-height:50px;border-radius:12px;width:100%;font-size:15px;font-weight:850}
#app.jobs-mode .work-idle-modern .work-idle-note{font-size:12px;text-align:center;color:#c0d3dd}
#app.jobs-mode .work-view-content :is(.work-archive,.work-role-group){background:linear-gradient(145deg,#1a3246,#11293a);border-color:#c5d2d343;border-radius:15px}
#app.jobs-mode .work-view-content :is(.work-archive,.work-role-group)>summary{min-height:50px;font-size:13px}
#app.jobs-mode .work-view-content .work-latest-report{margin:12px 0 15px}
#app.jobs-mode .work-view-content .work-empty{min-height:140px;border:1px dashed #dfc38c73;border-radius:16px;background:linear-gradient(145deg,#1b3447,#10283a)}
/* A single server-backed result component is shared by the inline card and modal. */
#app .shift-receipt-modern,#shift-report-dialog .shift-receipt-modern{position:relative;isolation:isolate;min-width:0;overflow:hidden;text-align:right;margin:0;padding:clamp(15px,2.3vw,21px);border:1px solid #dcc6976d;border-radius:20px;background:radial-gradient(ellipse at 100% -20%,#dab98331,transparent 55%),linear-gradient(150deg,#1a3549,#0f2637);color:#f7f0e3;box-shadow:0 11px 30px #0002}
#app .shift-receipt-modern:before,#shift-report-dialog .shift-receipt-modern:before{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:2px;background:linear-gradient(90deg,transparent,#ecd099,transparent)}
#app .shift-receipt-modern .shift-receipt-head,#shift-report-dialog .shift-receipt-modern .shift-receipt-head{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between;gap:9px 12px}
.shift-receipt-modern .receipt-heading{display:flex;gap:10px;align-items:center;min-width:0}
.shift-receipt-modern .receipt-emblem{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid #e6cc9d83;border-radius:12px;background:#e5c08917;color:#f0d8a8}
.shift-receipt-modern .receipt-emblem svg{width:22px;height:22px}
.shift-receipt-modern .receipt-heading .overline{display:block;font-size:10px;line-height:1.5;letter-spacing:0;color:#dfc99f}
#app .shift-receipt-modern .shift-receipt-head h2,#shift-report-dialog .shift-receipt-modern .shift-receipt-head h2{font-size:clamp(19px,2.8vw,25px);line-height:1.35;color:#ffe1a4;margin:3px 0 0}
.shift-receipt-modern .receipt-status{font-size:11px;font-weight:800;color:#f3d8aa;background:#d9b8821d;border:1px solid #d9c08b72;padding:6px 10px;border-radius:999px;line-height:1.4}
.shift-receipt-modern.receipt-paid .receipt-status{color:#baebd0;background:#6ac0971b;border-color:#79c5a26e}
.shift-receipt-modern .receipt-job{display:flex;flex-wrap:wrap;gap:5px 13px;align-items:baseline;margin:15px 0 0}
.shift-receipt-modern .receipt-job strong{font-size:16px;color:#fff2d8}
.shift-receipt-modern .receipt-job span{font-size:12px;color:#c6d7df}
#app .shift-receipt-modern .shift-receipt-grid,#shift-report-dialog .shift-receipt-modern .shift-receipt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 11px}
#app .shift-receipt-modern .receipt-metric,#shift-report-dialog .shift-receipt-modern .receipt-metric{min-width:0;min-height:96px;display:flex;flex-direction:column;gap:7px;justify-content:space-between;padding:13px 14px;background:#071b2ac4;border:1px solid #b0c5cb41;border-radius:14px}
.shift-receipt-modern .receipt-metric small{font-size:11px;line-height:1.6;color:#bcd0d9}
.shift-receipt-modern .receipt-metric strong{font-size:clamp(17px,3vw,23px);font-weight:850;color:#ffdea0;line-height:1.35;overflow-wrap:anywhere}
.shift-receipt-modern .receipt-metric strong b{font-size:1.17em;font-variant-numeric:tabular-nums}
.shift-receipt-modern .receipt-metric strong span{font-size:11px;color:#cfdae0;font-weight:650}
.shift-receipt-modern .receipt-metric .receipt-no-pay{font-size:clamp(12px,2.2vw,15px);color:#f1d8a5}
#app .shift-receipt-modern .receipt-settlement,#shift-report-dialog .shift-receipt-modern .receipt-settlement{display:grid;gap:4px;margin:0;padding:12px 14px;border:1px solid #dec49372;border-radius:13px;background:linear-gradient(135deg,#dbbd8c1b,#c8b1890c)}
.shift-receipt-modern .receipt-settlement small{font-size:10px;color:#e1cfb3}
.shift-receipt-modern .receipt-settlement strong{font-size:12px;color:#fff0d7;font-weight:750;line-height:1.7}
.shift-receipt-modern .receipt-settlement p{margin:0;font-size:12px;color:#ffe0a3;line-height:1.6}
.shift-receipt-modern .receipt-settlement-paid{border-color:#87c7a66e!important;background:#65bc9110!important}
.shift-receipt-modern .shift-receipt-performance{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0;padding:0;border:0;font-size:11px;color:#ccdce2}
.shift-receipt-modern .shift-receipt-performance>span{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#092233;border:1px solid #b5c9ce39}
.shift-receipt-modern .shift-receipt-performance strong{color:#f7dba6;font-size:12px}
.shift-receipt-modern .shift-receipt-meta{display:flex;align-items:center;gap:5px 13px;flex-wrap:wrap;margin:14px 0 0;padding-top:10px;border-top:1px solid #cbd7d130;font-size:10px;line-height:1.7;color:#b9cdd7;font-variant-numeric:tabular-nums}
.shift-receipt-modern .shift-receipt-meta bdi{unicode-bidi:isolate;direction:ltr}
#app .shift-receipt-modern .shift-receipt-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
#app .shift-receipt-modern .shift-receipt-actions button{min-height:44px;min-width:0;border-radius:12px;font-size:12px}
#shift-report-dialog{width:min(95vw,540px);max-width:calc(100vw - 18px);max-height:min(88dvh,820px);padding:0;overflow:hidden;position:relative;border:1px solid #e6cc9994;border-radius:22px;background:#0b2031;color:#f9eddb;box-shadow:0 30px 90px #000c}
#shift-report-dialog::backdrop{background:#020b15cf;backdrop-filter:blur(8px)}
#shift-report-dialog .shift-receipt-modal{position:relative;max-height:min(88dvh,820px);overflow:auto;padding:clamp(12px,2.4vw,19px);overscroll-behavior:contain;scrollbar-width:thin}
#shift-report-dialog .shift-receipt-modern{border:0;margin:0;padding:10px 3px 0;background:transparent;box-shadow:none;overflow:visible}
#shift-report-dialog .shift-receipt-modern:before{display:none}
#shift-report-dialog .shift-receipt-modern .shift-receipt-head{padding-inline-end:43px}
#shift-report-dialog .shift-receipt-close{position:absolute;z-index:2;inset-block-start:13px;inset-inline-end:14px;width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid #d0bd9a5f;border-radius:11px;background:#183144;color:#f2dab0;font-size:23px;line-height:1}
#shift-report-dialog .shift-receipt-close:focus-visible{outline:2px solid #f1d39b;outline-offset:3px}
#shift-report-dialog .shift-receipt-modal-actions{margin-top:16px}
#shift-report-dialog .shift-receipt-modal-actions button{width:100%;min-height:48px;border-radius:13px;font-size:14px;font-weight:850;color:#172a38;background:linear-gradient(130deg,#f2dfb5,#d9b67b)}
@media(max-width:390px){
 #app.jobs-mode .work-view-tabs{padding:4px;gap:4px;margin-bottom:11px}
 #app.jobs-mode .work-view-tab{font-size:11px;min-height:42px}
 #app.jobs-mode .work-view-content .profession-daily-compact.profession-simple{padding:13px}
 #app.jobs-mode .work-view-content .profession-simple :is(.profession-simple-block,.profession-growth-today,.profession-simple-offer){padding:11px}
 #app .shift-receipt-modern .shift-receipt-grid,#shift-report-dialog .shift-receipt-modern .shift-receipt-grid{gap:7px}
 #app .shift-receipt-modern .receipt-metric,#shift-report-dialog .shift-receipt-modern .receipt-metric{min-height:90px;padding:10px}
 #shift-report-dialog .shift-receipt-modern{padding:8px 0 0}
}
@media(max-width:330px){
 #app .shift-receipt-modern .shift-receipt-grid,#shift-report-dialog .shift-receipt-modern .shift-receipt-grid{grid-template-columns:1fr}
 #app .shift-receipt-modern .receipt-metric,#shift-report-dialog .shift-receipt-modern .receipt-metric{min-height:72px}
}
@media(prefers-reduced-motion:reduce){#shift-report-dialog::backdrop{backdrop-filter:none}}

/* v162 elegant notification preferences — optional game notices only. */
#app .notice-preferences{width:100%;margin:0 auto 18px;max-width:840px;min-width:0;display:grid;gap:15px;padding:clamp(12px,2.8vw,22px);border:1px solid rgba(216,192,143,.32);border-radius:22px;background:radial-gradient(circle at 88% 0%,rgba(223,190,124,.12),transparent 48%),linear-gradient(155deg,#172d40,#0d2233 70%);box-shadow:0 15px 46px rgba(1,9,18,.19);direction:rtl;text-align:right}
#app .notice-preferences-head{display:flex;align-items:center;gap:13px;min-width:0;min-height:92px}
#app .notice-preferences-head-icon{width:53px;height:53px;display:grid;place-items:center;flex:0 0 53px;border-radius:17px;border:1px solid rgba(226,199,145,.48);color:#efcf8c;background:linear-gradient(145deg,#3b4e59,#1a3448);box-shadow:inset 0 1px rgba(255,255,255,.08)}
#app .notice-preferences-head-icon svg{width:25px;height:25px}
#app .notice-preferences-title{min-width:0;flex:1}
#app .notice-preferences-title small{font-size:11px;display:block;line-height:1.6;font-weight:650;color:#eacb8e}
#app .notice-preferences-title h1{font-size:clamp(20px,3.4vw,25px);line-height:1.38;font-weight:800;color:#f7e9ca;margin:2px 0 4px;text-align:right;letter-spacing:0}
#app .notice-preferences-title p{font-size:12px;line-height:1.8;color:#bbced9;margin:0}
#app .notice-preferences-back{border:1px solid rgba(190,209,219,.31);background:rgba(230,242,246,.06);border-radius:12px;min-height:42px;min-width:62px;padding:8px 13px;color:#f0e5d3;font-weight:700;font-size:12px;line-height:1.3;font-family:inherit;cursor:pointer;flex:0 0 auto}
#app .notice-preferences-back:hover{background:rgba(238,218,175,.13)}
#app .notice-preferences-back:focus-visible{outline:2px solid #f1dca4;outline-offset:2px}
#app .notice-preferences-group{display:grid;gap:11px;min-width:0}
#app .notice-preferences-group-head{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:0 3px;min-width:0}
#app .notice-preferences-group-head h2{font-size:15px;font-weight:750;color:#f1e5d5;margin:0;text-align:right}
#app .notice-preferences-state{font-size:11px;font-weight:600;color:#d5ba82;line-height:1.5;margin:0;text-align:left}
#app .notice-preferences-state.is-error{color:#ffb9a5}
#app .notice-preferences-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
#app .notice-preferences-option{display:flex;gap:11px;align-items:center;min-width:0;min-height:94px;padding:15px 14px;border:1px solid rgba(198,218,228,.19);border-radius:15px;background:linear-gradient(145deg,rgba(40,62,80,.77),rgba(23,45,62,.87));cursor:pointer;transition:background .15s ease,border-color .15s ease}
#app .notice-preferences-option:hover{background:linear-gradient(145deg,rgba(49,78,93,.92),rgba(25,49,67,.97));border-color:rgba(230,198,137,.39)}
#app .notice-preferences-option:has(input:checked){border-color:rgba(234,203,147,.34)}
#app .notice-preferences-option:has(input:focus-visible){outline:2px solid #f0d29b;outline-offset:2px}
#app .notice-preferences-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:rgba(234,202,139,.11);color:#f0d6a6}
#app .notice-preferences-icon svg{width:20px;height:20px}
#app .notice-preferences-copy{min-width:0;flex:1;display:grid;gap:4px}
#app .notice-preferences-copy strong{font-size:14px;color:#f5eadc;line-height:1.45}
#app .notice-preferences-copy small{font-size:11.5px;color:#b9ced9;line-height:1.65;overflow-wrap:anywhere}
#app .notice-preferences-toggle[type=checkbox]{appearance:none;position:relative;display:block;flex:0 0 47px;width:47px;min-width:47px;height:27px;min-height:27px;padding:0;margin:0;border-radius:999px;border:1px solid rgba(172,197,209,.45);background:#3a5063;cursor:pointer;outline-offset:3px;transition:background .18s ease,border-color .18s ease}
#app .notice-preferences-toggle[type=checkbox]::before{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#e6edf0;box-shadow:0 1px 4px #0005;transition:transform .18s ease}
#app .notice-preferences-toggle[type=checkbox]:checked{background:#dfc088;border-color:#f1d69d}
#app .notice-preferences-toggle[type=checkbox]:checked::before{background:#173348;transform:translateX(20px)}
#app .notice-preferences-toggle[type=checkbox]:disabled{opacity:.55;cursor:not-allowed}
#app .notice-preferences-warning{margin:0;padding:11px 13px;color:#eed4a2;background:rgba(185,127,66,.13);border:1px solid rgba(229,183,111,.33);border-radius:12px;line-height:1.7;font-size:12px}
@media(max-width:700px){#app .notice-preferences-options{grid-template-columns:1fr}#app .notice-preferences-option{min-height:80px;padding:12px}#app .notice-preferences-head{gap:10px}}
@media(max-width:390px){#app .notice-preferences{padding:12px;border-radius:17px}#app .notice-preferences-head-icon{width:43px;height:43px;flex-basis:43px;border-radius:13px}#app .notice-preferences-title h1{font-size:19px}#app .notice-preferences-title p{font-size:11px}#app .notice-preferences-back{padding:7px 9px;min-width:51px}#app .notice-preferences-copy strong{font-size:13px}#app .notice-preferences-icon{width:34px;height:34px;flex-basis:34px}#app .notice-preferences-group-head{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){#app .notice-preferences-toggle,#app .notice-preferences-toggle::before,#app .notice-preferences-option{transition:none}}


/* v163: distinguish real level progression from the completed daily target. */


#app.jobs-mode .profession-simple .profession-level-percent{
 direction:ltr;unicode-bidi:isolate;font-size:13px;font-weight:850;color:#b9edd0;
 background:#6dc5971a;border:1px solid #86caa66e;border-radius:99px;padding:4px 10px}
#app.jobs-mode .profession-simple .profession-progress-values{
 display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;
 font-size:11px;color:#bdd1dc;margin-top:6px;line-height:1.65}
#app.jobs-mode .work-debt-total{padding:18px;margin-bottom:12px;display:grid;gap:7px;
 background:radial-gradient(ellipse at 100% 0%,#d6b98627,transparent 60%),linear-gradient(145deg,#1d384c,#102839);
 border:1px solid #dac18e73;border-radius:18px;box-shadow:0 10px 25px #0003}
#app.jobs-mode .work-debt-total>small{font-size:13px;color:#f0d6a4;font-weight:750}
#app.jobs-mode .work-debt-total>strong{font-size:clamp(29px,5vw,40px);font-weight:900;color:#ffe0a2;font-variant-numeric:tabular-nums}
#app.jobs-mode .work-debt-total>strong span{font-size:12px;color:#cadbe2}
#app.jobs-mode .work-debt-total>p{font-size:11px;color:#c4d5dd;line-height:1.7;margin:0}
#app.jobs-mode .work-debt-list{display:grid;gap:9px;margin:14px 0}
#app.jobs-mode .work-debt-list h3{font-size:15px;color:#f4e6cc;margin:0}
#app.jobs-mode .work-debt-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;
 padding:13px 14px;border:1px solid #c3d0d34d;background:#10293a;border-radius:13px}
#app.jobs-mode .work-debt-row>div{display:grid;gap:4px;min-width:0}
#app.jobs-mode .work-debt-row>div strong{color:#f9e5c0;overflow-wrap:anywhere;font-size:14px}
#app.jobs-mode .work-debt-row small{color:#b8cad5;font-size:11px}
#app.jobs-mode .work-debt-row>strong{font-size:20px;color:#ffe0a2;white-space:nowrap;font-variant-numeric:tabular-nums}
#app.jobs-mode .work-debt-row>strong span{font-size:11px;color:#bed0d9}
#app.jobs-mode .work-debt-note{padding:11px 13px;font-size:12px;line-height:1.75;border:1px solid #b5c9d247;background:#102838;color:#c6d7de;border-radius:12px}
#app.jobs-mode .work-recent-paid{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;
 margin-top:12px;padding:10px 13px;border-top:1px solid #c4d2d32d;color:#bacdd8;font-size:12px}
#app.jobs-mode .work-recent-paid strong{color:#f5dba7;font-size:15px}
#app .shift-receipt-modern .receipt-employer-total,#shift-report-dialog .shift-receipt-modern .receipt-employer-total{
 margin-top:10px;display:grid;gap:4px;padding:12px 13px;background:#dcc08616;border:1px solid #dfc58f6a;border-radius:13px}
.shift-receipt-modern .receipt-employer-total small{color:#cedee4;font-size:11px}
.shift-receipt-modern .receipt-employer-total strong{color:#ffe0a4;font-size:20px}
.shift-receipt-modern .receipt-employer-total span{color:#aebfc9;font-size:10px}
@media(max-width:390px){#app.jobs-mode .work-debt-row{gap:8px;padding:11px}#app.jobs-mode .work-debt-row>strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){#app.jobs-mode .profession-simple .profession-level-track>.profession-level-fill{transition:none}}


/* v164 — paint XP progress directly on its track, independent of floated fill child. */


#app.jobs-mode .work-pay-context{margin:12px 0 0;padding:10px 13px;
 border:1px solid rgba(178,204,210,.31);border-radius:12px;
 background:#102b3c;color:#d2e1e8;line-height:1.75;font-size:12px}
@media(max-width:390px){#app.jobs-mode .work-pay-context{font-size:11px;padding:10px}}

/* PWA v172 — standard browser-native profession XP progress. No custom overlays. */
/* v182: daily work goal now uses the identical native meter, value=0..3. */
#app.jobs-mode .work-view-content .profession-simple .profession-level-native,
#app.jobs-mode .work-view-content .profession-simple .profession-goal-native{
 display:block!important;width:100%!important;max-width:100%!important;
 height:19px!important;margin:10px 0!important;padding:0!important;
 direction:rtl!important;appearance:auto!important;-webkit-appearance:progress-bar!important;
 accent-color:#9ed6b8!important;border:0!important;border-radius:99px!important;
 background:#071724!important;overflow:hidden;
}
#app.jobs-mode .work-view-content .profession-simple .profession-level-native::-webkit-progress-bar,
#app.jobs-mode .work-view-content .profession-simple .profession-goal-native::-webkit-progress-bar{
 background:#071724;border-radius:99px;
}
#app.jobs-mode .work-view-content .profession-simple .profession-level-native::-webkit-progress-value,
#app.jobs-mode .work-view-content .profession-simple .profession-goal-native::-webkit-progress-value{
 background:#9ed6b8;border-radius:99px;
}
#app.jobs-mode .work-view-content .profession-simple .profession-level-native::-moz-progress-bar,
#app.jobs-mode .work-view-content .profession-simple .profession-goal-native::-moz-progress-bar{
 background:#9ed6b8;border-radius:99px;
}
/* v175: employed-player career screen has one compact shift action, without duplicated panels. */
#app.jobs-mode .work-view-content .work-employed-compact{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 margin:12px 0;padding:12px 15px;min-width:0;
 border:1px solid #d7be8e80;border-radius:15px;
 background:linear-gradient(145deg,#1c374a,#102738);
}
#app.jobs-mode .work-view-content .work-employed-summary-text{display:grid;gap:3px;min-width:0}
#app.jobs-mode .work-view-content .work-employed-summary-text .overline{color:#d8be8d;font-size:11px}
#app.jobs-mode .work-view-content .work-employed-summary-text strong{
 color:#f8e0ae;font-size:clamp(15px,2vw,19px);line-height:1.35;overflow-wrap:anywhere
}
#app.jobs-mode .work-view-content .work-employed-summary-text>span:not(.overline){
 color:#bdd3dd;font-size:12px
}
#app.jobs-mode .work-view-content .work-employed-summary-text small{
 color:#f0cfa0;font-size:11px;line-height:1.5
}
#app.jobs-mode .work-view-content .work-employed-compact .button{
 flex:0 0 auto;width:auto;min-width:135px;min-height:41px;justify-content:center;padding-inline:16px;margin:0
}
#app.jobs-mode .work-view-content .work-applications-archive>summary::after{
 content:"";display:block;flex:0 0 8px;width:8px;height:8px;margin-inline-start:auto;
 border:solid #e9ce98;border-width:0 2px 2px 0;transform:rotate(45deg);
 transition:transform .18s ease
}
#app.jobs-mode .work-view-content .work-applications-archive[open]>summary::after{transform:rotate(225deg)}
#app.jobs-mode .work-view-content .work-applications-archive>summary:focus-visible{
 outline:2px solid #e3c791;outline-offset:-3px
}
@media(max-width:460px){
 #app.jobs-mode .work-view-content .work-employed-compact{padding:12px;gap:9px}
 #app.jobs-mode .work-view-content .work-employed-compact .button{
  min-width:112px;padding-inline:10px;font-size:12px
 }
}
@media(max-width:390px){
 #app.jobs-mode .work-view-content .profession-simple .profession-level-native,
#app.jobs-mode .work-view-content .profession-simple .profession-goal-native{height:18px!important}
}
@media(prefers-reduced-motion:reduce){
 #app.jobs-mode .work-view-content .profession-level-native,
#app.jobs-mode .work-view-content .profession-goal-native{transition:none!important}
}

/* Profile + city gifts polish. Scope changes to the profile/account experience. */
#app.profile-mode .profile-identity{padding:17px 19px 15px;border-color:rgba(224,198,148,.42);
 background:radial-gradient(ellipse at 15% 0%,rgba(228,188,128,.09),transparent 60%),linear-gradient(140deg,#203d50,#102536);
 box-shadow:0 8px 24px rgba(0,0,0,.14)}
#app.profile-mode .profile-head{align-items:center}
#app.profile-mode .profile-mark{border-radius:14px;background:#0d2334}
#app.profile-mode .profile-facts{margin-top:13px;padding-top:12px;border-color:rgba(212,200,173,.17)}
#app.profile-mode .profile-fact{padding:10px 14px;min-height:61px;border-color:rgba(161,197,204,.18);background:rgba(9,28,41,.7)}
#app.profile-mode .profile-fact strong{font-size:21px;line-height:1.25;letter-spacing:0;font-variant-numeric:tabular-nums}
#app.profile-mode .profile-fact small{font-size:11px}
#app.profile-mode .profile-credit{padding:13px 17px 11px;margin-top:10px;border-color:rgba(173,199,198,.23);border-radius:16px;
 background:linear-gradient(135deg,#172e40,#11283a)}
#app.profile-mode .profile-credit-head h2{font-size:15px}
#app.profile-mode .profile-credit-score{font-size:25px;direction:ltr;unicode-bidi:isolate}
/* Fixed color scale: the needle, not the colored band, moves. */
#app.profile-mode .profile-credit-note{line-height:1.55}
#app.profile-mode .profile-services-head{display:flex;align-items:end;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;margin-bottom:12px}
#app.profile-mode .profile-section-eyebrow{display:block;color:#c4ba9e;font-size:10px;font-weight:750;margin-bottom:3px}
#app.profile-mode .profile-services-head h2{color:#f3e3c4;font-size:17px}
#app.profile-mode .profile-services-head p{font-size:11px}
#app.profile-mode .profile-resources{margin-top:17px}
#app.profile-mode .profile-featured,#app.profile-mode .profile-tools-grid{gap:10px}
#app.profile-mode .profile-guide-entry{background:linear-gradient(130deg,#19374a,#10283a);border-color:rgba(167,197,204,.2);
 border-radius:13px;min-height:64px}
#app.profile-mode .profile-guide-entry.profile-updates-entry{border-color:rgba(216,186,124,.48)}
#app.profile-mode .profile-guide-entry:focus-visible,#app.profile-mode .profile-fact:focus-visible,
#app.profile-mode .profile-settings>summary:focus-visible{outline:2px solid #e8cd92;outline-offset:3px}
#app.profile-mode .profile-settings{margin-top:13px;border-radius:14px;border-color:rgba(162,188,194,.22);
 background:#11293a}
#app.profile-mode .profile-settings>summary{padding-block:5px}
#app.profile-mode .profile-settings-body{display:grid;gap:10px}
#app.profile-mode .profile-settings-body>.panel{margin:0}
#app.profile-mode .profile-settings-body .button{min-height:40px}
/* v173 — City gifts: truthful claim states, compact receipts, independent details.
   Avoid equal-height stretched cards when one milestone list opens. */
#app.profile-mode .player-rewards{
 display:grid;gap:14px;margin:12px 0 0;padding:17px!important;min-width:0;
 border-radius:20px;border:1px solid rgba(211,182,128,.38);
 background:radial-gradient(ellipse at 95% -20%,rgba(223,188,124,.13),transparent 53%),linear-gradient(156deg,#173347,#102738)!important;
 box-shadow:0 12px 28px rgba(0,0,0,.16);color:#ecf0ef
}
#app.profile-mode .rewards-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;min-width:0}
#app.profile-mode .rewards-heading>div{min-width:0}
#app.profile-mode .rewards-heading small{display:block;color:#deca9c;font-weight:750;font-size:10px;line-height:1.5}
#app.profile-mode .rewards-heading h2{margin:2px 0;color:#fff0d0;font-size:20px;line-height:1.35}
#app.profile-mode .rewards-heading p{font-size:11px;line-height:1.6;color:#b9cbd7;margin:3px 0 0}
#app.profile-mode .rewards-date{padding:7px 10px;border-radius:10px;border:1px solid rgba(177,199,199,.22);
 background:#0b2433;color:#cfdae1;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
#app.profile-mode .rewards-overview{
 display:flex;align-items:center;gap:12px;min-width:0;padding:13px 15px;border-radius:14px;
 background:linear-gradient(110deg,rgba(54,99,87,.27),rgba(16,43,54,.78));
 border:1px solid rgba(146,194,163,.26)
}
#app.profile-mode .rewards-overview-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;
 background:#244e42;border-radius:10px;color:#abebc7;font-weight:800;font-size:17px}
#app.profile-mode .rewards-overview>div{min-width:0;display:grid;gap:1px}
#app.profile-mode .rewards-overview>div>small{font-size:10px;color:#b9d5d0}
#app.profile-mode .rewards-overview>div>strong{font-size:22px;line-height:1.25;color:#e6f5e6;font-variant-numeric:tabular-nums}
#app.profile-mode .rewards-overview>div>strong span{font-size:11px;font-weight:700;color:#c0d8d2}
#app.profile-mode .rewards-overview-progress{margin-inline-start:auto;display:flex;align-items:baseline;gap:4px;white-space:nowrap;
 border-radius:10px;padding:8px 11px;background:rgba(8,31,42,.45);border:1px solid rgba(150,188,187,.17);
 color:#e6dbc2;font-size:14px;font-weight:800;direction:ltr;font-variant-numeric:tabular-nums}
#app.profile-mode .rewards-overview-progress small{font-size:10px;color:#becfd4;font-weight:600}
#app.profile-mode .rewards-panes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:11px;min-width:0}
#app.profile-mode .reward-pane{
 display:grid;grid-template-columns:minmax(0,1fr);align-content:start;align-self:start;gap:12px;
 height:auto;min-height:0;min-width:0;padding:14px;border-radius:15px;
 background:#142e40;border:1px solid rgba(142,181,193,.23);
 box-shadow:0 3px 12px rgba(0,0,0,.08);overflow:visible
}
#app.profile-mode .reward-pane.reward-login{
 grid-column:1/-1;gap:12px;padding:15px 16px;
 background:linear-gradient(117deg,rgba(214,177,106,.11),rgba(18,44,61,.84));
 border-color:rgba(213,178,114,.34)
}
#app.profile-mode .reward-pane-head{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}
#app.profile-mode .reward-pane-title{display:flex;align-items:center;gap:9px;min-width:0}
#app.profile-mode .reward-pane-title h3{margin:0;color:#f3e8d2;font-size:14px;line-height:1.55;font-weight:800}
#app.profile-mode .reward-pane-mark{display:grid;place-items:center;flex:none;
 width:27px;height:27px;border-radius:9px;background:#253e4c;border:1px solid rgba(163,188,197,.22);
 color:#dfc993;font-size:16px;font-weight:700;line-height:1}
#app.profile-mode .reward-status{font-size:11px;font-weight:700;border-radius:999px;padding:6px 10px;
 background:rgba(207,173,110,.11);border:1px solid rgba(219,182,107,.25);color:#e7d2a8}
#app.profile-mode .reward-status-claimed{background:rgba(114,182,143,.15);
 border-color:rgba(149,203,167,.3);color:#b0e6c5}
#app.profile-mode .reward-login-overview{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:14px}
#app.profile-mode .reward-login-overview>div{display:grid;gap:4px}
#app.profile-mode .reward-login-overview small,#app.profile-mode .reward-login-pay>small{font-size:11px;color:#bbced7}
#app.profile-mode .reward-figure{display:flex;align-items:baseline;gap:8px}
#app.profile-mode .reward-figure b{font-size:clamp(23px,4vw,29px);line-height:1.2;color:#f7d59a;
 font-variant-numeric:tabular-nums}
#app.profile-mode .reward-figure span{font-size:11px;color:#c8d8dd;font-weight:650}
#app.profile-mode .reward-login-pay strong{font-size:21px;line-height:1.3;color:#f5e1b8;font-variant-numeric:tabular-nums}
#app.profile-mode .reward-login-pay strong span{font-size:11px;color:#c2d2db;font-weight:600}
#app.profile-mode .reward-progress{
 --reward-fill:0%;width:100%;height:9px;min-height:9px;max-width:100%;
 border:1px solid rgba(140,182,178,.31);border-radius:999px;overflow:hidden;
 background:linear-gradient(to left,#9bd5b7 0 var(--reward-fill,0%),#081d2b var(--reward-fill,0%) 100%)!important
}
#app.profile-mode .reward-login-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 20px;
 padding-top:3px;color:#bcccd7;font-size:11px;line-height:1.65}
#app.profile-mode .reward-login-footer b{font-weight:800;color:#ead6ad}
#app.profile-mode .reward-received-count{font-size:10px;color:#a9d5c0;font-weight:750;
 padding:5px 9px;background:#153a3e;border:1px solid rgba(130,187,157,.2);border-radius:999px;white-space:nowrap}
#app.profile-mode .reward-time-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px}
#app.profile-mode .reward-time{color:#f4e2bd;font-size:21px;line-height:1.3;
 font-weight:800;font-variant-numeric:tabular-nums}
#app.profile-mode .reward-time-row>span{font-size:11px;color:#b6cbd5}
#app.profile-mode .reward-next-ticket{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px 15px;
 padding:12px 13px;border:1px solid rgba(212,184,126,.29);border-radius:11px;
 background:linear-gradient(115deg,rgba(187,143,73,.11),rgba(23,51,65,.6))}
#app.profile-mode .reward-next-ticket>div{display:grid;gap:3px}
#app.profile-mode .reward-next-ticket small{display:block;color:#d6c49e;font-size:10px;line-height:1.35}
#app.profile-mode .reward-next-ticket strong{font-size:16px;line-height:1.4;color:#f4e0b4;font-weight:800}
#app.profile-mode .reward-next-ticket strong span{font-size:11px;font-weight:600;color:#c4cfcc}
#app.profile-mode .reward-ticket-when{font-size:10px;color:#bcd0d8;line-height:1.6}
#app.profile-mode .reward-next-ticket.reward-waiting{border-color:rgba(231,179,94,.42)}
#app.profile-mode .reward-pane-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;
 padding:0 2px;font-size:11px;color:#a9c3cb}
#app.profile-mode .reward-pane-bottom strong{color:#b9e2c9;font-weight:850;font-size:13px;font-variant-numeric:tabular-nums}
#app.profile-mode .reward-pane-bottom strong small{font-size:10px;font-weight:600}
#app.profile-mode .reward-details{margin:0;min-width:0;border-top:1px solid rgba(141,177,192,.17);padding-top:11px}
#app.profile-mode .reward-details>summary{
 display:flex;align-items:center;gap:9px;min-width:0;min-height:42px;width:100%;
 padding:9px 11px;border-radius:11px;cursor:pointer;list-style:none;
 background:#1a3547;border:1px solid rgba(153,184,197,.24);color:#e9e1d1;
 transition:background .16s ease,border-color .16s ease
}
#app.profile-mode .reward-details>summary::-webkit-details-marker{display:none}
#app.profile-mode .reward-details>summary::after{content:none}
#app.profile-mode .reward-details>summary:hover{background:#244459;border-color:rgba(205,181,131,.46)}
#app.profile-mode .reward-details>summary:focus-visible{outline:2px solid #e8cc93;outline-offset:2px}
#app.profile-mode .reward-details-name{font-size:12px;font-weight:800;white-space:nowrap}
#app.profile-mode .reward-details-count{margin-inline-start:auto;color:#b9d2cf;font-weight:750;
 font-size:11px;white-space:nowrap}
#app.profile-mode .reward-details-chevron{
 flex:none;display:block;width:8px;height:8px;margin-inline:5px 3px;
 border-bottom:2px solid #d5c79f;border-inline-end:2px solid #d5c79f;
 transform:rotate(45deg);transition:transform .16s ease
}
#app.profile-mode .reward-details[open] .reward-details-chevron{transform:rotate(225deg)}
#app.profile-mode .reward-milestones{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin-top:10px}
#app.profile-mode .reward-step{
 display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:9px;
 min-width:0;padding:9px 11px;border-radius:11px;
 border:1px solid rgba(145,176,189,.15);background:#1a3244
}
#app.profile-mode .reward-step-icon{width:26px;height:26px;display:grid;place-items:center;
 border-radius:9px;color:#9fb7c0;background:#233c4a;font-size:16px;font-weight:900}
#app.profile-mode .reward-step-desc{display:grid;align-content:center;min-width:0;gap:2px}
#app.profile-mode .reward-step-goal{color:#e1e9e8;font-size:12px;font-weight:750;unicode-bidi:isolate}
#app.profile-mode .reward-step-state{color:#a4bac4;font-size:10px;line-height:1.5}
#app.profile-mode .reward-step-credits{font-size:14px;color:#ecd3a5;font-weight:850;
 white-space:nowrap;text-align:end;font-variant-numeric:tabular-nums}
#app.profile-mode .reward-step-credits small{font-size:10px;color:#c3c7bf;font-weight:600}
#app.profile-mode .reward-step-claimed{background:rgba(43,94,76,.3);border-color:rgba(115,193,147,.31)}
#app.profile-mode .reward-step-claimed .reward-step-icon{background:#245542;color:#bff2cf}
#app.profile-mode .reward-step-claimed .reward-step-state{color:#a3e6bd;font-weight:800}
#app.profile-mode .reward-step-next{background:rgba(155,119,57,.16);border-color:rgba(221,184,113,.42)}
#app.profile-mode .reward-step-next .reward-step-icon{background:#604b2e;color:#ffe4ae}
#app.profile-mode .reward-step-next .reward-step-state{color:#e9cf9c;font-weight:800}
#app.profile-mode .reward-step-pending{background:rgba(160,113,57,.16);border-color:rgba(224,154,81,.4)}
#app.profile-mode .reward-step-pending .reward-step-state{color:#efd096;font-weight:750}
#app.profile-mode .rewards-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;
 border-top:1px solid rgba(139,179,193,.17);padding-top:11px;font-size:11px;line-height:1.65;color:#b2c6d0}
#app.profile-mode .rewards-foot b{color:#d9e6d6;font-variant-numeric:tabular-nums}
#app.profile-mode .rewards-note{margin:0;font-size:12px;color:#bdcfd8;line-height:1.75}
@media(max-width:720px){
 #app.profile-mode .rewards-panes{grid-template-columns:minmax(0,1fr)}
 #app.profile-mode .reward-pane.reward-login{grid-column:1}
 #app.profile-mode .player-rewards{padding:13px!important;gap:11px}
 #app.profile-mode .reward-pane{padding:12px}
 #app.profile-mode .rewards-overview{padding:11px 12px}
}
@media(max-width:380px){
 #app.profile-mode .rewards-heading{flex-wrap:wrap}
 #app.profile-mode .rewards-date{padding:5px 8px}
 #app.profile-mode .reward-next-ticket{align-items:start}
 #app.profile-mode .reward-step{gap:6px;padding:8px}
 #app.profile-mode .reward-step-credits{font-size:12px}
 #app.profile-mode .rewards-overview>div>strong{font-size:19px}
 #app.profile-mode .reward-status{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 #app.profile-mode .reward-details>summary,#app.profile-mode .reward-details-chevron{transition:none}
}
.home-rewards-link{margin:12px 0;border:1px solid rgba(181,156,101,.38);border-radius:14px;
 padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;
 background:linear-gradient(115deg,#193443,#0d2432)}
.home-rewards-link>div{display:grid;gap:5px;min-width:0}
.home-rewards-link small{font-size:11px;color:#debd88}
.home-rewards-link strong{font-size:13px;color:#f5f4ee}
.home-rewards-link button{border:1px solid rgba(203,185,138,.45);background:#25475a;border-radius:10px;
 padding:9px 11px;color:#f6f3e6;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
.home-rewards-link button:focus-visible{outline:2px solid #cbb57e;outline-offset:3px}
@media(max-width:720px){
 #app.profile-mode .rewards-panes{grid-template-columns:minmax(0,1fr)}
 #app.profile-mode .reward-pane.reward-login{grid-column:1}
 #app.profile-mode .player-rewards{padding:12px!important;gap:11px}
 #app.profile-mode .reward-pane{padding:12px;gap:10px}
}
@media(max-width:380px){
 #app.profile-mode .profile-fact{padding:8px;min-height:58px}
 #app.profile-mode .profile-fact strong{font-size:18px}
 #app.profile-mode .profile-fact-arrow{inset-inline-end:5px}
 #app.profile-mode .profile-identity{padding:13px 11px}
 #app.profile-mode .rewards-heading h2{font-size:18px}
 #app.profile-mode .reward-next strong{font-size:16px}
 #app.profile-mode .reward-step{grid-template-columns:minmax(40px,1fr) minmax(63px,1fr) auto;padding:7px}
}
@media(prefers-reduced-motion:reduce){
 #app.profile-mode .profile-guide-entry,#app.profile-mode .profile-fact{transition:none!important}
}



/* v176 • Daily gifts: calm four-track dashboard, legible next goal, no equal-height accordions. */
#app.profile-mode .player-rewards{max-width:100%;min-width:0}
#app.profile-mode .rewards-heading{padding:4px 2px 8px;align-items:center}
#app.profile-mode .rewards-heading h2{font-size:clamp(19px,2.4vw,25px);letter-spacing:0}
#app.profile-mode .rewards-heading p{max-width:48ch;line-height:1.8}
#app.profile-mode .rewards-overview{padding:16px 18px;border-radius:16px;
 background:linear-gradient(118deg,#1e4c44,#13313b 70%,#102c3b);
 border-color:rgba(149,207,180,.32)}
#app.profile-mode .rewards-overview>div>strong{font-size:clamp(21px,3vw,29px)}
#app.profile-mode .rewards-panes{align-items:start;grid-auto-rows:auto;gap:12px}
#app.profile-mode .reward-pane{min-width:0;align-self:start;align-content:start;
 gap:10px;padding:14px 15px;border-radius:16px;
 background:linear-gradient(140deg,#1b3549,#142b3d);box-shadow:none}
#app.profile-mode .reward-pane.reward-shift{grid-column:1/-1;
 border-color:rgba(220,184,116,.4);background:linear-gradient(122deg,#273b48,#172e3c 62%,#1d3744)}
#app.profile-mode .reward-shift .reward-pane-mark{color:#f4d497;background:#50442f;border-color:#89724a}
#app.profile-mode .reward-shift .reward-received-count{color:#f3d6a8;background:rgba(117,82,45,.28);border-color:rgba(207,163,94,.24)}
#app.profile-mode .reward-pane-head{gap:7px}
#app.profile-mode .reward-pane-title h3{font-size:14px}
#app.profile-mode .reward-time-row{align-items:baseline}
#app.profile-mode .reward-time{font-size:clamp(21px,3vw,26px);letter-spacing:.1px}
#app.profile-mode .reward-meter-label{display:flex;align-items:center;justify-content:space-between;gap:10px;
 font-size:11px;color:#aac5d2;margin-bottom:-5px}
#app.profile-mode .reward-meter-label b{color:#eacb90;font-weight:800;font-variant-numeric:tabular-nums}
#app.profile-mode .reward-progress{height:8px;min-height:8px;border-color:rgba(143,188,179,.3)}
#app.profile-mode .reward-next-ticket{padding:10px 12px;border-radius:11px;gap:8px;
 background:rgba(164,130,79,.09)}
#app.profile-mode .reward-next-ticket strong{font-size:17px}
#app.profile-mode .reward-ticket-when{max-width:100%;overflow-wrap:anywhere}
#app.profile-mode .reward-pane-bottom{padding:5px 1px 3px}
#app.profile-mode .reward-details{margin:0;align-self:start;padding-top:8px}
#app.profile-mode .reward-details>summary{min-height:40px;padding:9px 12px;background:#213a4c}
#app.profile-mode .reward-details[open]>summary{background:#294557;border-color:rgba(225,197,139,.35)}
#app.profile-mode .reward-milestones{gap:6px}
#app.profile-mode .reward-step{grid-template-columns:25px minmax(0,1fr) auto;gap:8px;padding:9px 10px}
#app.profile-mode .reward-step-icon{width:24px;height:24px}
#app.profile-mode .reward-step-credits{font-size:13px}
#app.profile-mode .reward-login-overview{gap:12px}
#app.profile-mode .rewards-foot{gap:7px 18px}
@media(max-width:720px){
 #app.profile-mode .rewards-heading{align-items:start}
 #app.profile-mode .rewards-panes{grid-template-columns:minmax(0,1fr)}
 #app.profile-mode .reward-pane.reward-shift{grid-column:1}
 #app.profile-mode .rewards-overview{gap:9px;padding:12px 11px}
 #app.profile-mode .rewards-overview-progress{padding:7px 8px;font-size:12px}
 #app.profile-mode .reward-pane{padding:12px}
 #app.profile-mode .reward-step{grid-template-columns:25px minmax(0,1fr) auto}
}
@media(max-width:380px){
 #app.profile-mode .rewards-overview>div>strong{font-size:19px}
 #app.profile-mode .rewards-overview>div>strong span{font-size:10px}
 #app.profile-mode .reward-pane-head{align-items:start}
 #app.profile-mode .reward-received-count{white-space:normal;text-align:center}
 #app.profile-mode .reward-step{grid-template-columns:25px minmax(0,1fr) auto;gap:6px;padding:8px}
 #app.profile-mode .reward-step-credits{font-size:12px}
 #app.profile-mode .reward-next-ticket{flex-direction:column;align-items:stretch}
}


/* v178: achievements & daily gift hub; the profile contains only one compact doorway. */
#app.profile-mode .profile-rewards-entry{padding:0!important;overflow:hidden;
 border:1px solid rgba(213,180,116,.37);border-radius:15px;
 background:linear-gradient(115deg,#273c47,#173443)}
#app.profile-mode .profile-rewards-open{width:100%;min-width:0;min-height:78px;
 display:flex;align-items:center;gap:13px;text-align:start;cursor:pointer;
 border:0;background:transparent;color:#eef0e7;padding:13px 16px}
#app.profile-mode .profile-rewards-open:hover{background:rgba(221,188,125,.065)}
#app.profile-mode .profile-rewards-open:focus-visible{outline:2px solid #e9c87e;outline-offset:-3px}
#app.profile-mode .profile-rewards-symbol{display:grid;place-items:center;flex:0 0 45px;
 width:45px;height:45px;border-radius:13px;background:linear-gradient(140deg,#665338,#3a4e50);
 border:1px solid rgba(223,180,93,.4);color:#f6d99d;font-size:25px;line-height:1}
#app.profile-mode .profile-rewards-copy{display:grid;gap:5px;min-width:0;flex:1}
#app.profile-mode .profile-rewards-copy strong{font-size:15px;color:#f7e5c2}
#app.profile-mode .profile-rewards-copy small{font-size:11px;color:#b8d1d8;line-height:1.6}
#app.profile-mode .profile-rewards-arrow{font-size:27px;color:#e4c992;line-height:1}
#app.rewards-mode .rewards-screen{display:grid;gap:14px;min-width:0;max-width:100%;padding-bottom:18px}
#app.rewards-mode .rewards-screen-intro{padding:17px 19px;border-radius:17px;
 background:radial-gradient(circle at 14% 5%,rgba(226,181,105,.16),transparent 36%),linear-gradient(125deg,#253f4d,#112b3e);
 border:1px solid rgba(209,169,107,.29)}
#app.rewards-mode .rewards-screen-intro h2{font-size:clamp(21px,3vw,27px);margin:5px 0;color:#f9e3bd}
#app.rewards-mode .rewards-screen-intro p{font-size:12px;line-height:1.8;color:#bfd3dc;margin:0 0 11px}
#app.rewards-mode .rewards-screen-actions{display:flex;justify-content:flex-end}
#app.rewards-mode .rewards-screen-actions button{min-height:38px;font-size:12px}
#app.rewards-mode .rewards-screen-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
 padding:5px;background:#0d2535;border-radius:15px;border:1px solid rgba(149,181,187,.22)}
#app.rewards-mode .rewards-screen-tabs button{cursor:pointer;min-width:0;border:1px solid transparent;
 background:transparent;color:#b7ccd4;font-weight:750;border-radius:11px;padding:12px 7px;font-size:13px}
#app.rewards-mode .rewards-screen-tabs button.is-active{background:linear-gradient(120deg,#384a50,#284754);
 border-color:rgba(229,194,128,.39);color:#f8ddaa;box-shadow:0 2px 10px rgba(0,0,0,.1)}
#app.rewards-mode .rewards-screen-tabs button:focus-visible{outline:2px solid #edcc8f;outline-offset:2px}
#app.rewards-mode .player-rewards{margin:0}
#app.rewards-mode .reward-achievements{display:grid;gap:16px;min-width:0;
 background:linear-gradient(140deg,#172e3e,#112737);padding:17px;border-radius:17px}
#app.rewards-mode .achievements-intro{display:flex;justify-content:space-between;gap:12px;
 flex-wrap:wrap;align-items:center;border-bottom:1px solid rgba(161,191,192,.18);padding-bottom:14px}
#app.rewards-mode .achievements-intro>div{max-width:53ch;min-width:0}
#app.rewards-mode .achievements-intro small{font-size:11px;color:#dbbd8d}
#app.rewards-mode .achievements-intro h2{font-size:18px;margin:5px 0;color:#f0d59e;line-height:1.5}
#app.rewards-mode .achievements-intro p{font-size:12px;line-height:1.9;color:#bfd1d9;margin:3px 0}
#app.rewards-mode .achievements-total{display:grid;gap:4px;padding:12px;border-radius:12px;
 background:#213e4d;border:1px solid rgba(176,203,199,.2)}
#app.rewards-mode .achievements-total strong{font-size:23px;color:#f8e4bc;white-space:nowrap;font-variant-numeric:tabular-nums}
#app.rewards-mode .achievements-stats{display:flex;flex-wrap:wrap;gap:9px}
#app.rewards-mode .achievements-stats>span{padding:9px 12px;border:1px solid rgba(132,191,162,.22);
 background:#1c3c42;border-radius:11px;color:#b9d1ca;font-size:12px}
#app.rewards-mode .achievements-stats b{color:#bff1d0;font-size:15px;font-variant-numeric:tabular-nums}
#app.rewards-mode .achievement-next{display:grid;gap:8px;border:1px solid rgba(221,185,112,.31);
 padding:14px;border-radius:13px;background:linear-gradient(110deg,#3c3c38,#1a3340)}
#app.rewards-mode .achievement-next small{color:#dfc796;font-size:11px}
#app.rewards-mode .achievement-next strong{color:#fff0cb;font-size:18px}
#app.rewards-mode .achievement-next>span{color:#c6d9df;font-size:11px}
#app.rewards-mode .achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#app.rewards-mode .achievement-tile{display:grid;grid-template-columns:36px minmax(0,1fr);
 align-items:center;gap:11px;min-width:0;padding:13px;border-radius:13px;
 border:1px solid rgba(154,183,189,.17);background:linear-gradient(115deg,#1c3647,#162c3c)}
#app.rewards-mode .achievement-medal{display:grid;place-items:center;
 width:36px;height:36px;border-radius:11px;color:#bdc5cb;background:#2c4051;font-size:19px}
#app.rewards-mode .achievement-tile h3{margin:3px 0;color:#e8edf0;font-size:14px}
#app.rewards-mode .achievement-tile small,#app.rewards-mode .achievement-tile p{font-size:10px;line-height:1.65;color:#abc5d1;margin:0}
#app.rewards-mode .achievement-tile>strong{grid-column:2;color:#f3dbaa;font-size:16px;font-variant-numeric:tabular-nums}
#app.rewards-mode .achievement-tile>strong small{color:#c2cfd2}
#app.rewards-mode .achievement-tile.is-earned{background:linear-gradient(115deg,#24483d,#18373d);border-color:rgba(151,209,166,.35)}
#app.rewards-mode .achievement-tile.is-earned .achievement-medal{background:#365f4a;color:#d8f5cf}
#app.rewards-mode .achievement-tile.is-pending{border-color:rgba(228,179,94,.4)}
#app.rewards-mode .achievement-tile.is-pending .achievement-medal{color:#f7d7a0}
#app.rewards-mode .achievement-finished{color:#b9e6c9;padding:12px;border-radius:10px;background:#254b3d}
@media(max-width:720px){
 #app.rewards-mode .achievement-grid{grid-template-columns:minmax(0,1fr)}
 #app.rewards-mode .rewards-screen-intro,#app.rewards-mode .reward-achievements{padding:14px}
 #app.rewards-mode .achievement-tile{grid-template-columns:36px minmax(0,1fr) auto}
 #app.rewards-mode .achievement-tile>strong{grid-column:3}
}
@media(max-width:380px){
 #app.profile-mode .profile-rewards-open{padding:11px;gap:9px}
 #app.profile-mode .profile-rewards-symbol{flex-basis:39px;width:39px;height:39px}
 #app.rewards-mode .achievement-tile{grid-template-columns:29px minmax(0,1fr);gap:7px}
 #app.rewards-mode .achievement-medal{width:29px;height:29px}
 #app.rewards-mode .achievement-tile>strong{grid-column:2}
 #app.rewards-mode .rewards-screen-tabs button{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 #app.rewards-mode .rewards-screen-tabs button,#app.profile-mode .profile-rewards-open{transition:none}
}

/* PWA v179 — city knowledge center and compact rewards dashboard. */
#app .help-floating{position:fixed;right:max(17px,calc((100vw - 980px)/2 + 17px));bottom:calc(99px + env(safe-area-inset-bottom,0px));
 z-index:37;display:flex;align-items:center;justify-content:center;gap:8px;
 width:auto;min-width:46px;min-height:46px;padding:8px 12px;border-radius:999px;
 background:linear-gradient(145deg,#e1bf83,#af8750);border:1px solid #ffe2a5;
 color:#142637;font-weight:900;font-size:21px;box-shadow:0 8px 24px rgba(0,0,0,.36)}
#app .help-floating span{font-size:11px;font-weight:850}
#app .help-floating:focus-visible{outline:3px solid #fff;outline-offset:3px}
#app .city-help-page{display:grid;gap:13px;min-width:0;padding-bottom:18px}
#app .city-help-intro{padding:18px;background:linear-gradient(125deg,#294350,#173447);
 border:1px solid rgba(219,183,120,.33);border-radius:17px}
#app .city-help-intro h2{margin:5px 0;color:#f6deb3;font-size:clamp(21px,3vw,27px)}
#app .city-help-intro>p{margin:0;color:#c5d8e0;font-size:12px;line-height:1.9}
#app .help-quick-tip{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;
 gap:12px;padding:11px 12px;border:1px solid #d3ad6f59;border-radius:13px;background:#102c3c;margin-top:14px}
#app .help-tip-symbol{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;
 font-weight:900;font-size:21px;color:#f6d89f;background:#5b4b38}
#app .help-quick-tip strong{font-size:13px;color:#f6e2c1}
#app .help-quick-tip p{font-size:11px;color:#bed2db;line-height:1.65;margin:3px 0 0}
#app .help-quick-tip button{border:1px solid #b49e70;background:#2e4855;
 color:#ffe5ae;border-radius:9px;font-size:12px;font-weight:800;padding:8px 11px;white-space:nowrap}
#app .city-help-content{padding:16px;border-radius:16px;background:#162e41;min-width:0}
#app .city-help-content label{display:block;font-size:13px;font-weight:850;color:#eed7ac;margin-bottom:8px}
#app #help-search{display:block;width:100%;min-width:0;max-width:100%;min-height:44px;
 background:#0b2332;border:1px solid #b2cbd259;color:#f5f0e7;border-radius:11px;
 outline:none;padding:10px 13px;direction:rtl}
#app #help-search:focus{border-color:#f1d098;box-shadow:0 0 0 2px #ead49b20}
#app .help-categories{display:flex;flex-wrap:wrap;gap:6px;padding:13px 0 10px}
#app .help-categories button{border-radius:999px;padding:7px 11px;min-height:33px;
 border:1px solid #a7c0c23a;background:#203a4c;color:#c3d4dc;font-size:11px}
#app .help-categories button.is-selected{background:#45564b;border-color:#e3c38998;color:#ffefcd}
#app .help-categories button:focus-visible,#app .help-topic-trigger:focus-visible,
#app .help-go:focus-visible,#app .help-quick-tip button:focus-visible{outline:2px solid #f0d197;outline-offset:2px}
#app .help-results{display:grid;gap:8px}
#app .help-topic{border:1px solid #abc0c232;border-radius:12px;overflow:hidden;background:#1b3547;min-width:0}
#app .help-topic.is-open{border-color:#e3c1877d;background:#203a4b}
#app .help-topic-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;
 width:100%;padding:12px 13px;background:transparent;border:none;text-align:right;color:#f4e8d5}
#app .help-topic-trigger>span:first-child{display:grid;gap:4px;min-width:0}
#app .help-topic-trigger small{font-size:10px;color:#a8c9d0}
#app .help-topic-trigger strong{font-size:13px;line-height:1.6}
#app .help-topic-trigger>span:last-child{font-size:21px;color:#edce92}
#app .help-topic-answer{padding:0 13px 14px;color:#ccdae2;font-size:12px;line-height:1.8}
#app .help-topic-answer p{margin:0 0 9px}
#app .help-topic-answer ol{margin:0 0 12px;padding-right:22px}
#app .help-topic-answer li{margin:5px 0}
#app .help-go{font-size:12px;min-height:39px}
#app .help-no-results{font-size:12px;color:#becfd7;line-height:1.8}
#app .help-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;
 padding:12px;border:1px solid #9fbdc032;border-radius:12px;background:#142b3b}
#app .help-footer p{font-size:12px;color:#bbccd7;margin:0}
#app .help-footer button{flex:none;font-size:11px}
#app.rewards-mode .rewards-screen{gap:11px}
#app.rewards-mode .rewards-screen-intro{padding:12px 15px}
#app.rewards-mode .rewards-screen-intro h2{font-size:18px}
#app.rewards-mode .rewards-screen-intro p{margin-bottom:6px}
#app.rewards-mode .rewards-screen-tabs{gap:5px}
#app.rewards-mode .player-rewards{padding:14px!important;border-radius:16px}
#app.rewards-mode .rewards-heading{margin-bottom:0;padding-bottom:2px}
#app.rewards-mode .rewards-heading h2{font-size:19px}
#app.rewards-mode .rewards-overview{padding:12px 14px}
#app.rewards-mode .rewards-panes{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}
#app.rewards-mode .reward-pane.reward-login,#app.rewards-mode .reward-pane.reward-shift{grid-column:auto}
#app.rewards-mode .reward-pane{padding:12px;gap:8px;min-width:0}
#app.rewards-mode .reward-login-footer{font-size:10px}
#app.rewards-mode .reward-next-ticket{padding:9px 11px}
#app.rewards-mode .reward-next-ticket strong{font-size:15px}
#app.rewards-mode .rewards-foot{font-size:10px}
@media(max-width:720px){
 #app .help-floating{bottom:calc(91px + env(safe-area-inset-bottom,0px));
 right:max(11px,env(safe-area-inset-right,0px));width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
 #app .help-floating span{display:none}
 #app .city-help-intro,#app .city-help-content{padding:12px}
 #app .help-quick-tip{gap:9px}
 #app.rewards-mode .rewards-panes{grid-template-columns:minmax(0,1fr)}
 #app.rewards-mode .reward-pane.reward-login,#app.rewards-mode .reward-pane.reward-shift{grid-column:1}
 #app.rewards-mode .player-rewards{padding:11px!important}
}
@media(max-width:380px){
 #app .help-quick-tip{grid-template-columns:30px minmax(0,1fr)}
 #app .help-quick-tip button{grid-column:2;justify-self:start}
 #app .help-footer{flex-direction:column;align-items:stretch}
 #app .help-footer button{width:100%}
 #app .rewards-overview{flex-wrap:wrap}
 #app .reward-pane-title h3{font-size:12px}
}
@media(prefers-reduced-motion:reduce){#app .help-topic-trigger,#app .help-floating{transition:none}}


/* Small optional discovery card: visible only before first bag purchase. */
#app .home-discovery{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;
 padding:12px 14px;border:1px solid rgba(219,182,108,.38);border-radius:14px;
 background:linear-gradient(110deg,#253f47,#162d3b)}
#app .home-discovery>div{min-width:0;display:grid;gap:3px}
#app .home-discovery-eyebrow{font-size:10px;color:#e0bf83;font-weight:800}
#app .home-discovery strong{font-size:13px;line-height:1.5;color:#f7e5c4}
#app .home-discovery small{font-size:11px;line-height:1.7;color:#bdd0d9}
#app .home-discovery button{border:1px solid #d2b47b71;border-radius:10px;background:#364b50;
 color:#f7dbaa;font-size:12px;font-weight:800;padding:9px 11px;white-space:nowrap;flex:none}
#app .home-discovery button:focus-visible{outline:2px solid #f6d9a0;outline-offset:2px}
@media(max-width:380px){#app .home-discovery{flex-direction:column;align-items:stretch}
 #app .home-discovery button{align-self:flex-start}}


/* v180 city help: comprehensive but compact, RTL-first and no forced filter on entry. */
#app.help-mode .hero{padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:9px}
#app.help-mode .hero-headline{margin-top:4px}
#app.help-mode .hero-headline .title{font-size:19px!important;line-height:1.25}
#app.help-mode .hero-headline .sub{font-size:11px;line-height:1.45}
#app.help-mode .city-help-page{gap:12px}
#app.help-mode .city-help-intro{padding:18px 20px;border:1px solid rgba(239,200,128,.33);
 background:radial-gradient(circle at 5% 18%,rgba(207,176,110,.14),transparent 43%),
 linear-gradient(126deg,#1b3548,#112c3b 63%,#163d46);border-radius:17px}
#app.help-mode .help-intro-line{display:flex;align-items:center;justify-content:space-between;gap:8px;
 color:#edd4a4;font-size:10px;line-height:1.5;font-weight:800}
#app.help-mode .help-intro-count{padding:3px 9px;border:1px solid rgba(218,183,113,.36);
 border-radius:50px;background:rgba(220,171,94,.08);color:#e2caa0}
#app.help-mode .city-help-intro h2{font-size:clamp(20px,3vw,27px);font-weight:850;line-height:1.4;margin:7px 0 3px;color:#ffebc5}
#app.help-mode .city-help-intro>p{font-size:12px;line-height:1.75;color:#c7d7df;margin:0 0 15px}
#app.help-mode .help-search-label{display:block;font-weight:800;font-size:11px;line-height:1.5;color:#eddbbb;margin:0 0 7px}
#app.help-mode .help-search-box{position:relative;display:flex;align-items:center;gap:6px;
 border:1px solid rgba(186,213,217,.42);border-radius:13px;background:#091f2e;min-height:52px;
 padding:0 13px;box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}
#app.help-mode .help-search-box:focus-within{border-color:#f3d392;box-shadow:0 0 0 2px rgba(246,203,134,.13)}
#app.help-mode .help-search-symbol{color:#e7d0a1;font-size:23px;font-weight:900;flex:0 0 24px;line-height:1}
#app.help-mode #help-search{background:transparent;border:0;box-shadow:none;border-radius:0;
 color:#f9f3e7;min-height:50px;padding:9px 2px;flex:1;font-size:13px;outline:0;min-width:0}
#app.help-mode #help-search::placeholder{color:#88a3b4;opacity:1}
#app.help-mode .help-search-clear{flex:none;border:0;background:rgba(160,183,192,.18);color:#f3e5cd;
 width:29px;height:29px;border-radius:9px;font-size:22px;line-height:1}
#app.help-mode .help-search-clear[hidden]{display:none}
#app.help-mode .help-search-examples{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:10px}
#app.help-mode .help-search-examples span{color:#acbeca;font-size:11px}
#app.help-mode .help-search-examples button{min-height:29px;padding:4px 10px;border-radius:30px;
 background:#2a4351;color:#f3dfb6;border:1px solid rgba(203,184,151,.27);font-size:11px;font-weight:750}
#app.help-mode .help-personal{display:grid;grid-template-columns:40px minmax(0,1fr) auto;
 align-items:center;gap:12px;min-width:0;border-radius:14px;padding:13px 15px;
 border:1px solid rgba(174,207,180,.28);background:linear-gradient(115deg,#25463d,#18383e 58%,#163344)}
#app.help-mode .help-personal-mark{display:grid;place-items:center;width:40px;height:40px;flex:none;
 border-radius:12px;border:1px solid #d5bb833d;background:#5d62474d;color:#f4d79c;font-size:23px}
#app.help-mode .help-personal>div{min-width:0;display:grid;gap:2px}
#app.help-mode .help-personal small{font-size:10px;color:#d1e2cb;font-weight:800}
#app.help-mode .help-personal strong{color:#fff0cd;font-size:14px;line-height:1.5}
#app.help-mode .help-personal p{color:#bed7d7;font-size:11px;line-height:1.65;margin:0}
#app.help-mode .help-personal button{white-space:nowrap;min-height:38px;min-width:0;
 border-radius:10px;border:1px solid rgba(234,201,137,.48);background:#344e4a;
 color:#fce6b7;padding:8px 11px;font-size:11px;font-weight:850}
#app.help-mode .help-shortcuts{display:grid;gap:11px;padding:3px 0 1px}
#app.help-mode .help-section-label{display:flex;justify-content:space-between;align-items:end;gap:12px}
#app.help-mode .help-section-label small{color:#d9b983;display:block;font-size:10px;font-weight:850;line-height:1.4}
#app.help-mode .help-section-label h3{font-size:17px;margin:3px 0 0;line-height:1.5;color:#f7e2bd}
#app.help-mode .help-section-label>span{color:#a8c0cf;font-size:10px;white-space:nowrap}
#app.help-mode .help-popular-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}
#app.help-mode .help-popular-card{display:flex;align-items:center;text-align:right;min-width:0;gap:11px;
 padding:12px 13px;min-height:75px;border-radius:13px;border:1px solid rgba(164,191,199,.28);
 background:linear-gradient(127deg,#20394b,#182f40);color:#eaf0ed}
#app.help-mode .help-popular-card:hover{background:#29485b;border-color:#d7b87f80}
#app.help-mode .help-popular-number{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;
 border:1px solid rgba(236,204,147,.35);border-radius:11px;background:#4b4c43;color:#f4d6a0;
 font-size:12px;font-weight:850;direction:ltr}
#app.help-mode .help-popular-info{display:grid;gap:3px;min-width:0;flex:1}
#app.help-mode .help-popular-info small{color:#99bdcb;font-size:10px;line-height:1.4}
#app.help-mode .help-popular-info strong{color:#f4e6cc;font-size:12px;line-height:1.55;font-weight:800}
#app.help-mode .help-popular-arrow{color:#ebce91;font-size:21px}
#app.help-mode .city-help-content{padding:16px;border:1px solid rgba(162,190,200,.2);border-radius:16px;
 background:linear-gradient(145deg,#172f41,#132b3c)}
#app.help-mode .help-browse-heading{margin-bottom:2px}
#app.help-mode .help-context-note{color:#9bb8c6;font-size:11px;line-height:1.6;margin:5px 0 0}
#app.help-mode .help-categories{display:flex;flex-wrap:wrap;gap:6px;padding:13px 0 14px}
#app.help-mode .help-categories button{display:flex;align-items:center;gap:6px;min-height:36px;
 border-radius:10px;padding:7px 10px;font-size:11px;background:#20394a;
 border:1px solid rgba(158,192,201,.23);color:#c2d4dc;font-weight:750}
#app.help-mode .help-filter-count{color:#dfc38e;font-size:10px;opacity:.85}
#app.help-mode .help-categories button.is-selected{background:#4b554d;color:#fff1ca;border-color:#c7a875}
#app.help-mode .help-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
#app.help-mode .help-topic{margin:0;min-width:0;border-color:rgba(160,192,201,.26);background:#1e3749}
#app.help-mode .help-topic.is-open{grid-column:1/-1;border-color:#dfc18a9e;background:#233e50}
#app.help-mode .help-topic-trigger{min-height:68px;padding:12px 13px}
#app.help-mode .help-topic-title{display:grid;min-width:0;gap:4px}
#app.help-mode .help-topic-title small{font-size:10px;line-height:1.35;color:#a9c5d2}
#app.help-mode .help-topic-title strong{font-size:12px;line-height:1.65;color:#f6ead6}
#app.help-mode .help-topic-chevron{display:grid;place-items:center;min-width:25px;height:25px;
 border:1px solid rgba(167,191,197,.25);border-radius:9px;background:#2a4655}
#app.help-mode .help-topic-answer{padding:0 16px 15px}
#app.help-mode .help-topic-answer>p{font-size:12px;line-height:1.9;color:#d3e1e6}
#app.help-mode .help-answer-title{font-size:12px;font-weight:850;color:#f5d69c;margin:14px 0 7px}
#app.help-mode .help-topic-answer ol{padding:0 21px 0 0;margin:0 0 14px;display:grid;gap:7px}
#app.help-mode .help-topic-answer li{padding:0 2px;color:#d8e0e6}
#app.help-mode .help-answer-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#app.help-mode .help-answer-bottom>span{font-size:10px;color:#9ebbc5}
#app.help-mode .help-go{min-height:41px;font-size:12px;font-weight:800}
#app.help-mode .help-see-all,#app.help-mode .help-empty{grid-column:1/-1}
#app.help-mode .help-see-all{padding:12px;border:1px dashed #d3b88477;border-radius:11px;
 color:#f2dcb8;background:#263d4b;font-size:12px;font-weight:800;width:100%;min-height:43px}
#app.help-mode .help-empty{padding:20px;border-radius:12px;background:#1d3949;text-align:center}
#app.help-mode .help-empty strong{color:#f2e3c9;font-size:14px}
#app.help-mode .help-empty p{color:#bbcdd6;font-size:12px;margin:5px 0 13px}
#app.help-mode .help-empty button{border:1px solid #e3ca9580;border-radius:9px;padding:8px 12px;
 color:#f7e5c5;background:#354a51;font-size:12px}
#app.help-mode .help-footer{padding:13px 14px;background:#162f40}
#app.help-mode .help-footer strong{font-size:13px;color:#ead5ad}
#app.help-mode .help-footer p{margin:3px 0 0;color:#a8c4d1}
#app.help-mode :is(.help-search-examples button,.help-personal button,.help-popular-card,.help-see-all,
 .help-topic-trigger,.help-categories button,.help-search-clear,.help-empty button):focus-visible{
 outline:2px solid #f2d18f;outline-offset:2px}
@media(max-width:720px){
 #app.help-mode .hero{padding-block:9px}
 #app.help-mode .city-help-page{gap:11px}
 #app.help-mode .city-help-intro{padding:14px}
 #app.help-mode .help-personal{grid-template-columns:35px minmax(0,1fr);gap:9px;padding:11px}
 #app.help-mode .help-personal-mark{width:35px;height:35px}
 #app.help-mode .help-personal button{grid-column:2;justify-self:start}
 #app.help-mode .help-popular-grid{grid-template-columns:minmax(0,1fr)}
 #app.help-mode .help-popular-card{min-height:61px;padding:9px 11px}
 #app.help-mode .help-results{grid-template-columns:minmax(0,1fr)}
 #app.help-mode .help-topic.is-open{grid-column:auto}
 #app.help-mode .help-topic-trigger{min-height:59px}
 #app.help-mode .city-help-content{padding:12px}
 #app.help-mode .help-categories{gap:5px;padding:10px 0 12px}
 #app.help-mode .help-categories button{min-height:33px;padding:6px 9px}
}
@media(max-width:380px){
 #app.help-mode .city-help-intro{padding:12px}
 #app.help-mode .city-help-intro>p{font-size:11px}
 #app.help-mode .help-search-examples{gap:5px}
 #app.help-mode .help-search-examples button{padding:4px 8px}
 #app.help-mode .help-section-label h3{font-size:15px}
 #app.help-mode .help-personal strong{font-size:12px}
 #app.help-mode .help-browse-heading{align-items:start}
}
@media(prefers-reduced-motion:reduce){
 #app.help-mode :is(.help-topic,.help-popular-card,.help-personal button,.help-see-all){transition:none;animation:none}
}

/* Search is the primary path: don't bury filtered results behind discovery. */
#app.help-mode .city-help-page.is-filtered .help-personal,
#app.help-mode .city-help-page.is-filtered .help-shortcuts{display:none}
#app.help-mode .city-help-page.is-filtered .city-help-content{margin-top:0}


/* PWA v181 | Player-only release highlights, calm historic archive */
#app .updates-intro>p{margin:5px 0 11px;max-width:56ch}
#app .updates-list{display:grid;gap:10px;margin:12px 0 15px}
#app .updates-item{min-width:0}
#app .updates-archive{margin:6px 0 calc(110px + env(safe-area-inset-bottom,0px));padding:12px;
 border:1px solid #adc6cc47;border-radius:15px;background:#0f2435}
#app .updates-archive>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;
 color:#eed7b2;font-size:13px;font-weight:750}
#app .updates-archive>summary:focus-visible{outline:2px solid #e4c28b;outline-offset:4px}
#app .updates-archive-list{margin:8px 0 0}
#app .updates-archive .updates-item{background:#102536;border-color:#b4ccd326}
#app .updates-archive .updates-item-state{color:#aebfc8}
@media(max-width:400px){#app .updates-archive{padding:10px;margin-bottom:calc(110px + env(safe-area-inset-bottom,0px))}}


/* v182 | Unified illustrated shift mini-games: legible cash, true table count, accessible mobile controls. */
#app .mini-cafe-game{box-shadow:inset 0 1px #fff1,0 14px 32px #0002}
#app .mini-cafe-game .mini-legacy-title span{font-size:13px}
#app .mini-cafe-game .mini-station-symbol:before{display:none!important;content:none!important}
#app .mini-cafe-game .mini-station-symbol{width:43px;height:43px;display:grid;place-items:center;color:#f0dfb5}
#app .mini-cafe-game .mini-station-symbol svg{width:34px;height:34px;display:block}
#app .mini-cafe-game .mini-station-label{font-size:clamp(11px,2.8vw,13px);line-height:1.45}
#app .mini-cafe-game .mini-station.is-last-picked:not(:disabled){outline:2px solid #f1d59e;outline-offset:-3px;box-shadow:inset 0 0 0 1px #fff4}
#app .mini-cafe-game .mini-station:focus-visible{outline:3px solid #f7d998;outline-offset:2px}
#app .mini-cafe-game .mini-tray>span{font-size:12px}
#app .mini-cafe-game .mini-tray-steps small{font-size:12px;line-height:1.65}
#app .mini-cafe-game .mini-game-note{font-size:11px;line-height:1.7;color:#bfd0d7}
#app .mini-cafe-game .mini-game-actions>.button{min-height:48px;font-size:12px}
#app .mini-game-cashier .mini-cash-register{grid-template-columns:minmax(0,1.35fr) minmax(0,.75fr);gap:10px;align-items:stretch}
#app .mini-game-cashier .mini-cash-screen{background:linear-gradient(155deg,#103e38,#071f2b);border:1px solid #91c1ab;padding:16px;gap:9px;box-shadow:inset 0 2px #fff2,0 7px 22px #0003}
#app .mini-game-cashier .mini-cash-screen>span{letter-spacing:.03em;font-size:12px;color:#cbe1cf}
#app .mini-game-cashier .mini-cash-screen>strong{font-size:clamp(18px,4vw,24px);color:#f4e9cb;line-height:1.4;border-bottom:1px dashed #b4cdb86e;padding-bottom:9px}
#app .mini-game-cashier .mini-cash-screen>div{gap:10px;min-height:28px;font-size:12px;align-items:center}
#app .mini-game-cashier .mini-cash-screen>div strong{font-size:clamp(13px,3.2vw,16px);white-space:nowrap}
#app .mini-game-cashier .mini-cash-screen>.mini-cash-due{border-top:1px dashed #a6c7a766;padding-top:10px}
#app .mini-game-cashier .mini-cash-screen>.mini-cash-due strong{font-size:clamp(18px,4.5vw,24px);color:#f9d38f}
#app .mini-game-cashier .mini-cash-remaining{margin-top:5px;background:#092b3280;border-radius:9px;padding:7px 8px}
#app .mini-game-cashier .mini-cash-remaining.is-settled{border:1px solid #81b898;background:#123f34;color:#eaffdf}
#app .mini-game-cashier .mini-cash-remaining.is-settled strong{color:#b7efbd}
#app .mini-game-cashier .mini-cash-drawer{background:repeating-linear-gradient(0deg,#17334b,#17334b 19px,#214158 20px);border:1px solid #a1bea777;padding:15px 10px;gap:10px;justify-content:flex-start}
#app .mini-game-cashier .mini-cash-drawer>span{font-size:12px;color:#d8e7da}
#app .mini-game-cashier .mini-cash-drawer>strong{font-size:18px}
#app .mini-cash-notes{display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:7px;width:100%;min-height:56px}
#app .mini-cash-notes>small{font-size:12px;line-height:1.6;color:#d1e1e4}
#app .mini-cash-note{position:relative;min-width:58px;min-height:41px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:6px;border:2px double #f3df9d;background:linear-gradient(145deg,#d9ebbe,#a9c79c);color:#153c2f;box-shadow:0 3px 0 #718c74,0 5px 10px #0004;font-variant-numeric:tabular-nums}
#app .mini-cash-note b{font-size:17px;font-weight:900}
#app .mini-cash-note small{font-size:10px;font-weight:850;align-self:flex-end;margin-bottom:5px}
#app .mini-game-cashier .mini-cash-drawer>p{font-size:11px;line-height:1.6}
#app .mini-grid-cashier .mini-station{background:linear-gradient(145deg,#1d5145,#0d323e);border:1px solid #9bc4ad;color:#f3eacc;min-height:94px;padding:9px 5px}
#app .mini-grid-cashier .mini-station-symbol{width:50px;height:46px;background:linear-gradient(155deg,#c5d9ad2b,#b8cda521);border-color:#bcd4b5a3}
#app .mini-grid-cashier .mini-station-symbol svg{width:46px;height:43px;color:#e9d99d}
#app .mini-waiter-tables{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#app .mini-waiter-tables>.mini-waiter-table{min-width:0;aspect-ratio:auto;min-height:73px;border-radius:12px;background:linear-gradient(155deg,#3e4b4b,#183040);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:1px solid #d8bb8d8c;color:#f6e5c1;text-shadow:none;padding:8px 2px}
#app .mini-waiter-table i{width:34px;height:25px;border:4px solid #d4b78e;background:#77563c;border-radius:50%;box-shadow:0 3px 0 #352c2c}
#app .mini-waiter-table b{font-size:11px;line-height:1.4}
#app .mini-queue-dots{flex-wrap:wrap;gap:6px}
#app .mini-queue-dots span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#d1b9821d}
#app .mini-queue-dots svg{width:20px;height:20px;fill:none;stroke:#c1d3e5;stroke-width:1.8}
#app .mini-queue-dots span.done svg{stroke:#164331}
#app .mini-service-alert{display:flex;align-items:center;gap:10px;min-width:0}
#app .mini-service-glyph{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;color:#edc887}
#app .mini-service-glyph svg{width:25px;height:25px}
#app .mini-stock-shelves span{border-radius:9px;min-height:47px;display:grid;place-items:center;line-height:1.5}
@media(max-width:520px){
 #app .mini-game-cashier .mini-cash-register{grid-template-columns:minmax(0,1fr)}
 #app .mini-game-cashier .mini-cash-drawer{padding:10px 12px;gap:6px}
 #app .mini-cash-notes{min-height:46px}
 #app .mini-game-cashier .mini-cash-slot{display:none}
 #app .mini-waiter-tables{gap:5px}
 #app .mini-waiter-tables>.mini-waiter-table{min-height:63px;padding:5px 1px}
}
@media(max-width:359px){
 #app .mini-grid-cashier{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .mini-grid-cashier .mini-station{min-height:79px}
 #app .mini-cafe-game .mini-game-actions>.button{font-size:11px}
 #app .mini-game-cashier .mini-cash-screen{padding:12px}
 #app .mini-cash-note{min-width:52px}
 #app .mini-waiter-table b{font-size:10px}
}
@media(prefers-reduced-motion:reduce){#app .mini-cafe-game .mini-station{transition:none}}

/* v184 | Touch-first reading surface, native form fields remain editable/selectable. */
#app,#app *{
 -webkit-user-select:none;
 user-select:none;
}
#app :is(input,textarea,[contenteditable="true"]),
#app [contenteditable="true"] *{
 -webkit-user-select:text!important;
 user-select:text!important;
}
#app :is(button,input,textarea,select,[contenteditable="true"]){-webkit-touch-callout:default;}
/* Voluntary quick report is outside the auto-refreshed #app tree. */
.quick-report-float{
 position:fixed;z-index:65;left:max(12px,calc((100vw - 980px)/2 + 12px));bottom:calc(102px + env(safe-area-inset-bottom,0px));
 min-width:96px;min-height:44px;border:1px solid #e4c68b;border-radius:999px;
 padding:8px 13px;background:linear-gradient(120deg,#f1d9a7,#c7a464);color:#152d3b;
 box-shadow:0 8px 24px #0007;font-size:12px;font-weight:700;line-height:1.4;font-family:inherit;cursor:pointer;
}
.quick-report-float[hidden]{display:none!important}
.quick-report-float:focus-visible{outline:3px solid #d9e4e7;outline-offset:3px}
#quick-report-dialog{
 width:min(93vw,480px);max-width:480px;max-height:min(88dvh,760px);
 overflow:auto;margin:auto;padding:0;background:#132b3e;color:#f4ede1;
 border:1px solid #d5b77c91;border-radius:19px;box-shadow:0 24px 70px #000b;
 direction:rtl;overscroll-behavior:contain;
}
#quick-report-dialog::backdrop{background:#020a14b9}
#quick-report-dialog .quick-report-sheet{display:grid;gap:10px;padding:17px}
#quick-report-dialog .quick-report-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#eecb92;font-size:12px;font-weight:750}
#quick-report-dialog .quick-report-heading button{
 width:39px;height:39px;border:1px solid #cbd5d355;border-radius:10px;background:#203c4b;color:#faf2e0;font-size:24px;cursor:pointer;
}
#quick-report-dialog h2{margin:0;font-size:clamp(19px,4.8vw,24px);line-height:1.5;color:#ffe0a4}
#quick-report-dialog p{margin:0;font-size:12px;line-height:1.8;color:#ccdce4}
#quick-report-dialog .quick-report-current{border:1px solid #a9c4cc36;background:#0a1e2e;border-radius:11px;padding:10px;color:#f4d6a5;overflow-wrap:anywhere}
#quick-report-dialog label{font-size:13px;font-weight:800;color:#f8e0ae}
#quick-report-dialog label small{font-weight:500;color:#c2d1da}
#quick-report-dialog textarea{
 width:100%;min-width:0;min-height:88px;resize:vertical;box-sizing:border-box;
 padding:11px;border-radius:12px;border:1px solid #c8b68160;background:#081c2c;color:#f7f0e5;
 font:inherit;font-size:16px;line-height:1.6;
 -webkit-user-select:text;user-select:text;
}
#quick-report-dialog .quick-report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#quick-report-dialog :is(.quick-report-actions button,.quick-report-send,.quick-report-shake){
 width:100%;min-height:44px;padding:10px;border:1px solid #c6bd9e69;border-radius:11px;
 background:#224255;color:#f1eadf;font-size:12px;font-weight:700;line-height:1.5;font-family:inherit;cursor:pointer;
}
#quick-report-dialog .quick-report-send{background:#e4c992;border-color:#e4c992;color:#112838;font-weight:850}
#quick-report-dialog .quick-report-shake{background:#142f42}
#quick-report-dialog .quick-report-shake[aria-pressed="true"]{border-color:#86cda7;color:#adedd1}
#quick-report-dialog .quick-report-shake-help{font-size:11px;line-height:1.65;color:#adbdc8}
#quick-report-dialog .quick-report-tip{font-size:11px;color:#afbec8}
#quick-report-dialog #quick-report-capture-status:not(:empty){color:#f4d9a4}
#quick-report-dialog .quick-report-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;
 padding:9px;border:1px solid #8bbfa562;border-radius:12px;background:#0e2d35}
#quick-report-dialog .quick-report-preview[hidden]{display:none!important}
#quick-report-dialog .quick-report-preview img{width:100%;height:90px;object-fit:contain;border-radius:8px}
#quick-report-dialog .quick-report-preview button{min-height:40px;padding:6px 9px;border:1px solid #c7b58b70;border-radius:9px;background:#21394c;color:#f6e2b9}
#quick-report-dialog button:focus-visible{outline:2px solid #f4dc9f;outline-offset:3px}
@media(max-width:420px){
 .quick-report-float{left:10px;bottom:calc(94px + env(safe-area-inset-bottom,0px));min-width:76px;padding:7px 10px;font-size:11px}
 #quick-report-dialog{width:calc(100vw - 16px);max-height:90dvh}
 #quick-report-dialog .quick-report-sheet{padding:13px;gap:8px}
 #quick-report-dialog .quick-report-actions button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#quick-report-dialog,.quick-report-float{transition:none!important}}


/* work-aids v187: compact, readable native RTL inventory list — no carousel */
#app .work-aids{
 margin:9px 0 13px;padding:13px 14px 11px;min-width:0;
 border:1px solid rgba(209,185,138,.28);border-radius:16px;
 background:linear-gradient(155deg,#1a2b3c 0%,#122534 60%,#102231 100%);
 box-shadow:0 5px 17px rgba(2,12,22,.12)
}
#app .work-aids-head{
 display:flex;justify-content:space-between;align-items:center;gap:9px;
 padding:0 1px 10px
}
#app .work-aids-head>div{min-width:0}
#app .work-aids-head h3{font-size:15px;font-weight:850;margin:1px 0 0;color:#f6e4bc;line-height:1.4}
#app .work-aids-head .overline{font-size:10px;color:#b5c5ce;letter-spacing:0}
#app .work-aids-counter{flex:0 0 auto;padding:4px 8px;border-radius:8px;border:1px solid #bda4743e;color:#d7c6a5;background:#bb9d6410;font-size:10px;font-weight:700}
#app .work-aids-list{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
#app .work-aid-card{
 position:relative;min-width:0;display:grid;
 grid-template-columns:38px minmax(0,1fr) auto;
 grid-template-areas:"icon text action";align-items:center;gap:10px;
 padding:10px 11px;border:1px solid #b6c8d32b;border-radius:12px;
 background:linear-gradient(125deg,#182d3e,#142738);overflow:hidden;
 box-shadow:inset 0 1px #fff4
}
#app .work-aid-card.is-owned{border-color:#80b3a448;background:linear-gradient(115deg,#17323c,#152a38)}
#app .work-aid-card.is-active{border-color:#dcc48a79;background:linear-gradient(115deg,#2b3440,#162b3b)}
#app .work-aid-card.is-active:before{content:"";position:absolute;inset-inline-start:0;top:10px;bottom:10px;width:2px;border-radius:99px;background:#e2c586}
#app .work-aid-glyph{
 grid-area:icon;display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;
 border:1px solid #d1b88044;border-radius:10px;background:#e2c38e0f;color:#e6c68b
}
#app .work-aid-glyph svg{width:21px;height:21px}
#app .work-aid-copy{grid-area:text;min-width:0;text-align:right}
#app .work-aid-title{display:flex;align-items:center;flex-wrap:wrap;gap:6px;line-height:1.5}
#app .work-aid-title strong{color:#f6e9d3;font-size:13px;font-weight:850}
#app .work-aid-state{
 display:inline-flex;align-items:center;border-radius:6px;padding:2px 7px;
 color:#d5e3e7;border:1px solid #9eb5bc32;background:#bdcdd21a;
 font-size:10px;font-weight:750;white-space:nowrap;line-height:1.6
}
#app .is-owned .work-aid-state{background:#5baf9821;border-color:#76b6a047;color:#b6e7d6}
#app .is-active .work-aid-state{background:#eccb8420;border-color:#deb87752;color:#ffdf9d}
#app .work-aid-copy p{margin:3px 0 0;font-size:11.5px;line-height:1.55;color:#c7d8df}
#app .work-aid-copy small{display:block;margin-top:3px;color:#b2c9d0;font-size:10px;line-height:1.5}
#app .work-aid-action{grid-area:action;display:flex;align-items:center;justify-self:end;min-width:0;max-width:170px}
#app .work-aid-action .button{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:39px;min-width:94px;max-width:170px;width:auto;
 margin:0;padding:8px 12px;font-size:11px;line-height:1.45;white-space:normal;
 font-weight:800;border-radius:9px;overflow-wrap:anywhere;text-align:center;
 box-shadow:none;touch-action:manipulation
}
#app .work-aid-action .button.primary{color:#152c39;background:linear-gradient(#ead6ad,#d8b981);border:1px solid #edd7a4}
#app .work-aid-action .button.subtle{color:#f1d8a7;background:#c9a77012;border:1px solid #cbb28066}
#app .work-aid-action .button:focus-visible{outline:2px solid #fae3ad;outline-offset:2px}
#app .work-aid-ready{
 display:block;color:#eed4a3;font-size:10.5px;line-height:1.55;
 border:1px solid #ccb2723b;background:#ddbf7b0a;
 border-radius:9px;padding:7px 9px;text-align:center;overflow-wrap:anywhere
}
#app .work-aids-more{margin:9px 1px 0;border-top:1px solid #c2b08d27;padding-top:7px}
#app .work-aids-more>summary{cursor:pointer;display:list-item;list-style-position:inside;width:fit-content;color:#c5d3d9;font-weight:650;font-size:10.5px;padding:3px 0}
#app .work-aids-more>summary:focus-visible{outline:2px solid #f1d69c;outline-offset:2px}
#app .work-aids-more p{color:#b8cbd2;margin:6px 0 1px;line-height:1.65;font-size:10.5px}
#app .storefront-aid-target{margin:13px 0;padding:12px 13px;border:1px solid #e6c78576;background:linear-gradient(120deg,#263c46,#172a39);border-radius:13px}
#app .storefront-aid-target strong{color:#f6dba2;font-size:14px}
#app .storefront-aid-target p{color:#d7e3e7;font-size:11px;line-height:1.7;margin:4px 0 9px}
#app .storefront-aid-target .button{min-height:35px}
#app .storefront-product.is-featured{border-color:#d7b575a6;box-shadow:0 0 0 2px #c9a76b17}
@media(max-width:540px){
 #app .work-aids{padding:11px;border-radius:13px;margin:8px 0 12px}
 #app .work-aid-card{
  grid-template-columns:35px minmax(0,1fr);
  grid-template-areas:"icon text" ". action";
  gap:4px 9px;align-items:start;padding:10px
 }
 #app .work-aid-glyph{width:35px;height:35px}
 #app .work-aid-glyph svg{width:19px;height:19px}
 #app .work-aid-action{justify-self:start;max-width:100%;margin-top:2px}
 #app .work-aid-action .button{min-height:36px;min-width:92px;padding:7px 12px}
 #app .work-aid-title strong{font-size:12.5px}
 #app .work-aid-copy p{font-size:11px}
 #app .work-aid-ready{font-size:10px;text-align:right}
}
@media(max-width:355px){
 #app .work-aids{padding:9px}
 #app .work-aids-counter{padding:3px 5px;font-size:9px}
 #app .work-aid-card{padding:9px}
 #app .work-aid-title{gap:4px}
}
@media(prefers-reduced-motion:reduce){#app .work-aid-card{transition:none}}

/* v186 · skill memo: a focused, compact RTL training hint receipt. */
#app .profession-skill-memo{margin:12px 0 15px;padding:14px;border-radius:14px;border:1px solid #d8ba7a75;background:linear-gradient(140deg,#182f40,#102432);display:grid;gap:9px;min-width:0}
#app .profession-memo-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
#app .profession-memo-title strong{color:#ffe5b1;font-size:15px}
#app .profession-memo-title span{color:#c2e3d2;background:#4c896c22;border:1px solid #71ab8754;border-radius:100px;padding:4px 9px;font-size:11px}
#app .profession-skill-memo p{font-size:12px;line-height:1.75;color:#e0e9ec;margin:0}
#app .profession-memo-reveals{list-style:none;counter-reset:none;margin:0;padding:0;display:grid;gap:7px}
#app .profession-memo-reveals li{display:grid;grid-template-columns:minmax(0,108px) minmax(0,1fr);gap:9px;align-items:center;border:1px solid #8cab8d66;background:#113b3668;border-radius:10px;padding:9px 11px}
#app .profession-memo-reveals li span{color:#a9dcc1;font-size:11px}
#app .profession-memo-reveals li strong{color:#f3ead5;font-size:12px;line-height:1.5}
#app .profession-skill-memo .profession-memo-empty{font-style:normal;color:#b8c7d4;background:#ffffff08;border:1px dashed #8ca2a557;border-radius:10px;padding:10px}
#app .profession-skill-memo small{color:#d3c29c;font-size:11px;line-height:1.6}
#app .profession-skill-memo [data-profession-memo-reveal]{min-height:45px;white-space:normal;font-size:12px}
#app .profession-skill-memo [data-profession-memo-reveal]:focus-visible{outline:3px solid #f9dba2;outline-offset:3px}
#app .market-product-glyph.glyph-skill_memo{color:#ffe0a7;border-color:#e2bb786a;background:linear-gradient(140deg,#7b59375b,#26364a)}
@media(max-width:380px){#app .profession-memo-reveals li{grid-template-columns:1fr;gap:3px}#app .profession-skill-memo{padding:11px}}


/* v189 | Compact paired support controls: equal 48px circles, aligned above the bottom nav. */
#app .help-floating,.quick-report-float{
 width:48px;height:48px;min-width:48px;min-height:48px;
 padding:0;display:grid;place-items:center;
 border:1px solid rgba(233,202,148,.82);border-radius:50%;
 background:linear-gradient(155deg,#1c3446 0%,#0d2334 100%);
 color:#efd29b;box-shadow:0 7px 19px #0008,inset 0 1px 0 #fff1;
 font-family:inherit;line-height:1;cursor:pointer;
 -webkit-tap-highlight-color:transparent;
 transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
#app .help-floating{right:max(17px,calc((100vw - 980px)/2 + 17px));bottom:calc(99px + env(safe-area-inset-bottom,0px));font-size:23px;font-weight:850;}
#app .help-floating span{display:none}
.quick-report-float{left:max(17px,calc((100vw - 980px)/2 + 17px));bottom:calc(99px + env(safe-area-inset-bottom,0px));}
.quick-report-float svg{display:block;width:24px;height:24px;pointer-events:none}
#app .help-floating:active,.quick-report-float:active{transform:scale(.94)}
#app .help-floating:focus-visible,.quick-report-float:focus-visible{outline:2px solid #f7e4be;outline-offset:3px}
@media(hover:hover){
 #app .help-floating:hover,.quick-report-float:hover{border-color:#ffe6b4;box-shadow:0 9px 24px #0009,0 0 0 3px #eccb8621}
}
@media(max-width:720px){
 #app .help-floating{right:max(11px,env(safe-area-inset-right,0px));bottom:calc(91px + env(safe-area-inset-bottom,0px))}
 .quick-report-float{left:max(11px,env(safe-area-inset-left,0px));bottom:calc(91px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
 #app .help-floating,.quick-report-float{transition:none}
}


/* v190 — refined optional work tools: one-line controls, clear hierarchy, RTL first. */
#app .work-aids{
 margin:9px 0 12px;padding:13px;border:1px solid rgba(218,192,143,.37);
 border-radius:18px;background:radial-gradient(circle at 100% 0%,rgba(231,192,112,.10),transparent 49%),linear-gradient(145deg,#172e40,#0e2233);
 box-shadow:0 12px 30px rgba(1,11,20,.17),inset 0 1px rgba(255,255,255,.055)
}
#app .work-aids-head{padding:0 2px 11px;gap:12px}
#app .work-aids-head .overline{font-size:10px;line-height:1.55;color:#adc5d1}
#app .work-aids-head h3{font-size:16px;line-height:1.4;margin:2px 0 0;color:#ffe2aa}
#app .work-aids-counter{border-color:rgba(230,197,140,.3);background:rgba(225,191,126,.08);color:#f0d39e;border-radius:99px;padding:5px 10px;font-size:10px}
#app .work-aids-list{gap:8px;min-width:0}
#app .work-aid-card{
 grid-template-columns:40px minmax(0,1fr) minmax(0,auto);grid-template-areas:"icon text action";
 align-items:center;gap:10px;min-width:0;padding:10px 11px;min-height:76px;
 border:1px solid rgba(177,202,217,.21);border-radius:14px;
 background:linear-gradient(110deg,rgba(35,62,78,.86),rgba(15,38,56,.95));
 box-shadow:inset 0 1px rgba(255,255,255,.035);transition:border-color .18s ease,background .18s ease
}
#app .work-aid-card.is-owned{border-color:rgba(143,193,170,.38);background:linear-gradient(110deg,rgba(29,63,68,.91),rgba(15,39,56,.96))}
#app .work-aid-card.is-active{border-color:rgba(228,198,136,.56);background:linear-gradient(110deg,rgba(63,65,64,.7),rgba(19,44,62,.95))}
#app .work-aid-card.is-active:before{inset-block:13px;width:3px;background:#f5d497}
#app .work-aid-glyph{width:40px;height:40px;border-radius:12px;color:#f3d79c;border-color:rgba(237,207,145,.32);background:linear-gradient(155deg,rgba(238,207,148,.18),rgba(197,155,85,.04))}
#app .work-aid-glyph svg{width:21px;height:21px;stroke-width:1.7}
#app .work-aid-copy{min-width:0}
#app .work-aid-title{gap:5px 8px}
#app .work-aid-title strong{color:#fff1d8;font-size:13px;line-height:1.4}
#app .work-aid-state{border-radius:99px;padding:2px 7px;line-height:1.55;font-size:10px;font-weight:800}
#app .work-aid-copy p{margin:4px 0 0;color:#ccdae0;font-size:11.3px;line-height:1.6}
#app .work-aid-copy small{margin:3px 0 0;font-size:10px;color:#a9c1cb}
#app .work-aid-action{justify-self:end;grid-area:action;max-width:128px;min-width:0}
#app .work-aid-action .button{min-width:72px;max-width:128px;min-height:40px;width:auto;padding:7px 10px;border-radius:10px;line-height:1.45;font-size:10.5px;box-shadow:none;white-space:normal}
#app .work-aid-action .button.primary{background:linear-gradient(155deg,#f4e0b6,#dab77c);border:1px solid #f3dfa9;color:#172d3b}
#app .work-aid-action .button.subtle{border-color:rgba(236,200,136,.47);background:rgba(213,176,110,.08);color:#f4d9aa}
#app .work-aid-ready{color:#efd7a8;border-color:rgba(221,186,122,.35);background:rgba(222,188,124,.085);border-radius:10px;text-align:right;padding:7px 9px;font-size:10.5px}
#app .work-aids-more{border-top:1px solid rgba(207,224,230,.15);margin:10px 2px 0;padding-top:7px}
#app .work-aids-more>summary{color:#d9c397;font-size:11px;min-height:29px;line-height:1.85}
#app .work-aids-more p{color:#c6d6db;font-size:11px;line-height:1.85}
@media(hover:hover){
 #app .work-aid-card:hover{border-color:rgba(236,207,153,.58);background:linear-gradient(110deg,#284657,#162f43)}
 #app .work-aid-action .button:hover{filter:brightness(1.08)}
}
@media(max-width:540px){
 #app .work-aids{margin:7px 0 11px;padding:11px;border-radius:16px}
 #app .work-aid-card{grid-template-columns:36px minmax(0,1fr) minmax(0,auto);grid-template-areas:"icon text action";align-items:center;gap:7px;padding:9px;min-height:72px}
 #app .work-aid-glyph{width:36px;height:36px}
 #app .work-aid-action{justify-self:end;max-width:104px;margin-top:0}
 #app .work-aid-action .button{min-height:38px;min-width:67px;max-width:104px;padding:6px 8px;font-size:10px}
 #app .work-aid-title strong{font-size:12.5px}
 #app .work-aid-copy p{font-size:10.75px;line-height:1.6}
 #app .work-aid-ready{font-size:10px;padding:6px}
}
@media(max-width:365px){
 #app .work-aids{padding:9px}
 #app .work-aid-card{grid-template-columns:33px minmax(0,1fr);grid-template-areas:"icon text" ". action";gap:4px 8px;min-height:0}
 #app .work-aid-glyph{width:33px;height:33px}
 #app .work-aid-action{justify-self:start;max-width:100%;margin-top:2px}
 #app .work-aid-action .button{max-width:205px;min-height:37px}
 #app .work-aid-ready{max-width:100%}
}
/* v190 — shift report overlay: signed-style receipt, money states kept server-truthful. */
#shift-report-dialog{
 width:min(94vw,520px);max-width:calc(100vw - 14px);max-height:min(90dvh,800px);
 padding:0;border:1px solid rgba(238,205,149,.64);border-radius:24px;
 background:linear-gradient(145deg,#1a3445,#0b1f30 62%);
 color:#f7ecdc;box-shadow:0 30px 110px rgba(0,0,0,.75);
 overscroll-behavior:contain
}
#shift-report-dialog::backdrop{background:rgba(1,9,17,.81);backdrop-filter:blur(9px)}
#shift-report-dialog .shift-receipt-modal{
 max-height:min(90dvh,800px);overflow-y:auto;overflow-x:hidden;
 padding:0 clamp(12px,3vw,22px) max(15px,env(safe-area-inset-bottom,0px));
 scrollbar-width:thin;scrollbar-color:#b29a75 transparent
}
#shift-report-dialog .shift-receipt-modal-top{
 position:relative;display:flex;align-items:center;gap:11px;
 padding:19px 44px 16px 1px;border-bottom:1px solid rgba(224,202,161,.18)
}
#shift-report-dialog .shift-receipt-modal-top:before{
 content:"";position:absolute;inset-block-start:0;inset-inline:0;
 height:3px;background:linear-gradient(90deg,transparent,#e5c17b,transparent)
}
#shift-report-dialog .shift-receipt-modal-check{
 width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;
 border:1px solid rgba(157,216,183,.55);border-radius:14px;
 background:linear-gradient(145deg,#245345,#174137);color:#c3eed5;font-weight:900;font-size:22px
}
#shift-report-dialog .shift-receipt-modal-top>div{display:grid;gap:3px;min-width:0}
#shift-report-dialog .shift-receipt-modal-top strong{font-size:18px;line-height:1.3;color:#fae3b1}
#shift-report-dialog .shift-receipt-modal-top div>span{font-size:11px;line-height:1.55;color:#bfd0da}
#shift-report-dialog .shift-receipt-close{
 inset-block-start:16px;inset-inline-end:0;width:42px;height:42px;
 border-radius:13px;border:1px solid rgba(219,197,163,.32);
 background:rgba(8,28,43,.78);color:#f8dcaa;font-family:inherit
}
#shift-report-dialog .shift-receipt-modern{padding:14px 0 0;border:0;background:transparent;box-shadow:none;overflow:visible}
#shift-report-dialog .shift-receipt-modern .shift-receipt-head{padding-inline-end:0;display:grid;gap:8px;justify-content:stretch}
#shift-report-dialog .receipt-heading{align-items:center;gap:9px}
#shift-report-dialog .receipt-emblem{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:rgba(231,197,142,.10)}
#shift-report-dialog .receipt-emblem svg{width:19px;height:19px}
#shift-report-dialog .receipt-heading .overline{font-size:10px;color:#c7bdab}
#shift-report-dialog .shift-receipt-modern .shift-receipt-head h2{font-size:clamp(16px,4vw,21px);color:#f4e2bf;margin:0}
#shift-report-dialog .receipt-status{justify-self:start;padding:5px 11px}
#shift-report-dialog .receipt-job{margin:12px 0 0;gap:3px 12px}
#shift-report-dialog .receipt-job strong{font-size:15px}
#shift-report-dialog .shift-receipt-modern .shift-receipt-grid{gap:9px;margin:13px 0}
#shift-report-dialog .shift-receipt-modern .receipt-metric{
 min-height:100px;padding:13px;border-radius:15px;
 background:linear-gradient(150deg,rgba(6,22,36,.95),rgba(16,42,58,.94));
 border-color:rgba(185,207,216,.25)
}
#shift-report-dialog .receipt-metric:nth-child(2){
 border-color:rgba(230,194,123,.43);
 background:linear-gradient(145deg,rgba(101,78,42,.4),rgba(19,38,49,.91))
}
#shift-report-dialog .receipt-metric strong{font-size:clamp(17px,4.3vw,24px);line-height:1.25}
#shift-report-dialog .receipt-metric small{font-size:10.5px}
#shift-report-dialog .shift-receipt-modern .receipt-settlement{
 margin:1px 0 0;padding:12px 14px;border-radius:14px
}
#shift-report-dialog .shift-receipt-performance{margin-top:12px}
#shift-report-dialog .shift-receipt-modern .shift-receipt-meta{margin-top:12px;padding-top:11px}
#shift-report-dialog .shift-receipt-modal-actions{margin:13px 0 0;position:sticky;bottom:0;z-index:2;padding:10px 0 3px;background:linear-gradient(to bottom,rgba(13,33,48,0),#102638 30%)}
#shift-report-dialog .shift-receipt-modal-actions button{min-height:49px;width:100%;font-size:13px;border-radius:12px;box-shadow:0 7px 18px rgba(0,0,0,.2)}
#shift-report-dialog .shift-receipt-modal-actions button:focus-visible{outline:3px solid #fff0c8;outline-offset:2px}
@media(max-width:390px){
 #shift-report-dialog{width:calc(100vw - 16px);border-radius:19px}
 #shift-report-dialog .shift-receipt-modal-top{padding-block:13px}
 #shift-report-dialog .shift-receipt-modal-top strong{font-size:16px}
 #shift-report-dialog .shift-receipt-modern .receipt-metric{min-height:84px;padding:10px}
 #shift-report-dialog .receipt-metric strong{font-size:18px}
 #shift-report-dialog .shift-receipt-modern .shift-receipt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
}
@media(max-width:330px){
 #shift-report-dialog .shift-receipt-modern .shift-receipt-grid{grid-template-columns:1fr}
 #shift-report-dialog .shift-receipt-modern .receipt-metric{min-height:66px}
}
@media(prefers-reduced-motion:reduce){#app .work-aid-card{transition:none}#shift-report-dialog::backdrop{backdrop-filter:none}}

/* Stage 2 first-session roadmap: RTL, compact and touch-friendly. */
#app .beginner-roadmap{padding:14px 15px;margin:12px 0 16px;border-radius:19px;border:1px solid #e5c48e64;background:linear-gradient(140deg,#233d51,#112637 75%);box-shadow:0 10px 28px #0002}
#app .beginner-roadmap-heading h2{margin:4px 0 0;font-size:18px;color:#f4dfb4}
#app .beginner-roadmap-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;list-style:none;padding:0;margin:15px 0}
#app .beginner-roadmap-track li{min-width:0;text-align:center;color:#ccd6de;font-size:10px;display:flex;flex-direction:column;align-items:center;gap:5px}
#app .beginner-roadmap-track li b{width:29px;height:29px;border-radius:50%;border:1px solid #8296aa88;display:grid;place-items:center;background:#142c40;color:#f0dfbe}
#app .beginner-roadmap-track li.done b{background:#315a4e;border-color:#7bb290;color:white}
#app .beginner-roadmap-track li.optional b{border-style:dashed}
#app .beginner-roadmap-track small{display:block;font-size:9px;line-height:1.3;color:#abbdcc}
#app .beginner-roadmap-next{border-top:1px solid #e6c88b2f;padding-top:12px;display:grid;gap:10px}
#app .beginner-roadmap-next strong{font-size:15px;color:#f7e6c6}
#app .beginner-roadmap-next p{margin:4px 0 0;line-height:1.65;color:#cfdae2;font-size:12px}
#app .beginner-roadmap-next button{width:100%;min-height:45px}
@media(min-width:460px){#app .beginner-roadmap-next{grid-template-columns:minmax(0,1fr) auto;align-items:center}#app .beginner-roadmap-next button{width:auto;max-width:190px}}
@media(max-width:350px){#app .beginner-roadmap{padding:12px}#app .beginner-roadmap-track li{font-size:9px}}
/* v199 content refresh: compact server-issued role situation cards. */
#app .mini-shift-moment{margin:10px 0 12px;padding:11px 13px;border-radius:14px;border:1px solid rgba(233,195,117,.34);background:linear-gradient(125deg,rgba(18,47,67,.97),rgba(14,31,48,.94));box-shadow:inset 0 1px rgba(255,255,255,.07);color:#f6edd8;text-align:right}
#app .mini-shift-moment-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#app .mini-shift-moment-head strong{color:#f1d49a;font-size:12px;letter-spacing:0}
#app .mini-shift-moment-head small{margin-inline-start:auto;color:#c0d0df;font-size:11px}
#app .mini-shift-moment p{margin:5px 0 0;font-size:13px;line-height:1.6}
#app .mini-shift-moment-pulse{height:7px;width:7px;flex:0 0 7px;border-radius:50%;background:#d8a95a;box-shadow:0 0 0 3px rgba(216,169,90,.14)}
#app .mini-shift-moment-cashier{border-color:rgba(111,202,178,.38)}
#app .mini-shift-moment-cashier .mini-shift-moment-pulse{background:#6fcaad}
#app .mini-shift-moment-services{border-color:rgba(236,166,118,.42)}
#app .mini-shift-moment-services .mini-shift-moment-pulse{background:#ec9f75}
@media(max-width:390px){#app .mini-shift-moment{padding:9px 10px;margin:8px 0}#app .mini-shift-moment p{font-size:12px}}
@media(prefers-reduced-motion:reduce){#app .mini-shift-moment-pulse{animation:none;transition:none}}

/* PWA v199 screenshot followup: visible barista actions, lean two-zone preparation station.
   CSS only; the server remains the sole source of recipes, nonce and rewards. */
#app .work-quiz:has(.mini-game-cafe){container-type:inline-size}
#app .mini-game-cafe{
  overflow:visible;
  gap:9px;
}
#app .mini-game-cafe .mini-ingredient-stage{
  min-height:154px;
  grid-template-columns:minmax(0,1fr) clamp(112px,27%,175px);
  gap:9px;
  align-items:stretch;
}
#app .mini-game-cafe .mini-ingredient-stage .mini-order-ticket{
  justify-content:center;
  gap:4px;
  padding:10px 13px;
  min-width:0;
}
#app .mini-game-cafe .mini-ingredient-stage .mini-order-ticket>strong{
  font-size:clamp(18px,2.8vw,23px);
  line-height:1.3;
}
#app .mini-game-cafe .mini-ingredient-stage .mini-order-ticket>p{
  font-size:11px;
  line-height:1.55;
  margin:0;
  max-width:50ch;
}
#app .mini-game-cafe .mini-ingredient-stage .mini-order-ticket>small{
  margin:0;
  font-size:10px;
  line-height:1.4;
}
#app .mini-game-cafe .mini-ingredient-stage .mini-drink-wrap{
  position:relative;
  overflow:hidden;
  gap:4px;
  padding:8px 7px 10px;
  min-width:0;
  isolation:isolate;
  background:radial-gradient(ellipse at 50% 28%,#c59c6140,transparent 63%),
    linear-gradient(160deg,#183c4a,#091c2c 84%);
}
#app .mini-game-cafe .mini-ingredient-stage .mini-drink-wrap:before{
  content:'';
  position:absolute;
  pointer-events:none;
  z-index:-1;
  inset:auto -10% 0;
  height:24%;
  transform:perspective(130px) rotateX(28deg);
  transform-origin:bottom;
  background:repeating-linear-gradient(90deg,#ad835434 0 22px,#e0b87a28 22px 23px);
  border-top:2px solid #f0cc8c52;
}
#app .mini-game-cafe .mini-ingredient-cup{
  width:53px;
  height:75px;
}
#app .mini-game-cafe .mini-mix-ingredients{
  gap:3px;
  max-height:46px;
}
#app .mini-game-cafe .mini-tray{
  min-height:43px;
  padding:7px 10px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 10px;
}
#app .mini-game-cafe .mini-tray>span{
  white-space:nowrap;
  flex-shrink:0;
}
#app .mini-game-cafe .mini-tray-steps{
  flex:1 1 105px;
  margin:0;
  align-items:center;
  min-height:23px;
}
#app .mini-game-cafe .mini-ingredients-heading{
  margin:1px 0 0;
  gap:4px;
}
#app .mini-game-cafe .mini-grid-cafe{
  gap:7px;
}
#app .mini-game-cafe .mini-grid-cafe .mini-station{
  min-height:71px;
  padding:7px 5px;
  gap:4px;
}
#app .mini-game-cafe .mini-grid-cafe .mini-station-symbol{
  width:37px;
  height:37px;
}
#app .mini-game-cafe .mini-grid-cafe .mini-station-symbol svg{
  width:29px;
  height:29px;
}
#app .mini-game-cafe .mini-game-actions{
  margin:0;
  gap:8px;
  min-width:0;
}
#app .mini-game-cafe .mini-game-actions>.button{
  min-width:0;
  min-height:48px;
}
#app .mini-game-cafe .mini-game-note{
  margin:0;
}
@container (min-width:680px){
  #app .mini-game-cafe{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    grid-template-areas:
      "title title"
      "scene scene"
      "stage tray"
      "stage heading"
      "stage controls"
      "actions actions"
      "note note";
    align-items:start;
    gap:8px 12px;
  }
  #app .mini-game-cafe>.mini-legacy-title{grid-area:title}
  #app .mini-game-cafe>.mini-shift-moment{grid-area:scene;margin:0}
  #app .mini-game-cafe>.mini-cafe-stage{grid-area:stage;height:100%}
  #app .mini-game-cafe>.mini-tray{grid-area:tray;align-self:stretch}
  #app .mini-game-cafe>.mini-ingredients-heading{grid-area:heading}
  #app .mini-game-cafe>.mini-grid-cafe{grid-area:controls}
  #app .mini-game-cafe>.mini-game-actions{grid-area:actions}
  #app .mini-game-cafe>.mini-game-note{grid-area:note}
  #app .mini-game-cafe .mini-ingredient-stage{
    min-height:215px;
    grid-template-columns:minmax(0,1fr) minmax(92px,33%);
  }
  #app .mini-game-cafe .mini-grid-cafe .mini-station{
    min-height:69px;
    gap:6px;
  }
  #app .mini-game-cafe .mini-station-label{font-size:12px}
}
@container (max-width:679px){
  #app .mini-cafe-game{
    overflow:visible;
  }
  #app .mini-game-cafe .mini-ingredient-stage{
    grid-template-columns:minmax(0,1fr) minmax(80px,29%);
    min-height:145px;
  }
  #app .mini-game-cafe .mini-ingredient-stage .mini-order-ticket{
    padding:9px 10px;
  }
  #app .mini-game-cafe .mini-ingredient-stage .mini-order-ticket>p{
    font-size:10.5px;
    line-height:1.5;
  }
  #app .mini-game-cafe .mini-grid-cafe .mini-station{
    min-height:70px;
  }
  #app .mini-cafe-game .mini-game-actions{
    position:sticky;
    bottom:calc(93px + env(safe-area-inset-bottom,0px));
    z-index:8;
    padding:8px;
    margin:0 -4px;
    border-radius:13px;
    background:#0b2234f5;
    border:1px solid #d9bb8573;
    box-shadow:0 -8px 25px #03101980;
    backdrop-filter:blur(12px);
  }
  #app .mini-cafe-game .mini-game-actions>.button{min-height:48px}
  #app.jobs-mode .work-quiz{scroll-margin-top:calc(var(--city-wallet-height,54px) + 16px)}
}
@media(max-width:360px){
  #app .mini-game-cafe .mini-ingredient-stage{
    grid-template-columns:minmax(0,1fr) 80px;
    gap:6px;
  }
  #app .mini-game-cafe .mini-grid-cafe .mini-station{
    min-height:68px;
    padding:5px 3px;
  }
  #app .mini-cafe-game .mini-game-actions{
    gap:5px;
    padding:6px;
  }
}
@media(max-height:550px) and (orientation:landscape){
  #app .mini-cafe-game .mini-game-actions{
    bottom:calc(74px + env(safe-area-inset-bottom,0px));
  }
}
@media(prefers-reduced-motion:reduce){
  #app .mini-game-cafe .mini-ingredient-cup,
  #app .mini-game-cafe .mini-grid-cafe .mini-station{
    transition:none;
  }
}

/* v208: Guest accounts are normal server-backed players. */
#app .guest-entry{min-height:51px;margin:0 0 8px;font-size:16px;touch-action:manipulation}
#app .guest-entry-note{font-size:12px;color:var(--muted);text-align:center;line-height:1.7;margin:0 0 18px}
#app .guest-resume{margin-top:14px}
#app .guest-account-banner{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 16px;background:#29404c;border-bottom:1px solid #bfa87370;color:#f5e9d2;font-size:11px;line-height:1.5}
#app .guest-account-banner button{border:1px solid #ebc887;background:#efd295;color:#152838;border-radius:12px;padding:6px 10px;white-space:nowrap;font-size:12px;font-weight:800;min-height:36px}
#app .guest-profile-panel{border-color:#c8a86b80}
#guest-upgrade{max-height:90svh;overflow:auto}
#guest-upgrade .guest-upgrade-shell{padding:22px}
#guest-upgrade h2{margin:6px 0;font-size:22px}
#guest-upgrade p{font-size:13px;line-height:1.85;color:#d9e2e9}
#guest-upgrade .button{margin:8px 0 0}
#guest-upgrade .guest-existing-link{border:0;background:transparent;color:#efce8e;display:block;margin:12px auto;padding:8px;text-decoration:underline}
#guest-upgrade small{display:block;line-height:1.7;color:#b9c8d1;margin-top:8px}
@media(max-width:360px){#app .guest-account-banner{padding-inline:10px;font-size:10px}#guest-upgrade .guest-upgrade-shell{padding:15px}}
@media(prefers-reduced-motion:reduce){#guest-upgrade *,#app .guest-entry{animation:none!important;transition:none!important}}

/* v219: guided first-paycheck experience and illustrated role selection.
   Changes only first-session display, never authenticated game actions. */
#app .home-dashboard-newcomer{gap:19px}
#app .home-dashboard-newcomer .home-masthead{
 padding:21px 18px;border-color:#e2c38b80;
 background:linear-gradient(143deg,#274359,#152e43 66%,#0b1e2e);
}
#app .home-dashboard-newcomer .home-masthead-top{margin-bottom:20px}
#app .home-dashboard-newcomer .home-masthead-top p{font-size:13px}
#app .home-dashboard-newcomer .home-focus{
 padding:20px 18px;border-radius:19px;border-color:#edce8b9c;
 background:linear-gradient(148deg,#1b3d50,#12263c);
}
#app .home-dashboard-newcomer .home-focus h3{font-size:clamp(22px,5.7vw,27px);margin:12px 0 9px}
#app .home-dashboard-newcomer .home-focus p{font-size:14px;line-height:1.85}
#app .home-dashboard-newcomer .home-focus-cta{margin-top:19px}
#app .home-dashboard-newcomer .home-focus-cta button{
 min-height:54px;font-size:15px;border-radius:15px;box-shadow:0 7px 19px #0005;
}
#app .home-dashboard-newcomer .beginner-roadmap{
 margin:0;padding:20px 17px;border-radius:19px;box-shadow:none;
 border-color:#bdc8bf5c;background:linear-gradient(145deg,#182e41,#0c2131);
}
#app .beginner-roadmap-track li.current{color:#ffe1a8;font-weight:800}
#app .beginner-roadmap-track li.current b{
 background:#e9c785;color:#152535;border-color:#f5dfad;
 box-shadow:0 0 0 4px #e1bb7940;
}
#app .beginner-roadmap-hint{margin:7px 0 0;color:#cbd9df;font-size:12px;line-height:1.8}
#app .home-dashboard-newcomer .city-walk{margin:0}
#app .home-dashboard-newcomer .city-walk-title p{font-size:13px}
#app .home-newcomer-extra{padding:14px 16px;background:#102a3b;border:1px solid #c5b68a65;border-radius:16px}
#app .home-newcomer-extra>summary{cursor:pointer;color:#f6dbab;font-weight:750;font-size:13px}
#app .home-newcomer-rewards{display:grid;gap:12px;padding-top:13px}
#app .home-newcomer-rewards article{display:flex;gap:12px;align-items:center;justify-content:space-between}
#app .home-newcomer-rewards strong{font-size:12px}
#app .profession-pick-flow{display:grid;gap:20px}
#app .profession-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#app .profession-choice-card{
 position:relative;display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-rows:auto 1fr auto;align-items:start;justify-content:stretch;
 width:100%;min-width:0;min-height:305px;padding:16px;
 gap:13px;text-align:right;border:1px solid #b8c5c65c;border-radius:20px;
 color:#f8ebd5;background:linear-gradient(155deg,#254357,#0c2336 88%);
 box-shadow:0 11px 26px #0004;cursor:pointer;
 transition:border-color .2s ease,background .2s ease,transform .2s ease;
}
#app .profession-choice-card.selected,
#app .profession-choice-card[aria-pressed="true"]{
 border:2px solid #f4d397;padding:15px;
 background:linear-gradient(145deg,#314a58,#163144 83%);
 box-shadow:0 0 0 3px #e8c88824,0 14px 25px #0005;
}
#app .profession-role-art{
 display:grid;place-items:center;min-height:111px;
 border-radius:15px;border:1px solid #efd29d35;
 color:#eacb91;background:radial-gradient(circle at 60% 15%,#edcb8b34,transparent 60%),#071c2c;
}
#app .profession-role-art svg{width:min(100%,135px);height:99px;overflow:visible}
#app .profession-role-waiter .profession-role-art{color:#add9dd}
#app .profession-role-cashier .profession-role-art{color:#d8c4f2}
#app .profession-role-stock .profession-role-art{color:#b5d7aa}
#app .profession-role-details{display:grid;align-content:start;gap:7px;min-width:0}
#app .profession-kind{margin:0;color:#e2c78e;font-size:11px}
#app .profession-role-name{font-size:19px;line-height:1.35;color:#fff0d4}
#app .profession-role-description{font-size:12.5px;line-height:1.7;color:#d6e1e8}
#app .profession-role-task{font-size:12px;line-height:1.75;color:#e5d4b7;padding-block:7px;border-top:1px solid #d8c8a43b}
#app .profession-role-availability{font-size:11px;color:#b9ddca;line-height:1.65}
#app .profession-role-select{
 display:block;text-align:center;padding:8px 10px;
 border-radius:11px;border:1px solid #d4c18c62;background:#d9bd7940;
 color:#f6dfb5;font-size:12px;font-weight:850;
}
#app .profession-choice-card.selected .profession-role-select{background:#e1bd76;color:#142c3a}
#app .profession-confirm-box{
 display:grid;gap:10px;padding:17px;border:1px solid #e3c4858e;border-radius:17px;
 background:linear-gradient(140deg,#233b4e,#132737);
 box-shadow:0 12px 25px #0008;
}
#app .profession-confirm-box p{font-size:12.5px;line-height:1.85;color:#e9dfca;margin:0}
#app .profession-confirm-button{min-height:55px;width:100%;font-size:15px}
#app .profession-confirm-button:disabled{opacity:.55;cursor:not-allowed}
#app .profession-confirm-help{color:#d3e0e4;font-size:11px;text-align:center;line-height:1.55}
#app .profession-choice-card:focus-visible,
#app .profession-confirm-button:focus-visible{outline:3px solid #f8dba1;outline-offset:3px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 #app .profession-choice-card:hover{transform:translateY(-2px);border-color:#e9cf9e}
}
@media(max-width:480px){
 #app .profession-choice-grid{grid-template-columns:1fr;gap:14px}
 #app .profession-choice-card{
  grid-template-columns:97px minmax(0,1fr);grid-template-rows:1fr auto;
  min-height:177px;gap:11px 14px;padding:14px;
 }
 #app .profession-choice-card.selected{padding:13px}
 #app .profession-role-art{min-height:106px;align-self:stretch}
 #app .profession-role-art svg{height:91px}
 #app .profession-role-details{gap:5px}
 #app .profession-role-select{grid-column:1/-1}
 #app .profession-role-name{font-size:18px}
 #app .profession-confirm-box{
  position:sticky;bottom:max(7px,env(safe-area-inset-bottom));z-index:5;
  padding:13px 14px;gap:9px;
 }
 #app .home-dashboard-newcomer .home-masthead{padding:16px 14px}
 #app .home-dashboard-newcomer .home-focus{padding:17px 14px}
}
@media(max-width:355px){
 #app .profession-choice-card{display:grid;grid-template-columns:76px minmax(0,1fr);padding:11px;gap:9px}
 #app .profession-choice-card.selected{padding:10px}
 #app .profession-role-art{min-height:95px}
 #app .profession-role-art svg{height:81px}
 #app .profession-role-task{font-size:11.5px}
 #app .home-newcomer-rewards article{flex-direction:column;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){
 #app .profession-choice-card{transition:none;transform:none!important}
}

/* v220: persistent role confirmation and compact Foad tips (presentation only). */
#app.profession-onboarding .profession-onboard-content{
 padding-bottom:calc(196px + env(safe-area-inset-bottom));
}
#app.profession-onboarding .profession-confirm-box{
 position:fixed;inset-inline:auto;left:50%;right:auto;
 bottom:calc(10px + env(safe-area-inset-bottom));
 transform:translateX(-50%);z-index:30;
 box-sizing:border-box;width:min(524px,calc(100vw - 24px));max-width:524px;
 padding:12px 16px;gap:8px;border-radius:18px;
 background:linear-gradient(150deg,#2a4658ee,#0e2638f7);
 border:1px solid #f1d5a6bd;
 box-shadow:0 -5px 25px #000a,0 12px 35px #0007;
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
#app .profession-confirm-box p{display:grid;gap:3px;line-height:1.5;margin:0}
#app .profession-confirm-box p strong{font-size:13px;color:#fce2b0;overflow-wrap:anywhere}
#app .profession-confirm-box p span{font-size:11px;color:#cfe0e5}
#app .profession-confirm-box .profession-confirm-help{font-size:10px;line-height:1.4}
#app .profession-confirm-box .profession-confirm-button{min-height:48px;font-size:14px}
#app .profession-choice-grid{gap:14px}
#app .profession-choice-card{
 min-height:240px;grid-template-rows:auto 1fr auto;
 padding:13px;gap:9px;border-radius:17px;
}
#app .profession-choice-card.selected,#app .profession-choice-card[aria-pressed="true"]{padding:12px}
#app .profession-role-art{min-height:78px;border-radius:12px}
#app .profession-role-art svg{height:72px;width:min(100%,106px)}
#app .profession-role-details{gap:5px}
#app .profession-role-name{font-size:21px;line-height:1.35}
#app .profession-role-description{font-size:12px;line-height:1.55}
#app .profession-role-task{font-size:13px;line-height:1.6;padding-block:6px}
#app .profession-role-availability{display:grid;gap:3px;font-size:11px}
#app .profession-role-availability strong{font-size:12px;color:#bde6d2}
#app .profession-role-availability small{font-size:10px;line-height:1.45;color:#c8d6df}
#app .profession-role-select{
 display:flex;align-items:center;justify-content:flex-start;gap:9px;
 padding:3px 0;border:0;background:none;text-align:right;
 box-shadow:none;border-radius:0;
}
#app .profession-role-radio{
 width:23px;height:23px;border:2px solid #d8c397;
 display:grid;place-items:center;flex:0 0 23px;
 border-radius:50%;background:#0e2939;color:#123047;font-size:15px;
}
#app .profession-role-select-label{font-size:11px;color:#e6d4b2}
#app .profession-choice-card.selected .profession-role-select{background:none}
#app .profession-choice-card.selected .profession-role-radio{
 background:#efd19a;border-color:#efd19a;color:#153144;
}
#app .profession-choice-card.selected .profession-role-select-label{color:#ffddab}
#app .guided-tour-dock{
 padding:11px 13px 10px;margin-bottom:12px;
 border-radius:15px;box-shadow:0 5px 17px #0003;
}
#app .guided-tour-avatar{
 width:43px;height:43px;flex-basis:43px;border-radius:12px;
 background:linear-gradient(160deg,#d9c69c,#8aafa8);overflow:hidden;
}
#app .guided-tour-avatar svg{width:100%;height:100%;display:block}
#app .guided-tour-top{gap:10px}
#app .guided-tour-top button{min-height:36px;font-size:11px;padding:6px 9px}
#app .guided-tour-guide strong{font-size:13px}
#app .guided-tour-guide small{font-size:10px}
#app .guided-tour-meter{margin:5px 0 6px}
#app .guided-tour-count{font-size:10px}
#app .guided-tour-progress{height:3px}
#app .guided-tour-title{font-size:15px;line-height:1.45;margin:0 0 3px}
#app .guided-tour-copy{font-size:12px;line-height:1.6;margin:0}
#app .guided-tour-context,#app .guided-tour-step-dots{display:none}
#app .guided-tour-note{font-size:10px;line-height:1.45;margin:5px 0 0}
#app .guided-tour-actions{justify-content:flex-end;margin-top:8px}
#app .guided-tour-actions .button{min-height:39px;padding:7px 16px;font-size:12px}
@media(max-width:480px){
 #app .profession-choice-grid{grid-template-columns:1fr;gap:12px}
 #app .profession-choice-card{
  grid-template-columns:82px minmax(0,1fr);
  grid-template-rows:1fr auto;min-height:151px;
  padding:12px;gap:8px 11px;
 }
 #app .profession-choice-card.selected{padding:11px}
 #app .profession-role-art{min-height:78px}
 #app .profession-role-art svg{height:73px;width:80px}
 #app .profession-role-name{font-size:20px}
 #app .profession-role-task{font-size:12.5px}
 #app .profession-role-select{grid-column:1/-1}
 #app.profession-onboarding .profession-confirm-box{
  position:fixed;bottom:calc(6px + env(safe-area-inset-bottom));
  width:calc(100vw - 14px);padding:10px 12px;gap:7px;
 }
 #app:not(.profession-onboarding) .profession-confirm-box{position:static;transform:none;width:100%}
 #app.profession-onboarding .profession-onboard-content{
  padding-bottom:calc(192px + env(safe-area-inset-bottom));
 }
}
@media(max-width:355px){
 #app .profession-choice-card{grid-template-columns:74px minmax(0,1fr);min-height:145px;padding:10px;gap:8px}
 #app .profession-choice-card.selected{padding:9px}
 #app .profession-role-art{min-height:70px}
 #app .profession-role-art svg{height:68px;width:74px}
 #app .profession-role-name{font-size:19px}
 #app .profession-role-task{font-size:12px}
 #app .guided-tour-dock{padding:10px 11px}
}
@media(max-height:620px){
 #app.profession-onboarding .profession-confirm-box{gap:5px;padding-block:8px}
 #app.profession-onboarding .profession-onboard-content{padding-bottom:calc(180px + env(safe-area-inset-bottom))}
 #app .profession-confirm-box .profession-confirm-button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
 #app .profession-choice-card,#app .guided-tour-progress span{transition:none!important}
}

/* v221: short role confirmation and one shared offers note.
   A one-row desktop dock and two-row mobile dock avoid covering role cards. */
#app .profession-pick-flow{gap:11px}
#app .profession-offers-note{
 margin:0;padding:8px 12px;
 font-size:12.5px;line-height:1.7;
 color:#d7e5e7;background:#193345;border:1px solid #cfbc8b55;
 border-radius:11px;
}
#app .profession-role-availability{gap:0}
#app .profession-role-availability strong{font-size:13px;line-height:1.55}
#app .profession-choice-card{min-height:215px}
#app .profession-confirm-copy{
 display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;
}
#app .profession-confirm-copy strong{
 font-size:14px;line-height:1.35;color:#ffe2aa;overflow-wrap:anywhere;
}
#app .profession-confirm-copy span{
 font-size:11px;line-height:1.4;color:#cfe0e5;
}
#app.profession-onboarding .profession-confirm-box{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,43%);
 align-items:center;gap:12px;padding:8px 13px;
 width:min(610px,calc(100vw - 24px));
 border-radius:14px;
 bottom:calc(8px + env(safe-area-inset-bottom));
 box-shadow:0 -3px 18px #0008,0 8px 22px #0006;
}
#app.profession-onboarding .profession-confirm-button{
 min-height:44px;font-size:13px;margin:0;
}
#app.profession-onboarding .profession-onboard-content{
 padding-bottom:calc(112px + env(safe-area-inset-bottom));
 scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom));
}
#app.profession-onboarding .profession-choice-card{
 scroll-margin-block-end:calc(112px + env(safe-area-inset-bottom));
}
@media(max-width:480px){
 #app .profession-offers-note{font-size:12px;padding:8px 10px}
 #app .profession-choice-card{min-height:145px}
 #app.profession-onboarding .profession-confirm-box{
  grid-template-columns:minmax(0,1fr);
  gap:6px;padding:8px 11px;
  width:calc(100vw - 14px);bottom:calc(5px + env(safe-area-inset-bottom));
 }
 #app .profession-confirm-copy{
  flex-direction:row;align-items:center;justify-content:space-between;
  gap:8px;
 }
 #app .profession-confirm-copy strong{font-size:12.5px}
 #app .profession-confirm-copy span{font-size:10px;text-align:start}
 #app.profession-onboarding .profession-confirm-button{min-height:43px;font-size:13px}
 #app.profession-onboarding .profession-onboard-content{
  padding-bottom:calc(131px + env(safe-area-inset-bottom));
  scroll-padding-bottom:calc(131px + env(safe-area-inset-bottom));
 }
 #app.profession-onboarding .profession-choice-card{
  scroll-margin-block-end:calc(131px + env(safe-area-inset-bottom));
 }
}
@media(max-width:355px){
 #app .profession-confirm-copy{gap:5px}
 #app .profession-confirm-copy strong{font-size:12px}
 #app .profession-confirm-copy span{font-size:9.5px}
 #app .profession-offers-note{line-height:1.55}
 #app.profession-onboarding .profession-onboard-content{
  padding-bottom:calc(140px + env(safe-area-inset-bottom));
 }
}
@media(max-height:620px) and (min-width:481px){
 #app.profession-onboarding .profession-confirm-box{padding:6px 11px;gap:9px}
 #app.profession-onboarding .profession-confirm-button{min-height:41px}
 #app.profession-onboarding .profession-onboard-content{
  padding-bottom:calc(100px + env(safe-area-inset-bottom));
 }
}

/* v223: mobile scroll wallet, stable geometry, optional learning sidecar.
   The 10px margin compensates for shorter sticky bar without layout jumps. */
#app .wallet-shortcuts{display:none}
#app .beginner-roadmap-track{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#app .beginner-roadmap-track li{font-size:12px;line-height:1.4}
#app .beginner-roadmap-track li b{width:33px;height:33px;font-size:13px}
#app .beginner-training-note{
 display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;
 margin:4px 0 12px;padding:11px 12px;border:1px dashed #dbc58a80;
 border-radius:12px;background:#e9c8890b;
}
#app .beginner-training-symbol{display:grid;place-items:center;width:32px;height:32px;
 border-radius:10px;background:#e9c78923;color:#f1d79d;font-weight:900}
#app .beginner-training-note strong{font-size:14px;color:#ffe1a8;line-height:1.5}
#app .beginner-training-note p{margin:3px 0 0;font-size:12px;line-height:1.75;color:#d6e3e8}
#app .beginner-roadmap-hint{font-size:12.5px}
@media(max-width:700px){
 #app.screen:not(.auth-mode)>.always-wallet{
  box-sizing:border-box;height:var(--city-wallet-height);min-height:var(--city-wallet-height);
  margin-bottom:0;
 }
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet{
  height:calc(44px + var(--city-safe-top));min-height:calc(44px + var(--city-safe-top));
  margin-bottom:10px;padding-top:calc(4px + var(--city-safe-top));
  padding-bottom:4px;gap:8px;
 }
 #app.wallet-compact .always-wallet>.always-wallet-name,
 #app.wallet-compact .always-wallet>.always-bag,
 #app.wallet-compact .always-wallet>.always-chat{display:none!important}
 #app.wallet-compact .always-wallet>.always-wallet-button{margin-inline-end:auto}
 #app.wallet-compact .always-wallet>.always-wallet-button strong{font-size:clamp(14px,4vw,17px)}
 #app.wallet-compact .always-wallet>.always-notices{min-width:38px;min-height:36px}
 #app.wallet-compact .always-wallet>.wallet-shortcuts{display:block;position:relative;flex:none}
 #app .wallet-shortcuts summary{
  min-height:38px;min-width:55px;display:flex;align-items:center;justify-content:center;
  border:1px solid #e6ca9170;border-radius:10px;padding:6px 9px;
  background:#d4b88018;color:#ffe1a7;font-size:12px;font-weight:800;
  cursor:pointer;list-style:none;
 }
 #app .wallet-shortcuts summary::-webkit-details-marker{display:none}
 #app .wallet-shortcuts-menu{
  position:absolute;z-index:42;inset-inline-end:0;top:calc(100% + 7px);
  min-width:165px;display:grid;gap:5px;padding:8px;border:1px solid #ddc48a80;
  border-radius:12px;background:#0e2638;box-shadow:0 16px 30px #0009;
 }
 #app .wallet-shortcuts:not([open]) .wallet-shortcuts-menu{display:none}
 #app .wallet-shortcuts-menu button{
  width:100%;min-height:44px;text-align:start;padding:8px 11px;
  border-radius:9px;border:1px solid #ffffff25;background:#ffffff0a;
  color:#f2dfbc;font-size:13px;
 }
 #app .wallet-shortcuts :is(summary,button):focus-visible{outline:2px solid #f3dba1;outline-offset:2px}
 #app .beginner-roadmap-track{gap:5px;margin:12px 0}
 #app .beginner-roadmap-track li{font-size:11px}
}
@media(max-width:355px){
 #app.screen.wallet-compact:not(.auth-mode)>.always-wallet{gap:5px}
 #app .wallet-shortcuts summary{min-width:50px;padding-inline:6px}
 #app .beginner-training-note{padding:10px;gap:8px}
 #app .beginner-roadmap-track li{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
 #app.screen.wallet-compact>.always-wallet{transition:none!important}
}

/* v224: desktop first-salary roadmap and legible help (visual only). */
#app .guided-tour-copy{font-size:14px;line-height:1.7;color:#f2f7fa}
#app .guided-tour-note{font-size:12px;line-height:1.65;color:#d7e4eb}
#app .guided-tour-guide small,#app .guided-tour-count{font-size:12px}
#app .profession-offers-note{font-size:13px;line-height:1.7;color:#e0e9ee}
#app .profession-role-availability small{font-size:12px;line-height:1.6}
@media(min-width:900px){
 #app.home-mode .home-dashboard-newcomer>.beginner-roadmap{
  grid-column:1/-1;display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(230px,1fr);
  column-gap:18px;align-items:center;
 }
 #app.home-mode .home-dashboard-newcomer>.beginner-roadmap .beginner-roadmap-heading{grid-column:1/-1}
 #app.home-mode .home-dashboard-newcomer>.beginner-roadmap .beginner-roadmap-track{grid-column:1;grid-row:2}
 #app.home-mode .home-dashboard-newcomer>.beginner-roadmap .beginner-training-note{grid-column:2;grid-row:2;margin:0}
 #app.home-mode .home-dashboard-newcomer>.beginner-roadmap .beginner-roadmap-hint{grid-column:1/-1}
}
@media(max-width:355px){
 #app .guided-tour-copy{font-size:13px}
 #app .profession-role-availability small{font-size:11.5px}
}

/* V250 profile: football first; legacy contracts remain accessible but secondary. */
#app .profile-legacy-history,#app .profile-legacy-credit{
  margin:11px 0;border:1px solid #496e74;border-radius:13px;
  background:#162e3c;color:#c5e0d9;overflow:hidden
}
#app .profile-legacy-history>summary,#app .profile-legacy-credit>summary{
  cursor:pointer;min-height:48px;display:flex;align-items:center;
  padding:12px 16px;font-weight:700;font-size:13px;color:#e8ddbd
}
#app .profile-legacy-history[open]>summary,#app .profile-legacy-credit[open]>summary{
  border-bottom:1px solid #496e74
}
#app .profile-legacy-history>.muted{margin:12px 16px;font-size:12px;line-height:1.8}
#app .profile-legacy-history>.profile-guide-entry{margin:8px 16px 16px;width:calc(100% - 32px)}
#app .profile-legacy-credit>.profile-credit{margin:10px;border-color:#416c72}
#app .profile-legacy-history>summary:focus-visible,#app .profile-legacy-credit>summary:focus-visible{
  outline:2px solid #efd69b;outline-offset:-3px;border-radius:10px
}
@media(max-width:390px){
 #app .profile-legacy-history>summary,#app .profile-legacy-credit>summary{padding:10px 12px;font-size:12px}
 #app .profile-legacy-credit>.profile-credit{margin:6px}
}

/* V257: private player onboarding link displayed above public chat messages. */
#app .chat-start-hint{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;
 padding:10px 13px;margin:0 0 8px;border:1px solid #7fae97;border-radius:13px;
 background:linear-gradient(115deg,#16443a,#193847);color:#e5f3eb}
#app .chat-start-hint strong{font-size:13px;color:#ffe9be}
#app .chat-start-hint p{margin:3px 0 0;font-size:11px;line-height:1.6;color:#c2dad3}
#app .chat-start-actions{display:flex;gap:6px;flex-wrap:wrap}
#app .chat-start-actions button{min-height:38px;padding:7px 12px;border-radius:9px;
 font-size:12px;font-weight:800;background:#28604c;border:1px solid #8fc09d;color:#fff6d4}
#app .chat-start-actions button:last-child{background:#153d50;border-color:#749dab}
#app .chat-start-actions button:focus-visible{outline:3px solid #ffecaa;outline-offset:2px}
@media(max-width:430px){#app .chat-start-hint{padding:9px 10px}#app .chat-start-actions{width:100%}#app .chat-start-actions button{flex:1}}
@media(max-width:320px){#app .chat-start-actions{display:grid;grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#app .chat-start-hint *{animation:none!important;transition:none!important}}

/* V259: multi-line Arabic chat and safe bold formatting. */
#app .chat-message{max-width:min(92%,680px);min-width:0}
#app .chat-bubble{max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:normal}
#app .chat-message p{white-space:pre-wrap;unicode-bidi:plaintext;overflow-wrap:anywhere;
 font-size:13px;line-height:1.85;margin:6px 0 0}
#app .chat-message p strong{color:#ffe5b0;font-weight:850}
#app .chat-message p em{color:#e5eff4;font-style:italic}
#app .chat-compose textarea{display:block;box-sizing:border-box;width:100%;
 min-height:54px;max-height:152px;resize:vertical;border-radius:11px;
 background:#071d2b;border:1px solid #9ab3bb53;color:#f0f5f4;
 padding:9px 12px;font-family:inherit;font-size:16px;line-height:1.6;
 white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
#app .chat-compose textarea:focus{border-color:#e4ce9b;box-shadow:0 0 0 2px #e4ce9b24}
#app .chat-compose{align-items:flex-end}
#app .chat-send{min-height:54px}
#app.social-mode .chat-compose textarea{min-height:51px;max-height:126px}
#app .chat-compose-footer{gap:12px}
#app .chat-char-count.is-over-limit{color:#ffaaa0;font-weight:800}
@media(max-width:430px){
 #app .chat-compose textarea{min-height:50px;max-height:112px}
 #app .chat-send{min-height:50px}
 #app .chat-compose-footer>span{max-width:78%;line-height:1.5}
 #app .chat-message{max-width:96%}
}
@media(max-width:320px){#app .chat-compose{gap:5px}#app .chat-send{padding:7px 10px}}
@media(prefers-reduced-motion:reduce){#app .chat-compose textarea{scroll-behavior:auto}}

/* V268: apartments-only living/ownership dashboard. Old commercial cards retired. */
.estate-apartment-intro{padding:18px 17px;margin-bottom:14px;border:1px solid rgba(235,203,134,.29);border-radius:18px;background:linear-gradient(145deg,rgba(29,60,80,.96),rgba(13,32,47,.96));color:#f4efe5}
.estate-apartment-intro h2{font-size:19px;line-height:1.4;margin:0 0 8px}
.estate-apartment-intro p{font-size:13px;line-height:1.9;margin:0;color:#bed1db}
.estate-apartment-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.estate-apartment-totals>span{padding:11px 5px;text-align:center;border-radius:11px;background:rgba(229,205,162,.08);border:1px solid rgba(235,203,134,.14);font-weight:700;font-size:12px}
.estate-chips{scroll-padding-inline:15px}
.estate-chips>button{min-height:44px}
.estate-housing-current{padding:14px 12px;border-radius:16px;background:rgba(240,246,248,.06)}
.estate-housing-current h3{font-size:16px;margin:0 0 10px}
@media(max-width:390px){.estate-apartment-intro{padding:14px 12px}.estate-apartment-totals{gap:5px}.estate-apartment-totals>span{font-size:11px;line-height:1.5;padding:8px 4px}}
@media(prefers-reduced-motion:reduce){.estate-apartment-intro,.estate-apartment-totals>*{animation:none!important;transition:none!important}}


/* cinematic-player-intro-v3: 9:16 full-bleed first-entry film, never a financial action. */
.intro-film{position:relative;isolation:isolate;width:100%;height:100svh;min-height:420px;overflow:hidden;background:#07121f;color:#f7f3e8;font-family:inherit}
.intro-film>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center center;background:#07121f}
.intro-film-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#03101e99 0%,transparent 25%,transparent 65%,#03101eaa 100%)}
.intro-film-top{position:absolute;top:0;right:0;left:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(17px + env(safe-area-inset-top)) 17px 8px;z-index:2}
.intro-film-brand{color:#f9dfab;font-size:12px;font-weight:850;text-shadow:0 2px 8px #000}
.intro-film-skip,.intro-film-sound{appearance:none;flex:none;border-radius:999px;border:1px solid #fae3b588;background:#061a2dc9;backdrop-filter:blur(9px);color:#fff4dc;min-height:44px;padding:9px 13px;font-size:12px;font-weight:850}
.intro-film-center{position:absolute;right:10px;left:10px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;z-index:2;transition:opacity .28s,visibility .28s}
.intro-film-play{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:148px;height:148px;border:1px solid #f6d9a3ba;border-radius:50%;background:#071727c7;color:#ffe5ab;box-shadow:0 0 0 12px #051b2b55,0 15px 55px #0008;font-size:34px;font-weight:900}
.intro-film-play span{font-size:15px}
.intro-film-center p{font-size:12px;color:#fff7dc;text-shadow:0 2px 10px #000;margin:12px 0 0}
.intro-film.is-playing .intro-film-center{opacity:0;visibility:hidden;pointer-events:none}
.intro-film-bottom{position:absolute;bottom:0;right:0;left:0;z-index:2;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 16px calc(19px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#07121ed9,transparent)}
.intro-film-bottom>span{color:#dce7e8;font-size:10px;line-height:1.6;max-width:58%;text-align:end}
.intro-film button:focus-visible{outline:3px solid #ffe2a9;outline-offset:3px}
@media(max-width:360px){.intro-film-top{gap:6px;padding-inline:10px}.intro-film-brand{font-size:10px}.intro-film-skip{padding-inline:9px}.intro-film-bottom{padding-inline:10px;gap:6px}.intro-film-play{width:124px;height:124px}}
@media(prefers-reduced-motion:reduce){.intro-film-center{transition:none}}


/* cinematic-film-retry-v281: media loading errors are recoverable and never force legacy onboarding. */
.intro-film-failure{position:absolute;z-index:4;right:14px;left:14px;bottom:calc(88px + env(safe-area-inset-bottom));border:1px solid #f5d79c9c;border-radius:18px;background:#081827ed;color:#fff5e4;box-shadow:0 12px 45px #0009;padding:14px 16px;text-align:center;line-height:1.6}
.intro-film-failure[hidden]{display:none}
.intro-film-failure strong{display:block;font-size:16px}
.intro-film-failure p{margin:6px 0 12px;font-size:12px;color:#d7e2e8}
.intro-film-failure-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px}
.intro-film-failure-actions button,.intro-film-failure-actions a{display:inline-flex;justify-content:center;align-items:center;min-height:43px;border-radius:12px;border:1px solid #f1d29b83;padding:9px 11px;background:#172e40;color:#fce2af;font:700 12px/1.5 inherit;text-decoration:none}
.intro-film-failure-actions button:first-child{background:#efd09b;color:#17202b}
.intro-film-failure-actions button:focus-visible,.intro-film-failure-actions a:focus-visible{outline:3px solid #ffe0a8;outline-offset:2px}
@media(max-width:360px){.intro-film-failure{right:8px;left:8px;padding:11px}.intro-film-failure-actions button,.intro-film-failure-actions a{font-size:11px;padding-inline:7px}}

/* V282 story & cinematic introduction quick controls. */
.intro-film-top{flex-wrap:wrap;row-gap:8px}
.intro-film-top-actions{display:flex;align-items:center;gap:7px;margin-inline-start:auto}
.intro-film-top-actions .intro-film-skip{min-height:44px}
.profile-account-switch{border:1px solid #e6c78855;border-radius:17px;padding:12px;margin:14px 0;background:#152d3b}
.profile-account-switch .button{min-height:46px}
.profile-account-switch p{margin:7px 2px 0;font-size:12px}

/* v284: video-only introduction; no illustrated or external navigation. */
.intro-film.has-error .intro-film-center{opacity:0;visibility:hidden;pointer-events:none}
.intro-film.is-loading .intro-film-center button{opacity:.7;cursor:progress}
.intro-film.has-error .intro-film-failure{display:block}
.intro-film.has-error .intro-film-failure[hidden]{display:none}
.intro-film-failure-actions button{min-width:190px;min-height:48px}
@media(max-width:360px){.intro-film-top{padding-inline:10px}.intro-film-top-actions{gap:5px}.intro-film-top-actions .intro-film-skip{padding:8px 10px;font-size:11px}}
