/* features/pass-plan-edit.css: the Edit your plan sheet (features/pass-plan-edit.js), inside #ist-sheet: a bottom sheet on
   phones, a centred window at 900px and up. The answers look like the first run's (first-run.css .onb-goal-opt, .onb-chip)
   so the two read as one flow. Brand tokens only; house curve; press feedback only (no new motion: stage 2). */
#ist-sheet .ppe { --ppe-ease: var(--ios-ease, cubic-bezier(0.16, 1, 0.3, 1)); overflow-y: auto; min-height: 0; flex: 1 1 auto; margin: 0 -2px; padding: 0 2px; }
#ist-sheet .ppe-q { margin: 14px 0 8px; font: 650 13.5px/1.3 Inter, sans-serif; color: var(--text); display: flex; align-items: center; gap: 8px; }
#ist-sheet .ppe-opts { display: flex; flex-direction: column; gap: 8px; }
#ist-sheet .ppe-opt { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); text-align: left; font: 600 15px/1.3 Inter, sans-serif;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: transform .12s var(--ppe-ease), border-color .18s var(--ppe-ease), background-color .18s var(--ppe-ease); }
#ist-sheet .ppe-opt:active { transform: scale(0.98); }
#ist-sheet .ppe-opt[aria-checked="true"] { border-color: color-mix(in oklab, var(--accent) 55%, var(--border)); background: color-mix(in oklab, var(--accent) 7%, var(--surface)); }
#ist-sheet .ppe-ring { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--text) 22%, var(--border)); box-sizing: border-box;
  transition: border-color .18s var(--ppe-ease), box-shadow .18s var(--ppe-ease); }
#ist-sheet .ppe-opt[aria-checked="true"] .ppe-ring { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 11px var(--accent); }
#ist-sheet .ppe-t { flex: 1; min-width: 0; }
#ist-sheet .ppe-sub { display: block; margin-top: 2px; font: 500 12.5px/1.4 Inter, sans-serif; color: var(--text-mid); }
#ist-sheet .ppe-more:not(:empty) { margin-top: 10px; }
#ist-sheet .ppe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#ist-sheet .ppe-chip { flex: 1 1 calc(50% - 4px); min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
  font: 600 13.5px/1.2 Inter, sans-serif; -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: transform .12s var(--ppe-ease), border-color .18s var(--ppe-ease), background-color .18s var(--ppe-ease); }
#ist-sheet .ppe-more .ppe-chip { flex-basis: calc(33.333% - 6px); }
#ist-sheet .ppe-chip:active:not(:disabled) { transform: scale(0.97); }
#ist-sheet .ppe-chip[aria-checked="true"] { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--accent-deep, var(--accent)); box-shadow: inset 0 0 0 1px var(--accent); }
#ist-sheet .ppe-chip:disabled { cursor: default; opacity: .55; }
#ist-sheet .ppe-chip:disabled[aria-checked="true"] { opacity: .8; }
#ist-sheet :is(.ppe-opt, .ppe-chip, .ppe-date):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#ist-sheet .ppe-date { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface2, var(--surface));
  color: var(--text); font: 600 16px/1.2 Inter, sans-serif; color-scheme: dark; }   /* 16px: iOS does not zoom the page. The picker follows the app's theme, not the computer's: */
html[data-theme="light"] #ist-sheet .ppe-date { color-scheme: light; }
#ist-sheet .ppe-free { margin-top: 10px; border-radius: 12px; padding: 11px 12px; background: color-mix(in oklab, var(--accent) 8%, var(--bg)); font: 500 12.5px/1.45 Inter, sans-serif; color: var(--text-mid); }
#ist-sheet .ppe-free b { color: var(--text); }
#ist-sheet .ppe-preview { margin: 14px 0 0; min-height: 1.45em; font: 600 13.5px/1.45 Inter, sans-serif; color: var(--text); }
#ist-sheet .ppe-preview:empty { display: none; }
/* the two buttons, also on desktop (lift-ios.css, where .ist-pri / .ist-sec live, loads on phones only) */
#ist-sheet .ppe-btn { width: 100%; min-height: 46px; margin-top: 12px; border-radius: 12px; padding: 12px; font: 700 14px/1 Inter, sans-serif; flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .15s var(--ppe-ease); }
#ist-sheet .ppe-btn:active:not(:disabled) { transform: scale(0.985); }
#ist-sheet .ppe-save { border: none; background: var(--accent); color: var(--on-accent, oklch(0.18 0.020 275)); }
/* --on-accent lives in lift-ios.css (phones only): desktop light needs the light label, as .gn-go does */
html[data-theme="light"] #ist-sheet .ppe-save { color: var(--on-accent, oklch(0.99 0.008 85)); }
#ist-sheet .ppe-save:disabled { opacity: .45; cursor: default; }
#ist-sheet .ppe-gopro { margin-top: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-mid); font-weight: 650; }
@media (prefers-reduced-motion: reduce) {
  #ist-sheet :is(.ppe-opt, .ppe-chip, .ppe-btn, .ppe-ring) { transition: none; }
  #ist-sheet :is(.ppe-opt, .ppe-chip, .ppe-btn):active { transform: none; }
}
#ist-sheet .ppe-q .ist-pro-tag { flex: 0 0 auto; font: 800 9px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep, var(--accent)); background: color-mix(in oklab, var(--accent) 12%, var(--surface2, var(--surface))); border-radius: 999px; padding: 4px 7px; }
/* the card's Edit plan row (features/diagnostic.js): its own line under View full plan / Retake, so three buttons never
   squeeze a 390 phone */
.plan-card .pp-edit-row { margin-top: 8px; }
.plan-card .pp-edit-row .btn { width: 100% !important; }
/* desktop window (caDialogFrame, size lg): the two questions side by side, so Save is always in view at 1280x800 */
@media (min-width: 900px) {
  #ist-sheet.is-dialog .ppe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; overflow: visible; }
  #ist-sheet.is-dialog .ppe-q { margin-top: 10px; }
  #ist-sheet.is-dialog .ppe-opt { min-height: 52px; }
  #ist-sheet.is-dialog .ppe-more .ppe-chip { flex-basis: 100%; }
}
