:root{--bg:#f7f8f5;--surface:#fff;--ink:#26362e;--muted:#69746b;--line:#e2e7df;--green:#376c46;--hover:#edf2e9;--soft:#e7efdf;--lime:#dfea8c;--gold:#9a7334;--pet-bg:#f4f3ef;--font:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-color:#c3cbbf transparent;scrollbar-width:thin}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 var(--font)}::selection{background:#dcebbd;color:#26362e}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.35;letter-spacing:-.025em;font-weight:750}h2{font-size:20px;line-height:1.45}h3{font-size:17px;line-height:1.5}small{font-size:13px}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}button svg{pointer-events:none}.skip{position:fixed;top:-90px;left:16px;padding:10px;background:white;z-index:100}.skip:focus{top:10px}[hidden]{display:none!important}
.sidebar{width:216px;position:fixed;inset:0 auto 0 0;background:#f0f3ec;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:32px 18px 20px;z-index:10}.brand{display:flex;gap:10px;align-items:center;font-size:16px;font-weight:750}.brand small{display:block;font-size:11px;white-space:nowrap;font-weight:400;color:var(--muted);margin-top:1px}.brand-art{width:42px;height:46px;flex:none;border-radius:8px;mix-blend-mode:multiply}.sidebar-section{margin:46px 14px 14px;font-size:12px;color:#76816e}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav button{min-height:46px;display:flex;align-items:center;gap:12px;padding:10px 13px;border-radius:9px;text-align:left;color:#65715f;font-size:15px}.sidebar nav button:hover{background:#e7eddf}.sidebar nav button.active{background:#e0e9d7;color:#355b2c;font-weight:700}.nav-count{margin-left:auto;background:#d0deb7;min-width:23px;padding:0 5px;line-height:23px;border-radius:6px;text-align:center;font-size:12px}.nav-fraction{margin-left:auto;font-size:12px}.nav-divider{height:1px;background:#dce3d4;margin:17px 12px}.sidebar-note{margin-top:auto;padding:28px 14px;color:#6f7c66;font-size:12px}.sidebar-note svg{margin-bottom:9px;width:23px;height:23px}.profile{border-top:1px solid #dae2d1;padding:20px 4px 0;display:flex;align-items:center;gap:10px;text-align:left;font-size:14px;font-weight:650}.profile small{display:block;font-size:11px;font-weight:400;color:var(--muted)}.profile svg{width:17px;margin-left:auto}.profile-avatar{width:35px;height:35px;border-radius:50%;background:#d8e3c9;display:grid;place-items:center;font-family:Georgia,serif;font-size:21px}.new-dot{background:#659946;width:7px;height:7px;border-radius:50%;margin-left:auto}.workspace{margin-left:216px;padding:34px clamp(24px,3.1vw,60px) 16px;max-width:1836px}.page-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.page-header p{color:var(--muted);font-size:14px;margin-top:7px}.header-actions{display:flex;align-items:center;gap:16px}.demo-tag{font-size:12px;border:1px solid var(--line);color:var(--muted);padding:3px 9px;border-radius:5px}.text-button{display:inline-flex;gap:7px;align-items:center;min-height:40px;font-size:14px;color:#64725f}.text-button:hover{color:var(--green)}.text-button svg{width:17px;height:17px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 18px;border:1px solid var(--line);background:white;border-radius:8px;font-size:14px;font-weight:650;white-space:nowrap}.button:hover{background:#f0f4ea;border-color:#bccfb0}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:#2c5b39}.button.lime{background:var(--lime);border-color:var(--lime);color:#3b4926}.button.lime:hover{background:#d4e276}.button.small{min-height:36px;padding:5px 13px;font-size:13px}.button.ghost{background:none}.icon-button{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:8px;flex:none}.icon-button:hover{background:var(--hover)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.section-heading p{font-size:13px;color:var(--muted);margin-top:4px}.section-heading .text-button{flex:none}.muted{color:var(--muted)}.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:5px;font-size:12px;font-weight:600;background:#edf2e9;color:#526747}.pill.ochre{color:#826426;background:#f5efdd}.pill svg{width:14px;height:14px}.pet-art{display:inline-block;background-image:var(--asset-xiaohei-pet-atlas-dark);background-size:300% 300%;background-position:var(--x,0%) var(--y,0%);background-repeat:no-repeat}.scene-art{background-image:var(--asset-xiaohei-travel-scenes);background-size:300% 100%;background-position:var(--scene,0%) 50%;background-repeat:no-repeat}
.wallet{display:flex;align-items:center;gap:0;border:1px solid var(--line);background:white;border-radius:12px;margin-bottom:20px;min-height:79px;padding:14px 22px}.wallet-item{display:flex;align-items:center;gap:12px;flex:1;padding:0 28px;border-right:1px solid var(--line)}.wallet-item:first-child{padding-left:0}.wallet-item:last-child{border:0;padding-right:0}.wallet-item svg{color:#7e926e;width:22px;height:22px}.wallet-item span{font-size:12px;color:var(--muted)}.wallet-item b{font-size:23px;font-weight:700;line-height:1.2;margin-right:5px;color:var(--ink);font-variant-numeric:tabular-nums}.wallet-item strong{font-size:14px;font-weight:600}.wallet-item .wallet-copy{display:flex;flex-direction:column;gap:4px}.wallet-end{margin-left:auto;border:0;color:var(--green);font-size:13px}.pet-room{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);min-height:376px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--pet-bg);margin-bottom:28px}.room-scene{position:relative;min-height:376px;overflow:hidden}.room-scene>img{width:100%;height:100%;object-fit:cover;object-position:center;position:absolute;inset:0}.room-caption{position:absolute;top:25px;left:27px;max-width:230px}.room-caption h2{font-size:23px;line-height:1.55;color:#35402d}.room-caption p{margin-top:9px;font-size:13px;color:#6c735b}.scene-bubble{position:absolute;bottom:24px;left:26px;max-width:calc(100% - 52px);padding:9px 14px;background:#fcfcf1;border:1px solid #d5ddbd;border-radius:9px;font-size:13px;color:#576241}.room-pet-alternative{width:290px;height:290px;position:absolute;right:16px;bottom:15px;mix-blend-mode:multiply}.room-details{padding:28px;display:flex;flex-direction:column;gap:18px;background:#fbfcf8;border-left:1px solid #e3e8d9}.pet-name-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.pet-name-row h2{font-size:22px}.pet-name-row button{padding:0;width:32px;height:32px}.pet-name-row p{color:var(--muted);font-size:13px;margin-top:6px}.level-line{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}.level-line strong{font-size:13px}.progress{height:6px;background:#e7eddf;border-radius:4px;overflow:hidden;margin:9px 0}.progress span{height:100%;display:block;background:#92ac65;border-radius:4px;transition:width .4s ease-out}.progress-help{font-size:12px;color:var(--muted)}.pet-state{display:flex;align-items:center;gap:6px;font-size:12px;color:#637c45}.status-dot{width:6px;height:6px;background:#78a355;border-radius:50%}.room-actions{margin-top:auto;display:grid;grid-template-columns:1fr;gap:9px}.room-actions .button{width:100%}.room-links{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#65745b}.room-links button{font-size:13px;display:flex;gap:5px;align-items:center;padding:0}.room-links svg{width:16px;height:16px}.room-links label{display:flex;align-items:center;gap:7px;cursor:pointer}.toggle{appearance:none;width:30px;height:18px;background:#ced7c7;border-radius:10px;position:relative;margin:0;cursor:pointer;vertical-align:middle}.toggle:after{content:"";width:14px;height:14px;position:absolute;left:2px;top:2px;border-radius:50%;background:white;transition:transform .16s ease}.toggle:checked{background:var(--green)}.toggle:checked:after{transform:translateX(12px)}
.home-lower{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:23px 24px}.task-list{display:flex;flex-direction:column}.task-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.task-row:first-child{padding-top:1px}.task-row:last-child{border-bottom:0;padding-bottom:0}.task-symbol{width:39px;height:39px;background:#f1f4eb;display:grid;place-items:center;color:#6b8056;border-radius:9px;flex:none}.task-copy{min-width:0;flex:1}.task-copy h3{font-size:14px;font-weight:650}.task-copy p{font-size:12px;color:var(--muted);margin-top:4px}.reward-inline{font-size:12px;color:#7e713e;display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:7px}.reward-inline span{display:inline-flex;gap:3px;align-items:center}.reward-inline svg{width:13px;height:13px}.task-row .button{font-size:12px;min-width:70px;min-height:34px;padding:5px 9px}.task-progress{font-size:12px;color:#76856a}.travel-teaser{display:grid;grid-template-columns:122px 1fr;gap:17px;align-items:center}.travel-teaser .scene-art{width:122px;height:123px;border-radius:9px}.travel-teaser h3{font-size:16px}.travel-teaser p{font-size:13px;color:var(--muted);margin:7px 0 10px}.postcard-note{padding-top:19px;margin-top:19px;border-top:1px solid var(--line);font-size:13px;color:#6e785f;display:flex;align-items:center;gap:10px}.postcard-note svg{width:18px;height:18px;flex:none}.active-summary{margin-top:24px;display:flex;align-items:center;gap:20px;padding:22px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.active-summary .summary-copy{min-width:180px}.active-summary h3{font-size:15px}.active-summary p{font-size:12px;color:var(--muted);margin-top:4px}.week-stamps{display:flex;gap:9px;flex:1;justify-content:center}.week-day{font-size:11px;text-align:center;color:var(--muted)}.week-day span{display:grid;place-items:center;width:35px;height:35px;border-radius:7px;background:#edf0e8;border:1px solid transparent;color:#536545;margin-top:5px;font-size:13px}.week-day.active span{background:#deebcb}.week-day.today span{border-color:#668447}.week-day svg{width:15px;height:15px}footer{padding:24px 0 2px;display:flex;gap:16px;justify-content:space-between;font-size:12px;color:#7b8473}footer button{font-size:12px;padding:0;color:#65735d;text-decoration:underline;text-underline-offset:3px}
.page-intro{display:flex;justify-content:space-between;align-items:center;padding:23px 27px;margin-bottom:25px;background:#eaf0df;border-radius:12px;border:1px solid #dce7cc}.page-intro h2{font-size:21px}.page-intro p{font-size:14px;color:#697959;margin-top:6px}.page-intro .pet-art{width:115px;height:105px;mix-blend-mode:multiply}.task-tabs{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line);margin-bottom:22px}.task-tabs button{padding:12px 18px;color:var(--muted);border-bottom:2px solid transparent;font-size:15px}.task-tabs button.active{color:var(--green);font-weight:650;border-color:var(--green)}.task-full-list .task-row{padding:23px 0;gap:18px}.task-full-list .task-copy h3{font-size:16px}.task-full-list .task-copy p{font-size:14px}.task-full-list .task-row .button{font-size:14px;min-width:94px;min-height:40px}.task-full-list .reward-inline{font-size:13px}.task-full-list .task-symbol{width:44px;height:44px}.task-caption{font-size:13px;color:var(--muted);margin:20px 0 0}.empty{padding:45px 20px;text-align:center;color:var(--muted)}.empty svg{width:38px;height:38px;margin-bottom:12px}.empty h3{margin-bottom:7px}.empty p{font-size:14px}
.map-top{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:24px 0}.map-top b{font-size:34px;line-height:1.2;font-weight:650}.map-top p{color:var(--muted);font-size:14px;margin-top:7px}.month-control{display:flex;align-items:center;gap:10px}.month-control strong{min-width:123px;text-align:center;font-size:17px}.calendar-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:32px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.calendar .weekday{text-align:center;color:var(--muted);font-size:12px;padding:5px}.calendar-day{position:relative;min-height:58px;border:1px solid #e5e9df;border-radius:7px;background:#f5f7f0;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;font-size:15px}.calendar-day.active{background:#dceac8;border-color:#d2e1bc;color:#45612f}.calendar-day.today{border:2px solid #62813e}.calendar-day.inactive{background:#fff;color:#8b9286}.calendar-day.future{color:#a1a99a;background:#fafbf8}.calendar-day svg{width:13px;height:13px;position:absolute;bottom:4px;right:5px}.calendar-blank{min-height:30px}.map-legend{display:flex;align-items:center;justify-content:flex-end;gap:7px;color:var(--muted);font-size:12px;margin-top:16px}.legend-square{width:12px;height:12px;display:inline-block;border-radius:2px;background:#edf1e7;border:1px solid #dce3d4}.legend-square.active{background:#d6e6bd}.milestone-list{border-left:1px solid var(--line);padding-left:28px}.milestone{padding:18px 0;border-bottom:1px solid var(--line)}.milestone:first-child{padding-top:0}.milestone:last-child{border-bottom:0}.milestone-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.milestone-heading h3{font-size:16px}.milestone p{font-size:13px;color:var(--muted);margin:7px 0 13px}.milestone .button{font-size:12px;min-height:33px}.heat-panel{margin-top:24px}.heat-scroll{overflow:auto;padding:5px 0 10px}.heatmap{display:grid;grid-template-rows:repeat(7,12px);grid-auto-flow:column;grid-auto-columns:12px;gap:4px;min-width:max-content}.heatmap button{width:12px;height:12px;padding:0;border-radius:2px;background:#eaf0e2}.heatmap button[data-strength="1"]{background:#c9dea6}.heatmap button[data-strength="2"]{background:#8eae64}.heatmap button[data-strength="3"]{background:#4f7940}.heat-caption{display:flex;gap:20px;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:9px}
dialog{padding:0;border:1px solid #dce3d3;border-radius:16px;background:#fcfdf9;color:var(--ink);width:min(1010px,calc(100vw - 48px));max-height:calc(100dvh - 64px);overflow:auto}dialog::backdrop{background:rgba(29,39,24,.4)}body.modal-open{overflow:hidden}.dialog-head{position:sticky;top:0;background:#fcfdf9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 25px;z-index:2}.dialog-head h2{font-size:20px}.dialog-tools{display:flex;gap:12px;align-items:center}.dialog-tabs{display:flex;background:#edf1e7;border-radius:9px;padding:4px;gap:3px}.dialog-tabs button{padding:6px 18px;border-radius:6px;font-size:15px;color:#77816d;min-height:36px}.dialog-tabs button.active{background:white;color:var(--ink);font-weight:700}.dialog-tools label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.dialog-body{padding:26px}.dialog-description{color:var(--muted);font-size:14px;margin:0 0 22px}.filter-row{display:flex;gap:8px;align-items:center;margin-bottom:23px;flex-wrap:wrap}.filter-row button{font-size:13px;border:1px solid var(--line);padding:5px 13px;border-radius:6px;background:white;min-height:34px}.filter-row button.active{background:#e6efda;border-color:#d0dfbd;color:#426031}.filter-row .muted{margin-left:auto;font-size:13px}.pet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px}.pet-tile{padding:0;display:block;text-align:left;border-radius:11px;min-width:0}.pet-tile .pet-picture{position:relative;border:1px solid #e1e5d9;background:var(--pet-bg);border-radius:11px;overflow:hidden;aspect-ratio:1}.pet-tile .pet-art{width:100%;height:100%;transition:transform .25s ease}.pet-tile:hover .pet-art{transform:translateY(-3px)}.pet-tile.selected .pet-picture{border:2px solid #668648}.pet-tile .pet-picture .icon{width:15px;height:15px}.pet-marker{position:absolute;right:9px;top:9px;background:#fff;border:1px solid #dbe3d1;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;color:#879479}.pet-tile.locked .pet-art{filter:saturate(.45);opacity:.62}.pet-tile h3{font-size:15px;margin:10px 0 3px}.pet-tile p{font-size:12px;color:var(--muted)}.pet-grid .empty{grid-column:1/-1}.gallery-tip{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding-top:24px}.gallery-tip svg{width:17px;height:17px}.pet-detail{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}.pet-detail .pet-art{width:100%;aspect-ratio:1;border-radius:12px}.pet-detail h3{font-size:28px;margin:9px 0 12px}.pet-detail p{color:var(--muted);font-size:15px;margin-bottom:22px}.detail-facts{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;margin-bottom:23px;font-size:13px;display:grid;gap:8px}.detail-facts div{display:flex;justify-content:space-between}.detail-facts span{color:var(--muted)}.detail-facts strong{font-weight:600}.dialog.narrow{width:min(590px,calc(100vw - 32px))}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:19px 26px}.guide-steps{padding-left:22px;color:var(--muted);font-size:14px}.guide-steps li{padding:7px 0}.guide-steps strong{color:var(--ink)}.reward-box{display:flex;align-items:center;gap:18px;background:#edf3e5;padding:17px;border-radius:10px;margin:22px 0 0}.reward-box div{display:flex;align-items:center;gap:6px;color:#5a7543;font-size:14px}.demo-note{font-size:12px;color:#7b8068;margin-top:16px}.rule-list{display:grid;gap:20px}.rule-list h3{font-size:15px;margin-bottom:5px}.rule-list p{font-size:14px;color:var(--muted)}.destination-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.destination-card{text-align:left;padding:0 0 15px;border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}.destination-card.active{border:2px solid #6b8d43}.destination-card .scene-art{width:100%;aspect-ratio:1.2}.destination-card h3{font-size:16px;margin:13px 14px 6px}.destination-card p{font-size:13px;color:var(--muted);margin:0 14px}.trip-now{background:#eaf0de;border:1px solid #dae5c9;border-radius:11px;padding:18px 20px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;gap:20px}.trip-now h3{font-size:16px}.trip-now p{font-size:13px;color:var(--muted);margin-top:4px}.travel-record{border:1px solid var(--line);background:white;border-radius:12px;padding:24px;margin-bottom:18px}.travel-record:last-child{margin-bottom:0}.record-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-head h3{font-size:18px}.record-head time{font-size:12px;color:var(--muted);display:block;margin-top:4px}.record-content{display:grid;grid-template-columns:1.55fr 1fr;gap:25px;margin-top:23px}.record-letter{font-size:14px;line-height:1.95;color:#5d6b57}.record-letter strong{color:var(--ink);font-weight:600}.record-letter p{margin:12px 0}.record-letter small{font-size:12px;color:#7a8573}.record-photo{width:100%;aspect-ratio:1;border-radius:9px;position:relative;overflow:hidden}.record-photo .photo-label{position:absolute;bottom:10px;left:10px;color:white;background:#33472c;padding:3px 8px;font-size:11px;border-radius:4px}.photo-large{width:min(650px,100%);aspect-ratio:1;margin:0 auto;border-radius:12px}.prompt-preview{display:block;width:100%;min-height:136px;border:1px solid var(--line);background:#f4f7ee;border-radius:10px;padding:17px;resize:vertical;line-height:1.8;font-size:14px;caret-color:var(--green)}.chat-preview{display:grid;gap:14px;margin-top:20px}.chat-row{display:flex;gap:10px;align-items:flex-start}.chat-row .pet-art{width:32px;height:34px;flex:none;border-radius:6px}.chat-row p{font-size:14px;background:#eff3e9;padding:13px 16px;border-radius:3px 12px 12px 12px}.toast{position:fixed;bottom:29px;left:calc(50% + 70px);transform:translateX(-50%);padding:12px 20px;background:#33492f;color:white;border-radius:9px;max-width:min(600px,90vw);font-size:14px;z-index:60;pointer-events:none}.reward-pop{text-align:center;padding:18px 10px 8px}.reward-pop .pet-art{width:230px;height:230px;border-radius:12px}.reward-pop h3{font-size:24px;margin:13px 0 8px}.reward-pop p{color:var(--muted);font-size:14px}.box-opening{display:grid;place-items:center;min-height:270px}.box-opening svg{width:75px;height:75px;color:#78954f;animation:box-wiggle .8s ease-in-out infinite}.box-opening p{font-size:14px;color:var(--muted)}@keyframes box-wiggle{0%,100%{transform:rotate(-6deg) translateY(0)}50%{transform:rotate(6deg) translateY(-8px)}}.badge-grid{display:flex;flex-wrap:wrap;gap:10px}.badge-grid .pill{padding:8px 12px;font-size:13px}.heat-tooltip{min-height:25px;font-size:13px;color:var(--green);margin-top:10px}.storage-warning{color:#805c33;font-size:13px;padding:11px;background:#fbf0da;border-radius:8px;margin-bottom:14px}
@media(min-width:1600px){.room-scene{min-height:420px}.room-caption{top:32px;left:34px}.room-details{padding:34px}.home-lower{gap:28px}.task-row{padding:21px 0}.pet-room{grid-template-columns:1.55fr 1fr}}
@media(max-width:1200px){.sidebar{width:185px;padding-inline:13px}.brand{font-size:14px;gap:5px}.brand small{font-size:9px}.workspace{margin-left:185px;padding:28px 24px 14px}.pet-room,.home-lower{grid-template-columns:minmax(0,1.2fr) minmax(290px,1fr)}.room-details{padding:24px}.room-caption{max-width:180px}.room-caption h2{font-size:20px}.wallet-item{padding:0 17px}.wallet-item:nth-child(4){display:none}.room-scene{min-height:366px}.calendar-layout{grid-template-columns:1.4fr 1fr;gap:24px}.travel-teaser{grid-template-columns:95px 1fr}.travel-teaser .scene-art{width:95px;height:113px}.active-summary{gap:10px}.active-summary .summary-copy{min-width:140px}.week-stamps{gap:5px}.week-day span{width:29px;height:31px}.pet-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.sidebar{width:76px;padding-inline:12px}.brand{display:block}.brand>span:last-child,.sidebar-section,.sidebar-note,.sidebar nav button>span:not([data-icon]),.profile>span:not(.profile-avatar),.profile>svg{display:none}.sidebar nav{margin-top:35px}.sidebar nav button{font-size:0;gap:0;justify-content:center;padding:12px}.sidebar nav button svg{width:22px;height:22px}.nav-divider{margin:12px 4px}.profile{margin-top:auto;justify-content:center}.workspace{margin-left:76px}.calendar-layout{grid-template-columns:1fr}.milestone-list{border:0;padding:24px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.milestone{padding:0;border:0}.milestone-heading{display:block}.milestone-heading .pill{margin-top:8px}.milestone-list .section-heading{grid-column:1/-1}.pet-room,.home-lower{grid-template-columns:1fr 1fr}.room-details{padding:22px}.room-caption{max-width:140px;left:20px;top:20px}.room-caption h2{font-size:18px}.active-summary{flex-wrap:wrap}.active-summary .week-stamps{justify-content:flex-end}.active-summary>.button{margin-left:auto}.travel-teaser{display:block}.travel-teaser .scene-art{width:100%;height:130px;margin-bottom:14px;background-size:300% auto}.header-actions{gap:8px}.page-header h1{font-size:27px}.task-row{gap:10px}.task-symbol{width:32px;height:34px}.panel{padding:20px}}
@media(max-width:740px){body{font-size:14px}.sidebar{position:sticky;top:0;width:100%;height:auto;flex-direction:row;align-items:center;padding:9px 16px;border-right:0;border-bottom:1px solid var(--line)}.brand{display:flex}.brand-art{width:30px;height:32px}.brand>span:last-child{display:block;font-size:13px}.brand small{display:none}.sidebar nav{margin:0 0 0 auto;flex-direction:row;gap:3px}.sidebar nav button{padding:8px;min-height:36px;border-radius:7px}.sidebar nav button[data-action],.nav-divider,.profile{display:none}.sidebar nav button svg{width:19px;height:19px}.workspace{margin:0;padding:22px 17px 12px}.page-header{margin-bottom:20px;align-items:flex-start;gap:8px}.page-header h1{font-size:24px}.page-header p{font-size:12px;max-width:230px}.header-actions{flex-direction:column;gap:2px;align-items:flex-end}.demo-tag{font-size:10px;padding:2px 7px}.header-actions .text-button{font-size:12px;min-height:30px}.wallet{padding:13px 14px;margin-bottom:17px;min-height:72px}.wallet-item{padding:0 12px;gap:7px}.wallet-item b{font-size:21px}.wallet-item svg{display:none}.wallet-item strong{font-size:12px}.wallet-item span{font-size:11px}.wallet-item .wallet-copy{gap:2px}.wallet-end{font-size:11px}.pet-room{display:block;margin-bottom:20px}.room-scene{min-height:290px}.room-scene>img{object-position:50% 65%}.room-caption{max-width:155px;top:22px;left:20px}.room-caption h2{font-size:20px}.room-caption p{font-size:12px}.scene-bubble{font-size:11px;bottom:16px;left:18px;max-width:calc(100% - 36px)}.room-details{padding:20px;border-left:0;border-top:1px solid #e1e7d7;gap:15px}.room-actions{grid-template-columns:1fr 1fr}.room-actions .button{font-size:12px;padding:8px 10px;min-height:42px}.pet-name-row h2{font-size:20px}.home-lower{display:block}.home-lower .panel+ .panel{margin-top:18px}.travel-teaser{display:grid;grid-template-columns:110px 1fr}.travel-teaser .scene-art{width:110px;height:116px;background-size:300% 100%;margin:0}.section-heading h2{font-size:18px}.section-heading .text-button{font-size:12px}.panel{padding:20px 17px}.task-row{padding:17px 0}.task-copy h3{font-size:13px}.task-copy p{font-size:11px}.task-row .button{font-size:11px;min-width:62px}.active-summary{margin-top:21px;padding:18px 0;display:grid;grid-template-columns:1fr auto}.active-summary .week-stamps{grid-row:2;grid-column:1/-1;justify-content:space-between}.week-day span{width:35px;height:35px}.active-summary>.button{grid-column:2;grid-row:1}.active-summary .summary-copy p{font-size:11px}footer{font-size:10px;flex-direction:column;gap:7px;align-items:center;padding:20px 0}footer button{font-size:11px}.page-intro{padding:20px;gap:5px}.page-intro h2{font-size:18px}.page-intro p{font-size:12px}.page-intro .pet-art{width:75px;height:85px;flex:none}.task-tabs{gap:0}.task-tabs button{padding:10px 14px;font-size:14px}.task-full-list .task-row{gap:10px;padding:19px 0;flex-wrap:wrap}.task-full-list .task-copy h3{font-size:14px}.task-full-list .task-copy p{font-size:12px}.task-full-list .task-row .button{min-width:78px;font-size:12px;min-height:37px;margin-left:auto}.task-full-list .task-symbol{width:35px;height:36px}.task-full-list .reward-inline{font-size:11px}.calendar{gap:6px}.calendar-day{min-height:41px;font-size:13px}.calendar-day svg{width:10px;height:10px;bottom:2px;right:2px}.map-top{padding-top:8px;gap:10px}.map-top b{font-size:28px}.map-top p{font-size:12px}.month-control{gap:2px}.month-control strong{min-width:100px;font-size:15px}.month-control .icon-button{width:28px;height:34px}.milestone-list{display:block}.milestone{padding:17px 0;border-top:1px solid var(--line)}.milestone-heading{display:flex}.milestone-heading .pill{margin:0}.heat-caption{flex-wrap:wrap;font-size:11px}.dialog-head{padding:12px 16px;gap:6px}.dialog-head h2{font-size:18px}.dialog-tabs button{font-size:13px;padding:5px 10px;min-height:32px}.dialog-tools{gap:4px}.dialog-tools label{font-size:0;gap:0}.dialog-tools .icon-button{width:32px;height:34px}.dialog-tools .toggle{width:28px;height:18px;margin-right:4px}.dialog-tools .toggle:checked:after{transform:translateX(10px)}dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 30px);border-radius:13px}.dialog-body{padding:20px 16px}.dialog-description{font-size:12px}.pet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.pet-tile h3{font-size:14px}.pet-tile p{font-size:11px}.filter-row{gap:5px}.filter-row button{font-size:12px;padding:5px 10px}.filter-row .muted{font-size:11px}.pet-detail{grid-template-columns:1fr;gap:20px}.pet-detail>.pet-art{max-width:230px;margin:auto}.pet-detail h3{font-size:23px}.pet-detail p{font-size:14px}.dialog-actions{padding:15px 16px;gap:8px}.dialog-actions .button{font-size:12px;padding:8px 13px;white-space:normal}.destination-list{grid-template-columns:1fr}.destination-card{display:grid;grid-template-columns:110px 1fr;padding:0}.destination-card .scene-art{grid-row:1/3;width:110px;height:110px;aspect-ratio:auto}.destination-card h3{align-self:end}.destination-card p{margin-bottom:12px}.trip-now{display:block;padding:17px}.trip-now .button{margin-top:13px}.record-content{grid-template-columns:1fr;gap:17px}.record-photo{aspect-ratio:1.5}.record-head h3{font-size:16px}.travel-record{padding:18px}.record-head .button{font-size:11px;padding:5px 8px}.record-letter{font-size:13px}.record-letter p{margin:9px 0}.toast{left:50%;bottom:20px;font-size:13px;width:max-content;max-width:90vw}.reward-pop .pet-art{width:190px;height:190px}.storage-warning{font-size:12px}}
dialog.narrow{width:min(590px,calc(100vw - 32px))}
/* Desktop auxiliary copy remains readable at standard browser zoom. */
@media(min-width:741px){.page-header p,.room-caption p,.pet-name-row p,.level-line,.progress-help,.pet-state,.room-links,.room-links button,.wallet-item span,.wallet-end,.section-heading p,.task-copy p,.reward-inline,.task-row .button,.travel-teaser p,.postcard-note,.active-summary p,.pet-tile p,.dialog-tools label,.demo-note,.record-letter small,.record-head time,.gallery-tip,.filter-row .muted,.task-caption,.milestone p{font-size:14px}.task-copy h3{font-size:15px}.task-row .button{min-height:39px}.room-details{gap:19px}.task-row{padding:20px 0}.room-caption{max-width:245px}.room-scene{min-height:405px}.task-copy p{line-height:1.7}.travel-teaser{grid-template-columns:128px 1fr}.travel-teaser .scene-art{width:128px;height:143px}.wallet-item .wallet-copy>div{white-space:nowrap}.wallet-end{white-space:nowrap}.nav-count,.nav-fraction{font-size:13px}}
@media(min-width:741px) and (max-width:1100px){.wallet-item{gap:8px;padding:0 14px}.wallet-item svg{display:none}.wallet-end{font-size:12px}.travel-teaser{display:block}.travel-teaser .scene-art{width:100%;height:160px;margin-bottom:14px}.room-caption{max-width:165px}.room-caption h2{font-size:20px}}
@media(max-width:740px){.wallet-item{padding:0 11px;min-width:0}.wallet-item:nth-child(2){flex:.85}.wallet-item .wallet-copy{white-space:nowrap}.wallet-end{display:none}.wallet-item:nth-child(3){border-right:0}.page-header{scroll-margin-top:65px}.dialog-tools label{font-size:11px;gap:5px}.dialog-tools label .toggle{margin:0}.task-tabs button{min-height:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

:root{color-scheme:dark;--bg:#191919;--surface:#202020;--ink:#f4f4f4;--muted:#aaa;--line:#343434;--green:#eaeaea;--hover:#2d2d2d;--soft:#303030;--lime:#f3f3f3;--gold:#c7c7c7;--pet-bg:#191919;--accent:#32c89e}
html{scrollbar-color:#555 #191919;scroll-padding-top:24px}body{background:#191919;color:var(--ink);font-size:15px}::selection{background:#ddd;color:#111}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#ededed}button{transition:background-color .16s,color .16s,border-color .16s}h1{font-size:32px;letter-spacing:0;font-weight:700}h2{font-size:21px}small{font-size:13px}.skip{background:white;color:#111}svg.icon{stroke-width:1.6}
.site-header{height:78px;margin:0 auto;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2b2b2b;gap:20px}.brand{font-size:17px;gap:9px}.brand-art{width:40px;height:40px;mix-blend-mode:normal;border-radius:0}.site-tools{display:flex;align-items:center;gap:22px}.site-tools .text-button{font-size:14px;color:#bcbcbc}.demo-tag{border:0;background:none;color:#929292;padding:0;font-size:12px}.account-avatar{display:grid;place-items:center;width:32px;height:32px;border:1px solid #555;border-radius:50%;font-size:15px;background:#2a2a2a;color:#ddd}.workspace{margin:0 auto;padding:36px 38px 0;max-width:1236px}.page-header{margin-bottom:0;align-items:center}.page-header p{color:#aaa;font-size:14px;margin-top:8px}.energy-pocket{display:flex;align-items:center;gap:10px;min-height:42px;font-size:14px;color:#bbb;padding:6px 0}.energy-pocket>svg:first-child{color:var(--accent);width:21px}.energy-pocket b{font-size:18px;font-weight:650;color:#f4f4f4;margin-left:5px}.energy-pocket>svg:last-child{width:15px;color:#777}.button{background:#2c2c2c;border-color:#444;color:#eee;font-size:14px;border-radius:8px;min-height:42px;padding:8px 20px;font-weight:600}.button:hover{background:#373737;border-color:#626262}.button.primary,.button.lime{background:#f1f1f1;border-color:#f1f1f1;color:#181818}.button.primary:hover,.button.lime:hover{background:#d8d8d8;border-color:#d8d8d8}.button:disabled{background:#292929;border-color:#363636;color:#737373;opacity:1}.button.small{font-size:13px;min-height:36px;padding:5px 14px}.text-button{color:#bcbcbc}.text-button:hover{color:#fff}.icon-button:hover{background:#333}.pill,.pill.ochre{background:#303030;color:#ccc}.muted{color:#aaa}.toggle{background:#555}.toggle:checked{background:#cfcfcf}.toggle:checked:after{background:#202020}.new-dot,.status-dot{background:var(--accent)}
.pet-stage{position:relative;margin:28px 0 36px;background:#191919;border:0;border-radius:0;min-width:0}.stage-topline{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#aaa;min-height:30px}.stage-topline>span,.stage-topline label{display:flex;align-items:center;gap:8px}.stage-topline svg{width:16px;color:var(--accent)}.stage-topline label{cursor:pointer}.stage-scene{position:relative;height:318px;isolation:isolate}.pet-actor{position:absolute;bottom:0;left:calc(50% - 173px);width:346px;height:318px;display:grid;place-items:center;padding:0;background:transparent;transform-origin:50% 83%;animation:pet-breathe 4.4s ease-in-out infinite;outline-offset:-24px!important;z-index:1}.pet-actor:hover{background:transparent}.pet-actor .stage-pet-art{width:318px;height:318px}.motion-sprite{display:block;width:318px;height:318px;background-image:var(--asset-xiaohei-motion-atlas);background-size:300% 200%;background-position:6% 7%;background-repeat:no-repeat}#petSpeech{position:absolute;left:50%;top:8px;transform:translateX(-50%);padding:8px 16px;font-size:13px;line-height:1.5;border:1px solid #383838;border-radius:9px;background:#232323;color:#ccc;white-space:nowrap;z-index:3;pointer-events:none}#petSpeech:after{content:'';position:absolute;width:8px;height:8px;bottom:-5px;left:50%;background:#232323;border-right:1px solid #383838;border-bottom:1px solid #383838;transform:rotate(45deg)}.stage-shortcuts{position:absolute;right:50px;top:82px;display:flex;flex-direction:column;gap:20px}.stage-shortcuts button{display:flex;align-items:center;gap:12px;padding:10px 12px;color:#bbb;font-size:14px;min-height:44px;border-radius:8px}.stage-shortcuts button:hover{background:#292929;color:#fff}.stage-shortcuts svg{width:21px;height:21px;color:#ddd}.stage-shortcuts small{font-size:12px;color:#929292;margin-left:12px}.stage-shortcuts .new-dot{margin-left:2px}.pet-play{position:absolute;left:66px;top:74px;display:flex;flex-direction:column;gap:11px}.pet-play>span{font-size:12px;color:#888;margin:0 0 4px 12px}.pet-play button{display:flex;align-items:center;gap:10px;min-height:40px;text-align:left;font-size:13px;color:#bbb;padding:8px 12px;border-radius:8px}.pet-play button:hover{background:#292929;color:white}.pet-play button svg{width:18px;height:18px;color:#888}.companion-info{text-align:center;margin-top:0}.companion-title{display:flex;align-items:center;justify-content:center;gap:10px}.companion-title h2{font-size:20px;letter-spacing:.02em}.companion-title>span{font-size:12px;color:#ccc;background:#333;border-radius:4px;padding:1px 6px}.companion-title .icon-button{width:28px;height:28px;color:#a9a9a9}.companion-title .icon-button svg{width:17px}.companion-growth{display:flex;gap:12px;align-items:center;justify-content:center;margin:9px auto 17px;font-size:12px;color:#999}.companion-growth .progress{height:4px;width:160px;margin:0;background:#363636}.progress span{background:#cfcfcf}.companion-actions{display:flex;align-items:center;justify-content:center;gap:12px}.companion-actions .button{min-width:176px}.companion-actions svg{width:18px;height:18px}.companion-hint{font-size:12px;color:#929292;margin-top:10px}.pet-actor.is-playing,.motion-paused .pet-actor,.reduced-motion .pet-actor{animation:none}.motion-paused .pet-actor{animation-play-state:paused}
@keyframes pet-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.015,1.025)}}
.growth-section{scroll-margin-top:20px;border-top:1px solid #333;margin-top:28px}.growth-tabs{display:flex;align-items:center;gap:35px;border-bottom:1px solid #333;height:67px;margin:0 0 22px}.growth-tabs>button{height:67px;padding:0 3px;border-bottom:2px solid transparent;font-size:19px;color:#8c8c8c;display:flex;align-items:center;gap:8px;font-weight:600}.growth-tabs>button.active{border-color:#ededed;color:#fff}.growth-tabs>button span{font-size:12px;padding:0 6px;min-width:20px;line-height:20px;background:#333;color:#ccc;border-radius:5px}.task-board{background:#202020;border:1px solid #333;border-radius:12px;padding:7px 26px 0}.task-board-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:67px;border-bottom:1px solid #343434}.task-tabs{display:flex;border:0;gap:6px;padding:0;margin:0}.task-tabs>button{min-height:36px;font-size:14px;padding:5px 16px;border:0;border-radius:7px;color:#aaa;font-weight:500}.task-tabs>button.active{color:#f5f5f5;background:#363636;border:0}.task-tabs>button:hover{background:#2e2e2e;color:white}.task-row,.task-full-list .task-row{gap:18px;padding:23px 0;border-color:#333;min-height:106px;flex-wrap:nowrap}.task-row:first-child{padding-top:23px}.task-row:last-child{padding-bottom:23px}.task-symbol{width:28px;height:28px;background:none;color:#9a9a9a;border-radius:0}.task-symbol svg{width:22px;height:22px}.task-copy h3,.task-full-list .task-copy h3{font-size:15px;color:#f0f0f0;font-weight:600}.task-copy p,.task-full-list .task-copy p{font-size:13px;color:#9e9e9e;margin-top:6px}.reward-inline,.task-full-list .reward-inline{font-size:12px;color:#bbb;gap:16px;margin-top:8px}.reward-inline svg{color:var(--accent);width:13px;height:13px}.task-progress{font-size:12px;color:#888!important;padding-left:16px;border-left:1px solid #454545}.task-row .button{min-width:106px;min-height:36px;padding:6px 14px;font-size:13px;flex:none}.task-caption{display:flex;align-items:flex-start;gap:8px;border-top:1px solid #333;font-size:12px;color:#929292;padding:18px 0;margin:0}.task-caption svg{width:15px;height:15px;flex:none;margin-top:2px}
.panel{background:#202020;border-color:#343434;padding:26px;border-radius:12px}.section-heading p{font-size:13px;color:#aaa}.map-top{border-top:1px solid #333;padding-top:20px}.map-top b{color:#eee;font-size:30px}.map-top p,.map-top span{color:#aaa}.month-control{color:#ddd}.calendar-layout{gap:30px}.weekday{color:#a0a0a0}.calendar-day{background:#292929;border-color:#333;color:#c8c8c8;min-height:50px}.calendar-day:hover{background:#373737;border-color:#666}.calendar-day.active{background:#484848;color:#fff;border-color:#5c5c5c}.calendar-day.active svg{color:var(--accent)}.calendar-day.today{outline:1px solid #e5e5e5;border-color:#ccc}.calendar-day.future{background:#242424;color:#707070}.calendar-day.inactive{color:#aaa}.map-legend,.heat-tooltip{color:#a5a5a5;font-size:12px}.legend-square{background:#292929;border-color:#444}.legend-square.active{background:#626262;border-color:#666}.milestone-list{border-color:#3d3d3d}.milestone{border-color:#3a3a3a}.milestone p{color:#aaa}.milestone-heading h3{font-size:15px}.milestone-heading .pill{background:#353535;color:#ccc}.heat-panel{margin-top:20px}.heatmap button{background:#303030;border:1px solid #3b3b3b}.heatmap button[data-strength="1"]{background:#626262}.heatmap button[data-strength="2"]{background:#919191}.heatmap button[data-strength="3"]{background:#ccc}.heat-caption{color:#999}.heat-panel .pill svg{color:var(--accent)}
footer{padding:28px 0 26px;font-size:12px;color:#818181;border-top:0;gap:18px}footer button{color:#aaa;font-size:12px;text-decoration:none}footer button:hover{text-decoration:underline}.toast{left:50%;bottom:28px;background:#ededed;color:#191919;border:1px solid #ededed;border-radius:8px;font-size:14px;max-width:min(90vw,580px)}.storage-warning{color:#bbb;background:#2a2a2a;border:1px solid #444}.pet-art{background-image:var(--asset-xiaohei-pet-atlas-dark);mix-blend-mode:normal}.wallet{display:none}
@media(min-width:1600px){.workspace{max-width:1320px;padding-top:44px}.pet-stage{margin-top:32px}.stage-scene{height:354px}.pet-actor{height:350px;width:370px;left:calc(50% - 185px)}.pet-actor .stage-pet-art,.motion-sprite{width:350px;height:350px}.stage-shortcuts{right:100px;top:105px}.pet-play{left:114px;top:97px}}
@media(max-width:980px){.site-header{padding:0 26px;height:68px}.workspace{padding:28px 28px 0}.stage-shortcuts{right:3px;top:87px}.pet-play{left:0;top:79px}.stage-shortcuts button{gap:8px;font-size:13px;padding:8px}.stage-shortcuts small{margin-left:2px}.pet-play button{padding:8px}.calendar-layout{grid-template-columns:1fr}.milestone-list{border-left:0;border-top:1px solid #333;padding-top:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.milestone-list>.section-heading{grid-column:1/-1;margin:0}.milestone{border:0;padding:0}}
@media(max-width:700px){.site-header{height:62px;padding:0 18px;gap:10px}.brand{font-size:14px;gap:6px}.brand-art{width:32px;height:32px}.site-tools{gap:13px}.site-tools .demo-tag{display:none}.site-tools .text-button{font-size:12px}.site-tools .text-button svg{width:16px}.account-avatar{width:28px;height:28px;font-size:13px}.workspace{padding:24px 18px 0}.page-header{gap:8px;align-items:flex-start}.page-header h1{font-size:25px}.page-header p{font-size:12px;max-width:210px;line-height:1.6}.energy-pocket{padding-top:5px;font-size:0;gap:5px;min-height:32px}.energy-pocket b{font-size:17px;margin:0}.energy-pocket svg{width:17px!important}.pet-stage{margin:20px 0 25px}.stage-topline{font-size:11px}.stage-topline svg{width:13px}.stage-topline label{gap:6px}.stage-topline .toggle{width:30px;height:18px}.stage-scene{height:299px}.pet-actor{width:260px;height:265px;left:calc(50% - 130px);bottom:2px}.pet-actor .stage-pet-art,.motion-sprite{width:264px;height:264px}#petSpeech{top:15px;max-width:95%;white-space:normal;width:max-content;text-align:center;font-size:12px;padding:7px 11px}.stage-shortcuts{top:auto;right:0;bottom:20px;gap:13px;z-index:3}.stage-shortcuts button{padding:5px;gap:0;display:flex;flex-direction:column;font-size:10px;background:#191919}.stage-shortcuts button svg{width:19px;height:19px;margin-bottom:4px}.stage-shortcuts small,.stage-shortcuts .new-dot{display:none}.pet-play{left:0;top:auto;bottom:24px;gap:10px;z-index:3}.pet-play>span{display:none}.pet-play button{font-size:0;gap:0;width:32px;height:32px;min-height:32px;display:grid;place-items:center;background:#242424;border:1px solid #3c3c3c;border-radius:50%;padding:5px}.pet-play button svg{width:17px;height:17px}.companion-title h2{font-size:19px}.companion-title>span{font-size:11px}.companion-growth{font-size:11px;margin:7px auto 16px;gap:10px}.companion-growth .progress{width:128px}.companion-actions{gap:9px}.companion-actions .button{min-width:0;padding:8px 12px;min-height:42px;font-size:12px;flex:1;max-width:180px}.companion-actions .button svg{width:16px}.companion-hint{font-size:11px;margin-top:11px}.growth-section{margin-top:26px}.growth-tabs{height:58px;margin-bottom:16px;gap:28px}.growth-tabs>button{height:58px;font-size:17px}.task-board{padding:0 16px}.task-board-head{min-height:62px;gap:8px;flex-wrap:wrap;padding:12px 0}.task-tabs{gap:2px;flex:1}.task-tabs>button{padding:5px 9px;font-size:12px;min-height:32px}.task-board-head>.button{font-size:11px;min-height:30px;padding:3px 9px}.task-row,.task-full-list .task-row{position:relative;gap:10px;padding:20px 0;align-items:flex-start;flex-wrap:wrap}.task-symbol{width:23px;height:23px;padding-top:2px}.task-symbol svg{width:19px;height:19px}.task-copy{flex:1;min-width:200px}.task-copy h3,.task-full-list .task-copy h3{font-size:14px}.task-copy p,.task-full-list .task-copy p{font-size:12px;line-height:1.65}.task-full-list .reward-inline{font-size:11px;gap:10px}.task-progress{display:none}.task-row .button{min-width:90px;min-height:32px;font-size:12px;margin-left:auto}.task-caption{font-size:11px;line-height:1.8}.panel{padding:18px 16px}.section-heading h2{font-size:18px}.section-heading p{font-size:12px}.calendar{gap:5px}.calendar-day{min-height:37px;font-size:12px}.map-top{padding-top:16px}.map-top b{font-size:25px}.map-top p,.map-top span{font-size:11px}.month-control strong{font-size:13px;min-width:98px}.milestone-list{grid-template-columns:1fr;gap:16px}.milestone{padding-top:15px;border-top:1px solid #333}.milestone-heading h3{font-size:14px}.milestone p{font-size:12px}.heat-caption{font-size:11px}footer{padding:24px 0;font-size:11px;gap:8px}footer button{font-size:11px}.toast{font-size:12px;bottom:22px}}
.stage-scene{background:#191919}.pet-actor{mix-blend-mode:lighten}.motion-sprite{background-position:6% 0%;overflow:hidden}.energy-pocket [data-icon="energy"]{color:var(--accent)}
.calendar-day.inactive,.calendar-day.today:not(.active){background:#292929;color:#c8c8c8}.calendar-day.inactive:hover,.calendar-day.today:not(.active):hover{background:#373737}
.companion-title .companion-level{font-size:12px;color:#ccc;background:#333;border-radius:4px;padding:1px 6px;margin:0;display:inline-block}
.companion-growth{display:flex;flex-direction:column;gap:7px;width:280px;margin:10px auto 19px}.growth-caption{display:flex;justify-content:space-between;width:100%;gap:10px;font-size:12px;color:#929292}.companion-growth .progress{width:100%;height:4px}.companion-hint{display:block;font-size:12px;color:#929292;margin-top:10px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.pet-actor{transition:none}.progress span{transition:none}}

/* Growth library: a quiet, monochrome collection space.
   Load after style.css. These overrides stay inside the existing dialog;
   no markup, actions, model state, or external page surfaces are changed. */
#dialog {
  --bg: #181818;
  --surface: #202020;
  --ink: #f5f5f5;
  --muted: #a6a6a6;
  --line: #303030;
  --green: #eeeeee;
  --hover: #2b2b2b;
  --soft: #252525;
  --lime: #eeeeee;
  --gold: #b8b8b8;
  --pet-bg: #242424;
  width: min(1040px, calc(100vw - 64px));
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 1px solid #303030;
  border-radius: 18px;
  background: #181818;
  color: #f5f5f5;
  color-scheme: dark;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #494949 #181818;
  box-shadow: none;
  text-shadow: none;
}
#dialog.narrow { width: min(620px, calc(100vw - 48px)); }
#dialog::backdrop { background: rgb(0 0 0 / 68%); backdrop-filter: none; }
#dialog *, #dialog *::before, #dialog *::after { box-shadow: none; text-shadow: none; }
#dialog :focus-visible { outline: 2px solid #bcbcbc; outline-offset: 4px; }
#dialog :is(h2, h3, strong) { color: #f5f5f5; }
#dialog .muted { color: #a6a6a6; }
#dialog button { -webkit-tap-highlight-color: transparent; }
#dialog button:disabled { opacity: .4; cursor: not-allowed; }
#dialog .icon { flex-shrink: 0; }

/* Header and library switch. Equal side tracks keep the tabs truly centered
   on desktop even when the companion switch is shown on the right. */
#dialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 82px;
  padding: 18px 28px;
  gap: 16px;
  border-bottom: 1px solid #303030;
  background: #181818;
}
#dialog .dialog-head h2 { font-size: 20px; line-height: 1.45; font-weight: 650; }
#dialog .dialog-head:has(.dialog-tabs) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
#dialog .dialog-tabs {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #303030;
  border-radius: 10px;
  background: #111111;
}
#dialog .dialog-tabs button {
  min-width: 118px;
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #9d9d9d;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
#dialog .dialog-tabs button:hover { background: #242424; color: #ededed; }
#dialog .dialog-tabs button.active,
#dialog .dialog-tabs button[aria-selected="true"] {
  border-color: #414141;
  background: #323232;
  color: #ffffff;
  font-weight: 650;
}
#dialog .dialog-tools { display: flex; align-items: center; gap: 16px; }
#dialog .dialog-head:has(.dialog-tabs) .dialog-tools { grid-column: 3; justify-self: end; }
#dialog .dialog-tools label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #aaaaaa;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
#dialog .icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a8a8a8;
}
#dialog .icon-button .icon { width: 20px; height: 20px; }
#dialog .icon-button:hover { border-color: #383838; background: #292929; color: #fff; }
#dialog .toggle {
  width: 32px;
  height: 20px;
  margin: 0;
  border: 1px solid #505050;
  border-radius: 12px;
  background: #383838;
  flex-shrink: 0;
}
#dialog .toggle::after { width: 14px; height: 14px; left: 2px; top: 2px; background: #a3a3a3; }
#dialog .toggle:checked { border-color: #dedede; background: #e5e5e5; }
#dialog .toggle:checked::after { background: #252525; transform: translateX(12px); }

/* Common typography and controls: white is reserved for primary actions. */
#dialog .dialog-body { padding: 28px; background: #181818; font-size: 15px; line-height: 1.75; }
#dialog .dialog-description { margin: 0 0 26px; color: #a6a6a6; font-size: 14px; line-height: 1.8; }
#dialog .dialog-head:has(.dialog-tabs) + .dialog-body > .dialog-description {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}
#dialog .button {
  min-height: 44px;
  padding: 10px 18px;
  gap: 8px;
  border: 1px solid #414141;
  border-radius: 8px;
  background: #252525;
  color: #e6e6e6;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease;
}
#dialog .button .icon { width: 17px; height: 17px; }
#dialog .button:hover:not(:disabled) { border-color: #626262; background: #323232; color: #fff; }
#dialog .button.primary, #dialog .button.lime {
  border-color: #ededed;
  background: #ededed;
  color: #181818;
}
#dialog .button.primary:hover:not(:disabled), #dialog .button.lime:hover:not(:disabled) {
  border-color: #fff;
  background: #fff;
  color: #111;
}
#dialog .button.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
#dialog .button.ghost { background: transparent; }
#dialog .text-button {
  min-height: 44px;
  padding: 0;
  gap: 7px;
  color: #b4b4b4;
  font-size: 14px;
}
#dialog .text-button:hover { color: #fff; }
#dialog .pill, #dialog .pill.ochre {
  padding: 4px 9px;
  border: 1px solid #3b3b3b;
  border-radius: 6px;
  background: #292929;
  color: #c4c4c4;
  font-size: 13px;
}
#dialog .dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 20px 28px;
  border-top: 1px solid #303030;
  background: #181818;
}
#dialog .dialog-actions .button { font-size: 14px; }
#dialog .demo-note {
  margin-top: 20px;
  color: #969696;
  font-size: 14px;
  line-height: 1.8;
}
#dialog .section-heading { margin-bottom: 24px; gap: 20px; }
#dialog .section-heading h3 { font-size: 18px; line-height: 1.5; font-weight: 600; }
#dialog .section-heading p { margin-top: 7px; color: #9f9f9f; font-size: 14px; line-height: 1.7; }
#dialog .section-heading > .button { flex-shrink: 0; }

/* Collection: four calm, generously spaced columns on desktop. */
#dialog .filter-row { gap: 8px; margin-bottom: 24px; }
#dialog .filter-row button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #343434;
  border-radius: 7px;
  background: #202020;
  color: #aaaaaa;
  font-size: 14px;
  line-height: 1.5;
}
#dialog .filter-row button:hover { border-color: #515151; color: #e4e4e4; }
#dialog .filter-row button.active { border-color: #595959; background: #343434; color: #fff; }
#dialog .filter-row .muted { margin-left: auto; color: #999; font-size: 14px; }
#dialog .pet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
#dialog .pet-tile { min-width: 0; padding: 0; border-radius: 12px; background: transparent; color: #f5f5f5; }
#dialog .pet-tile .pet-picture {
  aspect-ratio: 1;
  border: 1px solid #343434;
  border-radius: 12px;
  background: #242424;
  transition: border-color 180ms ease, background-color 180ms ease;
}
#dialog .pet-tile:hover .pet-picture { border-color: #626262; background: #292929; }
#dialog .pet-tile.selected .pet-picture { border: 1px solid #dedede; background: #2b2b2b; }
#dialog .pet-art { filter: none; mix-blend-mode: normal; }
#dialog .pet-tile .pet-art { transition: transform 220ms ease; }
#dialog .pet-tile:hover .pet-art { transform: translateY(-2px); }
#dialog .pet-tile.locked .pet-art { filter: grayscale(1) brightness(.8); opacity: .58; }
#dialog .pet-marker {
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid #565656;
  border-radius: 50%;
  background: #2d2d2d;
  color: #c5c5c5;
}
#dialog .pet-tile.selected .pet-marker { border-color: #eee; background: #eee; color: #1b1b1b; }
#dialog .pet-tile .pet-picture .icon { width: 14px; height: 14px; }
#dialog .pet-tile h3 { margin: 12px 0 4px; font-size: 15px; line-height: 1.5; font-weight: 600; }
#dialog .pet-tile p { color: #a2a2a2; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#dialog .pet-tile.selected p { color: #dedede; }
#dialog .gallery-tip {
  align-items: flex-start;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #303030;
  color: #989898;
  font-size: 14px;
  line-height: 1.7;
}
#dialog .gallery-tip .icon { width: 17px; height: 17px; margin-top: 3px; color: #ababab; }
#dialog .empty { padding: 56px 20px; color: #999; }
#dialog .empty h3 { font-size: 18px; color: #ddd; }
#dialog .empty p { font-size: 14px; }
#dialog .empty .icon { color: #8d8d8d; }

/* Individual pet, rewards, and task instructions. */
#dialog .pet-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 14px; }
#dialog .pet-detail > .pet-art { width: 100%; border: 1px solid #343434; border-radius: 14px; background-color: #242424; }
#dialog .pet-detail h3 { margin: 12px 0 14px; font-size: 28px; line-height: 1.45; }
#dialog .pet-detail p { margin-bottom: 24px; color: #aaa; font-size: 15px; line-height: 1.85; }
#dialog .detail-facts {
  padding: 18px 0;
  margin-bottom: 24px;
  gap: 12px;
  border-color: #353535;
  color: #ededed;
  font-size: 14px;
}
#dialog .detail-facts div { gap: 20px; align-items: flex-start; }
#dialog .detail-facts span { flex-shrink: 0; color: #a1a1a1; }
#dialog .detail-facts strong { text-align: right; color: #ddd; font-weight: 500; overflow-wrap: anywhere; }
#dialog .guide-steps { padding-left: 22px; color: #aaa; font-size: 15px; line-height: 1.85; }
#dialog .guide-steps li { padding: 9px 0; }
#dialog .guide-steps li::marker { color: #888; }
#dialog .guide-steps strong { color: #e8e8e8; font-weight: 600; }
#dialog .reward-box {
  padding: 18px 20px;
  gap: 20px;
  border: 1px solid #343434;
  border-radius: 10px;
  background: #202020;
  color: #d6d6d6;
  flex-wrap: wrap;
}
#dialog .reward-box > span, #dialog .reward-box > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d6d6d6;
  font-size: 14px;
}
#dialog .reward-box .icon { width: 18px; height: 18px; color: #bcbcbc; }
#dialog .reward-inline { color: #c7c7c7; font-size: 14px; }
#dialog .reward-pop { padding: 8px 8px 24px; }
#dialog .reward-pop .pet-art { width: 230px; height: 230px; max-width: 100%; border: 1px solid #343434; border-radius: 14px; background-color: #242424; }
#dialog .reward-pop h3 { margin: 20px 0 10px; font-size: 24px; line-height: 1.5; }
#dialog .reward-pop p { color: #aaa; font-size: 15px; line-height: 1.8; }
#dialog .box-opening { min-height: 310px; padding: 44px 28px; gap: 20px; align-content: center; }
#dialog .box-opening > .icon { width: 70px; height: 70px; color: #ddd; }
#dialog .box-opening p { color: #aaa; font-size: 14px; }
#dialog .badge-grid .pill { padding: 8px 12px; font-size: 14px; }

/* Travel is presented as collected letters, not a status dashboard. */
#dialog .destination-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
#dialog .destination-card {
  border: 1px solid #373737;
  border-radius: 12px;
  padding: 0 0 18px;
  background: #202020;
  color: #f3f3f3;
  transition: border-color 180ms ease, background-color 180ms ease;
}
#dialog .destination-card:hover { border-color: #686868; background: #262626; }
#dialog .destination-card.active { border: 1px solid #dfdfdf; background: #2a2a2a; }
#dialog .destination-card .scene-art { border-bottom: 1px solid #353535; }
#dialog .destination-card h3 { margin: 16px 16px 6px; font-size: 16px; line-height: 1.5; }
#dialog .destination-card p { margin: 0 16px; color: #aaa; font-size: 14px; line-height: 1.7; }
#dialog .trip-now {
  padding: 20px 22px;
  margin-bottom: 24px;
  border: 1px solid #363636;
  border-radius: 12px;
  background: #202020;
  gap: 20px;
}
#dialog .trip-now h3 { font-size: 16px; font-weight: 600; }
#dialog .trip-now p { margin-top: 6px; color: #aaa; font-size: 14px; line-height: 1.7; }
#dialog .trip-now > .button { flex-shrink: 0; }
#dialog .travel-record { padding: 28px; margin-bottom: 22px; border: 1px solid #303030; border-radius: 14px; background: #202020; }
#dialog .record-head { gap: 24px; }
#dialog .record-head h3 { font-size: 19px; line-height: 1.5; font-weight: 600; }
#dialog .record-head time { margin-top: 6px; color: #949494; font-size: 14px; font-variant-numeric: tabular-nums; }
#dialog .record-head .button { min-height: 40px; flex-shrink: 0; font-size: 14px; }
#dialog .record-content { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; margin-top: 26px; align-items: start; }
#dialog .record-letter { color: #b8b8b8; font-size: 15px; line-height: 1.95; }
#dialog .record-letter strong { color: #e0e0e0; font-weight: 500; }
#dialog .record-letter p { margin: 15px 0; }
#dialog .record-letter small { color: #909090; font-size: 14px; line-height: 1.7; }
#dialog .record-photo { border: 1px solid #393939; border-radius: 10px; background-color: #292929; }
#dialog .record-photo:hover { border-color: #777; }
#dialog .record-photo .photo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  bottom: 12px;
  left: 12px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #252525;
  color: #eee;
  font-size: 13px;
  line-height: 1.5;
}
#dialog .photo-label .icon { width: 15px; height: 15px; }
#dialog .photo-large { width: min(650px, 100%); border: 1px solid #3a3a3a; border-radius: 12px; background-color: #242424; }

