
/* YapBuild guided start: compact visual choices, no extra navigation layers. */
.yb-chat-flow{max-width:780px;padding:17px clamp(15px,2.5vw,24px);border-radius:18px}
.yb-chat-flow .yb-chat-welcome[hidden],.yb-chat-flow [hidden]{display:none!important}
.yb-chat-welcome{padding:15px 0 3px}
.yb-chat-welcome h3{font:750 clamp(19px,2.2vw,23px)/1.22 system-ui;letter-spacing:-.028em;margin:0 0 7px;color:var(--fg)}
.yb-chat-welcome>p{font:13px/1.55 system-ui;opacity:.72;margin:0 0 15px}
.yb-chat-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.yb-chat-choices button{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:10px;align-content:center;text-align:left;min-width:0;min-height:74px;padding:12px;border:1px solid var(--border,#dce8dc);border-radius:13px;background:var(--panel,#fff);color:var(--fg);cursor:pointer;line-height:1.35}
.yb-chat-choices button:hover{border-color:#8cbb9b;background:var(--bubble,#eff5ef)}
.yb-chat-choices .yb-choice-symbol{display:grid;grid-row:span 2;place-items:center;width:38px;height:38px;border-radius:11px;color:var(--accent,#1d6944);background:var(--bubble,#ebf3ea);font-size:19px;font-weight:750}
.yb-chat-choices strong{font:700 13px/1.3 system-ui}
.yb-chat-choices small{font:12px/1.4 system-ui;opacity:.68}
.yb-chat-custom-label{display:block;margin:19px 0 7px;color:var(--fg);font:700 12.5px/1.4 system-ui}
.yb-chat-custom{display:flex;gap:8px}
.yb-chat-custom input{flex:1;min-width:0;min-height:45px;border:1px solid var(--border);background:var(--page,var(--panel));color:var(--fg);border-radius:11px;padding:10px 13px;font:13px system-ui}
.yb-chat-custom button{min-width:94px;min-height:45px;padding:10px 14px;border:0;border-radius:11px;background:#236544;color:#fff;font:700 13px system-ui;cursor:pointer}
.yb-chat-welcome .yb-chat-welcome-note{font-size:11px;opacity:.67;margin:10px 0 0}
.yb-chat-copy-link{flex:1 1 100%;max-width:100%;padding:10px;border:1px solid var(--border);background:var(--page);color:var(--fg);border-radius:9px}
.yb-chat-flow button:focus-visible,.yb-chat-flow input:focus-visible{outline:3px solid #83b69b;outline-offset:2px}
.yb-chat-actions button.yb-chat-primary{min-height:44px}
.yb-chat-advanced-note{font-size:11px;line-height:1.45}
#yap-tool-menu #yap-nav-build{min-height:46px!important}
@media(max-width:650px){
 .yb-chat-flow{max-height:60dvh;overflow-y:auto;overscroll-behavior:contain;width:calc(100% - 18px);margin-bottom:8px;padding:13px}
 .yb-chat-welcome{padding:12px 0 2px}
 .yb-chat-choices{gap:8px}
 .yb-chat-choices button{min-height:72px;padding:10px;grid-template-columns:30px minmax(0,1fr);column-gap:8px}
 .yb-chat-choices .yb-choice-symbol{width:30px;height:30px;border-radius:9px}
 .yb-chat-choices strong{font-size:12px}
 .yb-chat-choices small{font-size:11px}
 .yb-chat-custom{flex-wrap:wrap}
 .yb-chat-custom button{min-height:44px}
}
@media(max-width:370px){.yb-chat-choices{grid-template-columns:1fr}.yb-chat-choices button{min-height:55px}}
@media(prefers-reduced-motion:reduce){.yb-chat-choices button{transition:none}}

/* App-embedded experience: one cloud-managed YapBuild screen, no external browser. */
body.yb-embedded-chat{overflow:hidden!important}
#yb-embedded-root{position:fixed;inset:0;z-index:2147482000;overflow-y:auto;overflow-x:hidden;background:var(--page,#f6faf5);color:var(--fg,#1b3728);overscroll-behavior:contain;font:14px/1.55 system-ui,-apple-system,sans-serif}
#yb-embedded-root *{box-sizing:border-box}
#yb-embedded-root .yb-embedded-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:63px;padding:10px clamp(14px,4vw,28px);background:var(--panel,#fff);border-bottom:1px solid var(--border,#dfeade)}
#yb-embedded-root .yb-embedded-brand{font-size:20px;font-weight:770;letter-spacing:-.04em;color:var(--accent,#216340)}
#yb-embedded-root .yb-embedded-head-actions{display:flex;align-items:center;gap:9px}
#yb-embedded-root .yb-embedded-head-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:42px;padding:9px 12px;border:1px solid var(--border,#dbe8dd);border-radius:11px;background:var(--panel,#fff);color:var(--fg,#26432f);font:700 12px system-ui;cursor:pointer}
#yb-embedded-root .yb-embedded-content{width:min(740px,calc(100% - 28px));margin:0 auto;padding:clamp(15px,3vw,30px) 0 32px}
#yb-embedded-root .yb-chat-flow{display:block!important;width:100%;max-height:none;overflow:visible;padding:clamp(15px,2.6vw,25px);box-shadow:0 3px 20px #0d342015}
#yb-embedded-root .yb-chat-flow[hidden]{display:none!important}
#yb-embedded-root .yb-chat-welcome h3{font-size:clamp(19px,4vw,25px)}
#yb-embedded-root .yb-chat-choices button{min-height:76px}
#yb-embedded-root #account-panel{position:absolute!important;top:68px!important;right:clamp(12px,3vw,28px)!important;left:auto!important;bottom:auto!important;z-index:10!important;width:min(410px,calc(100vw - 24px));max-height:calc(100dvh - 84px);overflow-y:auto;background:var(--panel,#fff);border:1px solid var(--border,#dbe8dd);border-radius:15px;box-shadow:0 18px 55px #091c1240}
#yb-embedded-root #account-panel[hidden]{display:none!important}
@media(max-width:440px){
 #yb-embedded-root .yb-embedded-head{min-height:58px}
 #yb-embedded-root .yb-embedded-brand{font-size:18px}
 #yb-embedded-root .yb-embedded-head-actions button{padding:7px 10px;font-size:11px}
 #yb-embedded-root .yb-embedded-content{width:calc(100% - 20px);padding:13px 0 28px}
 #yb-embedded-root .yb-chat-flow{padding:14px}
}

#yb-embedded-root #account-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:5px!important;overflow:hidden!important;border-radius:12px!important}
#yb-embedded-root #account-toggle img{display:block!important;flex:none!important;width:27px!important;height:27px!important;max-width:27px!important;max-height:27px!important;object-fit:contain!important}
#yb-embedded-root #account-toggle .yap-account-identity,#yb-embedded-root #account-toggle .yap-account-chevron{display:none!important}
