body.island-page-open> :not(.island-page-shell):not(script):not(style):not(dialog):not(.modal-mask):not(#family-game-bar):not(header){display:none!important}
.island-page-shell{box-sizing:border-box;min-height:100dvh;width:100%;padding:24px max(16px,calc((100% - 960px)/2));background:#1b1e2e;color:#eef1fa;overflow-wrap:anywhere}
.island-page-shell[hidden]{display:none!important}.island-page-nav{margin-bottom:24px}.island-back,.profile-back{box-sizing:border-box!important;min-height:44px!important;width:auto!important;padding:10px 18px!important;background:#40567c!important;border:4px solid #101424!important;color:#eef1fa!important;font:inherit!important;cursor:pointer}
.island-page-shell>[open]{position:static!important;inset:auto!important;transform:none!important;display:block!important;width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;overflow:visible!important;box-sizing:border-box;box-shadow:none!important;border:4px solid #111526!important;padding:20px!important;background:#323d55;color:inherit}
.island-page-shell .dialogbody,.island-page-shell .fb-main{max-height:none!important;overflow:visible!important}.island-page-shell .dialoghead,.island-page-shell .actions{position:static!important}.island-page-shell #cr-close,.island-page-shell [data-close],.island-page-shell #management-close{display:none!important}
.island-page-shell #cr-editor form{max-height:none!important;display:block!important}.island-page-shell .fields,.island-page-shell .task-fields{min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))!important}.island-page-shell input,.island-page-shell select{min-width:0;max-width:100%;box-sizing:border-box}
.child-task-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:14px!important;align-items:center}.child-task-toolbar h2{margin:0!important}.child-task-toolbar>.green{grid-column:1/-1;grid-row:2;width:100%!important}.task-history-link{border:0!important;background:none!important;box-shadow:none!important;color:#adc0d4!important;padding:8px 0!important;margin:0!important;width:auto!important;min-height:44px;font:inherit!important;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.island-page-shell .section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.island-page-shell .section-head h3{flex:1;margin:0;min-width:0}.task-primary{display:block;width:100%!important;margin:18px 0!important;min-height:52px}.task-tabs{display:flex!important;gap:8px;flex-wrap:wrap}.task-tabs button{width:auto!important;flex:1;min-width:100px}.task-manage-card{padding:16px;margin:12px 0;border:3px solid #141a29;background:#252e43}.task-manage-card p{font-family:Arial,sans-serif;line-height:1.65;font-size:15px}.island-page-shell button{max-width:100%}.island-page-shell .task-actions button{width:auto}.island-page-shell #management-title{font-size:14px;color:#adbdcc;margin-bottom:16px}.island-page-shell #child-management>.section-head{display:none}.island-page-shell .task-mode,.island-page-shell #cr-editor .modes label{display:inline-flex;position:relative;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:3px solid #141a29;background:#40567c;color:#fff;cursor:pointer}.island-page-shell .task-mode:has(input[name=hard]:checked),.island-page-shell #cr-editor .modes label:has(#cr-hard:checked){background:#c99727;color:#171b28}.island-page-shell .task-mode:has(input[name=reading]:checked),.island-page-shell #cr-editor .modes label:has(#cr-reading:checked){background:#32b568;color:#10241b}.island-page-shell .task-mode input,.island-page-shell #cr-editor .modes input{position:absolute;opacity:0;width:1px;height:1px}.island-page-shell label:focus-within{outline:2px solid #ffd277;outline-offset:2px}
.profile-rank-row .subj{flex:0 0 3.3em!important;width:3.3em!important;min-width:3.3em!important;padding:0!important;border:0!important;background:none!important;text-align:center!important;font-size:16px!important;white-space:nowrap}.profile-rank-row .name{min-width:0}.gift-letter-body a{color:#ffd070!important}.gift-letter-signature{text-align:right!important}
dialog .close,dialog [aria-label^="关闭"],.lighthouse-close{min-width:44px!important;min-height:44px!important}
.island-page-shell #island-feedback-dialog .fb-support{padding:14px!important}.island-page-shell .fb-support-code{max-width:min(240px,100%)!important;max-height:48dvh;object-fit:contain;width:auto!important}.island-page-shell .fb-support-icon{display:none}.island-page-shell #island-feedback-dialog{max-width:640px!important;margin:auto!important}.island-page-shell .fb-support h2{margin:8px 0!important}.island-page-shell .fb-support-code-large{max-width:100%;height:auto}.island-page-shell [data-back]{display:none!important}
@media(max-width:480px){.island-page-shell{padding:16px 12px}.island-page-shell>[open]{padding:14px!important}.child-task-toolbar h2{font-size:21px}.task-history-link{font-size:14px!important}.profile-rank-row .subj{font-size:13px!important}}

.island-page-shell .fb-coffee,.island-page-shell [data-support-back],.island-page-shell [data-support-return]{display:none!important}.island-page-shell .release-page .modal{width:100%;max-width:none;border:0;box-shadow:none;background:none}

/* The persistent child toolbar is the single back control for legacy screens. */
#btn-dex-back,#btn-rank-back,#btn-treasure-back,#btn-armory-back,#btn-setup-back{display:none!important}
#family-nav-back{min-height:44px;background:#40567c;border:4px solid #101424;color:#eef1fa}
.island-page-shell:has(#parent-tasks),.island-page-shell:has(.task-editor),.island-page-shell:has(#parent-task-history){background:#192e33}.island-page-shell #parent-tasks,.island-page-shell .task-editor,.island-page-shell #parent-task-history{background:#2e484d}.island-page-shell #parent-tasks .task-manage-card{background:#233e44}.island-page-shell .task-editor{font-family:Arial,sans-serif}.island-page-shell #parent-tasks .task-primary{background:#468681}.island-page-shell .task-tabs button{padding:10px;font:inherit}.island-page-shell .hint:empty{display:none}

body.island-page-open{padding:0!important;margin:0!important}.island-page-shell .fb-support h2{display:none}.island-page-shell .fb-support-tagline{margin:4px 0 10px!important}.island-page-shell .fb-support-note{margin:8px 0 0!important}.island-page-shell .fb-main{padding:12px!important}.island-page-shell .fb-head{padding:10px!important}.island-page-shell:has(#island-feedback-dialog)>.island-page-nav{max-width:640px;margin:0 auto 14px}.island-page-shell .modal{max-width:none!important;width:100%;border:0;box-shadow:none;padding:0!important}.island-page-shell #cloud-cancel{display:none}

/* Keep live identity controls and their authorization handlers in the original top bar. */
body.island-page-open:has(#family-game-bar){padding-top:var(--family-nav-height,70px)!important}
body.island-page-open #family-nav-back,body.island-page-open #standalone-back{display:none!important}
.island-page-shell .plan-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.island-page-shell .plan-actions button{width:100%!important;margin:0;min-width:0;padding:10px}
.profile-scope-row{justify-content:flex-end}

body.island-profile-open:has(#family-game-bar){padding-top:var(--family-nav-height,70px)!important}
body.island-profile-open>#family-game-bar{display:flex!important}
body.island-profile-open:not(.embedded-game)>header{display:flex!important}
body.island-profile-open #family-nav-back,body.island-profile-open #standalone-back{display:none!important}
body:has(#family-game-bar) .profile-topbar,body:has(#standalone-role) .profile-topbar,body.embedded-game .profile-topbar{display:none!important}