/* Prompt editing, simulated messages, rules, and storage notices. */
#dialog label[for="promptText"] { display: block; margin-bottom: 10px; color: #b4b4b4; font-size: 14px; }
#dialog .prompt-preview {
  min-height: 160px;
  padding: 18px;
  border: 1px solid #414141;
  border-radius: 10px;
  background: #202020;
  color: #e2e2e2;
  caret-color: #eee;
  font-size: 15px;
  line-height: 1.85;
}
#dialog .prompt-preview:hover { border-color: #626262; }
#dialog .prompt-preview:focus { border-color: #8b8b8b; outline: 1px solid #8b8b8b; outline-offset: 0; }
#dialog .chat-preview { gap: 16px; margin-top: 24px; }
#dialog .chat-row { gap: 12px; }
#dialog .chat-row .pet-art { width: 34px; height: 36px; border: 1px solid #414141; background-color: #292929; }
#dialog .chat-row p { padding: 14px 17px; border: 1px solid #343434; background: #252525; color: #d9d9d9; font-size: 15px; line-height: 1.8; }
#dialog .rule-list { gap: 26px; }
#dialog .rule-list section + section { padding-top: 24px; border-top: 1px solid #303030; }
#dialog .rule-list h3 { margin-bottom: 9px; color: #e9e9e9; font-size: 16px; font-weight: 600; }
#dialog .rule-list p { color: #a9a9a9; font-size: 15px; line-height: 1.85; }
#dialog .storage-warning { padding: 14px 16px; border: 1px solid #444; border-radius: 8px; background: #282828; color: #bbb; font-size: 14px; }

