:root{font-family:Segoe UI,system-ui,sans-serif;color:#20352d;background:#f4f6f0;line-height:1.5;font-synthesis:none;--ink: #20352d;--muted: #58695e;--brand: #1f5a46;--dark: #173a32;--line: #dce4d9;--paper: #fff;--mint: #e5f2e7;--warm: #fce9cd;--radius: 20px}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15;letter-spacing:-.035em;overflow-wrap:anywhere}h1{font-size:clamp(2.05rem,4vw,3.35rem);font-weight:800}h2{font-size:1.4rem;font-weight:780}h3{font-size:1.12rem;font-weight:750}p{color:var(--muted)}a{color:var(--brand);font-weight:700;text-underline-offset:.2em}button,input,textarea,select{font:inherit;color:inherit}button{min-height:44px;padding:.55rem .85rem;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer;font-weight:680}button:hover:not(:disabled){border-color:#91ab9c;background:#f4f9f3}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #7b50c2;outline-offset:3px}.primary{border-color:var(--brand);background:var(--brand);color:#fff}.primary:hover:not(:disabled){border-color:#163f33;background:#163f33}.quiet{border-color:transparent;background:transparent;color:var(--brand)}.danger{color:#9c2b32;border-color:#e6b7ba}button svg,a svg{flex:none}small{display:block;color:var(--muted);line-height:1.38}img{max-width:100%}.skip-link{position:fixed;top:8px;left:8px;z-index:10;transform:translateY(-150%);background:#fff;padding:.6rem}.skip-link:focus{transform:none}.app{min-height:100dvh;display:grid;grid-template-columns:234px minmax(0,1fr)}.sidebar{height:100dvh;position:sticky;top:0;background:#fcfdfa;border-right:1px solid var(--line);padding:30px 16px 20px;display:flex;flex-direction:column;gap:20px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:1.35rem;letter-spacing:-.05em;font-weight:850;color:var(--dark);text-decoration:none}.sidebar .brand{margin-left:10px}.brand-mark{width:38px;height:38px;display:inline-grid;place-items:center;background:#dcebdc;color:#245641;border-radius:12px;flex:none}.household{color:var(--muted);font-size:.87rem;font-weight:700;padding:0 13px;overflow-wrap:anywhere}.sidebar nav{display:grid;gap:4px}.sidebar nav a,.mobile-more a{display:flex;align-items:center;gap:11px;text-decoration:none;padding:10px 12px;min-height:44px;border-radius:10px;font-size:.94rem;color:#435a4e}.sidebar nav a:hover,.mobile-more a:hover{background:#ebf1e8}.sidebar nav a[aria-current],.mobile-more a[aria-current]{color:#164330;background:#e0efe2}.workspace{min-width:0}.topbar{height:69px;background:#fcfdfa;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 clamp(16px,4vw,54px)}.breadcrumb,.account,.account a{display:flex;align-items:center;gap:11px;min-width:0}.breadcrumb{font-size:.89rem;color:var(--muted);overflow:hidden;white-space:nowrap}.breadcrumb strong{color:var(--ink)}.account a{text-decoration:none;font-size:.9rem;max-width:160px}.account a span:not(.avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coin-stat{display:inline-flex;align-items:center;gap:5px;background:#ffedd2;color:#784b14;border-radius:999px;padding:6px 10px;white-space:nowrap;font-weight:800;font-size:.85rem}.avatar{display:inline-block;background:#e4eedf no-repeat;background-size:400% 300%;border-radius:50%;flex:none;border:1px solid #34544124}.content{width:min(100%,1240px);margin:0 auto;padding:32px clamp(18px,4vw,54px) 64px;display:grid;gap:24px;align-content:start}.content>section,.home-grid>section{min-width:0}.page-title,.dash-heading{margin-bottom:2px}.page-title p,.dash-heading p{margin-top:8px}.dash-heading{display:flex;align-items:end;justify-content:space-between;gap:14px}.date-line{color:#436650;font-size:.83rem;font-weight:750;margin-bottom:7px}.date-line:first-letter{text-transform:uppercase}.wave{font-size:.62em;color:#c47c25;vertical-align:middle}.level-card{border:1px solid var(--line);border-radius:15px;padding:9px 13px;display:flex;gap:10px;align-items:center;white-space:nowrap;background:#fcfdfa}.level-icon,.task-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;flex:none}.level-icon,.lavender{color:#654e82;background:#ede5f5}.mint{color:#28604a;background:#e4f2e5}.boss{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(150px,.65fr);overflow:hidden;min-height:236px;border-radius:var(--radius);background:radial-gradient(ellipse at 77% 64%,#366a52,#214f41 52%,#173e34);color:#fff}.boss-copy{z-index:1;padding:25px clamp(20px,4vw,34px)}.boss-label{display:inline-flex;gap:6px;align-items:center;background:#d6e8ac;color:#264a36;border-radius:999px;padding:4px 10px;font-size:.8rem;font-weight:800}.boss h2{margin:.6rem 0 .35rem;font-size:clamp(1.65rem,4vw,2.8rem);overflow-wrap:anywhere}.boss p{color:#e1eee1}.progress-label{display:flex;justify-content:space-between;gap:8px;margin-top:1.25rem;font-size:.9rem}progress{display:block;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:10px;margin-top:7px;border:0;border-radius:99px;background:#547369;overflow:hidden}progress::-webkit-progress-bar{background:#547369}progress::-webkit-progress-value{background:#f5c87d;border-radius:99px}progress::-moz-progress-bar{background:#f5c87d;border-radius:99px}.boss-art{position:relative;display:grid;place-items:center;min-height:125px}.orbit{position:absolute;width:190px;height:190px;border:1px solid #d8ebbe4a;border-radius:100%;box-shadow:0 0 0 24px #e6edc011,0 0 0 49px #e6edc009}.monster{position:relative;z-index:2;width:112px;height:91px;background:#b9d59b;border-radius:49% 52% 36% 40%;transform:rotate(-8deg);box-shadow:inset -8px -9px #9cbc81,0 3px 10px #18372d55}.monster:before,.monster:after{content:"";position:absolute;width:37px;height:40px;border-radius:50%;background:#b9d59b;z-index:-1;top:-11px;left:3px}.monster:after{left:auto;right:3px}.monster i{position:absolute;top:34px;left:30px;width:10px;height:14px;border-radius:50%;background:#183d33}.monster i+i{left:70px}.monster b{position:absolute;width:18px;height:10px;border-bottom:3px solid #183d33;border-radius:50%;left:47px;top:46px}.monster-shadow{width:138px;height:13px;position:absolute;top:73%;border-radius:50%;background:#12372c71}.boss-spark{position:absolute;color:#f3d697;font-size:1.6rem}.boss-spark.one{left:18%;top:24%}.boss-spark.two{right:19%;top:20%}.boss-spark.three{right:16%;bottom:26%}.home-grid,.profile-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr);gap:18px}.home-aside{display:grid;gap:12px;align-content:start}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.section-heading h2{overflow-wrap:anywhere}.section-heading a{font-size:.9rem}.panel,.task-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px}.task-list{display:grid;gap:9px}.task-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;padding:14px;border-radius:16px}.task-info{min-width:0;overflow-wrap:anywhere}.task-info h3{margin:2px 0 7px}.task-meta{color:var(--muted);font-size:.8rem}.task-info p{font-size:.9rem;margin:5px 0}.tags{display:flex;gap:5px;flex-wrap:wrap}.tags span{display:inline-flex;align-items:center;gap:3px;border-radius:6px;background:#eef1eb;color:#44584b;padding:2px 6px;font-size:.77rem;font-weight:680}.tags .xp-tag{background:#ece6f6;color:#60477f}.tags .coin-tag{background:#fff0d5;color:#784b14}.tags .overdue{background:#fce3e0;color:#8f342a}.tags .complete-tag{background:#e1f2e3;color:#236346}.task-actions{display:grid;gap:4px;align-content:start}.task-actions button{font-size:.87rem}.task-actions:empty{display:none}.task-controls{display:flex;flex-wrap:wrap;gap:2px;margin-top:3px}.task-controls button{font-size:.81rem;padding:.25rem .45rem}.mine .task-card{grid-template-columns:minmax(0,1fr);padding:10px}.mine .task-icon{display:none}.mine .task-actions{display:flex;flex-wrap:wrap}.mine .empty{padding:14px}.overdue-card,.shop-card{display:flex;align-items:center;gap:10px;padding:14px;border-radius:14px;text-decoration:none;color:#673e1e;background:#ffecd5}.shop-card{color:#3d336b;background:#ebe6f6}.overdue-card span,.shop-card span{display:block;font-size:.83rem;font-weight:500}.empty{display:grid;place-items:center;gap:6px;text-align:center;padding:24px 12px;border:1px dashed var(--line);border-radius:14px;color:#468065;background:#f7f9f5}.tabs,.buttons,.filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tabs a{padding:.6rem}.tabs button[aria-pressed=true],.room-grid button[aria-pressed=true]{background:#e0efe2;border-color:#8cb49c;color:#184a36}.filter-bar{align-items:end}.filter-bar .field{min-width:125px}.field{display:grid;gap:5px;font-size:.92rem;font-weight:680}.field input,.field textarea,.field select{width:100%;min-height:44px;border:1px solid #ccd7ca;padding:8px 10px;border-radius:9px;background:#fff}.field textarea{min-height:82px;resize:vertical}.check{display:flex;align-items:center;gap:8px;min-height:44px}.check input{height:18px;width:18px;accent-color:var(--brand)}.avatar-picker{border:0;padding:0;margin:0;min-width:0}.avatar-picker legend{font-weight:700;margin-bottom:8px}.avatar-picker>div{display:flex;flex-wrap:wrap;gap:7px}.avatar-picker label{cursor:pointer;position:relative}.avatar-picker label input{position:absolute;opacity:0;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;cursor:pointer}.avatar-picker .avatar{pointer-events:none}.avatar-picker input:checked+.avatar{outline:3px solid #40805d;outline-offset:1px}.avatar-picker input:focus-visible+.avatar{outline:3px solid #7b50c2;outline-offset:2px}.profile-summary,.person-line{display:flex;align-items:center;gap:12px}.profile-grid .panel,.reward,.map-editor,.admin-form,.welcome-form form,.inline-form{display:grid;gap:12px}.profile-grid .panel{align-content:start}.form-grid,.reward-grid,.room-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px}.admin-form{max-width:750px}.line-list,.badge-list{padding:0;margin:12px 0 0;list-style:none;display:grid;gap:4px}.line-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.line-list li:last-child{border-bottom:0}.badge-list li{display:flex;align-items:center;gap:9px;padding:8px;background:#f0e9f8;border-radius:9px}.reward-icon{display:grid;place-items:center;border-radius:13px;background:#f0e8f8;font-size:2rem;width:60px;height:60px}.calendar-day h2{padding:8px 0;font-size:1.15rem}.calendar-day h2:first-letter{text-transform:uppercase}.calendar-day h2 small{display:inline;color:var(--muted);margin-left:8px}.map-panel .section-heading button{min-width:44px}.map-viewport{max-height:66vh;overflow:auto;background:#edf0e7;border-radius:10px;border:1px solid var(--line)}.map-stage{position:relative;min-width:260px}.map-stage img{display:block;width:100%;height:auto}.map-overlay{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.map-overlay.tracing{cursor:crosshair}.region{cursor:pointer}.region polygon{stroke-width:2.2;fill-opacity:.32}.region.selected polygon,.region:focus-visible polygon{stroke-width:5;fill-opacity:.45}.region.green polygon{fill:#64c187;stroke:#236747}.region.yellow polygon{fill:#f7d060;stroke:#876521}.region.red polygon{fill:#f16a65;stroke:#a4292e}.region.gray polygon{fill:#b3bbc0;stroke:#616b71}.region circle{fill:#173a32}.region text{fill:#fff;font-weight:900;pointer-events:none}.tracing .region,.tracing .draft{pointer-events:none}.draft{fill:#ab90d880;stroke:#53367d;stroke-width:2.5}.vertex{fill:#fff;stroke:#53367d;stroke-width:3;cursor:move;touch-action:none}.map-legend{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.map-legend span{border-radius:6px;padding:3px 7px;font-size:.82rem;color:var(--ink)}.map-legend .green{background:#d9efdf}.map-legend .yellow{background:#faedba}.map-legend .red{background:#fbdcdb}.map-legend .gray{background:#e5e9e8}.room-grid button{display:flex;align-items:center;gap:7px;text-align:left}.room-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;margin:0 0 12px}.room-timeline div{background:#f4f6f0;border-radius:9px;padding:8px 10px}.room-timeline dt{font-weight:700}.room-timeline dd{margin:0;color:var(--muted)}.vertices>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;align-items:end;margin:8px 0}.map-editor,.confirm{margin-top:12px;background:#f2f6ee;border-radius:12px;padding:14px}.fault{color:#861f2a;background:#fae2e1;padding:10px;border-radius:8px}.loading{padding:16px}.toast{position:fixed;z-index:5;right:1rem;bottom:1rem;max-width:calc(100% - 2rem);background:#1c5341;color:#fff;border-radius:12px;padding:6px 8px 6px 14px;display:flex;gap:10px;align-items:center;box-shadow:0 6px 24px #1a2f2860}.toast button,.toast button:hover:not(:disabled){color:#fff;background:transparent;font-size:1.25rem}.error-toast{background:#8d3035}.welcome{max-width:1060px;margin:0 auto;min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:36px;padding:30px clamp(18px,5vw,60px)}.welcome-brand{background:#214d40;border-radius:24px;padding:30px;color:#fff;min-height:390px;display:grid;align-content:center;gap:14px}.welcome-brand .brand,.welcome-brand p{color:#ecf6e9}.welcome-brand h1{margin-top:9px}.welcome-avatars{display:flex;align-items:center;gap:8px;margin-top:10px}.welcome-form{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px}.welcome-form h2{margin-bottom:13px}.profiles{display:grid;gap:8px;margin-top:12px}.profiles button{display:flex;align-items:center;gap:10px;text-align:left}.mobile-brand,.bottom-nav,.mobile-more{display:none}@media(max-width:1100px){.home-grid{grid-template-columns:minmax(0,1.4fr) minmax(195px,1fr)}.home-grid>section .task-card{grid-template-columns:auto minmax(0,1fr)}.home-grid>section .task-actions{grid-column:2;display:flex}.home-grid>section .task-actions:empty{display:none}}@media(max-width:820px){.app{display:block}.sidebar,.breadcrumb,.signout,.account a span:not(.avatar){display:none}.mobile-brand{display:block}.topbar{height:62px}.content{padding-top:20px;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.bottom-nav,.mobile-more{position:fixed;z-index:3;background:#fcfdfa;border:1px solid var(--line)}.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));inset:auto 0 0;padding:4px 4px calc(4px + env(safe-area-inset-bottom))}.bottom-nav a,.bottom-nav button{color:var(--brand);text-decoration:none;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;padding:2px;font-size:.73rem}.bottom-nav a[aria-current]{background:#e0efe2}.mobile-more{right:8px;bottom:calc(64px + env(safe-area-inset-bottom));display:grid;padding:8px;border-radius:14px;box-shadow:0 8px 30px #213b3830}.toast{bottom:calc(70px + env(safe-area-inset-bottom))}}@media(max-width:590px){.welcome{min-height:auto;grid-template-columns:1fr;gap:14px;padding-bottom:24px}.welcome-brand{min-height:0;padding:18px;gap:7px}.welcome-brand h1{font-size:1.8rem}.welcome-avatars{display:none}.welcome-form{padding:17px}.home-grid,.profile-grid{grid-template-columns:1fr}.boss{display:block;min-height:0}.boss-copy{position:relative;padding:20px}.boss-art{display:none}.dash-heading{align-items:start}.level-card{padding:6px 7px;gap:3px;font-size:.82rem}.level-icon{width:26px;height:27px}.level-icon svg{width:15px}.account{gap:7px}.coin-stat span{display:none}.task-card,.home-grid>section .task-card{grid-template-columns:auto minmax(0,1fr);gap:8px}.task-actions{grid-column:2;display:flex;flex-wrap:wrap}.mine .task-actions{grid-column:1}.task-icon{width:33px;height:34px;border-radius:10px}.task-icon svg{width:17px}.section-heading,.line-list li{flex-wrap:wrap}.map-panel{padding:11px}.page-title p{font-size:.94rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
