/* Original painted textures, soft directional light and tactile surfaces. */
:root{--bg:#8e9a79;--panel:#f5edd7;--line:#b4a081;--text:#453f32;--muted:#776c58;--accent:#3b6858;--radius:18px;--rail:182px;--inspector:334px}
.painted-icon{display:inline-flex;align-items:center;justify-content:center;position:relative;vertical-align:middle;overflow:hidden;filter:drop-shadow(0 2px 1px #352e1925)}
.painted-glyph{display:block;flex:none;background-repeat:no-repeat}
body{background:#526c59;color:var(--text)}
.game-header,.current-task{background-color:#f0e7d2;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 0%;border-color:#9d8d70;box-shadow:0 3px 10px #30291628}
.game-header{z-index:4}.game-header>.brand{background-color:#284d43;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:0% 0%;border-right:1px solid #1c4035;color:#f2e7cd;text-shadow:0 2px 1px #102d26}
.brand small{color:#c9cfab;letter-spacing:1px}.brandmark{filter:drop-shadow(0 2px 3px #061c2360)}
.current-task .activity strong{color:#3c5948}.current-task .activity p{color:#7a705c}.activity-status{background:#d5e0bf;color:#4f6951;border:1px solid #a3b494;box-shadow:inset 0 1px 0 #fff9df}
.activity-companion{background:#dbd6ba;border:1px solid #b8aa84;box-shadow:inset 0 2px 4px #64562d24,0 1px 0 #fff6e2}
.menu-rail{background-color:#284d43;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:0 0;border-right:3px solid #304c3e;box-shadow:inset -5px 0 10px #17332b45;padding-top:17px;scrollbar-color:#78917a #28483b}
.nav{gap:6px}.nav button{color:#e6e0c9;border-color:#78856a33;border-radius:11px;padding:9px 9px;min-height:45px;font-size:13px;box-shadow:0 1px 0 #112d2640}
.nav button:hover:not(:disabled){background:#3b6250;color:#fff4d4;box-shadow:inset 0 1px 0 #a5b29644}
.nav button.active{color:#315642;background-color:#f1e6c9;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 0;border:1px solid #e4d4a6;box-shadow:0 3px 0 #102e27,0 5px 10px #10251e45,inset 0 1px 0 #fff8df}
.navicon{width:30px!important;height:30px!important}.navicon .ui-icon{width:34px;height:34px}.nav-skill-level{background:#183b2dc4;color:#d4dab6!important;border:1px solid #68836666;padding:1px 4px;font-size:9px}.active .nav-skill-level{background:#cbd4ad;color:#4d6547!important;border-color:#b0be91}
.menu-rail .sidebar-foot{color:#bac9af;border-color:#6d8a6955}.save-dot{background:#c4d191}.running-dot{background:#e3cb73;box-shadow:0 0 5px #f1d98799}
.workstage{background-color:#9aa386;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:0 33.333333%;padding:24px 26px 32px;scrollbar-color:#53765b #a7ac8d;box-shadow:inset 4px 0 12px #213b2b22,inset -4px 0 12px #213b2b1a}
.profession-hud{background:#e5e6c9 url('/assets/painted/meadow-backdrop.webp') center center/cover no-repeat;border:2px solid #f4e8c6;border-bottom-color:#c2b28c;border-radius:19px;box-shadow:0 5px 0 #4a674642,0 8px 20px #243f322c,inset 0 1px 0 #fff6d9;min-height:229px;padding:23px 200px 21px 25px;overflow:visible}
.profession-heading h1{color:#34523d;text-shadow:0 2px 0 #f9f1d8;font-size:30px;letter-spacing:1px}.profession-heading>.tiny{color:#5c755b!important;font-size:10px;letter-spacing:1px}.profession-level{background:#f1e2ac;color:#68633d;border:1px solid #bbae72;box-shadow:0 2px 0 #79693b35}
.profession-xp{color:#4d6550!important;text-shadow:0 1px #f0ead4}.profession-xp strong{color:#4b604b!important}.profession-xp progress{background:#eeebcf;border:1px solid #89926b;border-radius:20px;box-shadow:inset 0 2px 3px #364c2330}
progress::-webkit-progress-bar{background:#d5d9b9}progress::-webkit-progress-value{background:#638968;box-shadow:inset 0 1px 1px #c6d896}progress::-moz-progress-bar{background:#638968}
.work-companion{background:#f4edd8d9;border:1px solid #b7bca4;border-radius:12px;padding:4px 9px;box-shadow:0 2px 0 #57734418;width:max-content;max-width:100%}.work-companion strong{color:#58674b}.work-companion span{color:#73745b!important}.work-state{background:#e5ddbc;color:#746b45!important}.work-state.active{background:#cfdcaf;color:#466444!important}
.mascot-guide{right:11px;bottom:13px;width:175px}.mascot-guide img{filter:drop-shadow(0 5px 3px #3d45292d);width:178px;height:180px}.mascot-guide span{background:#fff5dcd9;border-color:#b6a777;color:#756345!important;box-shadow:0 2px 4px #4c532820}
.manufacturing-grid{gap:16px;margin-top:23px}.manufacturing-card{min-height:147px;background-color:#f7edcf;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 0;border:2px solid #efdfbc;border-bottom-color:#b6a483;border-right-color:#c1b090;box-shadow:0 5px 0 #68714e66,0 8px 12px #263e2721,inset 0 1px 0 #fff7dd;border-radius:16px;gap:8px}
.manufacturing-card:hover:not(:disabled){background-color:#fff4d3;border-color:#eee2b3;box-shadow:0 6px 0 #596e4766,0 10px 15px #263e272f,inset 0 0 0 2px #c5cfac;transform:translateY(-3px)}
.manufacturing-icon,.manufacturing-card:nth-child(3n+2) .manufacturing-icon,.manufacturing-card:nth-child(3n) .manufacturing-icon{background:none;padding:0;box-shadow:none;width:84px;height:84px;border-radius:0;overflow:visible}.manufacturing-icon .ui-icon{width:84px;height:84px;filter:drop-shadow(0 3px 1px #5d51382a)}
.manufacturing-name{color:#665438;font-size:14px;font-weight:700;text-shadow:0 1px #fff4df}.manufacturing-card.selected{background-color:#e1e7c5;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 66.666667%;border:2px solid #699069;box-shadow:0 5px 0 #3a5c3b,0 8px 12px #1b33232c,inset 0 0 0 2px #f1edd0}.manufacturing-card.unavailable{opacity:.68;filter:saturate(.65)}
.online-loot,.card,.auction-panel,.auction-browser,.pet-guide-detail,.skill-editor{background-color:#f5ead0;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 0;border:1px solid #bdaa83;border-top:2px solid #f6edce;border-radius:17px;box-shadow:0 4px 0 #696e4840,0 7px 14px #21372218,inset 0 1px 0 #fff6e2}
.online-loot h2,.card h2,.section-head h2,.stage-title h1,.auction-panel h2,.pet-guide-detail h2{color:#3f5d45}.online-loot .tiny,.card .muted,.small.muted,.tiny.muted{color:#746c55}.online-loot-items>div,.idle-item{background:#e8e0c6;border-color:#c1b292;box-shadow:inset 0 1px 0 #fff6df}.online-loot-items strong,.online-loot-items small{color:#55704d}
.inspector{background-color:#eee5cf;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 0;border-left:3px solid #6b7655;box-shadow:inset 5px 0 12px #8b744d20}
.inspector-tabs{background-color:#79593c;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:0 100%;border-bottom:2px solid #56472c;box-shadow:0 3px 6px #3e312222;padding:12px 11px 8px}
.inspector-tabs button{background:#594937d9;border:1px solid #967e5d;color:#e1d5b4;border-radius:10px 10px 5px 5px;box-shadow:inset 0 1px 0 #c3a88044,0 2px 0 #342b20}.inspector-tabs button.active{background:#eee4c9;color:#476147;border-color:#e6d6a8;box-shadow:0 2px 0 #eee4c9,inset 0 1px 0 #fff7df}
.inspector-section{border-color:#cbb995;padding:18px 15px}.inspector-section h2{color:#546b4b;font-size:12px}.inspector-section .tiny,.gear-label,.gear-controls summary,.pet-skill-number,.pet-skill-status{color:#7d7058!important}
.pet-attributes .stats>div{background:#e5daba;border:1px solid #c6b491;border-top-color:#f1e6c6;box-shadow:inset 0 2px 4px #7b61361a,0 1px 0 #fff3d4}.pet-attributes .stats>div:nth-child(2){background:#e8d4ba}.pet-attributes .stats>div:nth-child(3){background:#d5dfbf}.pet-attributes .stats strong{color:#536749}.pet-attributes .stats span{color:#827351!important}.pet-attributes .stats span>.ui-icon{width:17px;height:17px;margin-right:3px}
.pet-identity .pet-portrait,.activity-companion,.pet-roster button,.family-art{background:#d7ddbb;border-color:#a5b18d;box-shadow:inset 0 2px 5px #687c4c23,0 1px 0 #fff0c6}.pet-portrait .family-art{background:none}.pet-identity strong{color:#4d674b}.pet-identity small,.pet-identity .tiny{color:#7f745b}.pill,.pill.type{background:#eae0c3;border-color:#c5b98e;color:#6e6147}
.gear-slot,.trainer-tools .gear-slot{background:#e5dbbf;border:1px solid #b5a785;border-top-color:#efe6c6;box-shadow:inset 0 2px 5px #78664720,0 1px 0 #fff2d5;border-radius:12px;min-height:110px}.gear-empty{height:50px;background:#cdcbb2;border:1px solid #b5b49a;box-shadow:inset 0 2px 5px #6b68462b}.gear-empty>span{opacity:.62}.gear-empty .ui-icon{width:44px;height:44px}.gear-slot.equipped{background:#dce0c0;border-color:#a1b286}.gear-slot>.item-cell{height:52px;background:#d3d9b5;border-color:#a8b389;box-shadow:inset 0 2px 5px #596a3522}.gear-item .bag-icon>.ui-icon{width:43px;height:43px}.gear-controls button{background:#cbd5b0;color:#4e6447}.gear-controls summary{font-size:10px}
.pet-skill-card{background:#efe5c8;border-color:#b9ad8c;box-shadow:0 3px 0 #d2c6a4,inset 0 1px 0 #fff5da;min-height:120px}.pet-skill-card .skill-art{background:#dad7ba;border:1px solid #b5b593;box-shadow:inset 0 2px 3px #6b6b4720;width:48px;height:48px;border-radius:10px;padding:3px}.skill-art .ui-icon{width:41px;height:41px}.pet-skill-card strong{color:#5e573e}.pet-skill-card.selected{background:#dce4bd;border-color:#78966b;box-shadow:0 3px 0 #8da275,inset 0 0 0 1px #f4efcf}.pet-skill-card.selected .skill-art{background:#c8d8a9}.pet-skill-card.locked-skill{opacity:.72;filter:saturate(.6)}.pet-skill-number>.ui-icon{width:15px;height:15px}
.item-cell,.item-cell.empty-slot{background:#ded4b7;border-color:#b6a985;border-top-color:#f2e5bc;border-radius:10px;box-shadow:inset 0 2px 5px #75613e20,0 1px 0 #fff0c9}.item-cell.empty-slot{opacity:.55}.item-cell:hover:not(:disabled),.item-cell:focus{background:#e5e3bb;border-color:#87956b;box-shadow:inset 0 0 0 1px #faf0c6,0 3px 0 #99a779}.bag-icon>.ui-icon{width:39px;height:39px}.item-cell strong{color:#66583d;text-shadow:0 1px #fff4d8}.item-tooltip{background:#f3e6c3;border-color:#8e8563;box-shadow:0 8px 25px #28332544;color:#5f5038}
.bag-section .bag-heading{margin:0 0 12px;padding:0 0 8px;font-size:14px;color:#416752;border-bottom:1px solid #ac9b6e66;letter-spacing:.04em}
button{background:#eee0bc;color:#68583b;border-color:#b7a37b;box-shadow:0 3px 0 #a9987240,inset 0 1px 0 #fff4d2}button:hover:not(:disabled){background:#e5e1b9;border-color:#8d9a6a;box-shadow:0 4px 0 #9ba67350}button.primary{background:#4d7458;border-color:#36573e;color:#fff0c9;box-shadow:0 3px 0 #2d4937,inset 0 1px 0 #98b182}button.primary:hover:not(:disabled){background:#658366}button.quiet{background:#e9ddbe;color:#786546;border-color:#c5b18b}input,select{background:#fbf1d4;color:#64573b;border-color:#b9a47d;box-shadow:inset 0 2px 3px #7c68451a}button:focus-visible,input:focus-visible,select:focus-visible{outline-color:#4f7858}
.recipe-category-select{background:#eee5c5;color:#5f6846;border-color:#aaab7e;box-shadow:0 3px 0 #616c4540}.auction-items button{background:#f1e6c9;border-color:#d3c2a0;color:#625439}.auction-items button.selected{background:#dbe1bd;box-shadow:inset 3px 0 #728f61}.auction-item-name small,.auction-footnote,.auction-footnote span,.auction-empty{color:#796d51!important}.auction-detail-header,.auction-list-label,.auction-table th{background:#dfd5b7;color:#6f6449}.auction-detail-icon{background:#ced7b0;box-shadow:inset 0 2px 3px #61784022}.auction-detail-icon .ui-icon{width:50px;height:50px}.auction-table td{border-color:#d0c3a5;color:#6c6048}.auction-table tr.quoted{background:#dbe3bd}.auction-checkout,.auction-estimate{background:#eae1c7;border-color:#c4b696}.auction-estimate>div:last-child{color:#4e6a46}.auction-tabs .active{background:#d5dfb7;color:#506c48;border-color:#9cad7c}
.arena-head,.encounter-stage,.capture-controls{background-color:#d7debd;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 66.666667%;border-color:#a5b38a;color:#4c674b;box-shadow:0 3px 0 #64734733}.encounter-portrait,.encounter-fighter:last-child .encounter-portrait{background:#efead0;border:1px solid #b4b698;box-shadow:inset 0 2px 5px #5d6e3320}.encounter-fighter>strong,.encounter-center strong{color:#5c6846}.encounter-vs{color:#8e7b53}.encounter-health{background:#b8bd99}.encounter-health i{background:#6c966a}.dungeon-monster{background:#efe6cc;border-color:#c6b68d}.dungeon-monster.next{background:#d9e1b7;border-color:#859c6b}.dungeon-monster.boss{background:#e5d3b1;border-color:#b7935f}.monster-icon{background:#dfddbc}.monster-capture strong{color:#718052}.monster-capture small,.monster-number{color:#877b57}.fighter,.fighter.opponent,.skill,.skillbutton,.team-pet,.helpgrid>div{background:#e8dfc4;border-color:#c0ad89;color:#645a41}.helpgrid strong,.helpgrid span,.skill p,.skillbutton span{color:#6f674c}.skillbutton .ui-icon{width:37px;height:37px}.skillbutton:hover:not(:disabled),.bench button:hover:not(:disabled){background:#dde3bc}.note,.roomstatus,.hatch-result{background:#e4dec1;border-color:#beb48d;color:#6b664b}.code,.vs,.status-label{color:#617b52}
.incubator-egg>span{background:#dfe4c1;border-color:#adb98c;box-shadow:inset 0 2px 6px #6a764522}.incubator-egg .ui-icon{width:70px;height:70px}.egg-card{background:#efe5c8;border-color:#bdaa80;box-shadow:0 3px 0 #b5ac8640}.egg-card.selected{background:#dce3bd}.egg-quality-guide{background:#e6ddc4;border-color:#c7b793}.egg-quality-guide strong{color:#756544}.egg-card .ui-icon{width:46px;height:46px}
.pet-guide-grid button{background:#efe5c7;border-color:#c6b28b;box-shadow:0 3px 0 #9f9c7840}.pet-guide-grid button.selected{background:#d6dfb9;border-color:#8c9f72}.pet-guide-skills article{background:#e5dcc0;border-color:#c7b895;color:#6d6249}.pet-guide-skills article p{color:#726950}.pet-guide-skills .ui-icon{width:33px;height:33px}.pet-guide-toolbar input,.pet-guide-toolbar select{background:#f5ebce}
.task-dialog,.idle-dialog,.pet-reveal{background-color:#f2e7c9;background-image:url('/assets/painted/materials-atlas.webp');background-size:200% 400%;background-position:100% 0;border:3px solid #b6a17b;border-top-color:#ecddb6;box-shadow:0 10px 0 #253e2866,0 25px 70px #21352e66,inset 0 1px 0 #fff7de;color:#61543c;border-radius:19px}.task-dialog::backdrop,.idle-dialog::backdrop,.pet-reveal::backdrop{background:#1e3b2db3;backdrop-filter:blur(4px)}.task-dialog header,.idle-dialog header{background:#dce2be;border-color:#a6b387;color:#4d6645}.task-dialog h2,.idle-dialog h2,.pet-reveal h2{color:#526845}.task-dialog footer{background:#f2e7c9;border-color:#c6b48d}.task-estimates,.idle-overview{background:#e4d9b9;border-color:#bfa87f}.task-estimates strong,.idle-overview strong{color:#4e704e}.task-drops th{background:#ded4b5;color:#7a6846}.task-drops td{border-color:#d5c5a2;color:#64583c}.task-drops-wrap{border-color:#b9a680}.task-plan-note,.idle-note{background:#dce2bb;color:#637a4c}.task-materials,.task-preview-help{color:#7c6d50}.task-materials .ui-icon{width:23px;height:23px}.task-dialog-heading .ui-icon{width:44px;height:44px}.task-drops .ui-icon{width:30px;height:30px}.idle-item strong{color:#577347}.pet-reveal .stats strong{color:#5a744d}.reveal-eyebrow{color:#8b7850}.reveal-portrait{background:#d7dfb4;box-shadow:inset 0 2px 7px #53663225}
#toast{background:#405f49;border-color:#91a078;color:#fff0c9;box-shadow:0 5px 0 #243a2e,0 12px 25px #1b362f44}.reward-float,.reward-float.battle,.reward-float.level,.reward-float.capture,.reward-float.hatch-ready,.reward-float.pet-level,.reward-float.task-complete{background:#eee3bd;color:#506c43;border-color:#9d9c69;box-shadow:0 3px 0 #455b3333,0 7px 14px #26452c30}
@media(min-width:1500px){.manufacturing-icon,.manufacturing-icon .ui-icon{width:95px;height:95px}.profession-hud{padding-right:230px}.mascot-guide{width:205px}.mascot-guide img{width:205px;height:205px}}
@media(max-width:1100px) and (min-width:701px){:root{--rail:155px;--inspector:290px}.workstage{padding:20px 15px}.nav button{font-size:12px;gap:5px;padding:9px 6px}.navicon .ui-icon{width:28px;height:28px}.profession-hud{padding:20px 140px 20px 17px}.mascot-guide{width:124px}.mascot-guide img{width:130px;height:150px}.manufacturing-icon,.manufacturing-icon .ui-icon{width:70px;height:70px}.manufacturing-card{min-height:130px}.profession-heading h1{font-size:25px}}
@media(max-width:700px){.game-header>.brand{border:0}.current-task{border-color:#c9b998}.menu-rail{padding:9px;border:0;border-bottom:3px solid #6d7959}.nav{gap:7px}.nav button{min-height:42px;font-size:12px;gap:5px;padding:6px 9px}.navicon,.navicon .ui-icon{width:25px!important;height:25px!important}.workstage{padding:20px 13px 27px}.profession-hud{min-height:224px;padding:21px 137px 20px 17px}.profession-heading h1{font-size:23px}.profession-heading>.tiny{font-size:8px}.mascot-guide{width:125px;right:6px}.mascot-guide img{width:130px;height:150px}.mascot-guide span{font-size:8px}.work-companion{padding:3px 6px}.manufacturing-grid{gap:10px;margin-top:21px}.manufacturing-card{min-height:123px;border-radius:13px}.manufacturing-icon,.manufacturing-icon .ui-icon{width:70px;height:70px}.manufacturing-name{font-size:12px}.inspector{border:0;border-top:3px solid #627153}.inspector-tabs{border-bottom:2px solid #56472c}.inspector-section{padding:20px 16px}.task-dialog,.idle-dialog{padding:16px;border-radius:17px}.task-drops .ui-icon{width:23px;height:23px}.bag-icon>.ui-icon{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.painted-icon{animation:none}}
/* Separate seamless textures retain grain scale on long, narrow surfaces. */
.game-header,.current-task,.card,.online-loot,.auction-panel,.auction-browser,.pet-guide-detail,.skill-editor,.inspector,.task-dialog,.idle-dialog,.pet-reveal,.manufacturing-card,.manufacturing-card.selected,.nav button.active{background-image:url('/assets/painted/paper-texture.webp');background-size:480px 480px;background-position:0 0;background-repeat:repeat;background-blend-mode:multiply}
.workstage{background-image:url('/assets/painted/linen-texture.webp');background-size:480px 480px;background-position:0 0;background-repeat:repeat;background-blend-mode:soft-light;background-color:#a5af94}
.menu-rail,.game-header>.brand{background-image:url('/assets/painted/wood-texture.webp');background-size:480px 480px;background-position:0 0;background-repeat:repeat;background-blend-mode:normal}
.inspector{background-color:#f1e8d2}.current-task,.game-header{background-color:#f7edd7}.card,.online-loot,.auction-panel,.auction-browser,.pet-guide-detail,.skill-editor,.manufacturing-card{background-color:#fcf3dc}.manufacturing-card.selected{background-color:#e3eac8}.nav button.active{background-color:#f4ebcf}
.inspector-tabs{background-image:url('/assets/painted/wood-texture.webp');background-size:480px 480px;background-position:0 0;background-blend-mode:luminosity;background-color:#756046}
.arena-head,.encounter-stage,.capture-controls{background-image:url('/assets/painted/paper-texture.webp');background-size:480px 480px;background-position:0 0;background-color:#dce4c5;background-blend-mode:multiply}
.profession-xp progress::-webkit-progress-value{background:#628b63}.pet-skill-card.selected:disabled{opacity:1;filter:none;background:#dce4bd;color:#506342}.profession-hud .tiny{color:#4b6449!important}.gear-empty>.span{opacity:.75}.gear-empty>span>.painted-icon,.gear-empty .painted-glyph{opacity:1}.empty-slot .painted-icon{filter:saturate(.7)}
.task-dialog .task-materials .painted-icon{margin-right:3px}.reward-float .painted-icon{width:25px;height:25px;margin-right:5px}
.ui-icon.painted-icon{display:inline-flex}.painted-icon>.painted-glyph{display:block}
.pet-attributes .stats .painted-icon{display:inline-flex}.pet-attributes .stats .painted-glyph{display:block}
#item-tooltip{background:#f2e4c3;color:#625338;border:1px solid #9f8c66;box-shadow:0 7px 0 #344a3233,0 12px 28px #243c2a3b}
#item-tooltip strong{color:#4f6745!important}#item-tooltip p,#item-tooltip .tooltip-count{color:#756344}
.item-cell.empty-slot strong{color:#756b52}.gold,.auction-table .gold,.auction-checkout .gold{color:#8c6b32}.auction-tabs button.active,.hatch-tabs button.selected{color:#4d6844}
.dungeon-tiers button{background:#f0e6ca;color:#6d6045;border:1px solid #b8ab87;box-shadow:0 3px 0 #8f9b6d45}.dungeon-tiers button.selected{background:#d2deaf;color:#4e6a45;border-color:#8a9e6b;box-shadow:0 3px 0 #5e784b66}
.nav button.active:hover:not(:disabled){background-color:#f4ebcf;background-image:url('/assets/painted/paper-texture.webp');background-size:480px 480px;color:#315642;border-color:#ddd0a1}
.account-box{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:15px;padding-top:12px;border-top:1px solid #b6bd8d55;font-size:12px}.account-box strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f4e8c9}.account-box button{padding:5px 8px;font-size:11px;border:1px solid #b2b28b;color:#f4e8c9;background:#426246;border-radius:8px;cursor:pointer}.account-box button:hover{background:#587657}@media(max-width:700px){.sidebar-foot .account-box{display:flex}}

.mobile-logout{display:none}@media(max-width:700px){.activity-actions .mobile-logout{display:inline-flex}}

/* The divider floats over the column boundary without consuming a grid track. */
.game-columns{position:relative}
.inspector-resize{position:absolute;top:0;bottom:0;right:calc(var(--inspector) - 6px);width:12px;z-index:12;cursor:ew-resize;touch-action:none;outline:none}
.inspector-resize::before{content:"";position:absolute;top:0;bottom:0;left:5px;width:3px;background:#64805a;opacity:0;transition:opacity .15s}
.inspector-resize::after{content:"";position:absolute;top:50%;left:2px;width:8px;height:48px;border:1px solid #7a8964;border-radius:6px;background:repeating-linear-gradient(to bottom,#e1d7b6 0 5px,#8e9a73 5px 7px);box-shadow:0 2px 5px #344a3240;transform:translateY(-50%);opacity:.7}
.inspector-resize:hover::before,.inspector-resize:focus-visible::before,.resizing-inspector .inspector-resize::before{opacity:1}
.inspector-resize:hover::after,.inspector-resize:focus-visible::after,.resizing-inspector .inspector-resize::after{opacity:1;background-color:#f4e8c9}
.resizing-inspector,.resizing-inspector *{cursor:ew-resize!important;user-select:none!important}
@media(max-width:700px){.inspector-resize{display:none}}

/* Hatching uses the central production workspace; the inspector holds status. */
.hatch-workshop .vessel-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.hatch-workshop .vessel-card{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;white-space:normal}.hatch-workshop .vessel-art{width:76px;height:76px}.hatch-workshop .vessel-art .item-art{width:100%;height:100%}.hatch-workshop .vessel-card strong{font-size:16px}.hatch-workshop .vessel-card small{overflow-wrap:anywhere}.hatch-workshop .vessel-card:hover{transform:translateY(-3px)}.summon-altar .summon-last-result{margin-top:18px}@media(max-width:1100px){.hatch-workshop .vessel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.hatch-workshop .vessel-grid{gap:10px}.hatch-workshop .vessel-card{min-height:175px;padding:12px 8px}.hatch-workshop .vessel-card strong{font-size:14px}}

/* Keep shared profession labels and their level badges on one line. */
.nav button{gap:4px}.nav-label{white-space:nowrap}.nav-skill-level{flex-shrink:0}@media(max-width:1100px) and (min-width:701px){.nav-skill-level{font-size:10px;padding-inline:3px}}

/* Settlement headings and values need contrast against light parchment. */
.idle-dialog h3{color:#2e533d;font-weight:700}
.idle-dialog .idle-experience h3,.idle-dialog .idle-experience .idle-item strong{color:#2d5078}
.idle-dialog .idle-overview span,.idle-dialog .idle-item>span:not(.idle-item-icon){color:#4a4936}
.idle-dialog .idle-item strong{color:#315d3d}
.idle-dialog .idle-item strong.spent{color:#87432d}
.idle-dialog footer{justify-content:flex-end}

/* Separate navigation groups without adding more menu labels. */
.nav button.nav-section-start{margin-top:10px}
.market-sections{display:flex;gap:8px;margin-bottom:18px}.market-sections>button{flex:1;max-width:240px}
@media(max-width:700px){.nav button.nav-section-start{margin-top:0;margin-left:10px}.market-sections>button{max-width:none}}

/* Player identity stays in the top-right corner of the game header. */
.game-header{grid-template-columns:var(--rail) minmax(0,1fr) minmax(150px,210px)}
.game-header>.header-player{position:relative;align-self:center;min-width:0;margin:12px 18px 12px 0;padding:0;border:1px solid #b7ba91;border-radius:14px;background:linear-gradient(145deg,#fff9e8,#e8e9ca);box-shadow:inset 0 1px 0 #fffdf2,0 2px 3px #54452820;color:#395744}
.header-player>summary>img{width:44px;height:44px;flex:none;object-fit:contain;border-radius:11px;background:#dce4bc;border:1px solid #b8c394}
.header-player-info{min-width:0;line-height:1.5}.header-player-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.header-player-info span{display:block;color:#65764d;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:700px){
 .game-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,46%)}
 .game-header>.brand{grid-column:1;grid-row:1;min-width:0;padding:10px 8px;font-size:14px}.game-header>.brand small{display:none}
 .game-header>.header-player{grid-column:2;grid-row:1;margin:6px 8px 6px 0;padding:0;border-radius:10px}
 .header-player>summary>img{width:34px;height:34px}.header-player-info strong{font-size:12px}.header-player-info span{font-size:10px}
 .game-header>.current-task{grid-column:1/-1;grid-row:2}
}

.header-player>summary{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;list-style:none;border-radius:inherit}
.header-player>summary::-webkit-details-marker{display:none}
.header-player>summary:focus-visible{outline:2px solid #4e7558;outline-offset:3px}
.header-player>summary:hover{background:#ffffff38}.header-player-info{flex:1}
.header-player-chevron{flex:none;color:#6b7851;transition:transform .15s}.header-player[open] .header-player-chevron{transform:rotate(180deg)}
.header-player-dropdown{position:absolute;right:0;top:calc(100% + 7px);z-index:10;width:100%;min-width:150px;padding:5px;background:#fcf5e3;border:1px solid #bdba96;border-radius:12px;box-shadow:0 6px 18px #30291635}
.header-player-dropdown>button{display:block;width:100%;padding:10px 14px;text-align:left;border:0;border-radius:7px;background:transparent;box-shadow:none;color:#395744;font-size:14px}
.header-player-dropdown>button:hover:not(:disabled){background:#e3e9cd;transform:none}.header-player-dropdown>button+button{border-top:1px solid #ddd8bc}
@media(max-width:700px){.header-player>summary{padding:5px 8px;gap:7px}.header-player-dropdown>button{min-height:44px}}

/* Hunting and cooking share the approved transparent illustrations. */
.cooking-art{display:block;width:100%;height:100%;object-fit:contain;min-width:0}
.recipe-unlock{display:block;font-size:11px;opacity:.72;margin-top:4px}
.cooking-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}
.cooking-tabs>button{min-height:44px;padding:10px 16px;border:1px solid #b4b38c;border-radius:10px;background:#eee8d0;color:#586445;box-shadow:0 2px 0 #6b74512b;font-weight:700}
.cooking-tabs>button[aria-selected="true"]{background:#536e4c;color:#fff9e6;border-color:#405d3e;box-shadow:inset 0 1px 0 #ffffff26,0 2px 0 #344c32}
.cooking-tabs>button:focus-visible{outline:2px solid #526f49;outline-offset:3px}
.recipe-effect{line-height:1.65;margin:0 0 12px;color:var(--text,#393b32)}
.task-dialog-heading .recipe-effect{margin:6px 0 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:#526345}
/* Food is a compact buff strip, subordinate to the activity itself. */
.life-cooking{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:6px 10px;border-bottom:1px solid #89977055;background:#f4f0dc80;border-radius:8px;min-height:56px}
.life-cooking>header{flex:0 0 auto;margin:0}
.life-cooking>header h2{margin:0;font-size:12px;color:#626d53}
.life-cooking-slots{display:flex;align-items:flex-start;gap:10px}
.life-cooking-slot{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;width:52px}
.life-cooking-slot>small{font-size:10px;color:#746c59;line-height:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.life-cooking-slot>small.life-cooking-timer{color:#345c3a;font-weight:700}
.life-cooking-equip{position:relative;width:44px;height:44px;flex:0 0 44px;border:1px solid #b5ad8d;border-radius:8px;padding:4px;background:#edead7;box-shadow:inset 0 2px 5px #6b63301a;cursor:pointer}
.life-cooking-equip:hover,.life-cooking-equip[aria-expanded=true]{border-color:#718658;background:#e4e9ce}
.life-cooking-equip:focus-visible{outline:2px solid #536f40;outline-offset:3px}
.life-cooking-equip.empty .life-cooking-icon{opacity:.28;filter:grayscale(1)}
.life-cooking-equip.equipped:disabled{opacity:1;cursor:default}
.life-cooking-slot:has(.life-cooking-timer) .life-cooking-equip.equipped{border-color:#789760;background:#e0e8c8}
.life-cooking-icon{display:block;width:100%;height:100%;min-width:0}
.life-cooking-icon .ui-icon,.life-cooking-icon img{width:100%;height:100%;object-fit:contain}
.life-cooking-stock{position:absolute;bottom:1px;right:1px;color:#405433;font-size:10px;font-weight:700;background:#f8f5e7df;border-radius:5px;padding:0 4px}
.life-cooking-add{position:absolute;inset:0;display:grid;place-items:center;color:#756e54;font-size:25px;text-shadow:0 1px #fff}
.life-cooking-picker{position:fixed;inset:auto;margin:0;padding:14px;box-sizing:border-box;overflow-y:auto;border:1px solid #b6a77b;border-radius:14px;background:#faf6e8;color:#3e4935;box-shadow:0 10px 30px #20281745;z-index:1200}
.life-cooking-picker::backdrop{background:transparent}
.life-cooking-picker header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.life-cooking-picker header button{padding:3px 10px;font-size:22px;border:0;background:transparent}
.life-cooking-options{display:grid;gap:7px}
.life-cooking-options>button{display:flex;gap:10px;align-items:center;text-align:left;padding:8px;border:1px solid #d2c8ab;border-radius:9px;background:#f0eddd;color:inherit}
.life-cooking-options>button:hover,.life-cooking-options>button.selected{background:#e5ebd4;border-color:#809568}
.life-cooking-options>button:disabled{opacity:.45;cursor:default}
.life-cooking-options .life-cooking-icon{width:44px;height:44px;flex:0 0 44px}
.life-cooking-options strong{font-size:12px;display:block}
.life-cooking-options small{font-size:11px;line-height:1.5;display:block;margin-top:3px;color:#69624f}
.life-cooking-clear{width:100%;margin-top:10px}
.life-cooking-picker [role=alert]{color:#a34231;font-size:12px}
.life-cooking>header>small{display:block;margin-top:3px;font-size:9px;color:#786e54;white-space:nowrap}
.cooking-picker-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:10px}
.cooking-picker-filters>button{min-height:36px;padding:5px 3px;font-size:12px;border:1px solid #c3ba98;border-radius:7px;background:#efecd9;color:#626a50}
.cooking-picker-filters>button[aria-pressed=true]{background:#4d7055;color:#fff6df;border-color:#35563e}
.dd-battle-configuration{margin-top:12px;border:1px solid #b4b694;border-radius:10px;background:#f5f0de88;overflow:hidden}
.dd-battle-configuration>summary{padding:12px;font-size:12px;font-weight:700;color:#435f47;cursor:pointer;min-height:42px}
.dd-battle-configuration>.dd-panel{margin:0;border:0;box-shadow:none;border-radius:0;border-top:1px solid #c3bd9b}
/* Combat information belongs to its target, rather than a detached report. */
.arena-battle .arena-front-hud{position:absolute;left:10px;right:10px;z-index:5;padding:7px 9px;border:1px solid #d6b2758c;border-radius:10px;background:#253b33f2;box-shadow:0 3px 9px #0d211c55;color:#f5edce;text-shadow:none}
.arena-battle .arena-front-hud.enemy{top:8px;border-color:#c899786e;background:#3a3830ed}
.arena-battle .arena-front-hud.ours{bottom:8px;border-color:#96b77e88}
.arena-battle .arena-front-hud .arena-statuses .arena-status-group{background:transparent;border:0}
.arena-front-heading{display:flex;align-items:center;gap:7px;min-width:0}
.arena-front-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:7px;border:1px solid #a7b58b66;background:#68775855;padding:2px}
.arena-front-avatar .game-art,.arena-front-avatar .ui-icon{width:100%;height:100%;object-fit:contain}
.arena-front-vitals{flex:1;min-width:0}
.arena-front-vitals>div:first-child{display:flex;align-items:baseline;gap:6px;min-width:0}
.arena-front-vitals small{font-size:9px;color:#c7d4ba;white-space:nowrap}
.arena-front-vitals strong{font-size:12px;color:#fff0c7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arena-front-vitals>.arena-hp{width:100%;height:7px;margin:4px 0 1px}
.arena-front-vitals>span{display:block;font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums;color:#e3e9cc}
.arena-bench-roster{display:flex;gap:4px;flex:0 0 auto}
.arena-battle .arena-bench-status{position:relative;width:32px;height:36px;padding:2px 2px 6px;min-height:0;background:#72836838;border:1px solid #9bac8155;border-radius:6px;box-shadow:none;cursor:pointer}
.arena-bench-status .game-art{width:100%;height:100%;object-fit:contain}
.arena-bench-status.dead{filter:grayscale(1);opacity:.5}
.arena-bench-health{position:absolute;bottom:2px;left:2px;right:2px;height:3px;background:#21362c;border-radius:2px;overflow:hidden}
.arena-bench-health>i{height:100%;display:block;background:#a9c983}
.arena-bench-status>b{position:absolute;right:-3px;top:-4px;min-width:12px;height:12px;border-radius:4px;font-size:9px;line-height:12px;background:#dbbb75;color:#283e30}
.arena-battle .arena-statuses.arena-status-groups{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:5px 0 0;max-height:90px;overflow:auto;scrollbar-width:thin}
.arena-status-group{display:flex;align-items:center;gap:5px;min-width:0}
.arena-status-group>span{flex:0 0 24px;font-size:9px;color:#b6d594}
.arena-status-group.debuff>span{color:#f0b2a2}
.arena-status-group>div{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.arena-battle .arena-front-hud .arena-status{position:relative;width:32px;height:30px;min-height:30px;padding:3px;display:inline-flex;justify-content:center;border-radius:5px;border:1px solid #a2c37c;background:#405c39;color:#f5f3dc}
.arena-battle .arena-front-hud .arena-status.debuff{border-color:#db8e7d;background:#613d38}
.arena-battle .arena-front-hud .arena-status .ui-icon,.arena-battle .arena-front-hud .arena-status .skill-icon{width:23px;height:23px;flex:0 0 23px}
.arena-battle .arena-front-hud .arena-status small{position:absolute;right:0;bottom:-1px;max-width:none;border-radius:3px;padding:0 2px;font-size:10px;font-weight:700;line-height:12px;color:#fff6da;background:#182b25ed;overflow:visible}
.arena-front-hud .arena-no-status{font-size:9px;color:#b6c6b0}
.arena-battle .arena-environment-position{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;max-width:85%}
.arena-battle .arena-environment-position .arena-environment{min-height:32px;padding:5px 9px;display:flex;align-items:center;gap:5px;background:#31354ced;color:#eee6ff;border:1px solid #9c91bb8c;border-radius:18px;white-space:nowrap;box-shadow:0 2px 7px #1d293255;font-size:11px}
.arena-battle .arena-environment-position .arena-environment .ui-icon{width:19px;height:19px}
.arena-environment-wrap{display:flex;flex-direction:column;align-items:center;gap:5px}
.arena-environment-effects{display:flex;justify-content:center;gap:4px;max-width:100%;flex-wrap:wrap}
.arena-battle .arena-environment-effect{position:relative;width:34px;height:32px;padding:3px;min-height:32px;border-radius:6px;border:1px solid #a2c37c;background:#405c39}
.arena-battle .arena-environment-effect.debuff{border-color:#db8e7d;background:#613d38}
.arena-environment-effect .ui-icon,.arena-environment-effect .skill-icon{width:24px;height:24px}
.arena-environment-effect>small{position:absolute;right:0;bottom:-1px;border-radius:3px;background:#182b25ed;color:#fff6da;font-size:10px;padding:0 2px;font-weight:700}
.arena-battle .with-status-hud .arena-actor-label,.arena-battle .with-status-hud .arena-member-effects-count,.arena-battle .with-status-hud .arena-side-label{display:none}
.arena-battle .with-status-hud .arena-actor.is-bench .arena-actor-label{display:block;margin-top:3px}
.arena-battle .with-status-hud .arena-actor.is-bench:not(.enemy){margin-top:-6px}
.arena-battle .with-status-hud .arena-actor.is-bench .arena-actor-label>strong,.arena-battle .with-status-hud .arena-actor.is-bench .arena-position-label,.arena-battle .with-status-hud .arena-actor.is-bench .arena-race{display:none}
.arena-battle .with-status-hud .arena-actor.is-bench .arena-hp{width:92%;height:6px;margin:2px auto}
.arena-battle .with-status-hud .arena-actor.is-bench .arena-actor-label>small{display:block;font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums;color:#fff4d4}
.arena-battle .with-status-hud .arena-actor.is-front{--portrait:104px}
.arena-battle .with-status-hud .arena-actor.enemy.is-front{--portrait:78px}
.arena-front-hud button:focus-visible{outline:2px solid #ffe6a2;outline-offset:2px}
@media(min-width:761px){.arena-battle .arena-stage .arena-battlefield.with-status-hud{height:560px;min-height:560px}}
@media(max-width:760px){
 .arena-battle .arena-front-hud{left:7px;right:7px;padding:6px 7px}
 .arena-front-vitals>div:first-child{display:flex;line-height:1.2;gap:4px}
 .arena-front-vitals small{display:block;font-size:9px}
 .arena-front-vitals strong{display:block;font-size:12px}
 .arena-front-vitals>span{font-size:11px}
 .arena-battle .arena-bench-status{width:28px;height:34px}
 .arena-front-avatar{width:34px;height:34px;flex-basis:34px}
 .responsive-game-shell.arena-focus-shell .with-status-hud .arena-actor.is-front{--portrait:96px}
 .responsive-game-shell.arena-focus-shell .with-status-hud .arena-actor.enemy.is-front{--portrait:68px}
}
@media(max-width:360px){
 .responsive-game-shell.arena-focus-shell .with-status-hud .arena-actor.is-front{--portrait:62px}
 .responsive-game-shell.arena-focus-shell .with-status-hud .arena-actor.enemy.is-front{--portrait:44px}
 .responsive-game-shell.arena-focus-shell .with-status-hud .arena-actor{--portrait:36px}
 .responsive-game-shell.arena-focus-shell .with-status-hud .arena-actor.enemy{--portrait:30px}
}
.inspector-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.lord-subnavigation{display:flex;gap:6px;padding:10px 12px;border-bottom:1px solid #c9bd9b;background:#f1ecd8}
.lord-subnavigation>button{flex:1;min-height:38px;padding:7px 10px;font-size:12px;border:1px solid #b9b18d;background:#e8e5d1;color:#5e6650;border-radius:8px}
.lord-subnavigation>button[aria-current=page]{background:#4d7055;border-color:#35563e;color:#fff6df;box-shadow:inset 0 1px #a6b88e}
.inspector-content[data-inspector-view=hatch]>.card{margin:12px;padding:14px}
.inspector .hatch-workshop .vessel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.inspector .hatch-workshop .vessel-card{min-height:150px;padding:10px 5px;gap:6px;font-size:11px}
.inspector .hatch-workshop .vessel-card strong{font-size:12px}
.inspector .hatch-workshop .vessel-art{width:48px;height:48px}
/* Compact mobile shell: one content viewport, expandable navigation and persistent panels. */
.mobile-context-bar,.mobile-game-dock,.mobile-drawer-heading,.mobile-inspector-heading{display:none}
.responsive-game-shell [hidden]{display:none!important}
@media(max-width:760px){
 body:has(.responsive-game-shell){overflow:hidden;overscroll-behavior:none}
 .responsive-game-shell{height:100dvh;min-height:0;max-width:100vw;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;padding:0;isolation:isolate}
 .responsive-game-shell>.game-header{display:grid;grid-template-columns:minmax(0,1fr) 50px;grid-template-rows:46px auto;position:relative;top:auto;min-width:0;gap:0;padding-top:env(safe-area-inset-top);z-index:10}
 .responsive-game-shell .game-header>.brand{display:none}
 .mobile-context-bar{display:flex;grid-column:1;grid-row:1;align-items:center;gap:10px;min-width:0;padding:0 12px}
 .mobile-context-bar>div{display:flex;align-items:baseline;gap:9px;min-width:0}
 .mobile-context-bar small{font-size:10px;color:#7a7560;white-space:nowrap}
 .mobile-context-bar strong{font-size:15px;color:#345443;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-menu-toggle{min-width:36px;min-height:36px;padding:0;border:1px solid #bab799;background:#f6f0dc;color:#385744;border-radius:9px;font-size:20px;line-height:1}
 .responsive-game-shell .header-player{grid-column:2;grid-row:1;padding:0 8px 0 0;margin:0;min-width:0;align-self:center;justify-self:end;z-index:15}
 .responsive-game-shell .header-player>summary{padding:3px;min-width:34px;min-height:34px;border-radius:9px}
 .responsive-game-shell .header-player>summary>img{width:28px;height:28px}
 .responsive-game-shell .header-player-info,.responsive-game-shell .header-player-chevron{display:none}
 .responsive-game-shell .header-player-dropdown{right:0;width:180px}
 .responsive-game-shell .current-task{grid-column:1/-1;grid-row:2;padding:7px 10px 8px;border:0;border-top:1px solid #b1a27d40;box-shadow:none;min-width:0}
 .responsive-game-shell .activity{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0;padding:0}
 .responsive-game-shell .activity-companion{width:32px;height:32px;min-width:0;border-radius:8px;padding:2px;margin:0}
 .responsive-game-shell .activity-companion .game-art{width:100%;height:100%;padding:0;object-fit:contain}
 .responsive-game-shell .activity-detail{min-width:0}
 .responsive-game-shell .activity-detail .row{display:block;min-width:0}
 .responsive-game-shell .activity-detail strong{display:block;font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .responsive-game-shell .activity-detail p{font-size:10px;line-height:1.4;margin:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .responsive-game-shell .activity-status{display:none}
 .responsive-game-shell #jobprogress{height:5px;width:100%;margin:3px 0 0;display:block}
 .responsive-game-shell .activity-actions{margin:0;gap:0}
 .responsive-game-shell .header-queue-controls{display:flex;flex-direction:row;gap:5px;flex-wrap:nowrap;align-items:center}
 .responsive-game-shell .header-queue-controls button{min-height:34px;max-width:82px;min-width:40px;padding:5px 6px;font-size:10px;line-height:1.3;white-space:nowrap;border-radius:8px}
 .responsive-game-shell .mobile-logout{display:none!important}
 .responsive-game-shell>.game-columns{display:block;min-height:0;min-width:0;height:100%;overflow:hidden}
 .responsive-game-shell .workstage{width:100%;height:100%;overflow:auto;overscroll-behavior:contain;padding:12px 12px 24px;min-width:0;min-height:0;scrollbar-gutter:stable;outline:none}
 .responsive-game-shell .inspector-resize{display:none}
 .responsive-game-shell .menu-rail{position:fixed;inset:0 auto 0 0;width:min(320px,86vw);max-width:100%;height:100dvh;padding:calc(12px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;z-index:45;border:0;border-right:2px solid #304c3e;box-shadow:8px 0 24px #152e2940}
 .mobile-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#eee7cf;font-size:16px;margin-bottom:14px;padding:0 3px 10px;border-bottom:1px solid #9cad8a45}
 .mobile-drawer-heading>strong{color:#f4efd7}
 .mobile-drawer-heading>button{min-width:40px;min-height:40px;font-size:24px;padding:0;color:#f8f0d6;background:#375849;border-color:#71886b}
 .responsive-game-shell .menu-rail .nav{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;gap:6px}
 .responsive-game-shell .menu-rail .nav>button{display:flex;align-items:center;flex:none;width:100%;min-height:48px;gap:10px;padding:8px 12px;font-size:14px;text-align:left;white-space:normal}
 .responsive-game-shell .nav .navicon{display:inline-flex;width:30px!important;height:30px!important;flex:0 0 30px}
 .responsive-game-shell .nav .nav-label{flex:1}
 .responsive-game-shell .nav .nav-skill-level{font-size:11px;margin-left:auto;padding:1px 5px}
 .responsive-game-shell .nav .running-dot{display:inline-block}
 .responsive-game-shell .nav button.nav-section-start{margin:10px 0 0}
 .mobile-drawer-backdrop{position:fixed;inset:0;width:100%;height:100%;border:0;border-radius:0;padding:0;background:#12292280;z-index:40;cursor:default;backdrop-filter:blur(2px)}
 .mobile-drawer-backdrop:hover{background:#12292280!important;transform:none!important}
 .responsive-game-shell .inspector{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden;border:0;box-shadow:none}
 .mobile-inspector-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;min-height:48px;flex-shrink:0;border-bottom:1px solid #c4b895;background:#f6f0dc}
 .mobile-inspector-heading h2{font-size:16px;margin:0;color:#385744;outline:none}
 .mobile-inspector-heading>button{min-height:36px;padding:5px 10px;font-size:12px;background:#ece9d3;color:#405e46;border-color:#b8b89a}
 .responsive-game-shell .inspector-tabs{display:none}
 .responsive-game-shell .inspector-content{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;max-height:none;padding-bottom:18px}
 .responsive-game-shell .inspector-section{padding:14px}
 .responsive-game-shell .bag-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:7px}
 .responsive-game-shell .bag-slot{height:58px;min-width:0;padding:3px;gap:0}
 .responsive-game-shell .bag-slot .bag-icon{height:32px;line-height:32px;flex:0 0 32px}
 .responsive-game-shell .bag-slot .bag-icon>.ui-icon{width:32px;height:32px}
 .responsive-game-shell .bag-slot>strong{display:block;max-width:100%;height:14px;min-height:14px;flex-shrink:0;line-height:14px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-game-dock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;align-items:stretch;padding:3px max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));background:#f3edd9;border-top:1px solid #a9ae8c;box-shadow:0 -3px 10px #31432b1a;z-index:15;min-width:0}
 .mobile-game-dock>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:50px;padding:4px 2px;background:transparent;border:1px solid transparent;border-radius:9px;color:#6d705b;font-size:11px;line-height:1.3}
 .mobile-game-dock>button[aria-pressed=true]{background:#dfe6c9;border-color:#9baa7e;color:#355640;font-weight:700;box-shadow:inset 0 1px #fff8e7}
 .mobile-game-dock>button>span:first-child{display:block;width:24px;height:24px}
 .mobile-game-dock .ui-icon{width:24px;height:24px}
 .mobile-dock-avatar{width:24px;height:24px;object-fit:contain}
 .responsive-game-shell .manufacturing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:0}
 .responsive-game-shell .manufacturing-card{height:128px;min-height:128px;padding:8px 7px;gap:6px}
 .responsive-game-shell .manufacturing-icon,.responsive-game-shell .manufacturing-icon .ui-icon{width:60px;height:60px}
 .responsive-game-shell .manufacturing-name{font-size:12px;line-height:1.4;overflow-wrap:anywhere;min-width:0}
 .responsive-game-shell .recipe-unlock{font-size:10px}
 .mobile-life-navigation{position:sticky;top:-12px;z-index:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px 0;margin:-12px 0 8px;background:#b9c59e;box-shadow:0 3px 0 #b9c59e}
 .mobile-life-skill{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:48px;padding:5px 3px;border:1px solid #849674;border-radius:9px;background:#e8ecd7;color:#4d6248;box-shadow:0 2px 0 #7d8d6d44;font-size:12px;line-height:1.3;text-align:left}
 .mobile-life-skill[aria-current=page]{background:#345c49;color:#fff6d9;border-color:#234c38;box-shadow:inset 0 1px #8aa57a,0 2px 0 #234c38;font-weight:700}
 .mobile-life-skill small{display:block;font-size:10px;opacity:.8;font-weight:400;font-variant-numeric:tabular-nums}
 .mobile-life-icon,.mobile-life-icon .ui-icon{display:block;width:24px;height:24px;flex:0 0 24px}
 .mobile-life-skill .running-dot{position:absolute;right:4px;top:4px;width:5px;height:5px;margin:0;background:#dfbc62;box-shadow:0 0 0 2px #49694460}
 .mobile-life-skill:focus-visible{outline:2px solid #254d39;outline-offset:2px}
 .responsive-game-shell .life-cooking{gap:8px;margin-bottom:12px;padding:4px 8px;min-height:52px}
 .responsive-game-shell .life-cooking-slots{gap:5px}
 .responsive-game-shell .cooking-tabs{gap:6px;margin-bottom:12px}
 .responsive-game-shell .cooking-tabs>button{padding:8px;min-height:40px;font-size:13px}
 .responsive-game-shell .recipe-category-select{width:100%;max-width:none;min-width:0}
 .responsive-game-shell.arena-focus-shell .arena-state-board{flex:0 0 auto;max-height:25dvh}
 .responsive-game-shell.arena-focus-shell .arena-stage .arena-battlefield{flex:1 1 auto;min-height:220px}
 .responsive-game-shell.arena-focus-shell .arena-actor.is-front{--portrait:82px}
 .responsive-game-shell.arena-focus-shell .arena-actor.enemy.is-front{--portrait:58px}
 .responsive-game-shell .dd-stage .dd-battlefield{height:clamp(320px,40dvh,360px)}
 .responsive-game-shell .dd-stage-unit{--figure-size:80px;--unit-width:100px}
 .responsive-game-shell .dd-stage-unit.enemy{--figure-size:48px;--unit-width:78px}
 .responsive-game-shell .dd-room-toolbar{font-size:11px;gap:6px;flex-wrap:wrap}
 .responsive-game-shell .dd-room-toolbar button{font-size:11px;padding:6px 8px;min-height:34px}
 .responsive-game-shell input,.responsive-game-shell select,.task-dialog input,.task-dialog select{font-size:16px}
 .responsive-game-shell .auction-layout,.responsive-game-shell .pet-guide-layout{grid-template-columns:minmax(0,1fr)}
 .responsive-game-shell .auction-checkout{grid-template-columns:repeat(2,minmax(0,1fr))}
 .responsive-game-shell .auction-checkout button{grid-column:1/-1}
 .responsive-game-shell .auction-items{max-height:240px}
 .responsive-game-shell .pet-guide-toolbar{flex-wrap:wrap;min-width:0}
 .responsive-game-shell .pet-guide-toolbar input{min-width:0;width:100%}
 .responsive-game-shell .vessel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .responsive-game-shell .vessel-card{min-width:0;padding:12px 6px}
 .responsive-game-shell .dd-controls{flex-wrap:wrap;gap:8px}
 .responsive-game-shell .dd-roster-grid{grid-template-columns:minmax(0,1fr)}
 .responsive-game-shell .dd-stage{min-width:0;max-width:100%}
 .task-dialog[open],.idle-dialog[open]{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:14px;border-radius:15px}
 body:has(.responsive-game-shell) .admin-tools{bottom:calc(68px + env(safe-area-inset-bottom));right:12px;z-index:25}
 body:has(.responsive-game-shell) .admin-tools-panel{max-height:calc(100dvh - 180px)}
 body:has(.responsive-game-shell) .reward-layer{top:116px;right:12px;max-width:calc(100vw - 24px);pointer-events:none}
 body:has(.responsive-game-shell .menu-rail[aria-modal=true]) .admin-tools,body:has(.responsive-game-shell .menu-rail[aria-modal=true]) .reward-layer{visibility:hidden;pointer-events:none}
 .responsive-game-shell.arena-focus-shell .mobile-game-dock{display:none}
}
@media(min-width:520px) and (max-width:760px){.responsive-game-shell .manufacturing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){
 .responsive-game-shell .activity{grid-template-columns:minmax(0,1fr) auto}
 .responsive-game-shell .activity-companion{display:none}
 .mobile-context-bar small{display:none}
 .responsive-game-shell .header-queue-controls button{font-size:10px;padding:5px}
}

/* Shared compact cells for gathering and crafting, including narrow work panes. */
.manufacturing-view .manufacturing-grid{
 grid-template-columns:repeat(auto-fill,minmax(min(112px,100%),1fr));
 grid-auto-rows:112px;
 gap:8px;
 margin-top:12px;
}
.manufacturing-view .manufacturing-card{
 box-sizing:border-box;
 display:grid;
 grid-template-rows:48px 42px;
 justify-items:center;
 align-content:center;
 width:100%;
 height:112px;
 min-height:0;
 min-width:0;
 padding:6px;
 gap:4px;
 border-radius:12px;
}
.manufacturing-view .manufacturing-card .manufacturing-icon,
.manufacturing-view .manufacturing-card .manufacturing-icon .ui-icon{
 width:48px;
 height:48px;
 padding:0;
}
.manufacturing-view .manufacturing-card .manufacturing-icon img,
.manufacturing-view .manufacturing-card .manufacturing-icon .game-art{
 width:100%;
 height:100%;
 object-fit:contain;
}
.manufacturing-view .manufacturing-name{
 display:flex;
 flex-direction:column;
 justify-content:center;
 width:100%;
 min-width:0;
 max-height:42px;
 overflow:hidden;
 font-size:12px;
 line-height:15px;
}
.manufacturing-view .recipe-unlock{
 flex-shrink:0;
 font-size:10px;
 line-height:12px;
}

/* Four forge sections share cooking tab styling, in one equal-width row. */
.cooking-tabs.forging-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.cooking-tabs.forging-tabs>button{padding-inline:6px}
.alchemy-input-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.alchemy-input-heading>span{display:flex;align-items:center;gap:6px}.alchemy-input-heading input{min-width:0;max-width:220px}.alchemy-fragment-choice{display:grid;gap:8px;margin-bottom:12px}.renewal-dialog{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #a99466;border-radius:16px;background:#f9f6e8;color:#31483e;padding:20px;box-shadow:0 16px 60px #10291e70}.renewal-dialog::backdrop{background:#10231bd1}.renewal-dialog label{display:grid;gap:8px}.renewal-dialog p{line-height:1.65}.renewal-pet{display:flex;justify-content:center;height:110px;margin:12px 0}.renewal-pet img{max-width:110px;max-height:110px;object-fit:contain}.renewal-dialog .planner-actions{margin-top:16px}@media(max-width:600px){.alchemy-input-heading{align-items:stretch;flex-direction:column}.alchemy-input-heading input{max-width:none;width:100%}.alchemy-view .manufacturing-name{overflow-wrap:anywhere}}
.alchemy-view{container-type:inline-size}.alchemy-workshop{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(300px,1.1fr);margin-top:14px;border:1px solid #a7a47c;border-radius:14px;background:#faf6e8;box-shadow:0 3px 0 #58705420;overflow:hidden}.alchemy-setup,.alchemy-result{padding:20px;min-width:0}.alchemy-setup{background:#dfe5c771;border-right:1px solid #c9c5a4}.alchemy-input-summary{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:start;gap:13px;margin-bottom:26px}.alchemy-input-summary p{line-height:1.6;margin:6px 0}.alchemy-input-summary strong{color:#3e5845;overflow-wrap:anywhere}.alchemy-input-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;width:90px;min-height:100px;padding:7px;border:2px dashed #9caa82;border-radius:9px;background:#f2f1df;color:#596d52}.alchemy-input-slot>span:first-child:not(.ui-icon){font-size:27px;line-height:1.1}.alchemy-input-slot.filled{border-style:solid}.alchemy-input-slot .ui-icon{width:70px;height:70px}.alchemy-input-slot>strong{font-size:12px}.alchemy-repeat{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:13px}.alchemy-repeat label{margin-right:2px}.alchemy-repeat input{width:90px;min-width:0}.alchemy-repeat button{min-width:40px}.alchemy-repeat button[aria-pressed=true]{background:#52735a;color:#fff8df}.alchemy-actions{margin-top:14px}.alchemy-actions button{min-width:0}.alchemy-warning{font-size:12px;color:#963e32;line-height:1.6}.alchemy-notice{font-size:12px;color:#365f41}.alchemy-result{display:flex;flex-direction:column;gap:15px;font-size:13px}.alchemy-detail-row{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;align-items:start}.alchemy-detail-row>span{color:#7a6d52}.alchemy-detail-row strong{color:#3d5e42;overflow-wrap:anywhere}.alchemy-cost-list,.alchemy-outcomes{display:grid;gap:8px;min-width:0}.alchemy-cost-row{display:grid;grid-template-columns:minmax(70px,1fr) 24px minmax(60px,1fr);align-items:center;gap:6px;font-size:12px}.alchemy-cost-row>.ui-icon,.alchemy-outcome>.ui-icon{width:24px;height:24px}.alchemy-cost-row .material-shortage{color:#a34032}.alchemy-outcome{display:grid;grid-template-columns:24px minmax(58px,1fr) max-content max-content;align-items:center;gap:5px;font-size:12px}.alchemy-outcome>span{min-width:0;overflow-wrap:anywhere}.alchemy-result-note{font-size:11px;color:#786b50;line-height:1.7;margin:0}.alchemy-result-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:190px;text-align:center;color:#7c805e;line-height:1.6;font-size:13px}.alchemy-result-empty>.ui-icon{width:55px;height:55px;margin-bottom:12px;opacity:.75}.alchemy-result-empty p{margin:3px 0}.alchemy-input-picker{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:14px;border:2px solid #a0aa81;border-radius:12px;background:#f5f1df;color:#36503e;box-shadow:0 12px 35px #132c2650;overflow:auto;box-sizing:border-box}.alchemy-input-picker:popover-open{display:flex;flex-direction:column;gap:10px}.alchemy-picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.alchemy-picker-head button{min-height:36px;min-width:36px;padding:0;font-size:20px}.alchemy-input-picker>input{width:100%;min-width:0}.alchemy-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:7px;max-height:300px;overflow:auto;padding:2px}.alchemy-picker-item{position:relative;min-width:0;min-height:59px;padding:3px 3px 13px;background:#e6e8ce;border:1px solid #b1b88f;border-radius:6px}.alchemy-picker-item .ui-icon{width:40px;height:40px}.alchemy-picker-item>strong{position:absolute;bottom:2px;right:3px;font-size:11px;line-height:1.2;color:#34523a;max-width:100%;overflow-wrap:anywhere}.alchemy-picker-item.selected{outline:2px solid #557e4f;outline-offset:-2px;background:#d2deb5}.alchemy-input-picker p{margin:0;font-size:11px;line-height:1.5}@container(max-width:600px){.alchemy-workshop{grid-template-columns:minmax(0,1fr)}.alchemy-setup{border-right:0;border-bottom:1px solid #c9c5a4}.alchemy-input-summary{margin-bottom:16px}}@media(max-width:600px){.alchemy-workshop{grid-template-columns:minmax(0,1fr)}.alchemy-setup{border-right:0;border-bottom:1px solid #c9c5a4}.alchemy-setup,.alchemy-result{padding:15px}.alchemy-detail-row{grid-template-columns:66px minmax(0,1fr)}.alchemy-repeat input{font-size:16px}.alchemy-input-picker>input{font-size:16px}}
.alchemy-workshop .alchemy-actions button{min-width:0}
.recovery-settings{display:grid;gap:10px;font-size:13px;line-height:1.6}.recovery-settings p{margin:0}.recovery-settings>a,.recovery-settings>button{display:inline-block;padding:9px 12px;border:1px solid #9aad8a;border-radius:9px;background:#e8efdd;color:#294d3b;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}.recovery-settings-code{display:grid;gap:5px;padding:12px;border:1px solid #b9c7aa;border-radius:9px;background:#f8faef}.recovery-settings-code span{font-size:11px}.recovery-settings-code code{overflow-wrap:anywhere;user-select:all;font:600 12px/1.7 ui-monospace,SFMono-Regular,monospace}