@media (max-width: 900px) {
  #dialog { width: calc(100vw - 40px); }
  #dialog .dialog-head { padding-inline: 24px; }
  #dialog .dialog-body { padding: 24px; }
  #dialog .dialog-tabs button { min-width: 104px; padding-inline: 16px; }
  #dialog .dialog-tools { gap: 10px; }
  #dialog .dialog-tools label { font-size: 13px; gap: 7px; }
  #dialog .pet-grid { gap: 24px 16px; }
  #dialog .pet-tile p { font-size: 13px; }
  #dialog .pet-detail { gap: 26px; }
  #dialog .record-content { gap: 24px; }
  #dialog .travel-record { padding: 24px; }
}
@media (max-width: 700px) {
  #dialog, #dialog.narrow { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  #dialog .dialog-head { min-height: 70px; padding: 14px 18px; gap: 12px; }
  #dialog .dialog-head h2 { font-size: 18px; }
  #dialog .dialog-head:has(.dialog-tabs) { grid-template-columns: minmax(0, 1fr) auto; }
  #dialog .dialog-tabs { grid-column: 1; justify-self: start; gap: 2px; padding: 3px; }
  #dialog .dialog-tabs button { min-width: 96px; min-height: 40px; padding: 7px 12px; font-size: 14px; }
  #dialog .dialog-head:has(.dialog-tabs) .dialog-tools { grid-column: 2; gap: 4px; }
  #dialog .dialog-tools label { font-size: 0; gap: 0; }
  #dialog .dialog-tools .toggle { width: 32px; height: 20px; margin: 0; }
  #dialog .dialog-tools .toggle:checked::after { transform: translateX(12px); }
  #dialog .dialog-tools .icon-button { width: 36px; height: 40px; }
  #dialog .dialog-body { padding: 22px 18px; }
  #dialog .dialog-description { font-size: 14px; margin-bottom: 22px; }
  #dialog .dialog-head:has(.dialog-tabs) + .dialog-body > .dialog-description { margin-bottom: 24px; text-align: left; }
  #dialog .filter-row { gap: 6px; margin-bottom: 22px; }
  #dialog .filter-row button { min-height: 40px; padding: 7px 11px; font-size: 14px; }
  #dialog .filter-row .muted { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; }
  #dialog .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  #dialog .pet-tile h3 { margin-top: 10px; font-size: 15px; }
  #dialog .pet-tile p { font-size: 13px; }
  #dialog .pet-marker { top: 8px; right: 8px; width: 24px; height: 24px; }
  #dialog .gallery-tip { margin-top: 24px; font-size: 13px; }
  #dialog .pet-detail { grid-template-columns: 1fr; gap: 26px; }
  #dialog .pet-detail > .pet-art { max-width: 270px; margin: auto; }
  #dialog .pet-detail h3 { font-size: 25px; }
  #dialog .pet-detail p { font-size: 15px; }
  #dialog .detail-facts { font-size: 14px; gap: 12px; }
  #dialog .detail-facts div { gap: 14px; }
  #dialog .dialog-actions { padding: 16px 18px; gap: 10px; }
  #dialog .dialog-actions .button { min-height: 44px; padding: 10px 14px; font-size: 14px; white-space: normal; }
  #dialog .demo-note { font-size: 13px; }
  #dialog .section-heading { align-items: flex-start; gap: 16px; }
  #dialog .section-heading h3 { font-size: 16px; }
  #dialog .section-heading p { font-size: 13px; }
  #dialog .section-heading > .button { min-height: 40px; padding: 8px 11px; font-size: 13px; }
  #dialog .destination-list { grid-template-columns: 1fr; gap: 14px; }
  #dialog .destination-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); padding: 0; }
  #dialog .destination-card .scene-art { grid-row: 1 / 3; width: 112px; height: 122px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #353535; }
  #dialog .destination-card h3 { align-self: end; margin: 14px 14px 5px; font-size: 16px; }
  #dialog .destination-card p { margin: 0 14px 14px; font-size: 14px; }
  #dialog .trip-now { display: block; padding: 18px; }
  #dialog .trip-now .button { margin-top: 15px; }
  #dialog .travel-record { padding: 20px 18px; margin-bottom: 18px; }
  #dialog .record-head { align-items: flex-start; gap: 12px; }
  #dialog .record-head h3 { font-size: 17px; }
  #dialog .record-head time { font-size: 13px; }
  #dialog .record-head .button { padding: 8px 10px; font-size: 13px; }
  #dialog .record-head .button .icon { width: 16px; height: 16px; }
  #dialog .record-content { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  #dialog .record-letter { font-size: 15px; }
  #dialog .record-letter p { margin: 13px 0; }
  #dialog .record-letter small { font-size: 13px; }
  #dialog .record-photo { aspect-ratio: 1.3; }
  #dialog .photo-label { font-size: 13px; }
  #dialog .reward-pop .pet-art { width: 210px; height: 210px; }
  #dialog .reward-pop h3 { font-size: 22px; }
  #dialog .rule-list { gap: 22px; }
  #dialog .rule-list p { font-size: 14px; }
  #dialog .rule-list section + section { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #dialog *, #dialog *::before, #dialog *::after { animation: none; transition: none; }
  #dialog .pet-tile:hover .pet-art { transform: none; }
}

