html body #plannerPageV1126#plannerPageV1126[data-planner-theme]{background:var(--p1126-bg)!important;color:var(--p1126-ink)!important;--p741-ink:var(--p1126-ink);--p741-muted:var(--p1126-ink)}
html body #plannerPageV1126#plannerPageV1126[data-planner-theme] :is(.widget-v741,.people-v741,.p1126-card){background:var(--p1126-card)!important;color:var(--p1126-ink)!important;border-color:color-mix(in srgb,var(--p1126-ink) 35%,transparent)!important}
html body #plannerPageV1126#plannerPageV1126[data-planner-theme] :is(h1,h2,h3,p,strong,label,.task-title-v741,.completed-v741,.empty-v741,.week-events-v741,.today-list-v741){color:var(--p1126-ink)!important;-webkit-text-fill-color:var(--p1126-ink)!important}
html body #plannerPageV1126#plannerPageV1126[data-planner-theme] :is(input,select){background:#f4f5f8!important;color:#191b22!important;-webkit-text-fill-color:#191b22!important}
html body #plannerPageV1126#plannerPageV1126[data-planner-theme] button:not(.family-person1180):not(.weather-summary1178):not(.alert-star-v741):not(.planner-save-v746):not(#plannerThemeV1126){background:linear-gradient(135deg,#fff,#bfc7d2)!important;color:#191b22!important;-webkit-text-fill-color:#191b22!important}
html body #plannerPageV1126#plannerPageV1126[data-planner-theme] .task-title-v741{background:transparent!important;color:var(--p1126-ink)!important;-webkit-text-fill-color:var(--p1126-ink)!important}
.planner-extras-v1126{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px;padding-bottom:12px}
html body .planner-extras-v1126 .p1126-card{padding:18px!important;margin:0!important;min-width:0;border:1px solid #929baa;border-radius:20px;box-shadow:0 6px 16px #0003}
.p1126-card h2{margin:0 0 15px}.p1126-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.p1126-card label{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.p1126-card input,.p1126-card select{max-width:100%;width:125px;min-width:0;border:1px solid #8b93a2;border-radius:9px;padding:9px;box-sizing:border-box;font:inherit}.p1126-card input[name=description]{flex:1 1 140px}.p1126-card button{min-height:40px;padding:7px 13px;border-radius:12px;font:600 14px system-ui}.p1126-card progress{width:100%;accent-color:#9255bf}.p1126-card ul{padding:0;list-style:none;max-height:200px;overflow:auto}.p1126-card li{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px 0}.p1126-card [data-clock],.p1126-card [data-timer]{font:600 clamp(22px,4vw,36px) ui-monospace,monospace;display:block;padding:8px 0}
html body #plannerThemeV1126{position:absolute!important;right:18px!important;bottom:170px!important;width:62px!important;height:62px!important;border-radius:50%!important;border:2px solid #b294df!important;background:radial-gradient(at 32% 25%,#b980f1,#301350 55%,#09091d)!important;color:white!important;font-size:28px!important;padding:0!important;z-index:10!important}
.p1126-theme-dialog{width:min(420px,85vw);max-height:80dvh;overflow:auto;border:2px solid #b69bd2;border-radius:20px;padding:24px;background:#20182e;color:#fff;z-index:20000}.p1126-theme-dialog::backdrop{background:#090411aa}.p1126-theme-dialog button{display:block;width:100%;padding:14px;margin:8px 0;border:1px solid #bfa8d3;border-radius:12px;font:600 16px system-ui}.p1126-theme-dialog h2,.p1126-theme-dialog p{color:white!important}
html body .planner-shell-v741[data-planner-theme=snake]{background:repeating-radial-gradient(ellipse at 0 0,#284033 0 8px,#15291d 9px 15px)!important}
html body .planner-shell-v741[data-planner-theme=nebula]{background:radial-gradient(ellipse at 25% 35%,#5e297780,transparent 48%),radial-gradient(ellipse at 80% 70%,#402b6880,transparent 50%),#140b24!important}
@media(max-width:700px){.planner-extras-v1126{grid-template-columns:1fr}}

html body #plannerPageV1126#plannerPageV1126[data-planner-theme] .tablet-screen-v741{background:var(--p1126-bg)!important;color:var(--p1126-ink)!important;height:auto!important;overflow:visible!important}
html body #plannerPageV1126 .tablet-v741{height:auto!important}
html body #plannerPageV1126 #plannerGridV741{padding-bottom:0!important}
html body #plannerPageV1126 .planner-extras-v1126{padding-bottom:12px!important}
html body #plannerPageV1126#plannerPageV1126[data-planner-theme] :is(span,small,li,summary,time,output){color:inherit!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}

/* One column and consistent hit areas for planner controls. */
html body #plannerPageV1126 :is(#plannerThemeV1126,.alert-star-v741,.planner-save-v746){right:18px!important;width:62px!important;height:62px!important;min-width:0!important;margin:0!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;padding:0!important}
html body #plannerPageV1126 #plannerThemeV1126{bottom:170px!important}
html body #plannerPageV1126 .alert-star-v741{bottom:94px!important}
html body #plannerPageV1126 .planner-save-v746{bottom:18px!important}
@media(max-width:760px){html body #plannerPageV1126 :is(#plannerThemeV1126,.alert-star-v741,.planner-save-v746){right:12px!important;width:56px!important;height:56px!important}html body #plannerPageV1126 #plannerThemeV1126{bottom:152px!important}html body #plannerPageV1126 .alert-star-v741{bottom:84px!important}html body #plannerPageV1126 .planner-save-v746{bottom:16px!important}}

/* Content flows above the companion and actions; no overlay spacer. */
html body #plannerPageV1126{padding-top:14px;padding-bottom:16px;min-height:0}
html body #plannerPageV1126 .tablet-screen-v741{gap:12px}
html body #plannerPageV1126 #plannerGridV741{flex:0 0 auto;overflow:visible}
html body #plannerPageV1126 .planner-extras-v1126{margin-top:0}
html body #plannerPageV1126 .planner-rewards{margin:0;padding:18px;background:var(--p1126-card)!important;color:var(--p1126-ink)!important}
html body #plannerPageV1126 .planner-bottom-v1138{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:12px;flex:none;border-top:1px solid #8d859666;padding:12px 0 0;min-width:0}
html body #plannerPageV1126 .planner-toolbar-v1138{display:flex;justify-content:flex-end;gap:12px;flex:none}
html body #plannerPageV1126 .planner-toolbar-v1138 :is(#plannerThemeV1126,.alert-star-v741,.planner-save-v746){position:static!important;inset:auto!important;transform:none!important;flex:0 0 56px;width:56px!important;height:56px!important}
html body #plannerPageV1126 .planner-bottom-v1138 .planner-duo-scene-v816{position:relative!important;inset:auto!important;align-self:flex-start;flex:none;width:218px!important;height:204px!important;margin:20px 20px 0!important;max-width:calc(100% - 40px);isolation:isolate}
html body #plannerPageV1126 .planner-bottom-v1138{overflow:hidden;border-radius:12px}
html body #plannerPageV1126 .reward-album article,html body #plannerPageV1126 .reward-goals article{background:var(--p1126-card);color:var(--p1126-ink)}
/* Explicit viewport positioning keeps the native top-layer sheet visible after scrolling. */
html body dialog#plannerThemeDialogV1138#plannerThemeDialogV1138{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;translate:none!important;width:min(460px,calc(100vw - 24px))!important;height:fit-content!important;max-height:calc(100dvh - 32px)!important;max-width:calc(100vw - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain;padding:20px!important;box-sizing:border-box;visibility:visible!important;opacity:1!important;background:#20182e!important;color:#fff!important;z-index:2147483647!important}
html body dialog#plannerThemeDialogV1138#plannerThemeDialogV1138:not([open]){display:none!important}
html body dialog#plannerThemeDialogV1138#plannerThemeDialogV1138[open]{display:block!important}
html body #plannerThemeDialogV1138#plannerThemeDialogV1138 .p1126-theme-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html body #plannerThemeDialogV1138#plannerThemeDialogV1138 button{background:#eee8f7!important;color:#20182e!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;box-shadow:none!important;min-height:44px}
html body #plannerThemeDialogV1138#plannerThemeDialogV1138 button[data-planner-choice]{position:relative;margin:0;display:grid;gap:8px;background:var(--choice-bg)!important;color:var(--choice-ink)!important;border:2px solid #ad98c0!important;text-align:left}
html body #plannerThemeDialogV1138#plannerThemeDialogV1138 button[data-planner-choice] span{color:inherit!important;-webkit-text-fill-color:currentColor!important}
html body #plannerThemeDialogV1138#plannerThemeDialogV1138 button[aria-pressed=true]{border-color:#fff!important;outline:2px solid #b685ef!important;outline-offset:1px}
.p1126-theme-preview{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:6px;height:54px}.p1126-theme-preview i{background:var(--choice-card);border-radius:4px}.p1126-theme-preview i:first-child{grid-column:1/-1}
.p1126-theme-check{position:absolute;right:7px;top:4px;font-size:20px;visibility:hidden}[aria-pressed=true]>.p1126-theme-check{visibility:visible}
html body #plannerThemeDialogV1138#plannerThemeDialogV1138 h2{margin:0 0 8px}html body #plannerThemeDialogV1138#plannerThemeDialogV1138 p{margin:0 0 16px}
@media(max-width:600px){html body #plannerPageV1126 .tablet-screen-v741{padding:12px 10px}html body #plannerPageV1126 .planner-rewards{padding:14px}html body dialog#plannerThemeDialogV1138#plannerThemeDialogV1138{inset:auto 0 max(12px,env(safe-area-inset-bottom))!important;margin:0 auto!important;border-radius:22px!important}}
@media(orientation:landscape) and (max-height:600px){html body dialog#plannerThemeDialogV1138#plannerThemeDialogV1138{max-height:calc(100dvh - 16px)!important;padding:14px!important}.p1126-theme-preview{height:32px}}
