/* Starter only: merge these tokens into the destination's authoritative style guide. */
:root {
  --handoff-gutter: 32px;
  --handoff-content-max: 540px;
  --pwa-teal: #075161;
  --pwa-mint: #00d9ae;
  --pwa-ink: #12333b;
  --pwa-bottom-navigation-clearance: env(safe-area-inset-bottom, 0px);
}
.handoff-screen { box-sizing: border-box; width: 100%; padding-inline: var(--handoff-gutter); }
.handoff-content { box-sizing: border-box; width: 100%; max-width: var(--handoff-content-max); margin-inline: auto; min-width: 0; }
.handoff-content img { max-width: 100%; height: auto; }
.handoff-rail { position: fixed; right: 0; z-index: 100000008; width: 30px; height: 44px; padding: 0; border: 2px solid #ffd259; border-right: 0; border-radius: 9px 0 0 9px; background: var(--pwa-teal); color: white; cursor: pointer; font: 700 10px/1 system-ui,sans-serif; }
.handoff-rail--sms { bottom: calc(var(--pwa-bottom-navigation-clearance) + 10px); }
.handoff-rail--install { bottom: calc(var(--pwa-bottom-navigation-clearance) + 58px); }
.handoff-tool-panel { position: fixed; z-index: 1000000; box-sizing: border-box; left: max(32px, calc((100vw - 540px) / 2)); width: min(540px, calc(100% - 64px)); bottom: calc(var(--pwa-bottom-navigation-clearance) + 8px); max-height: calc(100dvh - var(--pwa-bottom-navigation-clearance) - 24px); display: flex; flex-direction: column; overflow: hidden; border: 2px solid #ffd259; border-radius: 8px; background: white; color: var(--pwa-ink); box-shadow: 0 8px 32px #0004; font: 400 16px/1.6 system-ui,sans-serif; }
.handoff-tool-panel[hidden], .handoff-rail[hidden] { display: none; }
.handoff-tool-panel header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; box-sizing: border-box; min-height: 64px; padding: 10px 16px; background: var(--pwa-teal); color: white; }
.handoff-tool-panel h2 { margin: 0; font: 700 20px/1.3 system-ui,sans-serif; }
.handoff-tool-panel form { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.handoff-tool-body { padding: 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.handoff-tool-panel p { margin: 0 0 20px; }
.handoff-tool-panel label { display: block; margin-bottom: 16px; }
.handoff-tool-panel input[type="tel"] { box-sizing: border-box; width: 100%; min-height: 48px; margin-bottom: 16px; font: inherit; }
.handoff-tool-panel button { min-height: 44px; min-width: 44px; font: inherit; cursor: pointer; }
.handoff-tool-panel footer { display: flex; flex: none; gap: 10px; padding: 10px 16px; border-top: 2px solid #ffd259; }
.handoff-tool-panel footer button { flex: 1; min-height: 48px; }
.handoff-tool-panel :focus-visible, .handoff-rail:focus-visible { outline: 3px solid #349fb7; outline-offset: -3px; }
@media (max-width: 1023px) {
  .handoff-screen { padding-bottom: calc(var(--pwa-bottom-navigation-clearance) + 24px); }
  .handoff-bottom-stack { position: fixed; inset: auto 0 0; z-index: 45; }
  .handoff-bottom-stack [data-bottom-navigation] { position: sticky; bottom: 0; box-sizing: border-box; background: rgba(7,81,97,.94); color: white; border-top: 2px solid #ffd259; }
  .handoff-bottom-stack nav { display: flex; min-height: 62px; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .handoff-bottom-stack nav a { flex: 1; display: grid; place-items: center; min-width: 0; min-height: 58px; color: inherit; text-align: center; overflow-wrap: anywhere; }
  .handoff-page-actions { padding: 10px max(32px, calc((100vw - 540px) / 2)); }
  .handoff-page-actions button { width: 100%; min-height: 48px; border-radius: 8px; font-size: 18px; }
}
@media (min-width: 1024px) {
  .handoff-bottom-stack { display: none; }
  .handoff-tool-panel { top: 50%; bottom: auto; transform: translateY(-50%); max-height: calc(100dvh - 48px); }
}