/* V3: compact companion stage; colors remain owned by dark/light themes. */
.site-header{height:64px}.workspace{padding-top:24px}.page-header h1{font-size:28px}.page-header p{margin-top:6px}.site-tools{gap:18px}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 11px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:13px;white-space:nowrap}.theme-toggle:hover{background:var(--hover);color:var(--ink)}.theme-toggle svg{width:17px;height:17px}
.pet-stage{display:grid;grid-template-columns:240px minmax(300px,1fr) 216px;grid-template-rows:auto auto auto;column-gap:32px;row-gap:8px;margin:14px 0 22px;padding:5px 0 8px}.stage-topline{grid-column:1/-1;grid-row:1;font-size:12px;min-height:26px}.stage-scene{display:contents}.stage-character{position:relative;grid-column:1;grid-row:2/4;width:240px;height:214px;isolation:isolate}.pet-actor{width:220px;height:210px;left:10px;bottom:0;animation:pet-breathe 7.5s ease-in-out infinite;transform-origin:50% 85%}.pet-actor .stage-pet-art,.motion-sprite{width:210px;height:210px}#petSpeech{top:0;max-width:245px;font-size:12px;white-space:normal;line-height:1.5;text-align:center;width:max-content;padding:6px 10px}.companion-info{grid-column:2;grid-row:2/4;align-self:center;text-align:left;margin:0}.companion-title{justify-content:flex-start;gap:9px}.companion-title h2{font-size:20px}.companion-growth{width:270px;max-width:100%;margin:11px 0 18px}.growth-caption{font-size:12px}.companion-actions{justify-content:flex-start;gap:10px}.companion-actions .button{min-width:0;min-height:40px;padding:8px 15px;font-size:13px}.companion-hint{font-size:11px;margin-top:10px}.stage-shortcuts{position:static;grid-column:3;grid-row:2;display:flex;flex-direction:row;align-self:end;justify-content:flex-start;gap:20px;margin-bottom:12px}.stage-shortcuts button{display:flex;flex-direction:column;gap:6px;padding:6px 9px;font-size:12px;min-width:74px}.stage-shortcuts svg{width:20px;height:20px}.stage-shortcuts small{display:none}.pet-play{position:static;grid-column:3;grid-row:3;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:6px}.pet-play button{padding:6px 8px;min-height:34px;gap:6px;font-size:12px;white-space:nowrap}.pet-play svg{width:15px;height:15px}.growth-section{margin-top:12px}.growth-tabs{height:58px;margin-bottom:18px}.growth-tabs>button{height:58px;font-size:18px}.task-row,.task-full-list .task-row{min-height:99px;padding:18px 0}.task-row:first-child{padding-top:18px}.task-row:last-child{padding-bottom:18px}
@keyframes pet-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.012,1.018)}}
@media(max-width:1050px) and (min-width:701px){.pet-stage{grid-template-columns:200px minmax(270px,1fr) 174px;column-gap:18px}.stage-character{width:200px;height:204px}.pet-actor{width:200px;height:196px;left:0}.pet-actor .stage-pet-art,.motion-sprite{width:196px;height:196px}#petSpeech{max-width:210px;font-size:11px}.pet-play{grid-template-columns:1fr}.pet-play button{min-height:29px}.stage-shortcuts{gap:9px}.stage-shortcuts button{min-width:60px;font-size:11px;padding:5px}.companion-actions .button{font-size:12px;padding:7px 10px}.companion-actions svg{width:15px}.companion-hint{line-height:1.6;max-width:270px}}
@media(max-width:700px){.site-header{height:60px;padding:0 15px}.site-tools{gap:9px}.site-tools .text-button{font-size:0;gap:0;width:30px}.site-tools .text-button svg{width:18px}.theme-toggle{padding:5px 8px;min-height:32px;font-size:12px}.account-avatar{display:none}.workspace{padding:20px 16px 0}.page-header h1{font-size:24px}.pet-stage{display:grid;grid-template-columns:142px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;row-gap:13px;margin:16px 0 16px;padding:0}.stage-topline{grid-column:1/-1;grid-row:1;font-size:11px}.stage-character{grid-column:1;grid-row:2;width:142px;height:164px}.pet-actor{width:150px;height:154px;left:-4px;bottom:0}.pet-actor .stage-pet-art,.motion-sprite{width:154px;height:154px}#petSpeech{top:0;max-width:148px;width:148px;padding:5px 7px;font-size:10px;line-height:1.5}.companion-info{grid-column:2;grid-row:2;text-align:left}.companion-title{gap:6px;justify-content:flex-start}.companion-title h2{font-size:17px}.companion-title .companion-level{font-size:10px;padding:1px 4px}.companion-title .icon-button{width:24px;height:24px}.companion-growth{width:100%;margin:9px 0 12px;gap:5px}.growth-caption{font-size:10px}.growth-caption>span:first-child{display:none}.companion-actions{flex-direction:column;align-items:stretch;gap:6px}.companion-actions .button{font-size:11px;padding:6px 8px;min-height:32px;max-width:none;flex:auto}.companion-actions .button svg{width:14px;height:14px}.companion-hint{font-size:10px;line-height:1.5;margin-top:7px}.stage-shortcuts{grid-column:1;grid-row:3;align-self:center;display:flex;flex-direction:row;gap:7px;margin:0;justify-content:flex-start}.stage-shortcuts button{background:none;flex-direction:column;gap:5px;font-size:10px;min-height:40px;min-width:60px;padding:3px 5px}.stage-shortcuts button svg{width:18px;height:18px;margin:0}.pet-play{grid-column:2;grid-row:3;gap:5px;display:grid;grid-template-columns:1fr 1fr}.pet-play button{width:auto;height:auto;min-height:28px;display:flex;font-size:10px;border-radius:6px;padding:4px 5px;gap:4px;border:0;background:none}.pet-play button svg{width:13px;height:13px}.growth-tabs{height:52px;margin-bottom:14px;gap:26px}.growth-tabs>button{height:52px;font-size:16px}.task-board{padding:0 14px}.task-board-head{padding:10px 0;min-height:58px}.task-full-list .task-row{padding:17px 0;gap:8px}.task-copy{min-width:190px}.task-caption{padding:15px 0}.growth-section{margin-top:18px}footer{padding:22px 0}}
@media(prefers-reduced-motion:reduce){}

/* Light theme only. Load after redesign.css and dialog.css.
   Surface / colour / asset overrides intentionally leave layout and sizing intact. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --surface: #f7f7f7;
  --ink: #222;
  --muted: #737373;
  --line: #e7e7e7;
  --green: #222;
  --hover: #f0f0f0;
  --soft: #f3f3f3;
  --lime: #222;
  --gold: #737373;
  --pet-bg: #f7f7f7;
  --accent: #189b78;
  background: #fff;
  scrollbar-color: #c6c6c6 #fafafa;
}
html[data-theme="light"] body { background: #fff; color: #222; }
html[data-theme="light"] ::selection { background: #dedede; color: #111; }
html[data-theme="light"] :is(button, a, input, select, textarea, summary):focus-visible { outline-color: #555; }
html[data-theme="light"] .skip { background: #222; color: #fff; }
html[data-theme="light"] .site-header { background: #fff; border-color: #e7e7e7; }
html[data-theme="light"] .brand { color: #222; }
html[data-theme="light"] :is(.site-tools .text-button, .text-button, footer button) { color: #626262; }
html[data-theme="light"] :is(.site-tools .text-button, .text-button, footer button):hover { color: #111; }
html[data-theme="light"] .demo-tag { color: #737373; }
html[data-theme="light"] .account-avatar { background: #f3f3f3; color: #444; border-color: #d9d9d9; }
html[data-theme="light"] :is(.page-header p, .muted, .section-heading p, .empty, .energy-pocket) { color: #737373; }
html[data-theme="light"] .energy-pocket b { color: #222; }
html[data-theme="light"] .energy-pocket > svg:last-child { color: #7d7d7d; }
html[data-theme="light"] :is(.energy-pocket > svg:first-child, .energy-pocket [data-icon="energy"]) { color: var(--accent); }
html[data-theme="light"] .button { background: #fff; color: #333; border-color: #dcdcdc; }
html[data-theme="light"] .button:hover:not(:disabled) { background: #f1f1f1; color: #222; border-color: #c8c8c8; }
html[data-theme="light"] :is(.button.primary, .button.lime) { background: #222; color: #fff; border-color: #222; }
html[data-theme="light"] :is(.button.primary, .button.lime):hover:not(:disabled) { background: #3a3a3a; color: #fff; border-color: #3a3a3a; }
html[data-theme="light"] .button.ghost { background: transparent; }
html[data-theme="light"] .button:disabled { background: #f0f0f0; color: #949494; border-color: #e3e3e3; }
html[data-theme="light"] .icon-button { color: #737373; }
html[data-theme="light"] .icon-button:hover { background: #efefef; color: #222; }
html[data-theme="light"] :is(.pill, .pill.ochre) { background: #ededed; color: #626262; border-color: #dedede; }
html[data-theme="light"] .toggle { background: #d4d4d4; border-color: #ccc; }
html[data-theme="light"] .toggle::after { background: #fff; }
html[data-theme="light"] .toggle:checked { background: #3d3d3d; border-color: #3d3d3d; }
html[data-theme="light"] .toggle:checked::after { background: #fff; }

/* Clean companion stage; light assets are embedded by the root build. */
html[data-theme="light"] :is(.pet-stage, .stage-scene) { background: #fff; }
html[data-theme="light"] .pet-art { background-image: var(--asset-xiaohei-pet-atlas-light); mix-blend-mode: multiply; }
html[data-theme="light"] .motion-sprite { background-image: var(--asset-xiaohei-motion-atlas-light); }
html[data-theme="light"] .pet-actor { background: transparent; mix-blend-mode: multiply; }
html[data-theme="light"] .pet-actor:hover { background: transparent; }
html[data-theme="light"] :is(.stage-topline, .stage-shortcuts button, .pet-play button) { color: #666; }
html[data-theme="light"] .stage-shortcuts button { background: #fff; }
html[data-theme="light"] .pet-play button { background: #f7f7f7; border-color: #e7e7e7; }
html[data-theme="light"] :is(.stage-shortcuts button, .pet-play button):hover { background: #f0f0f0; color: #222; }
html[data-theme="light"] :is(.stage-shortcuts svg, .pet-play button svg) { color: #737373; }
html[data-theme="light"] :is(.stage-shortcuts small, .pet-play > span, .companion-growth, .growth-caption, .companion-hint) { color: #737373; }
html[data-theme="light"] #petSpeech { background: #f7f7f7; color: #626262; border-color: #e7e7e7; }
html[data-theme="light"] #petSpeech::after { background: #f7f7f7; border-color: #e7e7e7; }
html[data-theme="light"] .companion-title h2 { color: #222; }
html[data-theme="light"] :is(.companion-title > span, .companion-title .companion-level) { background: #ededed; color: #626262; }
html[data-theme="light"] .companion-title .icon-button { color: #737373; }
html[data-theme="light"] :is(.progress, .companion-growth .progress) { background: #e7e7e7; }
html[data-theme="light"] .progress span { background: #575757; }

/* Task area and calendar use neutral states; green stays in small icons. */
html[data-theme="light"] :is(.growth-section, .growth-tabs, .task-board-head, .task-row, .task-full-list .task-row, .task-caption) { border-color: #e7e7e7; }
html[data-theme="light"] .growth-tabs > button { color: #737373; }
html[data-theme="light"] .growth-tabs > button.active { color: #222; border-color: #222; }
html[data-theme="light"] .growth-tabs > button span { background: #ededed; color: #626262; }
html[data-theme="light"] :is(.task-board, .panel) { background: #f7f7f7; border-color: #e7e7e7; }
html[data-theme="light"] .task-tabs > button { color: #737373; }
html[data-theme="light"] .task-tabs > button:hover { background: #ededed; color: #222; }
html[data-theme="light"] .task-tabs > button.active { background: #e7e7e7; color: #222; }
html[data-theme="light"] .task-symbol { background: transparent; color: #737373; }
html[data-theme="light"] :is(.task-copy h3, .task-full-list .task-copy h3) { color: #222; }
html[data-theme="light"] :is(.task-copy p, .task-full-list .task-copy p, .task-caption) { color: #737373; }
html[data-theme="light"] :is(.reward-inline, .task-full-list .reward-inline) { color: #626262; }
html[data-theme="light"] .reward-inline svg { color: var(--accent); }
html[data-theme="light"] .task-progress { color: #737373 !important; border-color: #dedede; }
html[data-theme="light"] :is(.map-top, .milestone-list, .milestone) { border-color: #e7e7e7; }
html[data-theme="light"] .map-top b { color: #222; }
html[data-theme="light"] :is(.map-top p, .map-top span, .weekday, .calendar .weekday, .map-legend, .heat-tooltip, .milestone p, .heat-caption) { color: #737373; }
html[data-theme="light"] .month-control { color: #333; }
html[data-theme="light"] .calendar-day { background: #fff; color: #555; border-color: #e3e3e3; }
html[data-theme="light"] .calendar-day:hover { background: #f0f0f0; color: #222; border-color: #bcbcbc; }
html[data-theme="light"] .calendar-day.active { background: #dedede; color: #222; border-color: #ccc; }
html[data-theme="light"] .calendar-day.active svg { color: var(--accent); }
html[data-theme="light"] .calendar-day.today { border-color: #555; outline-color: #555; }
html[data-theme="light"] :is(.calendar-day.inactive, .calendar-day.today:not(.active)) { background: #fff; color: #626262; }
html[data-theme="light"] :is(.calendar-day.inactive, .calendar-day.today:not(.active)):hover { background: #f0f0f0; }
html[data-theme="light"] .calendar-day.future { background: #fafafa; color: #999; border-color: #ededed; }
html[data-theme="light"] .legend-square { background: #fff; border-color: #dedede; }
html[data-theme="light"] .legend-square.active { background: #bcbcbc; border-color: #bcbcbc; }
html[data-theme="light"] .milestone-heading .pill { background: #ededed; color: #626262; }
html[data-theme="light"] .heatmap button { background: #ededed; border-color: #e3e3e3; }
html[data-theme="light"] .heatmap button[data-strength="1"] { background: #cfcfcf; border-color: #c7c7c7; }
html[data-theme="light"] .heatmap button[data-strength="2"] { background: #9d9d9d; border-color: #969696; }
html[data-theme="light"] .heatmap button[data-strength="3"] { background: #626262; border-color: #626262; }
html[data-theme="light"] .heatmap button:hover { border-color: #222; }
html[data-theme="light"] .heat-panel .pill svg { color: var(--accent); }
html[data-theme="light"] footer { color: #737373; border-color: #e7e7e7; }
html[data-theme="light"] .toast { background: #222; color: #fff; border-color: #222; }
html[data-theme="light"] .storage-warning { background: #f3f3f3; color: #626262; border-color: #ddd; }

/* Every dialog shares the light tokens, including nested detail flows. */
html[data-theme="light"] #dialog {
  --bg: #fff;
  --surface: #f7f7f7;
  --ink: #222;
  --muted: #737373;
  --line: #e7e7e7;
  --green: #222;
  --hover: #f0f0f0;
  --soft: #f3f3f3;
  --lime: #222;
  --gold: #737373;
  --pet-bg: #f7f7f7;
  color-scheme: light;
  background: #fff;
  color: #222;
  border-color: #e7e7e7;
  scrollbar-color: #c6c6c6 #fff;
}
html[data-theme="light"] #dialog::backdrop { background: rgb(0 0 0 / 28%); }
html[data-theme="light"] #dialog :focus-visible { outline-color: #555; }
html[data-theme="light"] #dialog :is(h2, h3, strong) { color: #222; }
html[data-theme="light"] #dialog :is(.dialog-head, .dialog-body, .dialog-actions) { background: #fff; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .dialog-tabs { background: #f2f2f2; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .dialog-tabs button { background: transparent; color: #737373; border-color: transparent; }
html[data-theme="light"] #dialog .dialog-tabs button:hover { background: #e9e9e9; color: #222; }
html[data-theme="light"] #dialog .dialog-tabs button.active,
html[data-theme="light"] #dialog .dialog-tabs button[aria-selected="true"] { background: #fff; color: #222; border-color: #dcdcdc; }
html[data-theme="light"] #dialog :is(.dialog-tools label, .dialog-description, .muted, .demo-note, .section-heading p) { color: #737373; }
html[data-theme="light"] #dialog .icon-button { background: transparent; color: #737373; border-color: transparent; }
html[data-theme="light"] #dialog .icon-button:hover { background: #f0f0f0; color: #222; border-color: #e1e1e1; }
html[data-theme="light"] #dialog .toggle { background: #d4d4d4; border-color: #ccc; }
html[data-theme="light"] #dialog .toggle::after { background: #fff; }
html[data-theme="light"] #dialog .toggle:checked { background: #3d3d3d; border-color: #3d3d3d; }
html[data-theme="light"] #dialog .toggle:checked::after { background: #fff; }
html[data-theme="light"] #dialog .button { background: #fff; color: #333; border-color: #dcdcdc; }
html[data-theme="light"] #dialog .button:hover:not(:disabled) { background: #f1f1f1; color: #222; border-color: #c8c8c8; }
html[data-theme="light"] #dialog :is(.button.primary, .button.lime) { background: #222; color: #fff; border-color: #222; }
html[data-theme="light"] #dialog :is(.button.primary, .button.lime):hover:not(:disabled) { background: #3a3a3a; color: #fff; border-color: #3a3a3a; }
html[data-theme="light"] #dialog .button.ghost { background: transparent; }
html[data-theme="light"] #dialog .button:disabled { background: #f0f0f0; color: #949494; border-color: #e3e3e3; opacity: 1; }
html[data-theme="light"] #dialog .text-button { color: #626262; }
html[data-theme="light"] #dialog .text-button:hover { color: #111; }
html[data-theme="light"] #dialog :is(.pill, .pill.ochre) { background: #f0f0f0; color: #626262; border-color: #dedede; }
html[data-theme="light"] #dialog .filter-row button { background: #fafafa; color: #737373; border-color: #e3e3e3; }
html[data-theme="light"] #dialog .filter-row button:hover { color: #222; border-color: #bcbcbc; }
html[data-theme="light"] #dialog .filter-row button.active { background: #e9e9e9; color: #222; border-color: #cfcfcf; }
html[data-theme="light"] #dialog .filter-row .muted { color: #737373; }
html[data-theme="light"] #dialog .pet-tile { background: transparent; color: #222; }
html[data-theme="light"] #dialog .pet-tile .pet-picture { background: #f7f7f7; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .pet-tile:hover .pet-picture { background: #f2f2f2; border-color: #bcbcbc; }
html[data-theme="light"] #dialog .pet-tile.selected .pet-picture { background: #f2f2f2; border-color: #555; }
html[data-theme="light"] #dialog .pet-art { background-image: var(--asset-xiaohei-pet-atlas-light); mix-blend-mode: multiply; filter: none; }
html[data-theme="light"] #dialog .pet-tile.locked .pet-art { filter: grayscale(1); opacity: .72; }
html[data-theme="light"] #dialog .pet-marker { background: #fff; color: #737373; border-color: #d9d9d9; }
html[data-theme="light"] #dialog .pet-tile.selected .pet-marker { background: #333; color: #fff; border-color: #333; }
html[data-theme="light"] #dialog .pet-tile p { color: #737373; }
html[data-theme="light"] #dialog .pet-tile.selected p { color: #444; }
html[data-theme="light"] #dialog .gallery-tip { color: #737373; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .gallery-tip .icon { color: #737373; }
html[data-theme="light"] #dialog .empty { color: #737373; }
html[data-theme="light"] #dialog .empty h3 { color: #333; }
html[data-theme="light"] #dialog .empty .icon { color: #898989; }
html[data-theme="light"] #dialog :is(.pet-detail > .pet-art, .reward-pop .pet-art, .chat-row .pet-art) { background-color: #f7f7f7; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .pet-detail p { color: #737373; }
html[data-theme="light"] #dialog .detail-facts { color: #333; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .detail-facts span { color: #737373; }
html[data-theme="light"] #dialog .detail-facts strong { color: #333; }
html[data-theme="light"] #dialog .guide-steps { color: #626262; }
html[data-theme="light"] #dialog .guide-steps li::marker { color: #737373; }
html[data-theme="light"] #dialog .guide-steps strong { color: #333; }
html[data-theme="light"] #dialog .reward-box { background: #f7f7f7; color: #555; border-color: #e7e7e7; }
html[data-theme="light"] #dialog :is(.reward-box > span, .reward-box > div, .reward-inline) { color: #555; }
html[data-theme="light"] #dialog .reward-box .icon { color: var(--accent); }
html[data-theme="light"] #dialog :is(.reward-pop p, .box-opening p) { color: #737373; }
html[data-theme="light"] #dialog .box-opening > .icon { color: #555; }
html[data-theme="light"] #dialog .destination-card { background: #f7f7f7; color: #222; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .destination-card:hover { background: #f2f2f2; border-color: #bcbcbc; }
html[data-theme="light"] #dialog .destination-card.active { background: #f0f0f0; border-color: #555; }
html[data-theme="light"] #dialog .destination-card .scene-art { border-color: #e7e7e7; }
html[data-theme="light"] #dialog .destination-card p { color: #737373; }
html[data-theme="light"] #dialog :is(.trip-now, .travel-record) { background: #f7f7f7; border-color: #e7e7e7; }
html[data-theme="light"] #dialog :is(.trip-now p, .record-head time) { color: #737373; }
html[data-theme="light"] #dialog .record-letter { color: #626262; }
html[data-theme="light"] #dialog .record-letter strong { color: #333; }
html[data-theme="light"] #dialog .record-letter small { color: #737373; }
html[data-theme="light"] #dialog :is(.record-photo, .photo-large) { background-color: #f3f3f3; border-color: #dedede; }
html[data-theme="light"] #dialog .record-photo:hover { border-color: #737373; }
html[data-theme="light"] #dialog .record-photo .photo-label { background: #fff; color: #333; border-color: #dedede; }
html[data-theme="light"] #dialog label[for="promptText"] { color: #626262; }
html[data-theme="light"] #dialog .prompt-preview { background: #fafafa; color: #333; border-color: #dcdcdc; caret-color: #222; }
html[data-theme="light"] #dialog .prompt-preview::placeholder { color: #898989; }
html[data-theme="light"] #dialog .prompt-preview:hover { border-color: #bcbcbc; }
html[data-theme="light"] #dialog .prompt-preview:focus { border-color: #737373; outline-color: #737373; }
html[data-theme="light"] #dialog .chat-row p { background: #f3f3f3; color: #333; border-color: #e7e7e7; }
html[data-theme="light"] #dialog .rule-list section + section { border-color: #e7e7e7; }
html[data-theme="light"] #dialog .rule-list h3 { color: #333; }
html[data-theme="light"] #dialog .rule-list p { color: #626262; }
html[data-theme="light"] #dialog .storage-warning { background: #f3f3f3; color: #626262; border-color: #ddd; }

/* V4. Group companionship and growth actions; product green only for activity. */
:root{--activity:#15995a;--activity-ink:#70d29a;--activity-soft:#23392d;--activity-border:#365b44;--scene-plane:#242424;--scene-disc:#2b2b2b}
html[data-theme="light"]{--activity:#15995a;--activity-ink:#14834d;--activity-soft:#edf5f0;--activity-border:#cdebd9;--scene-plane:#f7f7f7;--scene-disc:#f0f0f0;--accent:#14834d;--muted:#6b6b6b}
html .pet-stage{display:grid;grid-template-columns:248px minmax(0,1fr);grid-template-rows:auto;align-items:center;column-gap:40px;padding:22px 28px 20px;margin:24px 0 24px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.companion-visual{width:248px;min-width:0;align-self:start}html .pet-stage .stage-character{width:248px;height:215px;grid-area:auto;position:relative;isolation:isolate}
.character-backdrop{position:absolute;inset:23px 10px 2px;border-radius:50% 50% 16px 16px;background:var(--scene-plane);overflow:hidden;z-index:0}.character-backdrop:before{content:"";position:absolute;width:170px;height:170px;border:1px solid var(--line);border-radius:50%;left:28px;top:16px}.character-backdrop:after{content:"";position:absolute;left:26px;right:26px;height:15px;bottom:12px;border-radius:50%;background:var(--scene-disc)}
html .pet-stage .pet-actor{width:210px;height:196px;left:19px;bottom:0;outline-offset:0!important}html .pet-stage .pet-actor .stage-pet-art,html .pet-stage .motion-sprite{width:196px;height:196px}html .pet-stage #petSpeech{top:0;max-width:248px;min-width:180px;font-size:12px;line-height:1.5;padding:6px 10px;z-index:4}
html .pet-stage .pet-play{position:static;display:flex;flex-direction:row;gap:4px;justify-content:center;grid-area:auto;margin:8px 0 0;width:100%}html .pet-stage .pet-play button{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;min-height:48px;min-width:54px;width:auto;height:auto;padding:5px 6px;font-size:12px;border:0;border-radius:8px;background:transparent;color:var(--muted)}html .pet-stage .pet-play button svg{width:18px;height:18px}html .pet-stage .pet-play button:hover{background:var(--hover);color:var(--ink)}
html .pet-stage .companion-info{grid-area:auto;min-width:0;text-align:left;margin:0;align-self:center}.companion-header{display:flex;align-items:center;justify-content:space-between;gap:16px}html .pet-stage .companion-title{justify-content:flex-start;gap:10px}html .pet-stage .companion-title h2{font-size:24px;line-height:1.3}html .pet-stage .companion-title .companion-level{font-size:13px;padding:2px 6px}
html .pet-stage .companion-growth{width:100%;max-width:420px;margin:18px 0 20px;gap:8px}html .pet-stage .growth-caption{font-size:14px}html .pet-stage .growth-caption>span:first-child{display:inline}html .pet-stage .companion-growth .progress{height:5px}html .pet-stage .companion-actions{display:flex;flex-direction:row;gap:12px;justify-content:flex-start;align-items:center;flex-wrap:wrap}html .pet-stage .companion-actions .button{flex:none;min-width:150px;max-width:none;min-height:42px;font-size:14px;padding:8px 18px}html .pet-stage .companion-actions .button svg{width:18px;height:18px}html .pet-stage .companion-hint{font-size:13px;margin-top:10px;line-height:1.6}
html .pet-stage .stage-shortcuts{position:static;grid-area:auto;display:flex;flex-direction:row;gap:24px;align-self:auto;justify-content:flex-start;padding-top:16px;margin:18px 0 0;border-top:1px solid var(--line);max-width:490px}html .pet-stage .stage-shortcuts button{display:flex;flex-direction:row;align-items:center;min-width:0;min-height:36px;padding:4px 0;gap:8px;font-size:14px;background:transparent;border-radius:5px;color:var(--ink)}html .pet-stage .stage-shortcuts button:hover{background:transparent;text-decoration:underline;text-underline-offset:4px}html .pet-stage .stage-shortcuts button svg{width:18px;height:18px;margin:0}html .pet-stage .stage-shortcuts button svg:last-child{width:13px;color:var(--muted)}html .pet-stage .stage-shortcuts small{display:inline;font-size:12px;margin:0;color:var(--muted)}html .pet-stage .stage-shortcuts .new-dot{display:block;width:5px;height:5px;margin:0}
.activity-map{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.activity-map-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 28px;border-bottom:1px solid var(--line)}.activity-map-header h2{font-size:20px;line-height:1.5;margin:0;font-weight:650}.activity-map-header h2 strong{color:var(--activity-ink);font-size:24px;font-weight:700}.activity-map-header p{font-size:14px;color:var(--muted);margin:5px 0 0}
html .activity-map .map-checkin,html .activity-map .map-claim{background:var(--activity-ink);color:#fff;border-color:var(--activity-ink);min-width:108px}html .activity-map .map-checkin svg{width:17px;height:17px}html[data-theme="dark"] .activity-map .map-checkin,html[data-theme="dark"] .activity-map .map-claim{background:#14834d;border-color:#14834d;color:#fff}html .activity-map .map-checkin:hover:not(:disabled),html .activity-map .map-claim:hover:not(:disabled){background:#116e40;border-color:#116e40;color:#fff}html .activity-map .map-checkin:disabled{background:var(--activity-soft);border-color:var(--activity-border);color:var(--activity-ink)}
.activity-map-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;padding:24px 28px}.map-calendar{min-width:0}.calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}html .activity-map .month-control{display:flex;align-items:center;gap:8px}.month-control h3{font-size:17px;min-width:126px;text-align:center;white-space:nowrap}html .activity-map .month-control .icon-button{width:32px;height:32px;min-height:32px}.month-count{font-size:13px;color:var(--muted)}
html .activity-map .calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}html .activity-map .weekday{text-align:center;font-size:13px;color:var(--muted);padding:0 0 7px}html .activity-map .calendar-day{position:relative;min-height:44px;max-height:48px;border-radius:7px;font-size:14px;background:var(--bg);border:1px solid var(--line);color:var(--ink)}html .activity-map .calendar-day svg{position:absolute;width:11px;height:11px;right:5px;bottom:4px}html .activity-map .calendar-day.active{background:var(--activity-soft);border-color:var(--activity-border);color:var(--activity-ink)}html .activity-map .calendar-day.active svg{color:var(--activity-ink)}html .activity-map .calendar-day.today{border-color:var(--activity-ink);outline:1px solid var(--activity-ink);outline-offset:-1px}html .activity-map .calendar-day.inactive{background:var(--bg);color:var(--ink)}html .activity-map .calendar-day.future{background:transparent;color:var(--muted);border-color:var(--line);opacity:.65}html .activity-map .calendar-day:hover{border-color:var(--activity-ink)}
.calendar-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-top:14px;min-height:28px}.calendar-meta p{font-size:12px;line-height:1.7;color:var(--muted);margin:0;max-width:340px}html .activity-map .map-legend{display:flex;align-items:center;gap:5px;flex:none;font-size:12px;margin:0;color:var(--muted)}html .activity-map .legend-square{width:10px;height:10px;border:1px solid var(--line);background:var(--bg);border-radius:2px}html .activity-map .legend-square.active{background:var(--activity-soft);border-color:var(--activity-ink);margin-left:6px}
.map-rewards{border-left:1px solid var(--line);padding-left:28px;min-width:0}.map-rewards-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;min-height:32px}.map-rewards-head h3{font-size:16px}.map-rewards-head>span{font-size:12px;color:var(--muted)}.map-milestone{padding:15px 0 16px;border-bottom:1px solid var(--line)}.milestone-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.milestone-title h4{font-size:14px;font-weight:600;margin:0;line-height:1.5}.milestone-title>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.milestone-track{height:3px;background:var(--line);border-radius:3px;margin:9px 0 10px;overflow:hidden}.milestone-track>span{display:block;height:100%;background:var(--activity);border-radius:3px}.milestone-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}.milestone-bottom p{display:flex;align-items:center;gap:3px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:0;line-height:1.6}.milestone-bottom p svg{width:13px;height:13px;color:var(--activity-ink)}.milestone-state{display:inline-flex;align-items:center;gap:4px;color:var(--activity-ink);font-size:12px;white-space:nowrap}.milestone-state svg{width:14px;height:14px}.milestone-state.muted{color:var(--muted)}html .activity-map .map-claim{min-width:72px;min-height:30px;padding:4px 9px;font-size:12px;white-space:nowrap}.map-rewards-note{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin:15px 0 0}.map-rewards-note svg{width:14px;height:14px;color:var(--activity-ink)}
.activity-history{border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(180px,.6fr) minmax(0,1fr);gap:32px;padding:24px 28px;align-items:center}.history-copy h3{font-size:17px;margin:0 0 8px}.history-copy p{font-size:13px;color:var(--muted);margin:0;line-height:1.7}.history-copy .history-dates{font-size:12px;margin-top:12px;font-variant-numeric:tabular-nums}.history-chart{min-width:0;width:100%;max-width:446px}.heat-months{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:4px;font-size:11px;color:var(--muted);margin:0 0 6px 22px;line-height:18px}.history-grid{display:grid;grid-template-columns:16px minmax(0,1fr);gap:6px;align-items:start}.heat-weekdays{height:164px;display:grid;grid-template-rows:repeat(7,20px);gap:4px;font-size:10px;color:var(--muted);align-items:center}.heat-weekdays span:nth-child(2){grid-row:3}.heat-weekdays span:nth-child(3){grid-row:5}.heat-weekdays span:nth-child(4){grid-row:7}html .activity-map .heatmap{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));grid-template-rows:repeat(7,20px);grid-auto-flow:column;gap:4px;width:100%;max-width:none}html .activity-map .heatmap button,html .activity-map .heat-future{width:100%;height:20px;min-height:0;min-width:0;border-radius:3px;border:1px solid var(--line);background:var(--bg);padding:0}html .activity-map .heatmap button[data-strength="1"]{background:var(--activity);border-color:var(--activity)}html .activity-map .heatmap button:hover{outline:1px solid var(--activity-ink);outline-offset:1px}html .activity-map .heat-future{visibility:hidden}.history-caption{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0 0 22px;color:var(--muted);font-size:12px;line-height:1.7}.history-legend{display:inline-flex;gap:6px;align-items:center}.history-legend i{width:8px;height:8px;background:var(--activity);border-radius:2px}
@media(min-width:1500px){html .pet-stage{grid-template-columns:264px minmax(0,1fr);column-gap:48px;padding-inline:32px}.companion-visual{width:264px}html .pet-stage .stage-character{margin:auto}html .pet-stage .companion-info{max-width:780px}}
@media(max-width:1000px){html .pet-stage{column-gap:24px;padding:20px;grid-template-columns:224px minmax(0,1fr)}.companion-visual{width:224px}html .pet-stage .stage-character{width:224px}html .pet-stage .pet-actor{left:7px}.character-backdrop{inset-inline:0}html .pet-stage .companion-title h2{font-size:22px}html .pet-stage .companion-actions .button{min-width:0;font-size:13px;padding:8px 12px}.activity-map-body{grid-template-columns:minmax(0,1fr) 280px;gap:24px;padding:20px}.activity-map-header{padding:20px}.map-rewards{padding-left:20px}.milestone-bottom{align-items:flex-start;flex-direction:column;gap:6px}.activity-history{grid-template-columns:180px minmax(0,1fr);padding:20px;gap:24px}.calendar-meta{flex-wrap:wrap}.month-count{display:none}}
@media(max-width:760px){html .pet-stage{grid-template-columns:180px minmax(0,1fr);gap:16px;padding:18px}.companion-visual{width:180px}html .pet-stage .stage-character{width:180px;height:190px}html .pet-stage .pet-actor{width:176px;height:170px;left:2px}html .pet-stage .motion-sprite,html .pet-stage .pet-actor .stage-pet-art{width:170px;height:170px}html .pet-stage #petSpeech{min-width:0;width:180px;max-width:180px;font-size:11px}.character-backdrop:before{width:140px;height:140px;left:18px;top:10px}html .pet-stage .pet-play{gap:0}html .pet-stage .pet-play button{min-width:44px;font-size:11px;padding:5px 2px}html .pet-stage .companion-header{align-items:flex-start;flex-direction:column;gap:10px}html .pet-stage .companion-growth{margin:14px 0}html .pet-stage .growth-caption{font-size:12px}html .pet-stage .companion-actions{gap:7px}html .pet-stage .companion-actions .button{font-size:12px;min-height:38px;padding:7px 10px}html .pet-stage .companion-hint{font-size:12px}html .pet-stage .stage-shortcuts{gap:16px;margin-top:14px;padding-top:10px}html .pet-stage .stage-shortcuts button{font-size:12px;gap:5px}html .pet-stage .stage-shortcuts button svg:last-child{display:none}.activity-map-body{grid-template-columns:1fr}.map-rewards{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.map-milestone{padding:13px 0}.milestone-bottom{flex-direction:row;align-items:center}.map-rewards-note{margin-top:12px}.activity-history{grid-template-columns:1fr;gap:16px}.history-chart{max-width:446px}.history-copy .history-dates{margin-top:6px}.month-count{display:inline}.history-grid,.heat-months{gap:4px}.heat-weekdays{gap:4px}.calendar-meta{flex-wrap:nowrap}.calendar-meta p{max-width:260px}}
@media(max-width:520px){html .pet-stage{display:flex;flex-direction:column;align-items:stretch;margin-top:20px;padding:18px 16px;gap:20px}.companion-visual{width:100%;display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:12px}html .pet-stage .pet-play{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}html .pet-stage .pet-play button{min-width:0;min-height:48px;font-size:11px}html .pet-stage .companion-header{flex-direction:row;align-items:center}html .pet-stage .companion-title h2{font-size:21px}html .pet-stage .companion-title{gap:7px}html .pet-stage .companion-growth{max-width:none}html .pet-stage .growth-caption{font-size:13px}html .pet-stage .companion-actions{flex-wrap:nowrap}html .pet-stage .companion-actions .button{flex:1;min-height:42px}html .pet-stage .stage-shortcuts{max-width:none;gap:24px;margin-top:15px}html .pet-stage .stage-shortcuts button{font-size:13px}.activity-map-header{padding:18px 16px;align-items:flex-start;gap:12px}.activity-map-header h2{font-size:17px}.activity-map-header h2 strong{font-size:21px}.activity-map-header p{font-size:12px;max-width:190px}html .activity-map .map-checkin{min-width:90px;font-size:12px;padding:6px 10px;min-height:38px}.activity-map-body{padding:18px 16px;gap:18px}.calendar-heading{gap:6px}.month-control h3{font-size:15px;min-width:106px}html .activity-map .month-control{gap:0}.month-count{font-size:11px}html .activity-map .calendar{gap:4px}html .activity-map .calendar-day{min-height:38px;font-size:13px}html .activity-map .calendar-day svg{width:9px;height:9px;right:3px;bottom:2px}.calendar-meta{flex-direction:column;gap:6px}.calendar-meta p{max-width:none;min-height:20px}.activity-history{padding:20px 16px}.heat-months{font-size:10px}.activity-map .heatmap{grid-template-rows:repeat(7,16px)}.activity-map .heatmap button,.activity-map .heat-future{height:16px}.heat-weekdays{height:136px;grid-template-rows:repeat(7,16px)}.history-caption{font-size:11px}.history-copy h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){.milestone-track>span{transition:none}}

/* Bottom-of-page guidance: scoped, readable in both themes, no scripts required. */
.growth-guidance { margin: 40px 0 0; color: var(--ink); }
.growth-guidance-rules { padding: 30px 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.growth-guidance .guidance-group + .guidance-group { margin-top: 28px; }
.growth-guidance h2 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 650; letter-spacing: 0; color: var(--ink); }
.growth-guidance .guidance-group h2 { position: relative; padding-left: 13px; margin-bottom: 13px; }
.growth-guidance .guidance-group h2::before { content: ''; position: absolute; top: 5px; bottom: 5px; left: 0; width: 3px; border-radius: 2px; background: var(--accent); }
.growth-guidance .guidance-facts { margin: 0; padding: 0; }
.growth-guidance .guidance-facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; align-items: baseline; }
.growth-guidance .guidance-facts > div + div { margin-top: 9px; }
.growth-guidance .guidance-facts dt, .growth-guidance .guidance-facts dd { margin: 0; font-size: 14px; line-height: 1.85; }
.growth-guidance .guidance-facts dt { color: var(--ink); font-weight: 500; }
.growth-guidance .guidance-facts dd { color: var(--muted); overflow-wrap: anywhere; }
.growth-guidance .growth-guidance-faq { margin-top: 32px; }
.growth-guidance .guidance-faq-heading { display: flex; gap: 20px; align-items: baseline; margin: 0 2px 16px; }
.growth-guidance .guidance-faq-heading p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.growth-guidance .guidance-faq-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
.growth-guidance .guidance-faq-list details + details { border-top: 1px solid var(--line); }
.growth-guidance .guidance-faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 26px; min-height: 66px; color: var(--ink); font-size: 15px; line-height: 1.7; font-weight: 500; cursor: pointer; transition: background-color .16s ease; }
.growth-guidance .guidance-faq-list summary::-webkit-details-marker { display: none; }
.growth-guidance .guidance-faq-list summary::marker { content: ''; }
.growth-guidance .guidance-faq-list summary:hover { background: var(--surface); }
.growth-guidance .guidance-faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 7px; }
.growth-guidance .guidance-faq-mark { position: relative; flex: 0 0 18px; width: 18px; height: 18px; color: var(--muted); }
.growth-guidance .guidance-faq-mark::before, .growth-guidance .guidance-faq-mark::after { content: ''; position: absolute; top: 8px; left: 3px; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; }
.growth-guidance .guidance-faq-mark::after { transform: rotate(90deg); transition: transform .18s ease; }
.growth-guidance details[open] .guidance-faq-mark::after { transform: rotate(0); }
.growth-guidance details[open] summary { padding-bottom: 11px; }
.growth-guidance .guidance-faq-answer { padding: 0 68px 22px 26px; }
.growth-guidance .guidance-faq-answer p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0; max-width: 980px; }
@media (max-width: 700px) {
  .growth-guidance { margin-top: 28px; }
  .growth-guidance-rules { padding: 23px 20px; border-radius: 12px; }
  .growth-guidance .guidance-group + .guidance-group { margin-top: 24px; }
  .growth-guidance h2 { font-size: 17px; }
  .growth-guidance .guidance-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .growth-guidance .guidance-facts > div + div { margin-top: 13px; }
  .growth-guidance .guidance-facts dt, .growth-guidance .guidance-facts dd { font-size: 14px; line-height: 1.75; }
  .growth-guidance .growth-guidance-faq { margin-top: 26px; }
  .growth-guidance .guidance-faq-heading { display: block; margin-bottom: 13px; }
  .growth-guidance .guidance-faq-heading p { margin-top: 4px; font-size: 13px; }
  .growth-guidance .guidance-faq-list { border-radius: 12px; }
  .growth-guidance .guidance-faq-list summary { padding: 18px 20px; min-height: 64px; font-size: 14px; gap: 16px; }
  .growth-guidance .guidance-faq-answer { padding: 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .growth-guidance .guidance-faq-list summary, .growth-guidance .guidance-faq-mark::after { transition: none; }
}

/* V5: a quieter activity palette, calendar rhythm and a miniature companion nook. */
:root{--activity:#6b9b80;--activity-ink:#a1cbb3;--activity-soft:#26382e;--activity-border:#385343;--activity-strong:#326d4e;--map-canvas:#202221;--map-surface:#1d1f1e;--map-empty:#282c29;--map-muted:#a6afa9;--map-line:#343a36}
html[data-theme="light"]{--activity:#72a68a;--activity-ink:#347154;--activity-soft:#edf5f0;--activity-border:#d4e5dc;--activity-strong:#14834d;--map-canvas:#fff;--map-surface:#fafcfb;--map-empty:#f0f3f1;--map-muted:#63716a;--map-line:#e3eae6}
html .pet-stage #petSpeech{border-radius:8px;padding:6px 10px;max-width:252px}
.activity-map{background:var(--map-canvas);border-color:var(--map-line);border-radius:14px}
.activity-map-header{background:var(--map-surface);border-color:var(--map-line);padding:22px 28px}
.activity-map-header h2{font-size:19px;letter-spacing:0}.activity-map-header h2 strong{font-size:22px;color:var(--activity-ink)}.activity-map-header p{color:var(--map-muted);font-size:13px;line-height:1.7;margin-top:4px}
html .activity-map .map-checkin,html .activity-map .map-claim{background:var(--activity-strong);border-color:var(--activity-strong);color:#fff;font-size:13px;min-height:38px;border-radius:8px}
html .activity-map .map-checkin:disabled{background:var(--activity-soft);border-color:var(--activity-border);color:var(--activity-ink)}
html .activity-map .map-checkin:hover:not(:disabled),html .activity-map .map-claim:hover:not(:disabled){background:#106d40;border-color:#106d40;color:#fff}
.activity-map-body{padding:26px 28px 24px;gap:36px;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr)}
.map-calendar{min-width:0;max-width:590px;width:100%}.calendar-heading{margin-bottom:22px;gap:16px}.month-control h3{font-size:16px;font-weight:650;min-width:120px}.month-count{font-size:12px;color:var(--map-muted)}
html .activity-map .month-control{gap:4px}html .activity-map .month-control .icon-button{width:32px;height:32px;border:1px solid transparent;border-radius:7px}html .activity-map .month-control .icon-button:hover:not(:disabled){background:var(--activity-soft);border-color:var(--activity-border);color:var(--activity-ink)}
html .activity-map .calendar{gap:8px;grid-template-columns:repeat(7,minmax(0,1fr))}html .activity-map .weekday{font-size:12px;padding-bottom:6px;color:var(--map-muted)}
html .activity-map .calendar-day{min-height:44px;height:44px;max-height:none;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums;outline:none;transition:background-color .16s,border-color .16s,color .16s}
html .activity-map .calendar-day.inactive{background:transparent;color:var(--ink)}html .activity-map .calendar-day.active{background:var(--activity-soft);border-color:transparent;color:var(--activity-ink)}html .activity-map .calendar-day.active svg{width:10px;height:10px;right:6px;bottom:5px;color:var(--activity-ink)}
html .activity-map .calendar-day.today,html .activity-map .calendar-day.today:not(.active){background:var(--activity-strong);border-color:var(--activity-strong);color:#fff;outline:none}html .activity-map .calendar-day.today svg{color:#fff}
html .activity-map .calendar-day.future{background:transparent;color:var(--map-muted);border-color:transparent;opacity:.48;cursor:default}
html .activity-map .calendar-day:hover:not(:disabled):not(.today){background:var(--activity-soft);border-color:var(--activity-border)}html .activity-map .calendar-day.selected{outline:1px solid var(--activity-ink);outline-offset:2px}html .activity-map .calendar-day:focus-visible{outline:2px solid var(--activity-ink);outline-offset:2px}
.calendar-meta{border-top:1px solid var(--map-line);margin-top:20px;padding-top:14px;gap:12px;min-height:40px;align-items:center}.calendar-meta p{font-size:12px;color:var(--map-muted);line-height:1.75}html .activity-map .map-legend{color:var(--map-muted);font-size:11px;gap:5px}html .activity-map .legend-square{background:var(--map-empty);border-color:var(--map-line);width:9px;height:9px;border-radius:3px}html .activity-map .legend-square.active{background:var(--activity);border-color:var(--activity);margin-left:5px}
.map-rewards{padding-left:28px;border-color:var(--map-line);max-width:420px}.map-rewards-head{margin-bottom:8px;min-height:32px}.map-rewards-head h3{font-size:15px}.map-rewards-head>span{font-size:12px;color:var(--map-muted)}.map-milestone{padding:16px 0;border-color:var(--map-line)}.map-milestone:last-of-type{border-bottom:0;padding-bottom:8px}.milestone-title h4{font-size:14px;font-weight:600}.milestone-title>span{font-size:12px;color:var(--map-muted)}.milestone-track{height:3px;background:var(--map-empty);margin:10px 0 9px}.milestone-track>span{background:var(--activity)}.map-milestone.ready .milestone-track>span{background:var(--activity-strong)}.milestone-bottom{min-height:26px}.milestone-bottom p{font-size:12px;gap:4px;color:var(--map-muted)}.milestone-bottom p svg{width:12px;color:var(--activity-ink)}.milestone-state{font-size:12px;color:var(--activity-ink)}.milestone-state.muted{color:var(--map-muted)}html .activity-map .map-claim{min-height:30px;font-size:12px;min-width:76px}.map-rewards-note{font-size:12px;color:var(--map-muted);background:var(--map-surface);border-radius:7px;padding:9px 10px;margin:12px 0 0;line-height:1.6;align-items:flex-start}.map-rewards-note svg{margin-top:2px;flex:none}
.activity-history{padding:22px 28px 24px;grid-template-columns:minmax(200px,.65fr) minmax(0,1fr);gap:28px;border-color:var(--map-line);background:var(--map-surface)}.history-copy h3{font-size:16px;margin-bottom:7px}.history-copy p{font-size:12px;color:var(--map-muted)}.history-copy .history-dates{font-size:12px;margin-top:10px}.history-chart{--heat-size:18px;width:max-content;max-width:100%}.heat-months{grid-template-columns:repeat(16,var(--heat-size));gap:4px;color:var(--map-muted);font-size:11px;margin-left:22px}.history-grid{grid-template-columns:16px minmax(0,1fr);gap:6px}html .activity-map .heatmap{grid-template-columns:repeat(16,var(--heat-size));grid-template-rows:repeat(7,var(--heat-size));gap:4px;max-width:100%;width:auto}html .activity-map .heatmap button,html .activity-map .heat-future{width:var(--heat-size);height:var(--heat-size);border:1px solid transparent;border-radius:3px;background:var(--map-empty)}html .activity-map .heatmap button[data-strength="1"]{background:var(--activity);border-color:transparent}html .activity-map .heatmap button:hover{outline:1px solid var(--activity-ink);outline-offset:1px}.heat-weekdays{height:auto;grid-template-rows:repeat(7,var(--heat-size));gap:4px;color:var(--map-muted)}.history-caption{font-size:11px;color:var(--map-muted);margin-top:10px;gap:7px 16px;max-width:370px}.history-legend i{background:var(--activity)}
@media(max-width:1000px){.activity-map-body{padding:24px;grid-template-columns:minmax(0,1.2fr) minmax(250px,1fr);gap:28px}.map-rewards{padding-left:24px}.activity-history{padding:22px 24px;grid-template-columns:1fr 1.4fr;gap:24px}.history-chart{--heat-size:16px}.calendar-meta{align-items:flex-start;flex-direction:column}.calendar-heading{gap:8px}.month-count{display:none}.milestone-bottom{flex-direction:row;align-items:center}}
@media(max-width:760px){.activity-map-body{grid-template-columns:1fr;gap:22px}.map-calendar{max-width:none}.map-rewards{border-left:0;border-top:1px solid var(--map-line);padding:22px 0 0;max-width:none}.month-count{display:inline}.calendar-meta{flex-direction:row;align-items:center}.activity-history{grid-template-columns:1fr;gap:18px}.history-chart{--heat-size:18px}.map-rewards-note{margin-top:10px}}
@media(max-width:520px){.activity-map-header{padding:18px 16px;gap:10px}.activity-map-header h2{font-size:17px}.activity-map-header h2 strong{font-size:20px}.activity-map-header p{font-size:12px}.activity-map-body{padding:20px 16px}.calendar-heading{margin-bottom:18px}.month-control h3{font-size:15px;min-width:106px}html .activity-map .calendar{gap:5px}html .activity-map .calendar-day{min-height:38px;height:38px;font-size:13px;border-radius:8px}html .activity-map .calendar-day.active svg{right:3px;bottom:4px;width:8px;height:8px}.calendar-meta{flex-wrap:wrap;align-items:flex-start;gap:7px;margin-top:16px;padding-top:12px}.calendar-meta p{font-size:11px}.activity-history{padding:20px 16px}.history-chart{--heat-size:clamp(10px,calc((100vw - 166px) / 16),18px)}.history-caption{font-size:11px}.heat-months{font-size:10px}.map-rewards-head h3{font-size:15px}html .activity-map .map-checkin{font-size:12px;min-width:92px;padding:6px 10px}}
html[data-theme="dark"] .activity-map .map-checkin,html[data-theme="dark"] .activity-map .map-claim{background:var(--activity-strong);border-color:var(--activity-strong)}
html[data-theme="dark"] .activity-map .map-checkin:disabled{background:var(--activity-soft);border-color:var(--activity-border);color:var(--activity-ink)}
@media(prefers-reduced-motion:reduce){html .activity-map .calendar-day{transition:none}}

/* V5 collection / travel overlay. Only the two library views opt in.
   Keep page context visible; the library header stays put while its body scrolls. */
#dialog.library-dialog {
  width: min(760px, calc(100vw - 48px));
  height: auto;
  max-height: min(720px, 82dvh);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}
#dialog.library-dialog[open] { display: flex; flex-direction: column; }
#dialog.library-dialog #dialogContent {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
#dialog.library-dialog .dialog-head:has(.dialog-tabs) {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 14px 20px;
  gap: 16px;
}
#dialog.library-dialog .dialog-tabs {
  grid-column: 1;
  justify-self: start;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
}
#dialog.library-dialog .dialog-tabs button {
  min-width: 102px;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
  line-height: 1.5;
}
#dialog.library-dialog .dialog-head:has(.dialog-tabs) .dialog-tools {
  grid-column: 2;
  justify-self: end;
  gap: 12px;
}
#dialog.library-dialog .dialog-tools label { min-height: 36px; gap: 8px; font-size: 14px; }
#dialog.library-dialog .dialog-tools .icon-button { width: 36px; height: 36px; }
#dialog.library-dialog .dialog-tools .icon-button .icon { width: 18px; height: 18px; }
#dialog.library-dialog .dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #505050 transparent;
  scrollbar-gutter: stable;
  scroll-padding-block: 20px;
}
#dialog.library-dialog .dialog-head:has(.dialog-tabs) + .dialog-body > .dialog-description {
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}
#dialog.library-dialog .filter-row { gap: 6px; margin-bottom: 20px; }
#dialog.library-dialog .filter-row button { min-height: 36px; padding: 6px 12px; font-size: 14px; }
#dialog.library-dialog .filter-row .muted { font-size: 14px; }
#dialog.library-dialog .pet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
#dialog.library-dialog .pet-tile { min-width: 0; text-align: center; }
#dialog.library-dialog .pet-tile .pet-picture {
  width: 100%;
  max-width: 156px;
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 12px;
}
#dialog.library-dialog .pet-tile h3 { margin: 10px 0 3px; font-size: 15px; line-height: 1.5; }
#dialog.library-dialog .pet-tile p { max-width: 164px; margin-inline: auto; font-size: 14px; line-height: 1.55; }
#dialog.library-dialog .pet-marker { top: 8px; right: 8px; width: 24px; height: 24px; }
#dialog.library-dialog .gallery-tip { margin-top: 22px; padding-top: 16px; font-size: 14px; line-height: 1.65; }
#dialog.library-dialog .gallery-tip .icon { margin-top: 2px; }

/* A letter-first reading measure, with a small postcard alongside it. */
#dialog.library-dialog .section-heading { align-items: center; gap: 16px; margin-bottom: 18px; }
#dialog.library-dialog .section-heading h3 { font-size: 18px; line-height: 1.5; }
#dialog.library-dialog .section-heading p { margin-top: 4px; font-size: 14px; line-height: 1.6; }
#dialog.library-dialog .button.small { min-height: 36px; padding: 7px 12px; font-size: 14px; line-height: 1.5; }
#dialog.library-dialog .trip-now { padding: 16px 18px; margin-bottom: 16px; gap: 16px; border-radius: 12px; }
#dialog.library-dialog .trip-now h3 { font-size: 15px; }
#dialog.library-dialog .trip-now p { margin-top: 4px; font-size: 14px; }
#dialog.library-dialog .travel-record { padding: 20px; margin-bottom: 16px; border-radius: 12px; }
#dialog.library-dialog .travel-record:last-child { margin-bottom: 0; }
#dialog.library-dialog .record-head { align-items: center; gap: 16px; }
#dialog.library-dialog .record-head h3 { font-size: 18px; line-height: 1.5; }
#dialog.library-dialog .record-head time { margin-top: 3px; font-size: 14px; }
#dialog.library-dialog .record-head .button { min-height: 36px; }
#dialog.library-dialog .record-content { grid-template-columns: minmax(0, 1fr) 204px; gap: 24px; margin-top: 20px; }
#dialog.library-dialog .record-letter { min-width: 0; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
#dialog.library-dialog .record-letter strong { font-weight: 600; }
#dialog.library-dialog .record-letter p { margin: 12px 0; }
#dialog.library-dialog .record-letter small { display: block; font-size: 14px; line-height: 1.65; }
#dialog.library-dialog .record-photo { width: 204px; aspect-ratio: 1; align-self: start; border-radius: 10px; }
#dialog.library-dialog .record-photo .photo-label { bottom: 10px; left: 10px; min-height: 32px; padding: 5px 9px; font-size: 14px; }
#dialog.library-dialog .empty { padding: 40px 16px; }
html[data-theme="light"] #dialog.library-dialog .dialog-body { scrollbar-color: #c5c5c5 transparent; }
html[data-theme="light"] #dialog.library-dialog .travel-record { background: #fafafa; border-color: #e6e6e6; }
html[data-theme="light"] #dialog.library-dialog .record-letter { color: #555b57; }
html[data-theme="light"] #dialog.library-dialog .record-letter strong { color: #252a27; }
html[data-theme="dark"] #dialog.library-dialog .travel-record { background: #202020; border-color: #353535; }
html[data-theme="dark"] #dialog.library-dialog .record-letter { color: #bcbfbd; }

@media (max-width: 700px) {
  #dialog.library-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  #dialog.library-dialog .dialog-head:has(.dialog-tabs) { min-height: 68px; padding: 12px 16px; gap: 8px; }
  #dialog.library-dialog .dialog-tabs button { min-width: 92px; padding-inline: 10px; }
  #dialog.library-dialog .dialog-head:has(.dialog-tabs) .dialog-tools { gap: 4px; }
  #dialog.library-dialog .dialog-tools label { font-size: 0; gap: 0; }
  #dialog.library-dialog .dialog-tools .toggle { width: 32px; height: 20px; margin: 0; }
  #dialog.library-dialog .dialog-tools .toggle:checked::after { transform: translateX(12px); }
  #dialog.library-dialog .dialog-body { padding: 18px 16px; scrollbar-gutter: auto; }
  #dialog.library-dialog .filter-row { margin-bottom: 18px; }
  #dialog.library-dialog .filter-row button { padding-inline: 10px; }
  #dialog.library-dialog .filter-row .muted { flex-basis: 100%; margin: 6px 0 0; }
  #dialog.library-dialog .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  #dialog.library-dialog .pet-tile .pet-picture { max-width: 180px; }
  #dialog.library-dialog .pet-tile p { max-width: 180px; }
  #dialog.library-dialog .section-heading { align-items: flex-start; gap: 12px; }
  #dialog.library-dialog .section-heading h3 { font-size: 17px; }
  #dialog.library-dialog .section-heading > .button { padding-inline: 10px; }
  #dialog.library-dialog .travel-record { padding: 18px; }
  #dialog.library-dialog .trip-now { padding: 16px; }
  #dialog.library-dialog .trip-now .button { margin-top: 12px; }
}
@media (max-width: 600px) {
  #dialog.library-dialog .record-content { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
  #dialog.library-dialog .record-photo { width: 100%; aspect-ratio: 1.5; }
  #dialog.library-dialog .record-head { align-items: flex-start; gap: 10px; }
  #dialog.library-dialog .record-head h3 { font-size: 17px; }
  #dialog.library-dialog .record-head .button { padding-inline: 10px; white-space: nowrap; }
}
@media (max-height: 600px) and (min-width: 701px) {
  #dialog.library-dialog { max-height: calc(100dvh - 32px); }
}

/* V6: quiet geometric stage, no manual gesture toolbar. */
html .pet-stage .companion-visual{align-self:center}
html .pet-art.pet-portrait{position:relative;background-image:none}
html[data-theme="light"] .pet-art.pet-portrait{mix-blend-mode:multiply}
html[data-theme="dark"] .pet-art.pet-portrait{mix-blend-mode:lighten}
html[data-theme="light"] #dialog .pet-art.pet-portrait{background-image:none;mix-blend-mode:multiply}
html[data-theme="dark"] #dialog .pet-art.pet-portrait{background-image:none;mix-blend-mode:lighten}
html .pet-art.pet-portrait:before{content:"";position:absolute;inset:0;background-image:var(--portrait-asset);background-repeat:no-repeat;background-size:200% 100%;background-position:100% center;transform:translate(var(--portrait-dx-dark,0%),var(--portrait-dy-dark,0%)) scale(var(--portrait-scale-dark,1));transform-origin:center}
html[data-theme="light"] .pet-art.pet-portrait:before{background-position:0% center;transform:translate(var(--portrait-dx-light,0%),var(--portrait-dy-light,0%)) scale(var(--portrait-scale-light,1))}
html .pet-art.pet-portrait.pet-alpha:before{background-size:contain;background-position:center}
.companion-badge{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:3px 8px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--surface);font-size:12px}
.companion-badge .icon{width:14px;height:14px;color:var(--accent)}
html .pet-stage .stage-shortcuts{gap:22px;max-width:560px;flex-wrap:wrap}
.milestone-pet-label{color:var(--activity-ink);font-size:12px}
@media(max-width:520px){html .pet-stage .companion-visual{display:block;width:100%}html .pet-stage .stage-character{margin-inline:auto}html .pet-stage .companion-title{flex-wrap:wrap}html .pet-stage .stage-shortcuts{gap:14px}html .pet-stage .stage-shortcuts button{font-size:12px}}

#dialog.milestone-view{width:min(720px,calc(100vw - 32px));max-height:min(860px,88dvh)}.milestone-view .dialog-body{padding:24px 28px}.milestone-view .dialog-actions{position:sticky;bottom:0;background:var(--surface);padding:18px 28px;border-top:1px solid var(--line)}
.milestone-summary{display:flex;gap:18px;align-items:center}.milestone-summary h3{font-size:23px;line-height:1.45;margin:5px 0}.milestone-summary p{font-size:14px;color:var(--muted)}.milestone-eyebrow{font-size:12px;color:var(--muted);line-height:1.7}.milestone-medal{display:inline-flex;width:60px;height:60px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--hover);color:var(--accent);flex:none}.milestone-medal .icon{width:27px;height:27px}.milestone-detail-progress{display:flex;gap:18px;align-items:center;margin:22px 0;font-size:14px}.milestone-detail-progress .milestone-track{flex:1;margin:0;height:5px}.milestone-detail .milestone-track>span{background:var(--accent)}
.milestone-awards{margin:22px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.milestone-numeric{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:18px 22px;border-bottom:1px solid var(--line)}.milestone-numeric>div{display:flex;gap:11px;align-items:center}.milestone-numeric .icon{color:var(--accent);width:22px;height:22px}.milestone-numeric strong{font-size:16px}.milestone-numeric small{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.65}.milestone-collectible{display:grid;grid-template-columns:94px minmax(0,1fr);gap:20px;align-items:center;padding:18px 22px;background:var(--hover)}.milestone-collectible>.pet-art{width:94px;height:94px;animation:none}.milestone-collectible strong{display:block;font-size:15px;margin-top:4px}.milestone-collectible p{font-size:13px;line-height:1.7;color:var(--muted);margin:7px 0}.milestone-collectible small{font-size:12px;color:var(--muted);line-height:1.65;display:block}
.milestone-how{padding:0 2px}.milestone-how h4{font-size:15px;margin:0 0 12px}.milestone-how p{display:flex;align-items:center;gap:8px;font-size:14px;margin:10px 0}.milestone-how .icon{width:15px;color:var(--accent)}.milestone-how small,.milestone-policy{color:var(--muted);font-size:12px;line-height:1.85}.milestone-how small{display:block;margin-top:14px}.milestone-policy{padding-top:18px;margin:20px 0 0;border-top:1px solid var(--line)}
.badge-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.badge-item{text-align:center;border:1px solid var(--line);border-radius:12px;padding:22px 10px;display:flex;align-items:center;flex-direction:column}.badge-item .milestone-medal{color:var(--muted);opacity:.6}.badge-item.owned .milestone-medal{color:var(--accent);opacity:1}.badge-item h3{font-size:16px;margin:12px 0 6px}.badge-item p{font-size:13px;color:var(--muted);margin:0 0 5px}.badge-item small{font-size:12px;color:var(--muted)}.badge-item .button{margin-top:18px;min-height:36px;font-size:13px}.badge-equipped{color:var(--accent)}
.milestone-pending{margin:20px 0;padding:16px 18px;background:var(--hover);border:1px solid var(--line);border-radius:10px}.milestone-pending h3{display:flex;align-items:center;gap:8px;font-size:16px;margin:0 0 7px}.milestone-pending h3 .icon{width:18px;color:var(--accent)}.milestone-pending>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px;font-size:14px}.milestone-pending small{font-size:12px;color:var(--muted);display:block;margin-top:3px}.milestone-uses h3{font-size:15px;margin:20px 0 8px}.milestone-uses p{font-size:13px;line-height:1.8;color:var(--muted)}.milestone-history{margin:20px 0 0;border-top:1px solid var(--line);padding-top:18px;font-size:14px}.milestone-history summary{cursor:pointer;min-height:32px}.milestone-history ul{list-style:none;margin:10px 0 0;padding:0;max-height:200px;overflow:auto}.milestone-history li{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);padding:8px 0}
.map-milestone-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.map-milestone-heading button{border:0;background:transparent;padding:4px 0;color:var(--activity-ink);font-size:12px;display:inline-flex;gap:3px;align-items:center}.map-milestone-heading button .icon{width:12px;height:12px}.map-milestone .milestone-exclusive{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--activity-ink);margin:8px 0 0}.map-milestone .milestone-exclusive .icon{width:14px;height:14px}.map-milestone .milestone-state .icon{width:13px;height:13px}.map-milestone .milestone-bottom{margin-top:9px}.map-pending-rewards{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:11px 12px;border:1px solid var(--activity-border);border-radius:8px;background:var(--activity-soft);font-size:12px;color:var(--activity-ink)}.map-pending-rewards button{font-size:12px;border:0;background:transparent;color:inherit;display:flex;align-items:center;gap:4px;white-space:nowrap}.map-pending-rewards .icon{width:12px;height:12px}
@media(max-width:600px){.milestone-view .dialog-body{padding:20px 18px}.milestone-view .dialog-actions{padding:14px 18px;flex-wrap:wrap}.milestone-summary{gap:12px}.milestone-summary h3{font-size:20px}.milestone-medal{width:48px;height:48px}.milestone-numeric{gap:12px;padding:16px}.milestone-numeric strong{font-size:14px}.milestone-numeric .icon{width:18px}.milestone-numeric>div{gap:6px}.milestone-collectible{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:16px}.milestone-collectible>.pet-art{width:72px;height:72px}.badge-shelf{grid-template-columns:1fr;gap:10px}.badge-item{display:grid;grid-template-columns:44px minmax(0,1fr) 88px;gap:4px 12px;text-align:left;padding:16px 12px;align-items:center}.badge-item .milestone-medal{grid-column:1;grid-row:1/4;width:44px;height:44px}.badge-item h3{font-size:14px;grid-column:2;grid-row:1;margin:0}.badge-item p{grid-column:2;grid-row:2;margin:0}.badge-item small{grid-column:2;grid-row:3}.badge-item p,.badge-item small{font-size:11px}.badge-item .button{grid-column:3;grid-row:1/4;font-size:12px;padding:7px 4px;min-width:0;max-width:100%;width:100%;margin:0}.milestone-pending{padding:14px}.milestone-pending>div{font-size:13px}}

/* Achievement medals are interface vectors, not replacement character artwork. */
.badge-tier-7{--badge-ink:#28725b;--badge-fill:#edf6f0;--badge-edge:#98b9a8}
.badge-tier-14{--badge-ink:#486783;--badge-fill:#eff3f8;--badge-edge:#a5b5c5}
.badge-tier-28{--badge-ink:#947038;--badge-fill:#fff6df;--badge-edge:#c9ac76}
.milestone-medal{background:var(--badge-fill);color:var(--badge-ink);border-color:var(--badge-edge);border-radius:20px;width:68px;height:72px}
.milestone-medal .icon{width:43px;height:43px;stroke-width:1.35}
.badge-item .milestone-medal{color:var(--badge-ink);opacity:.5}.badge-item.owned .milestone-medal{color:var(--badge-ink)}
.badge-item.is-equipped{border-color:var(--accent);background:var(--hover)}
.badge-benefit{font-size:12px;color:var(--muted);margin-top:12px;line-height:1.6}.badge-item .button{margin-top:auto}.badge-benefit+.button{margin-top:16px}
.pet-worn-badge{position:absolute;left:calc(47% - 16px);top:56%;width:32px;height:36px;display:grid;place-items:center;color:var(--badge-ink);background:var(--badge-fill);border:1px solid var(--badge-edge);border-radius:10px 10px 13px 13px;transform:rotate(7deg);z-index:5;pointer-events:none}
.pet-worn-badge .icon{width:27px;height:27px;stroke-width:1.5}
.equipped-achievement{display:flex;align-items:center;gap:9px;margin-top:14px;padding:0;border:0;background:none;color:var(--text);text-align:left;font-size:13px}
.equipped-achievement>.icon{width:22px;height:22px;color:var(--accent)}.equipped-achievement small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.equipped-achievement>.icon:last-child{width:14px}
.achievement-preview{display:flex;align-items:center;gap:24px;padding:12px 20px;background:var(--hover);border:1px solid var(--line);border-radius:14px;margin:18px 0 24px}
.achievement-preview-pet{position:relative;width:132px;height:132px;flex:none}.achievement-preview-pet>.pet-art{width:132px;height:132px;animation:none}.achievement-preview-pet .pet-worn-badge{left:calc(50% - 12px);width:24px;height:28px}.achievement-preview-pet .pet-worn-badge .icon{width:21px;height:21px}
.achievement-preview h3{font-size:20px;margin:6px 0}.achievement-preview p{font-size:14px;line-height:1.6;margin:6px 0;color:var(--muted)}.achievement-preview small{color:var(--muted);font-size:12px}
.badge-just-equipped .pet-worn-badge{animation:badge-arrival .8s cubic-bezier(.16,1,.3,1) both}
@keyframes badge-arrival{0%{transform:translateY(-16px) rotate(-12deg) scale(.6);opacity:0}70%{transform:rotate(10deg) scale(1.1);opacity:1}100%{transform:rotate(7deg) scale(1);opacity:1}}
html .activity-history{display:block;padding:22px 24px}.history-records{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.history-date{border:1px solid var(--activity-border);background:var(--activity-soft);color:var(--activity-ink);border-radius:8px;padding:9px 13px;display:flex;gap:7px;align-items:center;font-size:13px}.history-date .icon{width:14px;height:14px}.history-date[aria-pressed="true"]{outline:2px solid var(--activity-ink);outline-offset:2px}
.history-records-empty{font-size:14px;color:var(--muted);padding:8px 0}.history-copy p{margin:6px 0;font-size:13px}
html .calendar-day{min-height:48px;position:relative}html .calendar .weekday{padding:10px 0;font-size:13px}html .calendar-heading{margin-bottom:12px}
@media(max-width:600px){.achievement-preview{gap:12px;padding:10px}.achievement-preview-pet{width:100px;height:100px}.achievement-preview-pet>.pet-art{width:100px;height:100px}.achievement-preview h3{font-size:17px}.achievement-preview p{font-size:12px}.badge-benefit{grid-column:2;grid-row:4;font-size:11px;margin:0}.badge-item .button{grid-row:1/5;margin:0}.milestone-medal .icon{width:32px;height:32px}.equipped-achievement{margin-top:10px}html .calendar-day{min-height:38px}.pet-worn-badge{width:28px;height:31px}.pet-worn-badge .icon{width:24px;height:24px}}
html[data-theme="dark"] #dialog .achievement-preview-pet>.pet-art{mix-blend-mode:lighten}
html[data-theme="light"] #dialog .achievement-preview-pet>.pet-art{mix-blend-mode:multiply}
@media(prefers-reduced-motion:reduce){.badge-just-equipped .pet-worn-badge{animation:none}}

/* A compact calendar and a clearly separate monthly reward column. */
html .activity-map-body{grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);gap:32px;padding:24px 28px;align-items:start}
html .map-calendar{max-width:none;padding:0 4px 0 0}html .calendar-heading{min-height:40px;margin-bottom:12px}html .month-count{display:inline;font-size:13px}html .activity-map .calendar{gap:5px}html .activity-map .calendar-day{height:46px;min-height:46px;border-radius:8px}
html .calendar-meta{margin-top:16px;padding-top:14px;align-items:center;flex-direction:row;flex-wrap:wrap;font-size:12px}html .calendar-meta p{font-size:12px;line-height:1.6;margin:0}
html .map-rewards{max-width:none;padding-left:28px}html .map-rewards-head{min-height:40px;margin:0 0 4px}html .map-rewards-head h3{font-size:17px}
html .map-milestone{padding:13px 0}html .map-milestone:last-of-type{padding-bottom:10px}html .map-milestone-heading{gap:12px}html .milestone-title h4{font-size:15px;line-height:1.5}html .map-milestone .milestone-exclusive{margin:7px 0;font-size:12px}html .milestone-track{margin:8px 0;height:4px}html .milestone-bottom{min-height:24px;margin-top:8px}html .milestone-bottom p{font-size:13px}html .map-rewards-note{margin:10px 0 0;padding:8px 10px}
.intimacy-status{display:flex;align-items:center;gap:12px;margin-top:16px;padding:0;border:0;background:transparent;text-align:left;color:var(--ink)}.intimacy-status strong{font-weight:600;font-size:14px}.intimacy-status small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.intimacy-status>.icon{width:14px;color:var(--muted)}
.intimacy-hearts{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--muted)}.intimacy-hearts>span{display:inline-flex;opacity:.35}.intimacy-hearts .icon{width:19px;height:19px;stroke-width:1.5}.intimacy-hearts>span.lit{color:var(--accent);opacity:1}.intimacy-hearts>span.lit .icon{fill:var(--accent);fill-opacity:.18}
.bond-summary{display:flex;gap:20px;align-items:center;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--hover);margin-bottom:18px}.bond-summary h3{font-size:23px;margin:5px 0 7px}.bond-summary p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}.bond-summary .intimacy-hearts .icon{width:25px;height:25px}
.bond-stages{display:flex;flex-direction:column;margin:22px 0;border-top:1px solid var(--line)}.bond-step{display:flex;gap:14px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.bond-step-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--hover);color:var(--muted);flex:none}.bond-step.reached .bond-step-icon{color:var(--accent)}.bond-step.reached .bond-step-icon .icon{fill:var(--accent);fill-opacity:.15}.bond-step>div{flex:1}.bond-step h3{font-size:16px;margin:0 0 5px}.bond-step h3 small{font-size:11px;color:var(--accent);font-weight:400;margin-left:8px}.bond-step p{font-size:13px;color:var(--muted);margin:0 0 4px}.bond-step small{font-size:12px;color:var(--muted)}.bond-step>.button{font-size:12px;min-height:34px;padding:7px 12px}
html .map-milestone-heading button{min-height:28px;height:28px;padding:2px 0;line-height:1.4}html .map-milestone{padding:10px 0}html .map-milestone .milestone-exclusive{margin:5px 0}html .map-milestone .milestone-track{margin:6px 0}html .map-milestone .milestone-bottom{margin-top:6px}
@media(max-width:900px){html .activity-map-body{grid-template-columns:1fr;gap:20px;padding:20px}html .map-rewards{border-left:0;border-top:1px solid var(--line);padding:18px 0 0}html .map-calendar{padding:0}html .map-rewards-head{margin-bottom:4px}}
@media(max-width:520px){html .activity-map-body{padding:18px 16px}html .activity-map .calendar-day{height:38px;min-height:38px}.intimacy-status{gap:8px}.intimacy-status strong{font-size:13px}.intimacy-hearts .icon{width:16px}.bond-summary{padding:14px;gap:12px}.bond-summary .intimacy-hearts{gap:2px}.bond-summary .intimacy-hearts .icon{width:18px}.bond-summary h3{font-size:20px}.bond-step{gap:9px}.bond-step-icon{width:32px;height:32px}.bond-step h3{font-size:14px}.bond-step>.button{padding:6px 8px}.bond-step h3 small{display:block;margin:4px 0 0}}

html .pet-stage .role-motion-sprite{display:block;width:var(--role-width,196px);height:196px;margin-inline:auto;position:relative;overflow:hidden;isolation:isolate;animation:none!important;background:none!important;mix-blend-mode:multiply}
html .role-motion-sprite:before{content:"";display:block;position:absolute;inset:0;background-image:var(--role-action-asset);background-size:var(--role-columns,300%) 400%;background-repeat:no-repeat;background-position:var(--role-pose-x,0%) var(--role-pose-light,0%);transform:translate(var(--role-dx-light,0%),var(--role-dy-light,0%)) scale(var(--role-scale-light,1));transform-origin:50% 50%}
html[data-theme="dark"] .pet-stage .role-motion-sprite{mix-blend-mode:lighten}
html[data-theme="dark"] .role-motion-sprite:before{background-position:var(--role-pose-x,0%) var(--role-pose-dark,66.666667%);transform:translate(var(--role-dx-dark,0%),var(--role-dy-dark,0%)) scale(var(--role-scale-dark,1))}
html .pet-stage .pet-actor.has-role-motion{overflow:visible}
html body .pet-art.role-thumbnail{background:none!important;position:relative;overflow:hidden;mix-blend-mode:multiply}
html body .pet-art.role-thumbnail:before{content:"";position:absolute;inset:0;left:calc((100% - var(--thumb-width,100%))/2);width:var(--thumb-width,100%);height:100%;background-image:var(--thumb-asset)!important;background-size:var(--thumb-columns,300%) var(--thumb-height,400%)!important;background-position:0% var(--thumb-top-light,0%)!important;transform:translate(var(--thumb-x-light),var(--thumb-y-light)) scale(var(--thumb-scale-light));transform-origin:center}
html[data-theme="dark"] body .pet-art.role-thumbnail{mix-blend-mode:lighten}
html[data-theme="dark"] body .pet-art.role-thumbnail:before{background-position:0% var(--thumb-top-dark,66.666667%)!important;transform:translate(var(--thumb-x-dark),var(--thumb-y-dark)) scale(var(--thumb-scale-dark))}
@media(max-width:760px){html .pet-stage .role-motion-sprite{width:calc(var(--role-width,196px) * .867347);height:170px}}

/* Complete pose swaps without fades. The outer role remains a stable ground anchor. */
html body .pose-compositor{position:relative;isolation:isolate;overflow:hidden}
html body .pose-compositor:before{display:none!important}
.pose-layer{position:absolute;top:0;bottom:0;left:calc((100% - var(--pose-width,100%))/2);width:var(--pose-width,100%);opacity:0;pointer-events:none}
.pose-layer:before{content:"";position:absolute;inset:0;background-image:var(--pose-asset);background-size:var(--pose-columns,300%) var(--pose-height-light,var(--pose-height,400%));background-repeat:no-repeat;background-position:var(--pose-x) var(--pose-light);transform:translate(var(--pose-dx-light),var(--pose-dy-light)) scale(var(--pose-scale-light));transform-origin:center}
html[data-theme="dark"] .pose-layer:before{background-size:var(--pose-columns,300%) var(--pose-height-dark,var(--pose-height,400%));background-position:var(--pose-x) var(--pose-dark);transform:translate(var(--pose-dx-dark),var(--pose-dy-dark)) scale(var(--pose-scale-dark))}
html .pet-stage .role-motion-sprite.pose-compositor{width:196px}
#dialog.role-detail-dialog{width:min(860px,calc(100vw - 48px));max-height:86dvh}
#dialog.role-detail-dialog .pet-detail{grid-template-columns:300px minmax(0,1fr);gap:32px}
.detail-motion-scene{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--surface,#f7f7f7);border:1px solid var(--line);border-radius:16px;min-height:338px;overflow:hidden}
.detail-motion{width:276px;height:276px;mix-blend-mode:multiply;transform-origin:50% 90%}
.detail-motion-scene p{font-size:13px!important;margin:0 0 20px!important;color:var(--muted);text-align:center}
html[data-theme="dark"] .detail-motion{mix-blend-mode:lighten}
html .map-heading-line{display:flex;align-items:center;gap:16px}
html .map-heading-line h2{font-size:21px!important;margin:0}
.map-heading-line>span{font-size:13px;color:var(--muted)}
html .activity-map-header .map-month-summary{font-size:14px;margin-top:10px}
html .activity-map-header .map-month-summary strong{font-size:18px;color:var(--ink)}
.map-header-actions{display:flex;align-items:center;gap:12px}
html .annual-entry{border-radius:24px!important;min-height:36px!important;font-size:13px!important;padding:7px 15px!important;white-space:nowrap}
#dialog.annual-dialog{width:min(940px,calc(100vw - 48px));max-height:calc(100dvh - 48px);border-radius:20px;overflow:auto}
#dialog.annual-dialog .dialog-head{padding:20px 24px;min-height:68px;position:static;background:var(--surface)}
#dialog.annual-dialog .dialog-head h2{font-size:17px}
.annual-title{display:flex;align-items:center;gap:12px}
.annual-title>span{color:var(--muted);font-size:12px}
.annual-body{padding:20px 24px 22px}
.annual-top,.annual-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px}
.annual-stats{display:flex;gap:26px;color:var(--muted);font-size:13px}
.annual-stats b{color:var(--ink);font-size:18px;margin-right:4px}
.annual-stats>span:nth-child(2) b{color:#328063}
.annual-year{display:flex;align-items:center;gap:4px;font-size:13px}
.annual-year .icon-button{width:28px;height:28px}
.annual-scroll{overflow-x:auto;margin:24px -2px 20px;padding:2px}
.annual-months{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:11px;min-width:784px}
.annual-month h3{font-size:12px;font-weight:600;text-align:center;margin:0 0 10px}
.annual-month-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,9px);grid-auto-columns:9px;gap:3px;justify-content:center}
.annual-day,.annual-blank{width:9px;height:9px;padding:0;min-width:0;min-height:0;border:0;border-radius:2px}
.annual-day{background:#eaeded;cursor:pointer;transition:transform .15s,box-shadow .15s}
.annual-day.active{background:#6fa58b}
.annual-day.future{opacity:.42;cursor:default}
.annual-day:hover:not(:disabled),.annual-day:focus-visible{transform:scale(1.35);outline:2px solid #328063;outline-offset:2px;z-index:1}
.annual-day[aria-pressed="true"]{box-shadow:0 0 0 2px var(--ink)}
.annual-bottom p{margin:0;font-size:12px;color:var(--muted)}
.annual-bottom .map-legend{font-size:11px;white-space:nowrap}
.annual-bottom .legend-square.active{background:#6fa58b;border-color:#6fa58b}
.annual-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.6;border-top:1px solid var(--line);padding-top:15px;margin-top:18px}
html[data-theme="dark"] .annual-day{background:#363b39}
html[data-theme="dark"] .annual-day.active{background:#78b092}
@media(max-width:760px){
 #dialog.role-detail-dialog .pet-detail{grid-template-columns:1fr;gap:22px}
 .detail-motion-scene{min-height:290px}.detail-motion{width:236px;height:236px}
 .map-heading-line>span{display:none}.map-header-actions{flex-wrap:wrap;justify-content:flex-end}
 .annual-title{align-items:flex-start;flex-direction:column;gap:3px}
 .annual-stats{gap:14px;flex-wrap:wrap}.annual-stats b{font-size:16px}
 #dialog.annual-dialog{width:calc(100vw - 24px)}.annual-body{padding:16px}
 .annual-bottom{align-items:flex-start}.annual-note{text-align:left}
 html .pet-stage .role-motion-sprite.pose-compositor{width:170px}
}

/* Only brand asset replacement; original layout and theme remain intact. */
.site-header .brand-logo{display:block;width:38px;height:38px;object-fit:contain;border-radius:8px;flex:none;}

/* Compact header polish; keep the original growth content unchanged. */
body.growth-page{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;}
.growth-page>.site-header{flex:none;width:100%;}
.growth-page>.growth-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:inherit;scrollbar-gutter:stable;scroll-padding-top:24px;scroll-behavior:smooth;}
.growth-page.modal-open>.growth-scroll{overflow-y:hidden;}
@media(prefers-reduced-motion:reduce){.growth-page>.growth-scroll{scroll-behavior:auto;}}
.site-header .brand{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.site-header .brand-name{display:block;font-size:16px;font-weight:600;line-height:1.4;white-space:nowrap;letter-spacing:.1px;}
.site-header .site-tools{gap:16px;}
.site-header .theme-toggle{width:34px;height:34px;min-height:34px;padding:0;gap:0;border-color:transparent;border-radius:7px;flex-shrink:0;}
.site-header .site-tools .text-button{min-height:34px;}
@media(max-width:700px){.site-header .brand{gap:7px;}.site-header .brand-logo{width:32px;height:32px;}.site-header .brand-name{font-size:14px;}.site-header .site-tools{gap:8px;}}

.growth-scene-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.record-photo{position:relative;overflow:hidden}.record-photo>.scene-art{width:100%;height:100%;min-height:160px}.scene-art:has(>.growth-scene-image){background-image:none;}

/* Ordinary uploaded pictures are displayed whole, never cropped as sprite sheets. */
html body .growth-static-motion,html body .pet-art.growth-static-art{background:none!important;mix-blend-mode:normal!important;overflow:hidden}
html body .growth-static-motion::before,html body .pet-art.growth-static-art::before{content:none!important}
html body .growth-static-motion>img,html body .growth-static-art>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}

/* 原生 popover 位于 modal dialog 上方，提示不会被遮罩模糊或挡住。 */
#toast{position:fixed;inset:auto auto max(24px,env(safe-area-inset-bottom)) 50%;margin:0;transform:translateX(-50%);width:max-content;max-width:min(580px,calc(100vw - 32px));padding:12px 18px;line-height:1.7;box-shadow:0 5px 24px #0003;overflow-wrap:anywhere;pointer-events:none;z-index:100}

/* Disabled departures retain a hover/focus target; the hint uses the top layer. */
.travel-limit-wrap{display:inline-flex;vertical-align:middle;min-width:0;border-radius:8px;cursor:not-allowed}
.travel-limit-wrap>.button{width:100%;pointer-events:none}
html[data-theme] .travel-limit-wrap>.button:disabled{background:var(--hover);border-color:var(--line);color:var(--muted);opacity:.65;box-shadow:none}
.travel-limit-wrap:focus-visible{outline:2px solid var(--muted);outline-offset:3px}
#travel-limit-tooltip{position:fixed;inset:auto;margin:0;width:max-content;max-width:calc(100vw - 16px);padding:9px 13px;border:0;border-radius:8px;background:#292929;color:#fff;font-size:13px;font-weight:400;line-height:1.5;box-shadow:0 4px 14px #0002;pointer-events:none;z-index:110}
#travel-limit-tooltip[hidden]{display:none}
#travel-limit-tooltip::backdrop{background:transparent;pointer-events:none}
html[data-theme="dark"] #travel-limit-tooltip{background:#3a3a3a}
@media(max-width:520px){html .pet-stage .companion-actions>.travel-limit-wrap{flex:1}}
#toast::backdrop{background:transparent;backdrop-filter:none;pointer-events:none}
#dialog>#toast.toast-in-dialog{position:absolute;bottom:18px;max-width:calc(100% - 32px)}

/* Milestone portraits use the existing themed artwork, including locked rewards. */
html[data-theme] #dialog .bond-portrait {
  display: block;
  position: relative;
  flex: none;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--hover);
  isolation: isolate;
}
html[data-theme] #dialog .bond-current-portrait { width: 108px; height: 108px; }
html[data-theme] #dialog .bond-portrait > .pet-art {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 1;
  filter: none;
  transform: none;
}
html[data-theme] #dialog .bond-summary-copy,
html[data-theme] #dialog .bond-step > div { min-width: 0; }
html[data-theme] #dialog .bond-summary h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
html[data-theme] #dialog .bond-summary h3 .intimacy-hearts .icon { width: 18px; height: 18px; }
html[data-theme] #dialog .bond-step > .button { flex: none; }
@media (max-width: 520px) {
  html[data-theme] #dialog .bond-portrait { width: 56px; height: 56px; border-radius: 10px; }
  html[data-theme] #dialog .bond-current-portrait { width: 72px; height: 72px; }
}
