/* House Stack Pro "Add to home screen" sheet. Shared by the dashboard and the studio, so it brings its own tokens
   and every rule is scoped to .pwa-sheet. */
.pwa-sheet { --paper: #fff; --line: #e5e5ea; --mist: #f6f6f7; --ink: #111111; --ink-2: #3a3a3f; --ink-3: #6b6b72;
  --display: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif; --text: 'Plus Jakarta Sans', system-ui, sans-serif; font-family: var(--text); color: var(--ink); }
.pwa-head h2 { font-weight: 700; letter-spacing: 0; }
.pwa-add { background: #F97316; box-shadow: 0 4px 0 #C2410C; }
.pwa-add:hover { background: #EA580C; }
.pwa-add svg { color: #fff; }

.pwa-sheet { position: fixed; inset: 0; z-index: 80; }
.pwa-sheet[hidden] { display: none; }
.pwa-scrim { position: absolute; inset: 0; background: rgba(17,17,17,.5); opacity: 0; transition: opacity .25s; }
.pwa-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 22px 22px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px -20px rgba(17,17,17,.45); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.pwa-sheet.on .pwa-scrim { opacity: 1; }
.pwa-sheet.on .pwa-panel { transform: none; }
.pwa-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.pwa-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); font: 400 22px/1 system-ui; cursor: pointer; display: grid; place-items: center; }
.pwa-head { display: flex; gap: 14px; align-items: center; margin: 6px 40px 18px 0; }
.pwa-head svg { flex: none; }
.pwa-head h2 { font: 800 22px/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 3px; }
.pwa-head p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.pwa-ico { display: block; border-radius: 12px; }
.pwa-choices { display: grid; gap: 10px; }
.pwa-choice { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pwa-choice:hover, .pwa-choice:focus-visible, .pwa-choice.picked { border-color: #ffc53d; box-shadow: 0 0 0 4px rgba(255,197,61,.18); }
.pwa-choice:active { transform: scale(.99); }
.pwa-choice b { display: block; font: 700 16px/1.2 var(--display); color: var(--ink); }
.pwa-choice small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.pwa-choice em { font: 800 11px/1 var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #111111; background: #ffc53d; padding: 6px 9px; border-radius: 999px; }
.pwa-main { background: linear-gradient(180deg, #fff8e6, #fff); }
.pwa-sub { margin: 18px 0 8px; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pwa-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px 4px; }
.pwa-mini { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 6px; padding: 6px 2px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; }
.pwa-mini:hover, .pwa-mini:focus-visible, .pwa-mini.picked { background: var(--mist); }
.pwa-mini .pwa-ico { border-radius: 11px; box-shadow: 0 6px 14px -8px rgba(17,17,17,.5); }
.pwa-ios { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--mist); }
.pwa-ios[hidden] { display: none; }
.pwa-ios-title { margin: 0 0 10px; font-weight: 700; }
.pwa-ios ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pwa-ios li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pwa-ios li svg { vertical-align: -4px; }
.pwa-step { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #111111; color: #fff; display: grid; place-items: center; font: 700 12px/1 var(--display); }
.pwa-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.pwa-note:empty, .pwa-note[hidden] { display: none; }
@media (min-width: 821px) {
  .pwa-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 480px; border-radius: 22px; padding: 26px; transform: translate(-50%, -46%); opacity: 0; transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s; }
  .pwa-sheet.on .pwa-panel { transform: translate(-50%, -50%); opacity: 1; }
  .pwa-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pwa-panel, .pwa-scrim { transition: none; } }
/* Pick, then one Add button pinned at the bottom of the sheet. */
.pwa-panel { padding-bottom: 0; }
.pwa-foot { position: sticky; bottom: 0; margin: 14px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
.pwa-add { all: unset; box-sizing: border-box; width: 100%; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: #111111; color: #fff; font: 700 16px/1 var(--display); box-shadow: 0 12px 26px -12px rgba(17,17,17,.7); transition: transform .15s, background .15s; }
.pwa-add:hover { background: #130d22; }
.pwa-add:active { transform: scale(.985); }
.pwa-add:focus-visible { outline: 3px solid #ffc53d; outline-offset: 3px; }
.pwa-add svg { color: #ffc53d; }
.pwa-head { margin-bottom: 14px; }
.pwa-sub { margin-top: 14px; }
.pwa-mini.picked { background: #fff3cf; box-shadow: inset 0 0 0 1.5px #ffc53d; }
@media (min-width: 821px) { .pwa-foot { margin: 16px -26px 0; padding: 14px 26px 22px; border-radius: 0 0 22px 22px; } }

/* iPhone: after Add, the sheet steps aside and an arrow points at Safari's Share button. */
.pwa-sheet.coach { pointer-events: none; }
.pwa-sheet.coach .pwa-scrim, .pwa-sheet.coach .pwa-panel { display: none; }
.pwa-coach { position: fixed; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 81; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.pwa-coach[hidden] { display: none; }
.pwa-coach-bubble { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 32px);
  padding: 14px 44px 14px 18px; border-radius: 16px; background: #111111; color: #fff; font: 500 15px/1.35 var(--text); box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); animation: pwa-in .3s cubic-bezier(.2,.7,.2,1); }
.pwa-coach-bubble b { color: #ffc53d; }
.pwa-coach-bubble svg { background: #fff; border-radius: 6px; padding: 2px; }
.pwa-coach-x { all: unset; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #d6cdf0; font: 400 20px/1 system-ui; cursor: pointer; }
.pwa-coach-arrow { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 18px solid #ffc53d; animation: pwa-bob 1s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.pwa-coach.pwa-coach-top { bottom: auto; top: 10px; justify-items: end; padding-right: 60px; }
.pwa-coach.pwa-coach-top .pwa-coach-arrow { order: -1; border-top: 0; border-bottom: 18px solid #ffc53d; margin-right: 20px; }
@keyframes pwa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.pwa-coach-top .pwa-coach-arrow { animation-name: pwa-bob-up; }
@keyframes pwa-bob-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pwa-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .pwa-coach-arrow, .pwa-coach-bubble { animation: none; } }
.pwa-coach-bubble { display: block; text-align: center; }
.pwa-coach-bubble svg { vertical-align: -5px; margin: 0 2px; }
.pwa-add { background: #F97316; box-shadow: 0 4px 0 #C2410C; }
.pwa-add:hover { background: #EA580C; }
.pwa-add svg { color: #fff; }
