/* Original, local Pip photo-frame mascot. No continuous animation. */
body.pip-mounted:not(.pip-touring) { padding-bottom: 104px; }
.pip-dock { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 35; font-family: inherit; color: #3f6059; }
.pip-widget { position: relative; width: 64px; }
.pip-dock [hidden] { display: none !important; }
.pip-avatar { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 1px solid #c9d7cb; border-radius: 23px; background: #f8faf2; box-shadow: 0 5px 20px #3e5b4820; cursor: pointer; transform-origin: 50% 80%; }
.pip-avatar svg { display: block; width: 64px; height: 64px; overflow: visible; }
.pip-bubble { position: absolute; bottom: 78px; right: 0; width: min(264px, calc(100vw - 36px)); border: 1px solid #cbd7c7; border-radius: 17px 17px 4px 17px; padding: 15px 16px 12px; background: #fcfcf5; box-shadow: 0 8px 30px #3552471b; }
.pip-caption { margin: 0 0 5px; color: #718677; font-size: 10px; line-height: 1.4; font-weight: 650; letter-spacing: .25px; }
.pip-message { margin: 0; font-size: 12px; line-height: 1.6; color: #3f6059; overflow-wrap: anywhere; }
.pip-actions { display: flex; gap: 13px; align-items: center; justify-content: space-between; margin-top: 10px; }
.pip-action, .pip-dismiss, .pip-restore { font: inherit; font-size: 11px; min-height: 36px; border-radius: 7px; cursor: pointer; }
.pip-action { padding: 8px 11px; border: 1px solid #acc4ad; background: #e6efdc; color: #456446; }
.pip-action:disabled { opacity: .5; cursor: default; }
.pip-dismiss { padding: 6px 0 6px 7px; border: 0; color: #748375; background: transparent; }
.pip-restore { min-height: 44px; padding: 10px 13px; border: 1px solid #c5d2c4; background: #fbfcf4; color: #5b7562; box-shadow: 0 3px 15px #35524713; }
.pip-dock button:focus-visible { outline: 3px solid #648eaf; outline-offset: 4px; }
.pip-dock button:hover:not(:disabled) { filter: brightness(.98); }
.pip-celebrating .pip-bubble { border-color: #9cb8aa; background: #f4f9ee; }
/* The helper moves into the guide, so it never covers tour navigation. */
#pip-tour-slot:empty { display: none; }
.pip-dock.pip-in-tour { position: static; width: 100%; margin: 4px 0 6px; }
.pip-in-tour .pip-widget { display: flex; align-items: center; width: 100%; gap: 10px; border-radius: 10px; background: #edf3e6; padding: 7px 10px; }
.pip-in-tour .pip-avatar { width: 48px; height: 48px; flex: 0 0 48px; background: transparent; border: 0; border-radius: 12px; box-shadow: none; }
.pip-in-tour .pip-avatar svg { width: 48px; height: 48px; }
.pip-in-tour .pip-bubble { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; width: auto; flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.pip-in-tour .pip-caption { grid-column: 1; margin-bottom: 3px; font-size: 9px; }
.pip-in-tour .pip-message { grid-column: 1; font-size: 11px; line-height: 1.5; }
.pip-in-tour .pip-actions { grid-column: 2; grid-row: 1 / 3; margin: 0; gap: 10px; }
.pip-in-tour .pip-action { min-height: 34px; white-space: nowrap; font-size: 10px; }
.pip-in-tour .pip-dismiss { font-size: 10px; min-height: 34px; }
.pip-in-tour.pip-is-dismissed { margin: 4px 0 8px; }
.pip-in-tour .pip-restore { min-height: 32px; padding: 5px 10px; font-size: 10px; box-shadow: none; }
/* Account for the compact inline helper in the existing fixed tour guide. */
body.pip-touring.demo-active { padding-bottom: 320px; }
.pip-touring .tour-highlight { scroll-margin-bottom: 325px; }
@media (max-width: 760px) {
  body.pip-mounted:not(.pip-touring) { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .pip-dock { right: max(14px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .pip-action, .pip-dismiss { min-height: 40px; }
  .pip-in-tour .pip-widget { gap: 6px; padding: 6px; }
  .pip-in-tour .pip-avatar { width: 40px; height: 40px; flex-basis: 40px; }
  .pip-in-tour .pip-avatar svg { width: 40px; height: 40px; }
  .pip-in-tour .pip-caption { display: none; }
  .pip-in-tour .pip-bubble { column-gap: 8px; }
  .pip-in-tour .pip-actions { gap: 6px; }
  .pip-in-tour .pip-action { padding: 6px 8px; }
  .pip-in-tour .pip-dismiss { font-size: 9px; padding-left: 2px; }
  .pip-in-tour .pip-message { font-size: 10px; }
  body.pip-touring.demo-active { padding-bottom: calc(385px + env(safe-area-inset-bottom)); }
  .pip-touring .tour-highlight { scroll-margin-bottom: 390px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Stable hit target, springy photo frame. All motion ends within 1.56 seconds. */
  .pip-react-hello { --pip-duration: 880ms; --pip-lift: -9px; --pip-lean: -7deg; }
  .pip-react-change { --pip-duration: 720ms; --pip-lift: -6px; --pip-lean: 5deg; }
  .pip-react-processing { --pip-duration: 1560ms; --pip-lift: -5px; --pip-lean: -4deg; }
  .pip-react-ready { --pip-duration: 1160ms; --pip-lift: -11px; --pip-lean: -9deg; }
  :is(.pip-react-hello, .pip-react-change, .pip-react-processing, .pip-react-ready) .pip-character {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: pip-spring var(--pip-duration) ease-in-out 1;
  }
  :is(.pip-react-hello, .pip-react-change, .pip-react-processing, .pip-react-ready) .pip-arm {
    transform-box: fill-box;
    animation: pip-flop-left var(--pip-duration) ease-in-out 1;
  }
  .pip-arm-left { transform-origin: 100% 50%; }
  .pip-arm-right { transform-origin: 0% 50%; }
  :is(.pip-react-hello, .pip-react-change, .pip-react-processing, .pip-react-ready) .pip-arm-right { animation-name: pip-flop-right; }
  :is(.pip-react-hello, .pip-react-change, .pip-react-processing, .pip-react-ready) .pip-foot {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: pip-foot-lag var(--pip-duration) ease-in-out 1;
  }
  :is(.pip-react-hello, .pip-react-change, .pip-react-processing, .pip-react-ready) .pip-foot-right { animation-direction: reverse; }
  :is(.pip-react-hello, .pip-react-change, .pip-react-processing, .pip-react-ready) .pip-shadow {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: pip-shadow-pulse var(--pip-duration) ease-in-out 1;
  }
  .pip-react-processing .pip-character { animation-name: pip-processing-spring; }
  @keyframes pip-spring {
    0%, 100% { transform: translateY(0) rotate(0) scale(1); }
    14% { transform: translateY(2px) rotate(2deg) scale(1.09, .9); }
    36% { transform: translateY(var(--pip-lift)) rotate(var(--pip-lean)) scale(.94, 1.08); }
    60% { transform: translateY(1px) rotate(4deg) scale(1.07, .93); }
    78% { transform: translateY(-3px) rotate(-2deg) scale(.98, 1.03); }
    91% { transform: translateY(0) rotate(1deg) scale(1.02, .98); }
  }
  @keyframes pip-processing-spring {
    0%, 48%, 100% { transform: translateY(0) rotate(0) scale(1); }
    10%, 58% { transform: translateY(1px) rotate(2deg) scale(1.05, .94); }
    24%, 72% { transform: translateY(var(--pip-lift)) rotate(var(--pip-lean)) scale(.97, 1.04); }
    38%, 86% { transform: translateY(1px) rotate(2deg) scale(1.04, .96); }
  }
  /* Limbs trail the body rather than rotating as a rigid sticker. */
  @keyframes pip-flop-left {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    44% { transform: rotate(38deg); }
    66% { transform: rotate(-23deg); }
    84% { transform: rotate(12deg); }
    94% { transform: rotate(-4deg); }
  }
  @keyframes pip-flop-right {
    0%, 100% { transform: rotate(0); }
    23% { transform: rotate(16deg); }
    47% { transform: rotate(-34deg); }
    69% { transform: rotate(20deg); }
    86% { transform: rotate(-10deg); }
    95% { transform: rotate(3deg); }
  }
  @keyframes pip-foot-lag {
    0%, 100% { transform: rotate(0); }
    28% { transform: rotate(14deg); }
    48% { transform: rotate(-19deg); }
    70% { transform: rotate(11deg); }
    88% { transform: rotate(-4deg); }
  }
  @keyframes pip-shadow-pulse {
    0%, 100% { transform: scaleX(1); opacity: .16; }
    36% { transform: scaleX(.78); opacity: .1; }
    60% { transform: scaleX(1.08); opacity: .18; }
    78% { transform: scaleX(.94); opacity: .14; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .pip-dock *, .pip-dock *::before, .pip-dock *::after { animation: none !important; transition: none !important; transform: none !important; }
}
/* Adaptive tour clearance and a non-overlapping phone helper. */
body.pip-touring.demo-active{padding-bottom:calc(var(--tour-clearance,440px) + 28px)}body.demo-active .tour-highlight{scroll-margin-bottom:calc(var(--tour-clearance,440px) + 40px)}
.pip-dock .pip-action,.pip-dock .pip-dismiss,.pip-dock .pip-restore{min-height:44px;font-size:12px}.pip-dock .pip-caption{color:#566c5c}.pip-dock .pip-dismiss{color:#526c56}
@media(max-width:760px),(max-height:500px){
 body.pip-mounted:not(.pip-touring){padding-bottom:env(safe-area-inset-bottom)}
 body:not(.demo-active) .pip-dock{position:static;right:auto;bottom:auto;display:flex;justify-content:flex-end;margin:20px max(14px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom));}
 body:not(.demo-active) .pip-widget{display:flex;flex-direction:row-reverse;align-items:flex-end;gap:12px;width:100%}
 body:not(.demo-active) .pip-avatar{flex:0 0 64px}
 body:not(.demo-active) .pip-bubble{position:static;max-width:min(300px,calc(100vw - 112px));width:auto;flex:1}
 body:not(.demo-active) .pip-is-dismissed{min-height:44px}
 .tour-guide{max-height:calc(100dvh - max(8px,env(safe-area-inset-bottom)) - 16px)}
}
@media(max-height:650px){.tour-guide{max-height:58dvh}}
/* A welcome in the page, never floating over somebody's work. */
#pip-welcome-slot:empty{display:none}.pip-welcome-visible .demo-invitation{display:none}
#pip-welcome-slot .pip-dock.pip-welcoming{position:static;margin:0 0 24px;display:block;width:100%}
#pip-welcome-slot .pip-widget{display:flex;flex-direction:row;align-items:center;gap:18px;width:100%;padding:20px 24px;background:linear-gradient(110deg,#e4eddb,#f9f6e9);border:1px solid #bfcdb4;border-radius:18px;box-shadow:0 6px 20px #233b2108}
#pip-welcome-slot .pip-avatar{flex:0 0 64px}#pip-welcome-slot .pip-bubble{position:static;flex:1;max-width:none;width:auto;padding:0;background:transparent;border:0;box-shadow:none}
#pip-welcome-slot .pip-caption{font-size:16px;color:#304c38;letter-spacing:0}#pip-welcome-slot .pip-message{font-size:14px;max-width:58em;color:#435b43}
#pip-welcome-slot .pip-actions{justify-content:flex-start;gap:10px;flex-wrap:wrap}.pip-explore{font:inherit;font-size:12px;min-height:44px;border:1px solid #b6c6ab;border-radius:7px;padding:9px 12px;background:#fffcf2;color:#3d573a;cursor:pointer}#pip-welcome-slot .pip-action{background:#38533d;border-color:#38533d;color:#fff;font-size:13px}.pip-help-entry{background:#f5f8ef;color:#3d573a}
.pip-help-dialog{width:min(620px,calc(100vw - 24px));max-width:none;padding:0;border:1px solid #becdb5;border-radius:20px;background:#fdfdf6;color:#2b3e2d}
.pip-help-dialog:modal{position:fixed;top:calc(var(--visible-offset-top,0px) + max(8px,env(safe-area-inset-top)));left:50%;right:auto;bottom:auto;transform:translateX(-50%);margin:0;display:flex;flex-direction:column;box-sizing:border-box;height:min(720px,calc(var(--visible-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-height:calc(var(--visible-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:hidden}
.pip-help-dialog::backdrop{background:#1e302368}.pip-help-header{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px 12px;background:#edf3e5}.pip-help-header h2{font-family:Georgia,serif;font-size:26px;font-weight:500;line-height:1.2;margin:4px 0}.pip-help-header .eyebrow{font-size:10px;margin:0;color:#526b47}.pip-help-header button{flex-shrink:0;min-width:44px;min-height:44px}
.pip-help-search{flex:0 0 auto;padding:16px 22px 10px;border-bottom:1px solid #d9e1d1}.pip-help-search>label{font-size:14px;font-weight:600;display:block;margin-bottom:8px}.pip-help-search>div{display:flex;gap:8px}.pip-help-search input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #aebb9f;border-radius:9px;font:inherit;font-size:16px;background:#fffefa;color:#2b3e2d}.pip-help-search p{font-size:12px;line-height:1.5;margin:8px 0 0;color:#5c6d52}
.pip-help-dialog button{font-family:inherit;font-size:13px;min-height:44px;cursor:pointer}.pip-help-search button,.pip-help-footer button,#pip-help-tool{padding:9px 12px;border:1px solid #bccbaf;border-radius:8px;background:#eef3e7;color:#344e2e}.pip-help-dialog button:disabled{opacity:.5;cursor:default}.pip-help-dialog :is(button,input):focus-visible{outline:3px solid #577b4d;outline-offset:2px}
.pip-help-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 22px;scroll-padding-block:12px}.pip-help-status{font-size:13px;line-height:1.5;color:#536a46;margin:0 0 12px}.pip-help-topic{display:block;width:100%;text-align:left;border:1px solid #d1dcc6;background:#fafcf4;border-radius:9px;padding:12px;margin:0 0 8px;color:#324c2e;line-height:1.5}.pip-help-topic[aria-selected=true],.pip-help-topic:hover{background:#e6efdb;border-color:#71915a}
#pip-help-answer-title{font-size:20px;line-height:1.4;margin:12px 0;color:#304c2d}#pip-help-answer-title:focus{outline:none}#pip-help-answer-copy{font-size:15px;line-height:1.7;white-space:pre-line;color:#384e32;overflow-wrap:anywhere}.pip-help-honesty{font-size:12px;line-height:1.5;color:#586a4d;border-top:1px solid #d9e1d1;padding-top:14px;margin:18px 0 0}.pip-help-dialog [hidden]{display:none!important}
.pip-help-dialog .pip-help-footer{position:static;flex:0 0 auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;max-width:none;padding:12px 22px max(12px,env(safe-area-inset-bottom));border-top:1px solid #d9e1d1;background:#f2f6e9}.pip-help-footer span{font-size:12px;color:#526648;line-height:1.4;flex:1;min-width:120px}.pip-help-footer #pip-help-demo{margin-left:auto}
@media(max-width:760px),(max-height:500px){#pip-welcome-slot .pip-widget{padding:16px;gap:12px;align-items:flex-start}#pip-welcome-slot .pip-caption{font-size:15px}#pip-welcome-slot .pip-message{font-size:13px}#pip-welcome-slot .pip-actions{gap:7px}#pip-welcome-slot .pip-dismiss{min-height:44px}.pip-help-dialog{width:calc(100vw - 12px);border-radius:14px}.pip-help-header{padding:10px 14px}.pip-help-header h2{font-size:22px}.pip-help-search{padding:12px 14px 10px}.pip-help-scroll{padding:12px 14px}.pip-help-dialog .pip-help-footer{padding:8px 12px max(8px,env(safe-area-inset-bottom))}.pip-help-footer span{flex-basis:100%}.pip-help-header .eyebrow{display:none}.header-actions{flex-wrap:wrap}}
@media(max-width:360px){#pip-welcome-slot .pip-widget{gap:10px;padding:14px}#pip-welcome-slot .pip-avatar,#pip-welcome-slot .pip-avatar svg{width:48px;height:48px}#pip-welcome-slot .pip-avatar{flex-basis:48px}#pip-welcome-slot .pip-actions{display:grid;grid-template-columns:1fr}#pip-welcome-slot .pip-dismiss{justify-self:start}}
@media(max-height:500px){.pip-help-header{padding:4px 12px}.pip-help-header h2{font-size:19px}.pip-help-search{padding:8px 12px}.pip-help-search p,.pip-help-footer span{display:none}.pip-help-dialog .pip-help-footer{padding:5px 10px}.pip-help-search>label{font-size:12px;margin-bottom:5px}}
body.preview-short .pip-help-header{padding:4px 12px}body.preview-short .pip-help-header h2{font-size:19px}body.preview-short .pip-help-search{padding:8px 12px}body.preview-short .pip-help-search p,body.preview-short .pip-help-footer span{display:none}body.preview-short .pip-help-dialog .pip-help-footer{padding:5px 10px}
@media(max-height:300px){.pip-help-header{display:none}}
body.preview-tiny .pip-help-header{display:none}
@media(prefers-reduced-motion:no-preference){.pip-react-hello .pip-arm-right{animation-name:pip-greeting-wave}.pip-blinking .pip-eyes{transform-box:fill-box;transform-origin:center;animation:pip-eye-blink 180ms ease-in-out 1;}@keyframes pip-greeting-wave{0%,100%{transform:rotate(0)}25%,60%{transform:rotate(-65deg)}42%,78%{transform:rotate(-20deg)}}@keyframes pip-eye-blink{0%,100%{transform:scaleY(1)}45%,65%{transform:scaleY(.1)}}}
/* visualViewport can shrink without changing CSS layout height. */
body.preview-keyboard .pip-help-header{display:none}
body.preview-keyboard .pip-help-search{padding:6px 10px}body.preview-keyboard .pip-help-search>label{font-size:12px;margin-bottom:4px}
body.preview-keyboard .pip-help-scroll{padding:8px 10px}body.preview-keyboard .pip-help-dialog .pip-help-footer{padding:4px 8px}
body.preview-tiny .pip-help-search>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.preview-tiny .pip-help-search{padding:4px 8px}body.preview-tiny .pip-help-scroll{padding:6px 8px}
@media(max-width:430px){.site-header{height:auto;min-height:76px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap;row-gap:10px}.site-header .header-actions{width:100%;justify-content:space-between;flex-wrap:nowrap}.site-header .header-actions .header-demo{flex:1}}
/* v15: a compact, persistent help launcher with space for scrolling/focus. */
html:has(body.pip-mounted:not(.pip-touring)){scroll-padding-bottom:calc(108px + env(safe-area-inset-bottom))}
body.pip-mounted:not(.pip-touring){padding-bottom:calc(108px + env(safe-area-inset-bottom))}
body:not(.demo-active) :is(#studio-workspace,#quick-try) :is(button,input,select,textarea,summary,a,[tabindex]){scroll-margin-bottom:calc(112px + env(safe-area-inset-bottom))}
body:not(.demo-active) #pip-welcome-slot .pip-avatar{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));z-index:35;width:64px;height:64px}
body:not(.demo-active) #pip-welcome-slot .pip-avatar svg{width:64px;height:64px}
@media(max-width:760px),(max-height:500px){
 body:not(.demo-active) .pip-dock:not(.pip-welcoming){position:fixed;right:max(12px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));margin:0;width:auto;max-width:calc(100vw - 24px);display:block}
 body:not(.demo-active) .pip-dock:not(.pip-welcoming) .pip-widget{display:block;width:56px}
 body:not(.demo-active) .pip-avatar,body:not(.demo-active) #pip-welcome-slot .pip-avatar{width:56px;height:56px;border-radius:19px;right:max(12px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));}
 body:not(.demo-active) .pip-avatar svg,body:not(.demo-active) #pip-welcome-slot .pip-avatar svg{width:56px;height:56px}
 body:not(.demo-active) .pip-dock:not(.pip-welcoming) .pip-bubble{position:absolute;right:66px;bottom:0;width:min(220px,calc(100vw - 102px));max-width:none;padding:10px 12px}
 body:not(.demo-active) .pip-celebrating .pip-caption,body:not(.demo-active) .pip-celebrating .pip-actions{display:none}
 body:not(.demo-active) .pip-celebrating .pip-message{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;line-height:1.45}
 body:not(.demo-active) .pip-restore{min-height:44px;font-size:13px;max-width:160px}
}
/* Keep the launcher below the compact photo rail when a keyboard shrinks the
   visual viewport without changing the layout viewport's media queries. */
body.preview-short:not(.demo-active) .pip-dock:not(.pip-welcoming){top:calc(var(--visible-offset-top,0px) + var(--visible-height,100dvh) - 50px - env(safe-area-inset-bottom));bottom:auto}
body.preview-short:not(.demo-active) .pip-dock:not(.pip-welcoming) .pip-widget{width:44px}
body.preview-short:not(.demo-active) .pip-avatar,body.preview-short:not(.demo-active) #pip-welcome-slot .pip-avatar{width:44px;height:44px;border-radius:15px}
body.preview-short:not(.demo-active) .pip-avatar svg,body.preview-short:not(.demo-active) #pip-welcome-slot .pip-avatar svg{width:44px;height:44px}
body.preview-short:not(.demo-active) #pip-welcome-slot .pip-avatar{top:calc(var(--visible-offset-top,0px) + var(--visible-height,100dvh) - 50px - env(safe-area-inset-bottom));bottom:auto}
body.preview-short:not(.demo-active) .live-preview-rail{max-height:max(40px,min(140px,calc(var(--visible-height,100dvh) - 64px - env(safe-area-inset-bottom) - env(safe-area-inset-top))))}
@media(max-width:760px){body:not(.quick-try-active) .site-header{height:auto;min-height:76px;padding-block:12px;flex-wrap:wrap;row-gap:10px}body:not(.quick-try-active) .site-header .header-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}}
