/* Shared controls and compact work choices. */
#pet-menu{border:1px solid #dbcbb9;background:#fffaf3;border-radius:22px;padding:16px;box-shadow:0 12px 44px #795b3820;scroll-padding-top:208px}
.menu-chrome{position:sticky;top:-16px;z-index:2;padding-top:3px;background:#fffaf3;box-shadow:0 5px 10px #fffaf3}
.menu-header{gap:8px}.menu-header>canvas{width:48px;height:48px}.menu-header h2{font-size:18px;margin:4px 0}.menu-header small{color:#a58e7a}.menu-header>button{align-self:center;width:32px;height:32px;min-width:32px;min-height:32px;border:0;background:#f3eadf}
.common-controls{display:flex;gap:7px;margin-top:10px}.common-controls button{min-height:38px;border:1px solid #d9caba;border-radius:10px;background:#f9f2e9;font:inherit;font-size:12px}.common-controls [data-visibility]{flex:1}.common-controls #show-more{width:80px;font-size:12px;background:#f9f2e9}
.wallet{margin:9px 0 7px;padding:7px 0;border:0;font-size:12px}.wallet b{font-size:17px}#bag-count{font-size:11px;border:0;padding:7px;background:#f1ece2;border-radius:9px}
.menu-tabs{position:static;gap:5px;margin:0 0 12px;padding-bottom:6px;background:#fffaf3}.menu-tabs button{border:0;border-radius:10px;background:#f2ebe2;font-size:12px;min-height:38px}.menu-tabs button[aria-pressed=true]{color:#456858;background:#dfebdf}
.action-btn,.release-link,.job-choice,.pet-choice,.cosmetic-choice,.dress-preview button{border-color:#ddcbbb;background:#f8eee2}.action-btn.primary,.job-choice[aria-pressed=true],.pet-choice[aria-pressed=true],.cosmetic-choice[aria-pressed=true]{border-color:#a9c1b0;background:#e8f0e5;color:#4f6d5d}
.work-section{margin:0 0 15px}.work-section h3,.work-section>label{font-size:12px;font-weight:500;margin:0 0 7px;display:block;color:#9b826e}.work-section select{width:100%;padding:10px 12px;min-height:42px;border:1px solid #ded0c2;border-radius:11px;background:#fffdf8;color:#725c4b;font:inherit;font-size:12px}
.job-choice{justify-content:center;gap:8px;padding:7px;min-height:46px}.job-choice canvas{width:28px;height:28px}
.growth-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0 2px}.growth-card>div{min-width:0}.growth-card b{display:block;font-size:12px;font-weight:500}.growth-card small{display:block;margin-top:5px;font-size:10px;color:#9d8370;line-height:1.5}.growth-card button{flex-shrink:0;min-width:75px}.mastery-line{margin-bottom:0}
.loot-strip{gap:4px}.loot-strip>span{padding:6px 1px}.loot-strip canvas{width:32px;height:32px}.loot-strip small{font-size:10px}.loot-strip em{display:block;font-size:9px;font-style:normal;color:#b097bf}
.adopt-grid label{border-radius:12px;background:#fcf5e9}.adopt-grid label:has(input:checked){border-color:#a0b79d;background:#edf0e0}.name-form input,#adopt-name{border-radius:10px;background:#fffdf6}.master-badges i{border-radius:6px}
.material-shop{display:flex;gap:6px;margin-bottom:12px}.material-shop button{flex:1;font-size:10px;min-width:0}.setting-row select{border-radius:10px;background:#fffaf1;border-color:#d9c8b6}.news>p{line-height:1.7}
canvas{image-rendering:auto}.speech-bubble[data-kind=bag]{color:#a47450}
#hidden-pet-controls{position:fixed;left:16px;bottom:30px;z-index:5;display:flex;gap:4px;padding:5px;border:1px solid #d5c0ac;border-radius:15px;background:#fffaf1;box-shadow:0 3px 14px #795b3810}#hidden-pet-controls button{border:0;border-radius:10px;background:#e5edde;padding:10px 7px;min-height:38px;font-size:11px}#hidden-pet-controls #hidden-menu{background:#f1e6d8}
body.native #pet-menu{padding:12px}body.native .menu-chrome{top:-12px}body.native #hidden-pet-controls{left:50%;transform:translateX(-50%);bottom:8px;white-space:nowrap}body.menu-open #hidden-pet-controls{display:none}
@media(max-width:340px){#pet-menu{padding:12px}.menu-chrome{top:-12px}.menu-header h2{font-size:16px}.menu-header>canvas{width:44px;height:44px}.growth-card b{font-size:11px}.growth-card button{min-width:68px;padding:8px 5px}.loot-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}

.common-controls #show-more{border-radius:10px}
/* Compact fixed chrome; only the selected page scrolls. */
body.menu-open:before{content:'';position:fixed;inset:0;z-index:8;background:#75614d26}
#pet-menu{display:flex;flex-direction:column;gap:0;width:380px;max-width:calc(100vw - 16px);height:min(650px,calc(100dvh - 24px));max-height:none;bottom:12px;padding:14px;overflow:hidden;scroll-padding-top:0}
.menu-chrome{position:static;flex:none;padding:0;background:#fffaf3;box-shadow:none}
.menu-header{gap:7px;min-height:46px}.menu-header>canvas{width:44px;height:44px}.menu-header h2{font-size:17px;margin:3px 0}.menu-header>button,.menu-header #show-more{width:44px;height:44px;min-width:44px;min-height:44px;align-self:center;border:1px solid #e0d1c1;border-radius:12px;background:#f8f0e5}.menu-header #show-more{font-size:11px}
.wallet{margin:5px 0 7px;padding:0;min-height:42px;gap:5px}.wallet b{font-size:16px}.wallet>span{gap:3px}.wallet>.common-controls{margin:0;display:flex;gap:5px;flex:none}.wallet .common-controls button{padding:7px 9px;min-height:40px;font-size:11px;border:1px solid #e5d8c8}.wallet #bag-count{font-size:11px;min-height:40px;background:#f8f2e9}.wallet [data-visibility]{flex:none}
.menu-tabs{position:static!important;gap:4px;margin:0;padding:0 0 9px;border-bottom:1px solid #eadfd2}.menu-tabs button{min-height:44px;padding:7px 1px;font-size:12px;border-radius:11px}
#menu-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:14px 2px 12px;scroll-padding:10px}
.menu-footer{flex:none;padding-top:8px;border-top:1px solid #eadfd2}.menu-footer #menu-return{width:100%;min-height:44px;font-size:12px;background:#f4ede3;border-color:#e0d1bf}.menu-footer #menu-message{margin:0 0 7px;min-height:0;max-height:57px;overflow:auto;font-size:11px;line-height:1.6}.menu-footer #menu-message:empty{display:none}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}.section-heading h3{margin:0;font-size:13px;color:#745d4c;font-weight:600}.section-heading>span{font-size:10px;color:#998573}.text-button{border:0;background:transparent;color:#55765f;font-size:11px;min-height:36px;padding:5px 3px;text-align:left;border-radius:7px;white-space:normal}
.work-section{margin-bottom:18px}.work-section .job-grid{margin:4px 0}.job-choice{min-height:52px;gap:8px}.job-choice span{font-size:13px}.section-note{font-size:12px;line-height:1.8;margin:4px 0 14px}
.growth-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:76px;border:1px solid #c9d8c8;border-radius:14px;background:#eff4eb;padding:13px;text-align:left;margin:0 0 16px}.growth-entry b{display:block;font-size:13px;font-weight:600}.growth-entry small{display:block;font-size:11px;color:#819076;line-height:1.6;margin-top:5px}.growth-entry>span:last-child{flex-shrink:0;font-size:11px;color:#56745e}
.work-notice{display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #e4c69d;background:#fff2df;border-radius:13px;padding:12px;margin-bottom:15px}.work-notice b{display:block;font-size:12px}.work-notice small{display:block;font-size:11px;line-height:1.6;margin-top:4px}.work-notice button{flex-shrink:0}
.crop-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.crop-choices button{border:1px solid #e4d6c4;border-radius:12px;background:#fffdf7;padding:8px 4px;display:flex;align-items:center;flex-direction:column;min-width:0;min-height:89px}.crop-choices button[aria-pressed=true]{border-color:#a3b99e;background:#eaf1e4}.crop-choices canvas{width:30px;height:30px}.crop-choices b{font-size:12px;font-weight:500;margin-top:3px}.crop-choices small{font-size:10px;margin-top:4px;color:#93816e}.crop-choices button:disabled{opacity:.6;background:#f5f0e8}
.growth-context{margin:0 0 10px}.upgrade-group{margin:13px 0 23px;display:grid;gap:8px}.upgrade-card{display:flex;align-items:center;gap:10px;justify-content:space-between;border:1px solid #e6d9c9;border-radius:14px;background:#fffdf7;padding:12px}.upgrade-card:focus{outline:2px solid #9caf8e;outline-offset:-2px}.upgrade-copy{min-width:0;flex:1}.upgrade-title{display:flex;gap:5px;align-items:baseline;justify-content:space-between}.upgrade-title h3{font-size:13px;line-height:1.5;margin:0;color:#725d4b}.upgrade-title span{font-size:10px;white-space:nowrap;color:#a18c76}.upgrade-copy p{font-size:11px;line-height:1.6;margin:7px 0 3px;color:#897461}.upgrade-copy>small{display:block;font-size:11px;line-height:1.6;color:#5d795d}.upgrade-card .action-btn{flex-shrink:0;min-width:89px;min-height:59px;padding:9px 7px}.upgrade-card .action-btn b{display:block;font-size:12px;font-weight:600}.upgrade-card .action-btn small{display:block;font-size:10px;margin-top:6px;line-height:1.4}.upgrade-card .action-btn:disabled{opacity:1;background:#f3eee6;color:#a28e78;border-color:#e6dbce}
.bag-summary{gap:8px;margin:0 0 7px}.bag-summary b{font-size:13px}.sale-panel{padding:12px;border:1px solid #d6dfcc;border-radius:13px;background:#f1f5ec;margin:0 0 13px}.sale-panel label{display:flex;align-items:center;gap:7px;font-size:12px;min-height:35px;cursor:pointer}.sale-panel input{width:18px;height:18px;accent-color:#729272}.sale-panel button{width:100%;min-height:46px;margin-top:7px}.sale-panel>small{display:block;font-size:10px;color:#8a907c;line-height:1.6;margin-top:8px}.return-growth{margin-bottom:8px}
.collection-grid .album-entry{min-height:78px;padding:9px 7px}.sub-tabs button,.book-jobs button,.material-shop button{min-height:44px}.material-shop button{font-size:11px}.dress-preview button{min-height:40px}.micro{font-size:11px}.loot-strip small{font-size:11px}
body.native.menu-open:before{display:none}body.native #pet-menu{width:360px;height:calc(100dvh - 6px);max-height:none;bottom:3px;padding:12px}body.native .menu-chrome{position:static}
@media(max-width:340px){#pet-menu{padding:10px}.menu-header>canvas{width:36px;height:40px}.menu-header h2{font-size:16px}.menu-header{gap:5px}.wallet b{font-size:14px}.wallet canvas{width:17px;height:17px}.wallet .common-controls button{padding:7px 6px;font-size:10px}.menu-tabs button{font-size:11px}.upgrade-card{padding:10px;gap:8px}.upgrade-card .action-btn{min-width:79px;padding:8px 5px}.upgrade-title{display:block}.upgrade-title span{display:block;margin-top:2px}.upgrade-title h3{font-size:12px}.growth-entry{padding:11px;gap:7px}.growth-entry>span:last-child{font-size:10px}}
@media(max-height:440px){.menu-footer #menu-return{display:none}.menu-footer:has(#menu-message:empty){display:none}.menu-tabs{padding-bottom:6px}#menu-content{padding-top:10px}}

/* Source-specific collection choices. */
.queued-plan{font-size:11px;line-height:1.7;background:#edf2e7;border-radius:9px;padding:9px 11px;color:#526e57}
.source-loot{display:grid;gap:6px}.source-item{display:flex;align-items:center;gap:10px;border:1px solid #e5dacb;border-radius:11px;padding:8px 10px;background:#fffcf6}.source-item canvas{width:38px;height:38px;flex:none}.source-item b{font-size:12px;font-weight:500}.source-item small{display:block;font-size:10px;margin-top:5px;color:#8b7965}.source-item.locked{opacity:.55}.source-item.grade-3{background:#f6f0fa;border-color:#dbcee7}.source-item.grade-4{background:#fff5df;border-color:#e4d2a5}.source-item.grade-3 small{color:#9274a8}.source-item.grade-4 small{color:#a5833f}
.book-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:10px 0}.book-sources button{min-height:44px;border:1px solid #e1d5c4;border-radius:9px;background:#fffaf2;font:inherit;font-size:11px;padding:5px}.book-sources button[aria-pressed=true]{border-color:#a5bca0;background:#eaf1e4;color:#526d54}.collection-progress{font-size:12px;color:#6e8061;margin:13px 0}.material-hint{font-size:11px;line-height:1.7;background:#f4f0e7;border-radius:10px;padding:10px}.order-card span small{display:block;font-size:10px;color:#8e9a7e;margin-top:5px}
