:root{--bg:#f5f3ed;--paper:#fffefa;--ink:#223c3a;--muted:#72817a;--line:#dedfd4;--green:#355d4e;--mint:#dce8d5;--orange:#e88756;--warm:#f5e6d0;--shadow:0 7px 20px #283c2a06}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 'Segoe UI',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:11px 16px;border-radius:11px;font-weight:600;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#edf1e5;transform:translateY(-1px)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e5955b;outline-offset:3px}a{color:var(--green)}svg{display:block}button svg{display:inline-block;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.2;letter-spacing:-1.4px;font-weight:750}h2{font-size:21px;letter-spacing:-.5px;font-weight:700}h3{font-size:16px;letter-spacing:-.2px}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:1.9px;font-weight:750}.small{font-size:12px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover:not(:disabled){background:#284a3d}.orange{background:var(--orange);color:#263b33;border-color:var(--orange)}.ghost{background:transparent;border-color:transparent}.text-button{border:0;background:transparent;padding:0;color:var(--green);font-size:12px}.danger{color:#9e4c3d}.icon-button{padding:9px;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px}.badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:650;background:#e8eddf;color:#4a6552;border-radius:20px;padding:5px 9px;white-space:nowrap}.badge.orange{background:#f7e6d5;color:#99673a}.badge.neutral{background:#f0f0ea;color:#69766b}.badge.blue{background:#e4ebee;color:#4d6b7b}.label-dot:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}.flex{display:flex;align-items:center;gap:12px}.between{display:flex;justify-content:space-between;align-items:center;gap:12px}.stack{display:grid;gap:14px}.grow{flex:1;min-width:0}.nowrap{white-space:nowrap}.sep{height:1px;background:var(--line);margin:20px 0}.desktop-only{display:block}
.sidebar{position:fixed;inset:0 auto 0 0;width:206px;background:#fdfcf6;border-right:1px solid var(--line);padding:30px 19px;display:flex;flex-direction:column;z-index:20}.brand{font-size:37px;font-weight:800;letter-spacing:-2.5px;text-decoration:none;display:flex;align-items:center;gap:8px}.brand svg{width:35px;height:35px}.brand-note{font-size:9px;letter-spacing:1.6px;margin:6px 0 36px;color:var(--muted)}.house-chip{display:flex;gap:11px;align-items:center;background:#e9eddf;border:1px solid #dde4d3;border-radius:12px;padding:12px 11px;margin-bottom:26px;font-size:12px;font-weight:700}.house-chip small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:2px}nav{display:grid;gap:6px}nav button{border:0;background:transparent;text-align:left;color:#7a8377;display:flex;gap:13px;align-items:center;padding:12px;font-weight:550;font-size:13px}nav button.active{background:var(--green);color:#fff;box-shadow:0 3px 0 #213f31}nav button.active:hover{background:#355d4e}.sidebar-bottom{margin-top:auto;color:var(--muted);font-size:11px;padding:30px 10px 0}.sidebar-bottom b{font-weight:600;color:var(--ink);display:block;margin-bottom:7px}.sidebar-bottom p{line-height:1.7}main{margin-left:206px;padding:0 38px;max-width:1700px}.topbar{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:11px}.crumb{display:flex;align-items:center;gap:11px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:14px}.local-label{color:var(--muted);font-size:10px}.profile-button{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;font-size:12px;border-radius:30px}.profile-head{width:32px;height:32px;border-radius:50%;overflow:hidden;background:#e8e6d9}.profile-head svg{width:42px;height:56px;margin-left:-5px;margin-top:-2px}.page-heading{margin:30px 0 23px;display:flex;justify-content:space-between;align-items:center;gap:15px}.page-heading p{font-size:13px;margin-top:9px;color:var(--muted)}.date-chip{font-size:11px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:9px 12px;border-radius:9px;background:#fff9}.dashboard-top{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.house-stage{border:1px solid #d9dfce;background:#e9eedf;border-radius:18px;min-height:365px;position:relative;overflow:hidden}.stage-top{position:absolute;top:23px;left:25px;z-index:2}.stage-top h2{font-size:18px;margin-top:5px}.stage-top .eyebrow{font-size:9px;color:#748265}.house-illustration{width:100%;height:315px;display:block;margin-top:44px}.house-room{cursor:pointer;transition:filter .15s}.house-room:hover{filter:brightness(1.07)}.house-room:focus{outline:none;filter:drop-shadow(0 0 4px #e88756)}.house-stage .hint{position:absolute;bottom:18px;left:25px;font-size:10px;color:#748265;display:flex;align-items:center;gap:7px}.house-stage .stage-weather{position:absolute;top:25px;right:25px;font-size:11px;color:#78886c;display:flex;align-items:center;gap:8px}.hero-team{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px;display:flex;flex-direction:column;box-shadow:var(--shadow)}.hero-team h2{font-size:17px}.team-art{height:135px;display:flex;justify-content:center;align-items:end;margin:7px 0}.team-art svg{width:100px;height:135px}.team-art svg+svg{margin-left:-10px}.team-names{display:flex;justify-content:space-around;font-size:11px;gap:7px}.joint-xp{margin-top:16px}.progress{height:6px;background:#e9ece2;border-radius:10px;overflow:hidden}.progress span{display:block;height:100%;background:#7fa16e;border-radius:10px;transition:width .4s}.hero-team .team-footer{margin-top:auto;padding-top:16px;font-size:10px;line-height:1.7;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0 26px}.stat{background:var(--paper);border:1px solid var(--line);padding:16px 20px;border-radius:13px;display:flex;align-items:center;gap:15px}.stat-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#edf0e1;color:#66815a}.stat:nth-child(2) .stat-icon{background:#f8e8d9;color:#c08758}.stat:nth-child(3) .stat-icon{background:#e3ebea;color:#658980}.stat .value{font-size:26px;letter-spacing:-1px;font-weight:750;line-height:1.2}.stat .value small{font-size:11px;letter-spacing:0;font-weight:500;color:var(--muted)}.stat .caption{font-size:10px;color:var(--muted);margin-top:4px}.content-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:23px}.panel{border:1px solid var(--line);border-radius:15px;background:var(--paper);padding:23px;box-shadow:var(--shadow);min-width:0}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.panel-title h2{font-size:18px}.panel-sub{font-size:11px;color:var(--muted);margin-top:4px}.energy-select{display:flex;background:#f0f1e8;padding:4px;border-radius:11px;gap:4px;margin-bottom:11px}.energy-select button{flex:1;border:0;background:transparent;padding:10px 4px;font-size:11px;font-weight:550;display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.energy-select button.selected{background:#fffefa;box-shadow:0 2px 5px #1b3f3410;color:var(--green)}.menu-summary{font-size:10px;color:var(--muted);margin-bottom:9px}.task-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #e9e9e0}.task-row:last-child{border:0}.task-icon{width:42px;height:42px;flex-shrink:0;background:#eeeddf;border-radius:11px;display:grid;place-items:center;color:#6c8064}.task-name{font-size:12px;font-weight:650;margin-bottom:4px;display:block}.task-meta{font-size:10px;color:var(--muted);line-height:1.8}.task-actions{display:flex;align-items:center;gap:8px}.xp-tag{font-size:11px;color:#aa7c43;font-weight:650;white-space:nowrap}.start-task{border-radius:50%;width:33px;height:33px;padding:0;display:grid;place-items:center;border-color:#b9cbb1;background:#eff4e8;color:var(--green)}.section-action{font-size:11px;padding:8px 11px}.cleanliness{display:flex;align-items:center;gap:5px;font-size:10px}.dot{width:6px;height:6px;background:#b9bcae;border-radius:50%;display:inline-block}.dot.fresh{background:#7b9c64}.dot.due{background:#db8c60}.dot.soon{background:#d6b56c}.activity-item{display:flex;align-items:start;gap:10px;padding:14px 0;border-bottom:1px solid #eeeee5}.activity-item:last-child{border:0}.activity-icon{width:28px;height:28px;background:#eef3e9;color:#789366;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.activity-item strong{font-size:11px}.activity-item p{font-size:10px;color:var(--muted);margin-top:4px}.empty-state{padding:28px 16px;text-align:center;color:var(--muted);font-size:12px}.empty-state svg{margin:0 auto 10px;color:#8c9d79}.empty-state b{display:block;color:var(--ink);font-size:13px;margin-bottom:5px}.quote-card{border-radius:12px;padding:16px;background:#f0eddf;margin-top:17px;font-size:11px;color:#65735e;display:flex;align-items:start;gap:10px}.quote-card b{color:#51664e;display:block;margin-bottom:3px}.week-mini{display:flex;gap:6px;margin-bottom:16px}.week-dot{flex:1;text-align:center;font-size:9px;color:var(--muted)}.week-dot span{display:block;height:26px;border-radius:7px;background:#f0f1e8;margin-top:6px;line-height:26px;font-weight:700;color:#a1a68e}.week-dot span.done{background:#d9e7cf;color:#4e7147}.week-dot span.today{box-shadow:inset 0 0 0 1px #8da679}.section-space{margin-top:24px}.filters{display:flex;gap:7px;flex-wrap:wrap;margin:17px 0}.filters button{font-size:11px;padding:9px 12px}.filters .selected{background:var(--green);color:white;border-color:var(--green)}.task-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.search{position:relative;min-width:210px}.search input{padding:11px 12px 11px 35px;width:100%;border-radius:10px;border:1px solid var(--line);background:var(--paper);font-size:12px}.search svg{position:absolute;left:12px;top:13px;color:var(--muted)}.task-list .task-row{padding:17px 4px}.task-list .task-name{font-size:14px}.task-list .task-meta{font-size:11px}.task-list .task-icon{width:48px;height:48px}.status-filter{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted)}.status-filter select{max-width:180px;margin:0;padding:8px 10px}.room-detail-header{display:grid;grid-template-columns:130px 1fr;gap:20px;align-items:center;background:#e8eddd;border:1px solid #dce1cf;border-radius:16px;padding:22px;margin-bottom:20px}.room-detail-header svg{width:115px;height:110px}.room-detail-header h2{font-size:25px}.room-detail-header p{font-size:12px;color:var(--muted);margin:5px 0}.room-detail-header .badge{margin-top:8px}.room-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.room-card{padding:20px;border:1px solid var(--line);background:var(--paper);border-radius:15px;text-align:left;position:relative}.room-card h3{margin-bottom:4px}.room-card .room-art{width:100%;height:115px;overflow:hidden}.room-card p{font-size:10px;color:var(--muted);margin-bottom:12px}.room-card:hover{box-shadow:0 5px 15px #314b3210}.calendar-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.calendar-controls h2{font-size:18px}.calendar-scroll{overflow:auto}.calendar{display:grid;grid-template-columns:repeat(7,minmax(125px,1fr));gap:8px}.day{background:var(--paper);border:1px solid var(--line);border-radius:12px;min-height:260px;padding:12px}.day.today{border-color:#90a580;box-shadow:inset 0 3px 0 #90a580}.day-heading{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.day-heading b{font-size:19px;color:var(--ink)}.plan-card{margin-top:14px;padding:10px 9px;background:#eff1e5;border-radius:9px;font-size:10px;border-left:3px solid #8aa47b}.plan-card strong{font-size:11px;display:block;margin-bottom:7px}.plan-card .plan-meta{color:#7c8772;font-size:9px;margin-bottom:9px}.plan-card .mini-actions{display:flex;gap:5px;flex-wrap:wrap}.plan-card button{font-size:9px;padding:5px 7px;border-radius:6px}.add-plan-day{margin:14px auto 0;display:block;border-style:dashed;background:transparent;padding:7px;width:100%;font-size:10px;color:var(--muted)}.chart{width:100%;height:230px;display:block}.legend{display:flex;align-items:center;gap:15px;font-size:10px;color:var(--muted);margin-top:12px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:8px;height:8px;border-radius:2px;display:inline-block}.contribution-row{margin-top:24px}.contribution-row .between{font-size:12px;margin-bottom:10px}.contribution-row p{font-size:10px;color:var(--muted);margin-top:6px}.contribution-note{font-size:10px;line-height:1.8;color:var(--muted);margin-top:25px}.history-list .activity-item{align-items:center}.history-list .activity-item strong{font-size:13px}.history-list .activity-item p{font-size:11px}.avatar-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px}.avatar-scene{height:310px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse at center,#faf7e8 0,#e5e9d7 65%);border-radius:15px;overflow:hidden}.avatar-scene:after{content:'';position:absolute;width:170px;height:30px;background:#c6d2bc;border-radius:50%;bottom:30px}.avatar-scene>svg{height:260px;width:195px;position:relative;z-index:1;animation:breathe 4s ease-in-out infinite}.avatar-info{text-align:center;margin-top:20px}.avatar-info h2{margin-bottom:4px}.avatar-info .progress{margin:15px 0 7px}.gear-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.gear-card{border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;align-items:center;gap:14px}.gear-card.selected{background:#eaf0e1;border-color:#8fa57d}.gear-card .gear-art{height:70px;width:60px;flex-shrink:0}.gear-card h3{font-size:13px;margin-bottom:4px}.gear-card p{font-size:10px;color:var(--muted);margin-bottom:8px}.gear-card button{font-size:10px;padding:6px 10px}.customizer{margin-top:20px}.swatches{display:flex;gap:8px;margin:8px 0 19px;flex-wrap:wrap}.swatch{width:30px;height:30px;border-radius:50%;padding:0;border:3px solid white;box-shadow:0 0 0 1px #d9dbcf}.swatch.selected{box-shadow:0 0 0 2px #355d4e}.field-label{display:block;font-size:11px;font-weight:650;margin-bottom:6px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid h3{margin-bottom:13px}.settings-grid p{font-size:12px;color:var(--muted);line-height:1.8}.inline-note{font-size:10px;line-height:1.7;color:var(--muted);padding:12px 14px;border-radius:9px;background:#f1f1e8}.inline-note.warn{background:#fcf0dc;color:#896935}input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{width:100%;padding:11px 12px;border:1px solid #d7dbce;border-radius:9px;background:#fffefa;color:var(--ink);font-size:13px;margin-bottom:14px}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0;cursor:pointer}textarea{resize:vertical;min-height:90px}.checkbox-row{display:flex;align-items:start;gap:10px;padding:12px 0;font-size:13px;cursor:pointer;border-bottom:1px solid #ededdf}.checkbox-row input{margin:2px 0}.checkbox-row:last-child{border:0}.checkbox-row.checked span{text-decoration:line-through;color:#9ba18f}.checkbox-row.checked input{opacity:.8}.checklist{margin:14px 0}.mode-select{display:flex;gap:6px;margin:18px 0}.mode-select button{flex:1;font-size:11px;padding:9px 5px}.mode-select button.selected{background:#e4edd9;border-color:#8da57c}.modal-shell{border:0;border-radius:19px;width:min(590px,94vw);max-height:90vh;padding:0;color:var(--ink);background:var(--paper);box-shadow:0 20px 100px #172c2b44}.modal-shell::backdrop{background:#1f363862;backdrop-filter:blur(3px)}.modal-header{padding:22px 25px 17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:start;gap:12px}.modal-header h2{font-size:22px}.modal-header .eyebrow{color:var(--muted);margin-bottom:5px}.modal-body{padding:22px 25px}.modal-footer{padding:17px 25px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f6f6ee}.modal-footer button{font-size:12px}.task-standard{padding:15px;background:#eeefe3;border-radius:11px;font-size:12px;line-height:1.8}.task-standard ul{padding-left:18px;margin:8px 0 0}.task-standard .eyebrow{font-size:9px}.timer{display:flex;justify-content:space-between;align-items:center;background:#e9eddd;padding:16px;border-radius:12px}.timer-value{font-size:32px;font-variant-numeric:tabular-nums;line-height:1.2;font-weight:700;letter-spacing:-1px}.timer .eyebrow{font-size:8px;margin-bottom:5px;color:#7b8a6d}.timer button{font-size:11px}.timer-controls{display:flex;gap:6px}.timer-controls button{padding:8px 9px}.attachment-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.attachment-actions button{font-size:11px;padding:9px 12px}.attachment-preview{width:100%;max-height:180px;object-fit:contain;border-radius:10px;background:#eff0e7;margin:12px 0}.error-text{font-size:12px;color:#ac4d39;padding:10px 0;min-height:20px}.help{font-size:10px;line-height:1.7;color:var(--muted);margin:-5px 0 14px}.success-scene{text-align:center;padding:10px 5px 20px}.success-badge{width:88px;height:88px;background:#e2edd7;border-radius:50%;display:grid;place-items:center;margin:10px auto 18px;color:#658653;border:6px solid #eff4e8}.success-scene h2{font-size:27px}.xp-big{font-size:43px;font-weight:800;letter-spacing:-2px;color:#cc8555;margin:13px 0}.success-scene p{font-size:12px;color:var(--muted)}.unlock-banner{border-radius:10px;padding:14px;background:#f8eccf;margin:18px 0;font-size:12px}.toast{position:fixed;bottom:24px;left:calc(50% + 100px);transform:translateX(-50%);background:#243f37;color:#fff;padding:13px 21px;border-radius:12px;box-shadow:0 8px 20px #0002;z-index:1000;max-width:90vw;font-size:12px;display:none}.toast.show{display:flex;align-items:center;gap:10px}.save-status{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.save-status i{width:5px;height:5px;background:#92a77b;border-radius:50%}.footer{display:flex;justify-content:space-between;align-items:center;gap:15px;color:var(--muted);padding:25px 0 30px;font-size:10px}.bottom-banner{background:#eee8d8;border-radius:12px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;margin-top:24px}.bottom-banner button{font-size:10px;padding:8px 12px}.run-dock{position:fixed;bottom:20px;right:28px;background:var(--green);color:#fff;border:1px solid #6a8a6d;border-radius:13px;padding:13px 18px;box-shadow:0 6px 20px #0002;z-index:25;display:flex;align-items:center;gap:15px;font-size:12px}.run-dock button{border:0;background:#ffffff18;color:white;font-size:11px;padding:7px 10px}.run-dock strong{font-variant-numeric:tabular-nums}.confetti{position:fixed;z-index:999;pointer-events:none;width:9px;height:9px;top:25%;left:50%;animation:burst 1.3s ease-out forwards}noscript{display:block;background:#fee3ce;padding:20px;text-align:center}.startup-error{padding:40px;max-width:650px;margin:auto}.log-photo{max-width:100%;border-radius:10px}.notice{padding:10px 18px;background:#fff1d9;border:1px solid #f0dab2;border-radius:10px;font-size:12px;margin:15px 0}.week-target{font-size:10px;color:var(--muted);margin-top:7px}.progress-ring{transform:rotate(-90deg)}.room-legend{position:absolute;bottom:17px;right:20px;display:flex;gap:10px;font-size:9px;color:#7d886f}.room-legend span{display:flex;gap:4px;align-items:center}.pending-plan{padding:10px 14px;background:#f3e9d7;border-radius:10px;font-size:11px;margin-bottom:16px}.recording{color:#b34a3e!important;background:#fbe6df!important}.profile-pick{display:flex;gap:15px}.profile-pick button{flex:1;padding:18px;display:grid;justify-items:center;gap:10px}.profile-pick svg{width:90px;height:120px}.profile-pick button.selected{background:#e5edda;border-color:#91a77e}@keyframes breathe{50%{transform:translateY(-4px)}}@keyframes burst{to{transform:translate(var(--x),var(--y)) rotate(540deg);opacity:0}}@media(min-width:1450px){main{padding:0 55px}.house-stage{min-height:400px}.house-illustration{height:350px}.hero-team{padding:26px}.team-art{height:160px}.team-art svg{height:150px;width:115px}}@media(max-width:1120px){.sidebar{width:175px;padding:26px 13px}main{margin-left:175px;padding:0 24px}.dashboard-top{grid-template-columns:minmax(0,1fr) 230px}.hero-team{padding:18px}.content-columns{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}.stat{padding:14px;gap:10px}.stat-icon{width:33px;height:33px}.gear-card{padding:14px;gap:10px}.avatar-layout{grid-template-columns:280px minmax(0,1fr)}.gear-grid{grid-template-columns:1fr}}@media(max-width:900px){.dashboard-top{grid-template-columns:1fr}.hero-team{display:none}.content-columns{grid-template-columns:1fr}.stats{gap:10px}.stat .value{font-size:23px}.room-cards{grid-template-columns:repeat(2,1fr)}.avatar-layout{grid-template-columns:250px minmax(0,1fr)}.settings-grid{grid-template-columns:1fr}.house-stage{min-height:350px}.house-illustration{height:310px;margin-top:30px}.chart{height:220px}.toast{left:calc(50% + 87px)}}@media(max-width:650px){.sidebar{inset:auto 0 0;width:100%;height:68px;padding:0;display:block;border-top:1px solid var(--line);border-right:0;background:#fffef7f5;backdrop-filter:blur(10px)}.brand,.brand-note,.house-chip,.sidebar-bottom{display:none}nav{display:flex;justify-content:space-around;gap:0;height:100%}nav button{font-size:8px;padding:9px 2px;display:flex;flex-direction:column;justify-content:center;gap:4px;border-radius:0;flex:1}nav button svg{width:18px;height:18px}nav button.active{background:transparent;color:var(--green);box-shadow:inset 0 3px 0 var(--green)}nav button.active:hover{background:#eef2e5}main{margin:0;padding:0 16px 70px}.topbar{height:65px}.top-actions{gap:8px}.local-label{display:none}.topbar .crumb{font-size:10px;gap:8px}.page-heading{margin:23px 0 19px;align-items:start}h1{font-size:29px;letter-spacing:-1px}.page-heading p{font-size:12px;max-width:300px}.date-chip{display:none}.house-stage{min-height:310px;border-radius:14px}.stage-top{left:18px;top:18px}.stage-top h2{font-size:16px}.house-illustration{height:272px;margin-top:32px}.house-stage .hint{font-size:9px;bottom:15px;left:17px}.house-stage .stage-weather{top:21px;right:16px;font-size:10px}.room-legend{display:none}.stats{gap:7px;margin:12px 0 20px}.stat{padding:13px 9px;display:block;border-radius:11px}.stat-icon{display:none}.stat .value{font-size:24px}.stat .caption{font-size:9px;margin-top:5px}.stat .value small{font-size:9px}.content-columns{gap:15px}.panel{padding:18px;border-radius:13px}.panel-title h2{font-size:17px}.task-row{gap:9px}.task-icon{width:36px;height:36px;border-radius:9px}.task-name{font-size:12px}.task-actions{gap:6px}.xp-tag{font-size:10px}.energy-select button{font-size:10px;gap:4px;padding:10px 2px}.energy-select button svg{width:13px}.room-cards{gap:10px}.room-card{padding:15px}.room-card h3{font-size:14px}.room-card p{font-size:9px}.room-card .room-art{height:95px}.room-card .badge{font-size:8px;padding:4px 7px}.filters{gap:5px}.filters button{padding:8px 10px;font-size:10px}.task-list .task-name{font-size:12px}.task-list .task-meta{font-size:10px}.task-list .task-icon{width:37px;height:37px}.task-list .secondary-task-action{display:none}.task-toolbar{gap:12px}.search{min-width:0;flex:1}.avatar-layout{grid-template-columns:1fr}.avatar-scene{height:260px}.avatar-scene>svg{height:225px}.gear-grid{grid-template-columns:1fr 1fr;gap:8px}.gear-card{display:block;padding:13px}.gear-card .gear-art{height:55px;width:50px;margin-bottom:10px}.gear-card h3{font-size:12px}.gear-card p{font-size:9px;min-height:28px}.calendar-controls h2{font-size:14px}.calendar-controls button{font-size:10px;padding:8px 10px}.calendar{grid-template-columns:repeat(7,145px)}.footer{display:block;font-size:9px}.footer .save-status{margin-top:10px}.desktop-only{display:none}.bottom-banner{font-size:10px;padding:13px;align-items:start}.bottom-banner button{white-space:nowrap}.room-detail-header{grid-template-columns:85px 1fr;padding:16px;gap:12px}.room-detail-header svg{width:85px;height:90px}.room-detail-header h2{font-size:22px}.room-detail-header p{font-size:10px}.modal-shell{width:96vw;max-height:92dvh}.modal-header{padding:18px 20px}.modal-header h2{font-size:20px}.modal-body{padding:18px 20px}.modal-footer{padding:16px 20px}.mode-select button{font-size:10px}.toast{left:50%;bottom:80px;min-width:250px}.run-dock{bottom:79px;right:12px;left:12px;padding:11px 14px;justify-content:space-between}.run-dock .run-title{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-body .fields{gap:10px}.history-list .activity-item strong{font-size:11px}.history-list .activity-item p{font-size:9px}.history-list .activity-item .icon-button{min-width:30px;padding:5px}.stage-weather svg{width:17px}.topbar .profile-button{font-size:10px}.chart{height:200px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.catalog-task{border:1px solid var(--line);border-radius:10px;margin:9px 0;overflow:hidden}.catalog-task summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;cursor:pointer;font-size:12px;background:#f3f4e9}.catalog-task summary::-webkit-details-marker{display:none}.catalog-task summary span:first-child{display:flex;align-items:center;gap:8px}.catalog-task[open] summary{border-bottom:1px solid var(--line)}.catalog-body{padding:15px}.catalog-body ul{font-size:12px;line-height:1.9;padding-left:19px;margin:12px 0}.catalog-points{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0;color:#866a43;font-size:10px}.catalog-points span{background:#f4ebd8;padding:5px 8px;border-radius:5px}@media(max-width:650px){.page-heading>.flex{display:grid;gap:5px}.page-heading>.flex button{font-size:9px;padding:8px}.page-heading>.flex button svg{display:none}}
/* Fantasy hero collection */
.fantasy-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:22px;align-items:start}.fantasy-character{padding:10px}.fantasy-scene{height:450px;border-radius:12px;background:radial-gradient(ellipse at 50% 40%,#31595a 0,#1e3a42 45%,#162d37 100%);position:relative;overflow:hidden;color:#f5edcf}.fantasy-scene.element-rune{background:radial-gradient(ellipse at 50% 40%,#55476c 0,#302b4e 50%,#212338 100%)}.fantasy-scene.element-grove{background:radial-gradient(ellipse at 50% 40%,#4a6248 0,#2c473d 50%,#1b3332 100%)}.fantasy-scene:before{content:'';position:absolute;inset:10px;border:1px solid #e2c78b26;border-radius:8px;pointer-events:none}.fantasy-scene:after{content:'';width:230px;height:230px;border:1px solid #d1dfcb0e;position:absolute;left:50%;top:75px;transform:translateX(-50%) rotate(45deg);pointer-events:none}.fantasy-scene-top{position:absolute;top:24px;left:23px;right:23px;display:flex;align-items:center;justify-content:space-between;z-index:2}.fantasy-scene-top .eyebrow{font-size:8px;letter-spacing:1.6px;color:#d8d1ac}.fantasy-rank{font-size:8px;color:#c6ceb9;letter-spacing:1px;background:#ffffff0c;border:1px solid #ffffff13;border-radius:20px;padding:4px 8px}.fantasy-portrait{position:absolute;top:40px;left:5%;width:90%;height:326px;z-index:3}.fantasy-portrait>.fantasy-hero{width:100%;height:100%;filter:drop-shadow(0 10px 12px #0003);animation:hero-float 5s ease-in-out infinite}.fantasy-scene-bottom{position:absolute;bottom:24px;left:20px;right:20px;text-align:center;z-index:4}.fantasy-scene-bottom .eyebrow{font-size:8px;letter-spacing:2px;color:#b6c9b8}.fantasy-scene-bottom h2{font-size:28px;letter-spacing:-.5px;margin:5px 0;color:#f7edcf}.fantasy-scene-bottom>span{font-size:10px;color:#b5c9be}.rune-platform{position:absolute;bottom:98px;left:50%;width:183px;height:34px;transform:translateX(-50%);border:1px solid #a6d9bd38;border-radius:50%;box-shadow:0 0 0 5px #a6d9bd07,inset 0 0 20px #a6d9bd0c;z-index:1}.fantasy-stars{position:absolute;inset:60px 30px;color:#dfd5aa70;font-size:20px}.fantasy-stars>span{position:absolute;right:0;top:35px;font-size:12px}.fantasy-stars>b{position:absolute;left:15px;bottom:60px;font-size:12px;font-weight:400}.fantasy-player-info{padding:20px 14px 14px}.fantasy-player-info h2{font-size:20px}.fantasy-preview-note{display:flex;align-items:start;gap:7px;background:#f5ecdc;color:#8c744e;border-radius:8px;padding:10px;font-size:10px;margin-top:14px}.fantasy-preview-note .text-button{font-size:10px;white-space:nowrap}.fantasy-right{min-width:0}.evolution-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.evolution-card{padding:12px 6px 11px;border-radius:10px;background:#f3f3e9;position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;border:1px solid #e5e6da}.evolution-card:hover:not(:disabled){background:#e9eddf}.evolution-card.current{background:#e4edda;border-color:#88a57b}.evolution-card.previewed{box-shadow:inset 0 0 0 1px #8ba57d}.evolution-card.locked{background:#f0efec;border-style:dashed}.evolution-number{align-self:start;font-size:9px;letter-spacing:1px;color:#a6ac97;margin-left:6px}.evolution-art{height:132px;width:100%;display:block}.evolution-art svg{height:100%;width:100%;transition:transform .2s}.evolution-card:hover .evolution-art svg{transform:translateY(-3px)}.evolution-card.locked .evolution-art{opacity:.72}.evolution-name{font-size:10px;font-weight:700;text-align:center;margin-top:7px;line-height:1.5;min-height:30px;display:grid;place-items:center}.evolution-xp{font-size:10px;color:#9b7e4e;margin-top:6px}.evolution-state{font-size:8px;border-radius:12px;padding:3px 6px;background:#ffffff80;margin-top:8px;font-weight:500;color:#7b8875}.evolution-card.current .evolution-state{background:#7c996c;color:white}.evolution-description{display:flex;align-items:center;gap:10px;padding:13px 0 0;margin-top:15px;border-top:1px solid var(--line)}.evolution-description p{font-size:11px;color:var(--muted);line-height:1.7}.hero-path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hero-path{display:flex;align-items:start;flex-direction:column;text-align:left;padding:15px 13px;background:#fafaf3}.hero-path.selected{background:#e9efdf;border-color:#92a87d}.hero-path b{font-size:12px;margin:13px 0 6px}.hero-path>span:not(.path-symbol){font-size:10px;line-height:1.7;color:var(--muted);font-weight:400}.hero-path small{font-size:9px;color:#8a947e;margin-top:auto;padding-top:13px}.hero-path.selected small{color:var(--green);font-weight:700}.path-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:10px}.path-dragon{background:#dceae3;color:#4b827d}.path-rune{background:#e9e3f0;color:#8a78a5}.path-grove{background:#e4ead6;color:#81945c}.fantasy-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.fantasy-custom-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.gender-select{display:flex;gap:8px;margin:8px 0 23px}.gender-select button{flex:1;font-size:12px}.gender-select .selected{background:var(--green);color:white;border-color:var(--green)}.fantasy-gear.gear-grid{gap:9px}.fantasy-gear .gear-card{padding:12px;gap:10px}.fantasy-gear .gear-art{width:43px;height:60px}.fantasy-gear .gear-card h3{font-size:11px}.fantasy-gear .gear-card p{font-size:9px}.fantasy-gear .gear-card button{font-size:9px}.evolution-unlocked{background:radial-gradient(ellipse at center,#e3ead7,#f4f1e4);border:1px solid #d4daba;border-radius:14px;padding:12px 18px 18px;margin-top:18px}.evolution-unlocked svg{height:200px;width:160px;margin:0 auto}.evolution-unlocked .eyebrow{color:#8c9675;font-size:9px}.evolution-unlocked h3{font-size:24px;margin:6px 0}.evolution-unlocked p{font-size:11px}.profile-head .fantasy-hero{width:32px;height:32px;margin:0}.team-art .fantasy-hero{width:115px;height:153px}.team-art{height:150px}.hero-sparks{animation:magic-spark 3.6s ease-in-out infinite}.hero-familiar{animation:familiar-float 3s ease-in-out infinite}.tier-3 .hero-aura{animation:aura-glow 5s ease-in-out infinite}.profile-head .hero-aura,.profile-head .hero-sparks{animation:none}.profile-pick .fantasy-hero{width:110px;height:145px}@keyframes hero-float{50%{transform:translateY(-5px)}}@keyframes magic-spark{50%{opacity:.35}}@keyframes familiar-float{50%{transform:translateY(-7px)}}@keyframes aura-glow{50%{opacity:.35}}@media(min-width:1450px){.fantasy-layout{grid-template-columns:370px minmax(0,1fr)}.fantasy-scene{height:490px}.fantasy-portrait{height:360px}.evolution-art{height:165px}.evolution-name{font-size:12px}.hero-path{padding:20px}.hero-path b{font-size:13px}}@media(max-width:1120px){.fantasy-layout{grid-template-columns:280px minmax(0,1fr);gap:16px}.fantasy-scene{height:420px}.fantasy-portrait{height:300px}.evolution-art{height:105px}.evolution-grid{gap:5px}.evolution-name{font-size:9px}.evolution-xp{font-size:9px}.evolution-state{font-size:7px}.hero-path-grid{gap:6px}.hero-path{padding:11px 9px}.hero-path b{font-size:10px}.hero-path>span:not(.path-symbol){font-size:9px}.fantasy-bottom-grid{gap:16px}.fantasy-custom-grid{grid-template-columns:1fr}.fantasy-gear.gear-grid{grid-template-columns:1fr}}@media(max-width:900px){.fantasy-layout{grid-template-columns:1fr}.fantasy-character{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;align-items:center}.fantasy-scene{height:370px}.fantasy-portrait{height:265px;top:30px}.fantasy-scene-bottom{bottom:18px}.fantasy-scene-bottom h2{font-size:24px}.fantasy-scene-top{left:19px;right:19px;top:20px}.fantasy-scene-top .eyebrow{font-size:7px}.fantasy-rank{font-size:7px}.rune-platform{bottom:80px;width:145px}.fantasy-scene:after{width:180px;height:180px}.evolution-art{height:150px}.evolution-name{font-size:11px}.evolution-state{font-size:9px}.hero-path b{font-size:12px}.hero-path>span:not(.path-symbol){font-size:10px}}@media(max-width:650px){.fantasy-layout{gap:15px}.fantasy-character{display:block}.fantasy-scene{height:440px}.fantasy-portrait{height:325px;top:28px}.fantasy-scene-bottom{bottom:26px}.fantasy-scene-bottom h2{font-size:28px}.fantasy-scene-top{top:23px;left:22px;right:22px}.fantasy-scene-top .eyebrow{font-size:8px}.fantasy-rank{font-size:8px}.rune-platform{bottom:99px;width:190px}.fantasy-scene:after{width:230px;height:230px}.fantasy-player-info{padding:18px 12px 13px}.evolution-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.evolution-art{height:155px}.evolution-card{padding-top:10px}.evolution-name{font-size:11px;min-height:20px}.evolution-xp{font-size:10px}.evolution-state{font-size:9px}.hero-path-grid{grid-template-columns:1fr;gap:8px}.hero-path{display:grid;grid-template-columns:40px 1fr 50px;gap:0 12px;padding:14px}.hero-path .path-symbol{grid-row:1/3;align-self:center}.hero-path b{grid-column:2;margin:0 0 4px;font-size:12px}.hero-path>span:not(.path-symbol){grid-column:2;font-size:10px}.hero-path small{grid-column:3;grid-row:1/3;padding:0;align-self:center;margin:0;font-size:9px}.fantasy-bottom-grid{grid-template-columns:1fr;gap:15px}.fantasy-custom-grid{grid-template-columns:1fr 1fr;gap:0 10px}.fantasy-custom-grid .swatches{gap:6px}.fantasy-custom-grid .swatch{width:25px;height:25px}.fantasy-gear.gear-grid{grid-template-columns:1fr 1fr}.fantasy-gear .gear-card{padding:13px}.fantasy-gear .gear-art{width:45px;height:65px}.fantasy-preview-note{flex-wrap:wrap}.evolution-description{align-items:start}.evolution-description p{font-size:10px}}@media(prefers-reduced-motion:reduce){.fantasy-hero,.hero-sparks,.hero-aura,.hero-familiar{animation:none!important}}

.wardrobe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.wardrobe .gear-card{min-width:0;display:flex;gap:16px;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:15px;background:#fafaf3}.wardrobe .gear-card.selected{border-color:#8aa68d;background:#edf3e4;box-shadow:inset 0 0 0 1px #8aa68d}.wardrobe .gear-art{width:52px;min-width:52px;height:80px}.wardrobe h3{font-size:14px}.wardrobe .gear-card p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:6px}.wardrobe .gear-card button{font-size:12px;padding:8px 14px}.equipped-list{margin:20px 0}.equipped-list>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.equipped-list span{color:var(--muted)}@media(max-width:1100px){.wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.wardrobe-grid{grid-template-columns:1fr}.wardrobe .gear-art{width:60px;min-width:60px}}

.house-cat{cursor:pointer;outline:none}.house-cat>rect:nth-of-type(2){transition:fill .15s,stroke .15s}.house-cat:hover>rect:nth-of-type(2),.house-cat:focus-visible>rect:nth-of-type(2){fill:#f6e9c8;stroke:#c88a50;stroke-width:4}.katte-icon{width:64px;height:64px;flex-shrink:0}.katte-button{display:flex;align-items:center;gap:10px;text-align:left;background:#f7efd9;border-color:#dfcca7;padding:5px 12px;min-height:64px}.katte-button b{display:block;font-size:13px}.katte-button small{display:block;color:#7e7863;font-size:10px;font-weight:400}.room-card .room-open{display:block;border:0;background:transparent;box-shadow:none;padding:0;width:100%;text-align:left}.room-card .room-open:hover{transform:none;background:transparent}.room-card .katte-button{width:100%;margin-top:14px}.room-card .katte-icon{width:48px;height:48px}.room-detail-header .katte-button{margin-top:15px;max-width:260px}.room-detail-header .katte-button svg{width:54px;height:54px}.katte-intro{display:flex;gap:16px;align-items:center;margin-bottom:18px}.katte-intro .katte-icon{width:92px;height:92px}.katte-intro p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:6px}.katte-summary{font-size:11px;color:var(--muted);margin-bottom:14px}.katte-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:14px}.katte-task{border:1px solid #e2dccb;border-radius:15px;padding:18px;background:#fbf8ee}.katte-task h3{margin:12px 0 8px}.katte-task ul{padding-left:17px;line-height:1.7;font-size:12px;min-height:78px;margin:12px 0 18px}.katte-task button{width:100%;font-size:12px}.katte-task .between{align-items:flex-start;flex-wrap:wrap;gap:8px}.katte-task .eyebrow{font-size:8px}.katte-fair-note{margin-top:18px!important}@media(max-width:650px){.katte-suggestions{grid-template-columns:1fr}.katte-task ul{min-height:0}.katte-intro{gap:10px}.katte-intro .katte-icon{width:72px;height:72px}.room-card .katte-button{padding:5px;gap:5px}.room-card .katte-button b{font-size:11px}.room-card .katte-button small{font-size:9px}.house-cat>rect:first-of-type{width:100px;height:100px;x:-20px;y:-20px}}

:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}#cloud-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;font-size:10px;color:#70816e}#cloud-bar button{padding:7px 11px;font-size:10px}#cloud-gate{position:fixed;inset:0;background:#f4f3eb;z-index:2000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:calc(30px + var(--safe-top)) 20px calc(30px + var(--safe-bottom))}.cloud-card{max-width:480px;width:100%;padding:32px;background:#fffef7;border:1px solid #dfdfd1;border-radius:22px;max-height:100%;overflow:auto}.cloud-card>.eyebrow{font-size:9px;color:#839077;margin-bottom:25px}.cloud-card h1{font-size:29px;margin-bottom:18px}.cloud-card p{font-size:13px;color:#6f7d6d;line-height:1.8;margin:14px 0 22px}.cloud-card label{display:block;font-size:12px;margin-bottom:7px}.cloud-card button:not(.text-button){width:100%;margin:8px 0;padding:13px}.cloud-card .text-button{margin-top:15px}.cloud-card textarea{font-size:12px;word-break:break-all}.cloud-links{display:flex;gap:16px;font-size:11px;margin:18px 0}.cloud-card #cloud-error{color:#ac503c;line-height:1.7;font-size:12px;margin-top:15px}input:disabled,select:disabled{opacity:.6}@media(max-width:650px){main{padding-top:var(--safe-top);padding-bottom:calc(70px + var(--safe-bottom))}.sidebar{height:calc(68px + var(--safe-bottom));padding-bottom:var(--safe-bottom)}.toast{bottom:calc(80px + var(--safe-bottom))}.run-dock{bottom:calc(79px + var(--safe-bottom))}.modal-shell{max-height:calc(94dvh - var(--safe-top) - var(--safe-bottom))}.cloud-card{padding:25px}input,select,textarea{font-size:16px!important}}

#pwa-panel{position:fixed;right:16px;bottom:calc(14px + var(--safe-bottom));z-index:2100;display:flex;flex-wrap:wrap;align-items:center;gap:10px;max-width:340px;font-size:12px}#pwa-panel>a{color:#355d4e;background:#fffef7;padding:8px;border-radius:10px}#pwa-panel>button,#pwa-update{background:#355d4e;color:white;border:0;border-radius:12px;padding:10px 14px;box-shadow:0 4px 18px #17352722}#pwa-update{display:flex;gap:12px;align-items:center}.pwa-dialog{border:1px solid #deded1;border-radius:20px;padding:28px;max-width:min(440px,90vw);background:#fffef7;color:#263b30}.pwa-dialog::backdrop{background:#1d302b99}.pwa-dialog p{line-height:1.7}.pwa-dialog button{padding:10px 18px}#cloud-password{margin-bottom:12px}
@media(max-width:650px){#pwa-panel{bottom:calc(80px + var(--safe-bottom));right:10px;max-width:280px;font-size:11px}}

#pwa-panel{position:static;max-width:none;justify-content:flex-end;margin:0 0 18px}#pwa-panel.at-gate{position:fixed;right:16px;bottom:calc(14px + var(--safe-bottom));max-width:340px;margin:0}#pwa-panel:not(.at-gate)>button{box-shadow:none;font-size:11px;padding:8px 12px}#pwa-panel:not(.at-gate)>a{font-size:11px}#pwa-update{font-size:12px}@media(max-width:650px){#pwa-panel{justify-content:flex-start}#pwa-panel.at-gate{bottom:calc(20px + var(--safe-bottom));right:10px;max-width:280px}}
