.plan-screen{padding-bottom:calc(32px + env(safe-area-inset-bottom));min-width:0}
html body #app .plan-add-button,html body #app .plan-swipe-row{--iq-gradient:linear-gradient(180deg,#8a29fa 0%,#6726e1 35%,#471ac0 70%,#330a9e 100%)}
html body #app .plan-add-button{background:var(--iq-gradient)!important;color:#fff!important;border:0;border-radius:14px;width:44px;height:44px;padding:0!important;box-shadow:0 4px 12px #471ac02b}
html body #app .plan-add-button .ui-icon{background:none;color:#fff;stroke:#fff!important;margin:0;width:24px;height:24px}
html body #app .plan-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 16px;padding-bottom:8px;overflow:visible}
html body #app .plan-filters .filter-token{min-width:0;padding:0!important;font-size:calc(13px * var(--ui-font-scale,1))!important}
html body #app .plan-filters .filter-token>.chip{background:transparent;color:inherit;border:0;margin:0;font:inherit!important;width:100%;padding:0 4px!important;white-space:nowrap;overflow-wrap:normal}
.plan-swipe-row{position:relative;overflow:hidden;border-radius:20px;touch-action:pan-y}
.plan-swipe-row .plan-task-row{position:relative;z-index:1;transition:transform .22s cubic-bezier(.2,.8,.2,1);touch-action:pan-y}
.plan-swipe-row.swiping .plan-task-row{transition:none}
.plan-swipe-row.open .plan-task-row{transform:translate3d(-184px,0,0)}
.plan-swipe-actions{position:absolute;inset:0 0 0 auto;width:176px;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px 0;visibility:hidden}
.plan-swipe-row.open .plan-swipe-actions{visibility:visible}
html body #app .plan-swipe-actions>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;border:0;border-radius:16px;padding:8px 3px;color:#fff!important;background-repeat:no-repeat;box-shadow:0 3px 10px #0002;font:inherit;font-size:12px;line-height:1.2}
html body #app .plan-swipe-actions>.plan-swipe-delete{background:var(--iq-gradient)!important}
html body #app .plan-swipe-actions>.plan-swipe-pin{background:var(--emerald-gradient,linear-gradient(180deg,#36dfad 0%,#12b98b 35%,#0b8060 70%,#064d3c 100%))!important}
html body #app .plan-swipe-actions .ui-icon{width:24px;height:24px;margin:0;background:none;stroke:#fff!important}
.plan-swipe-actions button:focus-visible,.plan-add-button:focus-visible{outline:2px solid var(--text);outline-offset:-3px}
.plan-task-copy .plan-pinned-label{color:var(--green);font-weight:600}
html body #app .plan-task-edit{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;align-self:center;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--green);box-shadow:none}
html body #app .plan-task-edit .ui-icon{width:24px;height:24px;margin:0;background:none;stroke:currentColor!important}
.plan-task-edit:focus-visible{outline:2px solid var(--text);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.plan-swipe-row .plan-task-row{transition:none}}
.plan-task-row{cursor:default}
html body .plan-task-row .plan-checkbox{position:relative;padding:0;flex:0 0 50px;width:50px;height:50px;min-width:50px;min-height:50px;align-self:flex-start;color:var(--muted);background:transparent;border:0;box-shadow:none;cursor:pointer;line-height:1;border-radius:14px;overflow:visible}
html body .plan-task-row .plan-checkbox::before{content:"";position:absolute;inset:11px;border:2px solid currentColor;border-radius:7px;box-sizing:border-box}
html body .plan-task-row.is-completed .plan-checkbox{color:var(--green);background:transparent;box-shadow:none}
html body .plan-task-row.is-completed .plan-checkbox::before{display:none}
html body #app .plan-task-row.is-completed .plan-checkbox .ui-icon{position:relative;width:48px;height:48px;max-width:none;background:none;color:var(--green);stroke:var(--green)!important;stroke-width:4px}
.plan-checkbox:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.plan-checkbox .ui-icon{width:18px;height:18px;stroke:currentColor}
.plan-task-copy strong{max-height:none;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset}
.plan-add{margin-bottom:24px;min-height:48px}
.plan-group{margin:0 0 28px}.plan-group h3{margin:0 0 12px;font-size:18px}
.plan-list{display:grid;gap:var(--card-stack-gap, 12px)}.plan-task-row{display:flex;align-items:flex-start;gap:14px;width:100%;padding:16px;border:1px solid var(--border);border-radius:20px;background:var(--panel);color:var(--text);text-align:left;min-height:64px;box-shadow:var(--surface-depth-shadow,0 4px 14px #0001)}
.plan-checkbox{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:2px solid var(--muted);border-radius:7px;font-size:19px;font-weight:750;margin-top:1px}
.is-completed .plan-checkbox{color:var(--green);border-color:var(--green);background:color-mix(in srgb,var(--green) 12%,transparent)}
.plan-task-copy{display:grid;gap:6px;min-width:0;flex:1}.plan-task-copy strong{font-size:16px;line-height:1.45;font-weight:600;overflow-wrap:anywhere;white-space:normal}.plan-task-copy small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.is-completed .plan-task-copy strong{color:var(--muted)}
.plan-sheet{max-height:85dvh;overflow-y:auto;overscroll-behavior:contain}.plan-actions{display:grid;gap:10px}.plan-actions button,.plan-case-option{min-height:48px}.plan-order{display:grid;grid-template-columns:1fr 1fr;gap:10px}.plan-order button:disabled{opacity:.4}.plan-menu-title{overflow-wrap:anywhere;white-space:normal}
.plan-field{display:grid;gap:10px;margin:18px 0;color:var(--text);font-weight:600}.plan-field small{font-weight:400;color:var(--muted)}.plan-field textarea{box-sizing:border-box;width:100%;min-height:112px;resize:vertical;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--panel);color:var(--text);font:inherit;font-size:16px;line-height:1.5}.plan-case-button{display:flex;justify-content:space-between;gap:12px;white-space:normal;text-align:left;overflow-wrap:anywhere}.plan-case-list{display:grid;gap:10px;margin-bottom:16px}.plan-case-option{text-align:left;display:grid;gap:6px;white-space:normal}.plan-case-option strong{overflow-wrap:anywhere}.plan-case-option small{color:var(--muted)}.plan-form-error{color:var(--muted);font-size:14px}.plan-empty{padding:32px 18px}
.plan-home-card .plan-home-count{font:inherit;font-size:inherit}.plan-home-card .stat strong{display:block}.plan-home-card .stat{white-space:normal}
.plan-delete-actions .secondary{color:var(--danger-outline-text)!important;border-color:var(--danger-outline-border)!important;background:transparent!important}
html body #sheetRoot .plan-case-button{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 16px}
html body #sheetRoot .plan-case-button>span{min-width:0;overflow-wrap:anywhere}
html body #sheetRoot .plan-case-button>b{flex:none;line-height:1}
html body #sheetRoot #planTaskForm .plan-actions{gap:6px}
html body #sheetRoot #planTaskForm .plan-actions>button{margin:0}
html body #sheetRoot .plan-case-option{display:block;width:100%;min-width:0;text-align:left;white-space:normal}
html body #sheetRoot .plan-case-option .case-preview-layout{width:100%;min-width:0}
html body #sheetRoot .plan-case-option .case-preview-title{white-space:normal;overflow-wrap:anywhere}
html body #sheetRoot .plan-case-list>[data-plan-action="unlink"]{background:linear-gradient(135deg,#8465ff,#6245e5);color:#fff;border-color:#937cff;opacity:1}
/* Case count never changes the picker frame; only its list scrolls. */
html body #sheetRoot .plan-sheet[data-plan-stage="picker"]{box-sizing:border-box;height:min(460px,85dvh);max-height:85dvh;display:flex;flex-direction:column;overflow:hidden}
html body #sheetRoot .plan-sheet[data-plan-stage="picker"]>.grabber,
html body #sheetRoot .plan-sheet[data-plan-stage="picker"]>h2{flex-shrink:0}
html body #sheetRoot .plan-sheet[data-plan-stage="picker"]>.plan-case-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-content:start;grid-auto-rows:max-content;margin-bottom:0;padding:4px 4px 12px}
/* Keep the Plan counter compact and in the calculator green accent. */
html body.home-route :is(#app .home-cards,.home-cards.home-drag-layer) > .plan-home-card[data-home-card] .home-card-recommendation-stat > span {
  color:#70d9b1;
  font-size:calc(var(--text-md) * .91);
  font-weight:var(--weight-semibold);
  line-height:var(--leading-tight);
}

/* Plan confirmation choices share Button 2 geometry and typography. */
html body #sheetRoot .sheet.plan-sheet .plan-delete-actions > button {
  display:flex;align-items:center;justify-content:center;
  min-height:48px !important; padding:var(--space-3) 10px !important;
  border-radius:var(--radius-md) !important;
  font-family:inherit; font-size:var(--text-md) !important;
  font-weight:var(--weight-semibold) !important; line-height:var(--leading-tight) !important;
}
html body #sheetRoot .plan-sheet .plan-delete-actions > button.danger {
  border:0 !important; border-image:none !important; box-shadow:none !important;
}
