/* AD02 simulated checkout: one common layout and state flow for all platforms. */
body[data-yau-ad-mode]{--yau-ad-safe-top:env(safe-area-inset-top,0px);--yau-ad-height:calc((100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) / 8)}
#yauAdBanner{position:fixed;z-index:2100;left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);top:var(--yau-ad-safe-top);height:var(--yau-ad-height);min-height:0;overflow:hidden;background:#efe4c8;color:#253b2c;border-bottom:1px solid var(--leaf-border);box-sizing:border-box}
#yauAdBanner[hidden],#yauAdRemove[hidden],#yauAdStatus[hidden]{display:none!important}
#yauAdBanner img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 55%}
.yau-ad-marker{position:absolute;top:6px;left:8px;padding:2px 5px;border-radius:3px;background:#f7ecd9;color:#253b2c;font:11px/1.3 system-ui,sans-serif;pointer-events:none}
html[data-skin] body[data-leaf-fusion][data-yau-ad-mode=demo] #mapWorkspace{inset:calc(var(--yau-ad-safe-top) + var(--yau-ad-height)) 0 0!important;height:calc(100dvh - var(--yau-ad-safe-top) - var(--yau-ad-height))!important}
body[data-yau-ad-mode=demo] #fusionShell{--yau-ui-top:6px}
body[data-yau-ad-mode=demo] #fusionShell .watch-face{max-height:calc(100dvh - var(--yau-ad-safe-top) - var(--yau-ad-height) - var(--yau-ui-top) - var(--yau-bottom-gap) - var(--yau-bottom-height,170px) - 84px)!important}
body[data-yau-ad-mode] #fusionShell .fusion-foot{margin-top:0;margin-bottom:7px}
body[data-yau-ad-mode] #fusionShell .fusion-bottom{bottom:calc(env(safe-area-inset-bottom,0px) + 38px)}
#yauAdRemove{position:fixed;z-index:2147482999;width:48px;min-height:68px;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid var(--leaf-border);border-radius:14px;background:var(--leaf-panel);color:var(--leaf-ink);box-shadow:0 2px 10px #0003;font:11px/1.2 system-ui,sans-serif;touch-action:manipulation}
#yauAdRemove>span:first-child{font-size:24px;line-height:1}
#yauAdRemove>span:last-child{max-width:40px;text-align:center}
#yauAdDialog{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);border:0;background:var(--leaf-bg);color:var(--leaf-ink);overflow:auto;overscroll-behavior:contain;font:14px/1.5 system-ui,sans-serif}
#yauAdDialog::backdrop{background:var(--leaf-bg)}
#yauAdDialog [hidden]{display:none!important}
.yau-ad-page{max-width:600px;margin:auto}
.yau-ad-header{display:flex;align-items:center;gap:10px;min-height:60px;padding:6px 16px}
.yau-ad-header>button{width:44px;min-height:44px;padding:0;border:1px solid var(--leaf-border);border-radius:50%;background:var(--leaf-panel);color:inherit;font-size:29px}
.yau-ad-header>strong{font:500 19px/1.3 ui-monospace,monospace;letter-spacing:.05em}
.yau-ad-header small{font:11px/1.3 system-ui,sans-serif}
.yau-ad-header>span{margin-left:auto;font-size:11px;color:var(--leaf-muted)}
.yau-ad-large{position:relative;height:46dvh;min-height:240px;max-height:480px;margin:0 15px;overflow:hidden;border:1px solid var(--leaf-border);border-radius:7px;background:#efe4c8;color:#253b2c}
.yau-ad-large>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 62%}
.yau-ad-decision{padding:20px 22px 15px;text-align:center}
.yau-ad-decision>h2{font-size:28px;font-weight:500;line-height:1.3;margin:0 0 7px}
.yau-ad-decision>p{margin:0 0 17px;font-size:15px}
.yau-ad-editorial{display:flex;flex-direction:column;gap:4px;margin:0 0 20px}
.yau-ad-editorial>strong{font-size:clamp(17px,4.8vw,21px);line-height:1.6;font-weight:500}
.yau-ad-editorial>span{font-size:12px;line-height:1.6;color:var(--leaf-muted)}
#yauAdDialog .yau-ad-primary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;min-height:77px;padding:12px 8px;border:1px solid var(--leaf-mint);border-radius:13px;background:var(--leaf-mint);color:var(--leaf-bg);touch-action:manipulation}
.yau-ad-primary>span{font-size:clamp(20px,5.6vw,24px);line-height:1.3;font-weight:500}
.yau-ad-primary>small{font-size:12px;font-weight:400;line-height:1.3}
.yau-ad-disclaimer{display:block;margin:9px 0 2px;font-size:11px;color:var(--leaf-muted)}
.yau-ad-secondary{min-height:44px;padding:9px 3px;border:0;background:transparent;color:var(--leaf-ink);font:13px/1.4 system-ui,sans-serif}
.yau-ad-decision .yau-ad-joke{font-size:11px;color:var(--leaf-muted);margin:8px 0 0}
.yau-checkout{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:28px 24px 30px}
.yau-checkout-tag{align-self:flex-start;padding:5px 9px;border:1px solid var(--leaf-border);border-radius:6px;background:var(--leaf-panel);color:var(--leaf-ink);font-size:12px}
.yau-checkout>h2{font-size:27px;line-height:1.4;font-weight:500;margin:8px 0 0}
.yau-checkout>p{font-size:15px;line-height:1.65;margin:0}
.yau-checkout-order{display:flex;flex-direction:column;gap:0;margin:8px 0;padding:0;border-top:1px solid var(--leaf-border)}
.yau-checkout-order>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--leaf-border)}
.yau-checkout-order dt{font-size:13px;color:var(--leaf-muted)}
.yau-checkout-order dd{font-size:15px;margin:0;text-align:right;overflow-wrap:anywhere}
.yau-checkout-order .yau-checkout-total{font-size:27px;font-weight:500}
.yau-checkout-note{font-size:15px;line-height:1.7;padding:5px 0 12px}
.yau-checkout-note small{display:block;margin-top:7px;font-size:12px;color:var(--leaf-muted)}
#yauAdDialog .yau-ad-primary:disabled{opacity:.65}
#yauAdPaymentStatus{font-size:12px;color:var(--leaf-muted);min-height:20px;text-align:center}
.yau-checkout-success{min-height:66dvh;justify-content:center;align-items:center;text-align:center}
.yau-checkout-success .yau-checkout-tag{align-self:center}
.yau-success-mark{display:grid;place-items:center;width:72px;height:72px;border:2px solid var(--leaf-mint);border-radius:50%;color:var(--leaf-mint);font-size:38px;line-height:1;margin-top:20px}
.yau-checkout-success .yau-success-note{font-size:13px;color:var(--leaf-muted);margin-bottom:14px}
#yauAdStatus{position:fixed;z-index:2147483001;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 20px);padding:12px 15px;border:1px solid var(--leaf-border);border-radius:12px;background:var(--leaf-panel);color:var(--leaf-ink);font:13px/1.6 system-ui,sans-serif;box-shadow:0 4px 18px #0002}
@media(orientation:landscape) and (max-height:600px){.yau-ad-page{max-width:100%;display:grid;grid-template-columns:1fr 1fr}.yau-ad-header{grid-column:1/-1}[data-ad-screen=offer]{display:contents}.yau-ad-large{height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 80px);min-height:210px}.yau-ad-decision{padding:14px 22px}.yau-ad-decision>h2{font-size:24px}.yau-checkout{grid-column:1/-1;width:min(100%,540px);margin:auto}.yau-ad-editorial{margin-bottom:12px}}

/* UI09: explicit watch-only remove-ad label; existing dialog and payment flow unchanged. */
#yauAdRemove .yau-ad-terminal-watch,#yauAdRemove .yau-ad-remove-label{display:none}
html[data-skin=watch] body #yauAdRemove{height:auto;min-height:58px;width:48px;padding:4px 2px;gap:3px}
html[data-skin=watch] #yauAdRemove .yau-ad-heart-default{display:none}
html[data-skin=watch] #yauAdRemove .yau-ad-terminal-watch{display:block;line-height:0}
html[data-skin=watch] #yauAdRemove .yau-ad-remove-label{display:block;font:10px/1.2 system-ui,sans-serif;color:var(--leaf-ink)}
html[data-skin=watch] #yauAdRemove .yau-ad-terminal-watch svg{width:28px;height:28px}
html[data-skin=watch] #yauAdRemove .terminal-cursor{animation:yau-terminal-blink 1.2s steps(1,end) infinite}
@keyframes yau-terminal-blink{0%,49%{opacity:1}50%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){html[data-skin=watch] #yauAdRemove .terminal-cursor{animation:none;opacity:1}}
