/* Shared navigation, preferences and synthetic collective health. */
.game-home-brand{font:inherit;color:inherit;text-align:inherit;background:none;border:0;cursor:pointer;padding:0}.game-home-brand:focus-visible,.game-home-mark:focus-visible,[data-game-settings]:focus-visible{outline:2px solid #6be4e8;outline-offset:3px}
.game-home-mark{display:inline-flex;flex:0 0 34px;width:34px;height:34px;padding:5px;align-items:center;justify-content:center;border:1px solid #6384a866;border-radius:10px;background:#102c4266;cursor:pointer}.game-home-mark img{width:24px;height:24px;object-fit:contain}.living-topbar .pm-tabs .game-home-tab{display:none}.living-topbar.is-chrome-collapsed .pm-tabs .game-home-tab{display:inline-flex}
.cinematic-intro>header{align-items:center}.cinematic-home{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;color:#ffda5c;font:800 12px system-ui;cursor:pointer}.cinematic-home img{width:25px;height:30px;object-fit:contain}.cinematic-intro [data-game-settings]{border:1px solid #67819e77;background:#112d4966;color:#e3efff;border-radius:12px;padding:10px 12px;cursor:pointer}.cinematic-resume{background:#ffda4b;border:0;border-radius:14px;color:#102038;font:800 16px system-ui;padding:15px 24px;min-height:50px;cursor:pointer;margin:0 8px 8px 0}.cinematic-has-save .cinematic-start{background:#142b43;color:#e4f0ff;box-shadow:none;border:1px solid #60809f66}.cinematic-resume:focus-visible{outline:3px solid #75dfed;outline-offset:4px}
.game-settings,.collective-health-dialog{box-sizing:border-box;background:#0b2037f5;color:#edf4ff;border:1px solid #688aaf88;border-radius:22px;padding:0;width:min(520px,calc(100vw - 24px));max-height:90dvh;box-shadow:0 18px 70px #0008;font:14px/1.5 Inter,system-ui,sans-serif;backdrop-filter:blur(18px)}.game-settings::backdrop,.collective-health-dialog::backdrop{background:#020b18a6;backdrop-filter:blur(5px)}.game-settings *, .collective-health-dialog *{box-sizing:border-box}.game-settings header,.collective-health-dialog header{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #617e9a44}.game-settings header>div,.collective-health-dialog header>div{flex:1}.game-settings h1,.collective-health-dialog h1{font-size:22px;margin:0}.game-settings header small,.collective-health-dialog header small{font-size:10px;letter-spacing:.12em;color:#a7c0da}.game-settings header>button:last-child,.collective-health-dialog header>button:last-child{background:#132f4b;border:1px solid #6486aa77;color:white;width:44px;height:44px;border-radius:12px;font-size:22px;cursor:pointer}.game-settings-content,.collective-health-content{padding:10px 20px 20px}.game-settings-content>label{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #6486aa44}.game-settings-content label span{flex:1}.game-settings-content label small{display:block;color:#a8bfd6;font-size:12px;margin-top:4px}.game-settings input{width:23px;height:23px;accent-color:#ffda4b;flex-shrink:0}.game-settings select{max-width:155px;min-height:44px;border:1px solid #6382a2;background:#122e49;color:#edf4ff;border-radius:9px;padding:6px}.settings-clock-note,.collective-health-content>p{color:#b8cce0;font-size:13px}.settings-restore{border:1px solid #7089a766;background:#1c3852;color:#edf4ff;padding:12px 16px;border-radius:12px;cursor:pointer}.settings-status{color:#83dfc2;min-height:1.5em;font-size:12px}
.collective-health-widget{position:absolute;right:14px;bottom:42px;z-index:12;border:1px solid #7a9dbe55;border-radius:20px;background:#0b2037b3;backdrop-filter:blur(12px);width:90px;padding:3px 4px 8px;color:#d9e8f6;cursor:pointer;box-shadow:0 4px 22px #0004}.collective-health-widget[hidden]{display:none}.collective-orb-mini{display:block;width:76px;height:76px;margin:auto}.collective-orb-caption{display:block;font:600 10px system-ui}.collective-orb-surface{position:relative;color:var(--orb-color,#ffd166);isolation:isolate}.collective-orb-surface svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--orb-color) 35%,transparent))}.collective-orb-number{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;color:#f1f6ff;font:800 21px system-ui}.collective-orb-number small{font-size:7px;letter-spacing:.1em;color:#aabed5}.collective-orb-reflection{animation:orb-reflection var(--orb-duration,5.8s) linear infinite}.collective-orb-surface[data-animated=false] .collective-orb-reflection{animation-play-state:paused}.collective-orb-large{width:180px;height:180px;margin:0 auto}.collective-orb-large .collective-orb-number{font-size:44px}.collective-orb-large .collective-orb-number small{font-size:11px}.collective-health-status{text-align:center}.collective-health-sectors{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.collective-health-sectors article{border:1px solid #6484a055;background:#17344d66;border-radius:12px;padding:10px;display:flex;flex-direction:column;font-size:11px}.collective-health-sectors b{font-size:23px}.collective-health-sectors b small{font-size:10px;font-weight:400}.collective-health-content>small{display:block;color:#8aa6c2;font-size:11px}
@keyframes orb-reflection{to{stroke-dashoffset:-100}}
@media(max-width:899px){.living-topbar .pm-tabs .game-home-tab{display:inline-flex;position:sticky;left:0;z-index:2;background:#102b42ed;height:30px;min-width:32px;width:32px;padding:3px}.cinematic-intro>header>span{display:none}.collective-health-widget{right:9px;width:76px;bottom:36px;border-radius:16px}.collective-orb-mini{width:62px;height:62px}.collective-orb-number{font-size:18px}.collective-orb-caption{font-size:9px}.game-settings header,.collective-health-dialog header{padding:12px}.game-settings-content,.collective-health-content{padding:8px 14px 16px}.game-settings-content>label{gap:8px}.game-settings select{max-width:126px;font-size:12px}.cinematic-resume{width:100%;margin:0 0 10px}}
@media(max-height:500px){.collective-health-widget{width:66px;bottom:28px}.collective-orb-mini{width:52px;height:52px}.collective-orb-caption{font-size:8px}}

.furniture-editor{position:absolute;z-index:25;right:14px;bottom:14px;width:min(390px,calc(100% - 28px));padding:16px;border:1px solid #80cabb77;border-radius:18px;background:#0b2339ed;backdrop-filter:blur(16px);color:#eaf4ff;font:13px/1.45 system-ui;box-shadow:0 8px 30px #0006}.furniture-editor header{display:flex;justify-content:space-between;gap:10px}.furniture-editor header small{color:#7ee0bc}.furniture-editor label{display:block;margin-top:10px}.furniture-editor select{display:block;width:100%;padding:9px;background:#17374e;border:1px solid #7192aa88;color:#f1f5ff;border-radius:9px;min-height:42px}.furniture-editor .layout-help{color:#a9c2d6;font-size:12px}.layout-adjust,.furniture-editor footer{display:flex;gap:6px;flex-wrap:wrap}.furniture-editor button{min-height:42px;padding:8px 12px;border:1px solid #759ebc66;border-radius:10px;color:#eff7ff;background:#21445f;cursor:pointer}.furniture-editor button.primary{background:#ffda4b;color:#102239;font-weight:800}.furniture-editor button:disabled{opacity:.45;cursor:default}.layout-status{min-height:2.8em;color:#83e6c3}.layout-status[data-valid=false]{color:#ff94ab}.furniture-editor footer{justify-content:space-between}.is-layout-editing .collective-health-widget,.is-layout-editing .pm-toasts{display:none}.is-layout-editing .pm-canvas{cursor:grab}.is-layout-editing .pm-tabs{pointer-events:none}@media(max-width:600px){.furniture-editor{right:8px;bottom:8px;width:calc(100% - 16px);padding:12px}.furniture-editor .layout-help{display:none}.layout-status{min-height:1.5em;margin:7px 0}.furniture-editor select{margin-top:3px}}

/* Supplied cast previews stay isolated from staff management. */
.expanded-cast{width:min(1040px,94vw);max-height:92dvh;box-sizing:border-box;padding:22px;color:#eff5ff;background:#0d203b;border:1px solid #45698a;border-radius:20px;overflow:auto}.expanded-cast::backdrop{background:#020c20bc;backdrop-filter:blur(5px)}.expanded-cast header{display:flex;justify-content:space-between;gap:12px;align-items:start}.expanded-cast h1{font-size:24px;margin:4px 0}.expanded-cast h2{font-size:20px;margin:4px 0}.expanded-cast button,.expanded-cast select{font:inherit;color:inherit;background:#163653;border:1px solid #4a6e89;border-radius:9px;padding:10px;cursor:pointer}.expanded-cast button:focus-visible,.expanded-cast select:focus-visible{outline:3px solid #ffd343;outline-offset:2px}.cast-note,.cast-detail p{font-size:13px;color:#bfcfe2;line-height:1.5}.cast-layout{display:grid;grid-template-columns:1fr 350px;gap:22px}.cast-layout nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px}.cast-layout nav button{min-width:0;display:flex;flex-direction:column;align-items:center;font-size:12px;gap:6px}.cast-layout nav button[aria-pressed=true]{border-color:#ffdc40;box-shadow:0 0 0 2px #ffdc40}.cast-layout nav span{display:block;height:100px;width:100%;overflow:hidden}.cast-layout nav img{width:120px;height:180px;object-fit:contain;transform:translateY(-42px) scale(1.45)}.cast-detail canvas{display:block;width:100%;max-height:350px;object-fit:contain;background:radial-gradient(ellipse at 50% 70%,#2a5265,#112943 68%);border-radius:15px}.cast-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.cast-controls label{min-width:0;font-size:12px}.cast-controls select{display:block;max-width:100%;width:100%;margin-top:5px}.cast-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.cast-detail details{font-size:12px;color:#bfcfe2}.cast-detail li{overflow-wrap:anywhere;margin:6px 0}@media(max-width:650px){.expanded-cast{padding:15px}.cast-layout{grid-template-columns:1fr;gap:15px}.cast-layout nav{display:flex;overflow-x:auto;padding:4px 4px 10px;scroll-snap-type:x proximity}.cast-layout nav button{min-width:110px;max-width:110px;scroll-snap-align:start}.cast-layout nav span{height:70px}.cast-layout nav img{transform:translateY(-50px) scale(1.25)}.cast-detail canvas{height:250px}.expanded-cast h1{font-size:20px}}

.cast-layout nav img{width:100%;height:100%;object-fit:contain;transform:none}@media(max-width:650px){.cast-layout nav img{transform:none}}

.nature-item-preview{display:block;width:100%;height:115px;margin:10px 0;background:radial-gradient(ellipse at 50% 85%,#2b5e4b88,transparent 70%);position:relative}.nature-item-preview::after{content:"";position:absolute;inset:0;margin:auto;width:120px;background:url(/ao-trabalho/assets/nature/arvore-sombra-views.png) 0 0/100% 400% no-repeat}
